Protected Member Functions | |
SST functions | |
tmp< volScalarField > | F1 (const volScalarField &CDkOmega) const |
tmp< volScalarField > | F2 () const |
tmp< volScalarField > | F3 () const |
tmp< volScalarField > | F23 () const |
tmp< volScalarField > | blend (const volScalarField &F1, const dimensionedScalar &psi1, const dimensionedScalar &psi2) const |
tmp< volScalarField::Internal > | blend (const volScalarField::Internal &F1, const dimensionedScalar &psi1, const dimensionedScalar &psi2) const |
tmp< volScalarField > | alphaK (const volScalarField &F1) const |
tmp< volScalarField > | alphaOmega (const volScalarField &F1) const |
tmp< volScalarField::Internal > | beta (const volScalarField::Internal &F1) const |
tmp< volScalarField::Internal > | gamma (const volScalarField::Internal &F1) const |
tmp< volScalarField > | DkEff (const volScalarField &F1) const |
tmp< volScalarField > | DomegaEff (const volScalarField &F1) const |
tmp< volScalarField::Internal > | Pk (const volScalarField::Internal &G) const |
tmp< volScalarField::Internal > | epsilonByk (const volScalarField &F1, const volTensorField &gradU) const |
tmp< volScalarField::Internal > | GbyNu (const volScalarField::Internal &GbyNu0, const volScalarField::Internal &F2, const volScalarField::Internal &S2) const |
tmp< fvScalarMatrix > | kSource () const |
tmp< fvScalarMatrix > | omegaSource () const |
tmp< fvScalarMatrix > | Qsas (const volScalarField::Internal &S2, const volScalarField::Internal &gamma, const volScalarField::Internal &beta) const |
Protected Attributes | |
SST parameters | |
dimensionedScalar | alphaK1_ |
dimensionedScalar | alphaK2_ |
dimensionedScalar | alphaOmega1_ |
dimensionedScalar | alphaOmega2_ |
dimensionedScalar | gamma1_ |
dimensionedScalar | gamma2_ |
dimensionedScalar | beta1_ |
dimensionedScalar | beta2_ |
dimensionedScalar | betaStar_ |
dimensionedScalar | a1_ |
dimensionedScalar | b1_ |
dimensionedScalar | c1_ |
Switch | F3_ |
Protected Attributes inherited from DATurbulenceModel | |
const fvMesh & | mesh_ |
fvMesh More... | |
const DAOption & | daOption_ |
DAOption object. More... | |
const dictionary & | allOptions_ |
all DAFoam options More... | |
volScalarField & | nut_ |
turbulence viscosity More... | |
volVectorField & | U_ |
velocity More... | |
surfaceScalarField & | phi_ |
face flux More... | |
volScalarField | phase_ |
phase field More... | |
surfaceScalarField & | phaseRhoPhi_ |
phase*phi*density field More... | |
IOdictionary | turbDict_ |
turbulence model property dict More... | |
dictionary | coeffDict_ |
turbulence model parameters dict More... | |
dimensionedScalar | kMin_ |
Lower limit of k. More... | |
dimensionedScalar | epsilonMin_ |
Lower limit of epsilon. More... | |
dimensionedScalar | omegaMin_ |
Lower limit for omega. More... | |
dimensionedScalar | nuTildaMin_ |
Lower limit for nuTilda. More... | |
scalar | Pr_ |
Prandtl number. More... | |
scalar | Prt_ = -9999.0 |
turbulent Prandtl number More... | |
Augmented variables for adjoint residuals | |
volScalarField & | omega_ |
volScalarField | omegaRes_ |
volScalarField & | k_ |
volScalarField | kRes_ |
const volScalarField & | y_ |
3D wall distance More... | |
scalarList | omegaNearWall_ |
label | solveTurbState_ = 0 |
whether to solve for turb states More... | |
label | printInterval_ |
time step interval to print residual More... | |
TypeName ("kOmegaSST") | |
DAkOmegaSST (const word modelType, const fvMesh &mesh, const DAOption &daOption) | |
virtual | ~DAkOmegaSST () |
virtual void | correctModelStates (wordList &modelStates) const |
update the turbulence state for DAStateInfo::regStates_ More... | |
virtual void | correctNut () |
update nut based on other turbulence variables and update the BCs More... | |
virtual void | correctBoundaryConditions () |
update turbulence variable boundary values More... | |
virtual void | updateIntermediateVariables () |
update any intermediate variables that are dependent on state variables and are used in calcResiduals More... | |
virtual void | correctStateResidualModelCon (List< List< word >> &stateCon) const |
update the original variable connectivity for the adjoint state residuals in stateCon More... | |
virtual void | addModelResidualCon (HashTable< List< List< word >>> &allCon) const |
add the model residual connectivity to stateCon More... | |
virtual void | calcResiduals (const dictionary &options) |
compute the turbulence residuals More... | |
virtual void | correct () |
solve the residual equations and update the state More... | |
void | saveOmegaNearWall () |
save near wall omega values to omegaNearWall_ More... | |
void | setOmegaNearWall () |
set omegaNearWall_ to near wall omega values More... | |
void | correctOmegaBoundaryConditions () |
specially treatment to correct epsilon BC More... | |
Additional Inherited Members | |
Public Member Functions inherited from DATurbulenceModel | |
TypeName ("DATurbulenceModel") | |
declareRunTimeSelectionTable (autoPtr, DATurbulenceModel, dictionary,(const word modelType, const fvMesh &mesh, const DAOption &daOption),(modelType, mesh, daOption)) | |
DATurbulenceModel (const word modelType, const fvMesh &mesh, const DAOption &daOption) | |
virtual | ~DATurbulenceModel () |
void | correctWallDist () |
update wall distance for d_. Note: y_ will be automatically updated in mesh_ object More... | |
void | correctAlphat () |
update alphat More... | |
virtual void | getTurbProdTerm (scalarList &prodTerm) const |
return the value of the production term from the Spalart Allmaras model More... | |
tmp< volSymmTensorField > | devRhoReff () const |
dev terms More... | |
tmp< fvVectorMatrix > | divDevRhoReff (volVectorField &U) |
divDev terms More... | |
tmp< fvVectorMatrix > | divDevReff (volVectorField &U) |
divDev terms More... | |
tmp< volScalarField > | nuEff () const |
return effective viscosity More... | |
tmp< volScalarField > | getNut () |
get the nut field More... | |
tmp< volScalarField > | alphaEff () |
return effective thermal diffusivity More... | |
tmp< volScalarField > | nu () const |
get the nu field More... | |
tmp< volScalarField > | getAlpha () const |
get alpha field More... | |
tmp< volScalarField > | getRho () |
get the density field More... | |
tmp< volScalarField > | getPhase () |
get the phase field More... | |
scalar | getPrt () |
get the turbulent Prandtl number More... | |
tmp< Foam::volScalarField > | getMu () const |
get mu More... | |
bool | writeData (Ostream &os) const |
this is a virtual function for regIOobject More... | |
void | printYPlus () const |
print the min max and mean yPlus to screen More... | |
label | isPrintTime (const Time &runTime, const label printInterval) const |
virtual void | invTranProdNuTildaEqn (const volScalarField &mySource, volScalarField &pseudoNuTilda) |
Inverse transpose product, M_nuTilda^(-T) More... | |
virtual void | constructPseudoNuTildaEqn () |
virtual void | rhsSolvePseudoNuTildaEqn (const volScalarField &nuTildaSource) |
virtual void | calcLduResidualTurb (volScalarField &nuTildaRes) |
calculate the turbulence residual using LDU matrix More... | |
Static Public Member Functions inherited from DATurbulenceModel | |
static autoPtr< DATurbulenceModel > | New (const word modelType, const fvMesh &mesh, const DAOption &daOption) |
Definition at line 48 of file DAkOmegaSST.H.
DAkOmegaSST | ( | const word | modelType, |
const fvMesh & | mesh, | ||
const DAOption & | daOption | ||
) |
Definition at line 41 of file DAkOmegaSST.C.
References daOption(), forAll(), mesh, DAkOmegaSST::omega_, DAkOmegaSST::omegaNearWall_, and DAkOmegaSST::printInterval_.
|
inlinevirtual |
Definition at line 196 of file DAkOmegaSST.H.
|
protected |
Definition at line 181 of file DAkOmegaSST.C.
References DAkOmegaSST::alphaOmega2_, DAkOmegaSST::betaStar_, DAkOmegaSST::k_, DATurbulenceModel::nu(), DAkOmegaSST::omega_, and DAkOmegaSST::y_.
Referenced by DAkOmegaSST::alphaK(), DAkOmegaSST::alphaOmega(), DAkOmegaSST::beta(), DAkOmegaSST::blend(), DAkOmegaSST::calcResiduals(), DAkOmegaSST::DkEff(), DAkOmegaSST::DomegaEff(), and DAkOmegaSST::gamma().
|
protected |
Definition at line 200 of file DAkOmegaSST.C.
References DAkOmegaSST::betaStar_, DAkOmegaSST::k_, DATurbulenceModel::nu(), DAkOmegaSST::omega_, and DAkOmegaSST::y_.
Referenced by DAkOmegaSST::F23(), and DAkOmegaSST::GbyNu().
|
protected |
Definition at line 212 of file DAkOmegaSST.C.
References DATurbulenceModel::nu(), DAkOmegaSST::omega_, and DAkOmegaSST::y_.
Referenced by DAkOmegaSST::F23().
|
protected |
Definition at line 222 of file DAkOmegaSST.C.
References DAkOmegaSST::F2(), DAkOmegaSST::F3(), and DAkOmegaSST::F3_.
Referenced by DAkOmegaSST::calcResiduals(), and DAkOmegaSST::correctNut().
|
inlineprotected |
Definition at line 83 of file DAkOmegaSST.H.
References DAkOmegaSST::F1().
Referenced by DAkOmegaSST::alphaK(), DAkOmegaSST::alphaOmega(), DAkOmegaSST::beta(), and DAkOmegaSST::gamma().
|
inlineprotected |
Definition at line 91 of file DAkOmegaSST.H.
References DAkOmegaSST::F1().
|
inlineprotected |
Definition at line 99 of file DAkOmegaSST.H.
References DAkOmegaSST::alphaK1_, DAkOmegaSST::alphaK2_, DAkOmegaSST::blend(), and DAkOmegaSST::F1().
Referenced by DAkOmegaSST::DkEff().
|
inlineprotected |
Definition at line 104 of file DAkOmegaSST.H.
References DAkOmegaSST::alphaOmega1_, DAkOmegaSST::alphaOmega2_, DAkOmegaSST::blend(), and DAkOmegaSST::F1().
Referenced by DAkOmegaSST::DomegaEff().
|
inlineprotected |
Definition at line 109 of file DAkOmegaSST.H.
References DAkOmegaSST::beta1_, DAkOmegaSST::beta2_, DAkOmegaSST::blend(), and DAkOmegaSST::F1().
Referenced by DAkOmegaSST::calcResiduals().
|
inlineprotected |
Definition at line 115 of file DAkOmegaSST.H.
References DAkOmegaSST::blend(), DAkOmegaSST::F1(), DAkOmegaSST::gamma1_, and DAkOmegaSST::gamma2_.
Referenced by DAkOmegaSST::calcResiduals().
|
inlineprotected |
Definition at line 122 of file DAkOmegaSST.H.
References DAkOmegaSST::alphaK(), DAkOmegaSST::F1(), DATurbulenceModel::nu(), and DATurbulenceModel::nut_.
Referenced by DAkOmegaSST::calcResiduals().
|
inlineprotected |
Definition at line 129 of file DAkOmegaSST.H.
References DAkOmegaSST::alphaOmega(), DAkOmegaSST::F1(), DATurbulenceModel::nu(), and DATurbulenceModel::nut_.
Referenced by DAkOmegaSST::calcResiduals().
|
protected |
Definition at line 245 of file DAkOmegaSST.C.
References DAkOmegaSST::betaStar_, DAkOmegaSST::c1_, DAkOmegaSST::k_, and DAkOmegaSST::omega_.
Referenced by DAkOmegaSST::calcResiduals().
|
protected |
Definition at line 251 of file DAkOmegaSST.C.
References DAkOmegaSST::betaStar_, and DAkOmegaSST::omega_.
Referenced by DAkOmegaSST::calcResiduals().
|
protected |
Definition at line 234 of file DAkOmegaSST.C.
References DAkOmegaSST::a1_, DAkOmegaSST::b1_, DAkOmegaSST::betaStar_, DAkOmegaSST::c1_, DAkOmegaSST::F2(), and DAkOmegaSST::omega_.
Referenced by DAkOmegaSST::calcResiduals().
|
protected |
Definition at line 258 of file DAkOmegaSST.C.
References DAkOmegaSST::k_, and rho.
Referenced by DAkOmegaSST::calcResiduals().
|
protected |
Definition at line 267 of file DAkOmegaSST.C.
References DAkOmegaSST::omega_, and rho.
Referenced by DAkOmegaSST::calcResiduals().
|
protected |
Definition at line 276 of file DAkOmegaSST.C.
References DAkOmegaSST::omega_, and rho.
Referenced by DAkOmegaSST::calcResiduals().
TypeName | ( | "kOmegaSST" | ) |
|
virtual |
update the turbulence state for DAStateInfo::regStates_
Implements DATurbulenceModel.
Definition at line 289 of file DAkOmegaSST.C.
References forAll().
|
virtual |
update nut based on other turbulence variables and update the BCs
Implements DATurbulenceModel.
Definition at line 325 of file DAkOmegaSST.C.
References DAkOmegaSST::a1_, DAkOmegaSST::b1_, DATurbulenceModel::correctAlphat(), DAkOmegaSST::F23(), DAkOmegaSST::k_, DATurbulenceModel::mesh_, DATurbulenceModel::nut_, DAkOmegaSST::omega_, and U.
Referenced by DAkOmegaSST::calcResiduals(), and DAkOmegaSST::updateIntermediateVariables().
|
virtual |
update turbulence variable boundary values
Implements DATurbulenceModel.
Definition at line 347 of file DAkOmegaSST.C.
References DAkOmegaSST::k_.
|
virtual |
update any intermediate variables that are dependent on state variables and are used in calcResiduals
Implements DATurbulenceModel.
Definition at line 436 of file DAkOmegaSST.C.
References DAkOmegaSST::correctNut().
|
virtual |
update the original variable connectivity for the adjoint state residuals in stateCon
Implements DATurbulenceModel.
Definition at line 447 of file DAkOmegaSST.C.
References forAll().
|
virtual |
add the model residual connectivity to stateCon
Implements DATurbulenceModel.
Definition at line 546 of file DAkOmegaSST.C.
References DATurbulenceModel::mesh_.
|
virtual |
compute the turbulence residuals
Implements DATurbulenceModel.
Definition at line 658 of file DAkOmegaSST.C.
References DATurbulenceModel::allOptions_, DAkOmegaSST::alphaOmega2_, DAkOmegaSST::beta(), DAUtility::boundVar(), DAkOmegaSST::correctNut(), DAkOmegaSST::correctOmegaBoundaryConditions(), DAkOmegaSST::DkEff(), DAkOmegaSST::DomegaEff(), DAkOmegaSST::epsilonByk(), DAkOmegaSST::F1(), DAkOmegaSST::F23(), DAkOmegaSST::gamma(), DAkOmegaSST::GbyNu(), DATurbulenceModel::isPrintTime(), DAkOmegaSST::k_, DAkOmegaSST::kRes_, DAkOmegaSST::kSource(), DATurbulenceModel::mesh_, normalizeResiduals, DATurbulenceModel::nut_, DAkOmegaSST::omega_, DAkOmegaSST::omegaRes_, DAkOmegaSST::omegaSource(), DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DATurbulenceModel::phi_, DAkOmegaSST::Pk(), DAkOmegaSST::printInterval_, DAkOmegaSST::Qsas(), DAkOmegaSST::setOmegaNearWall(), solve(), DAkOmegaSST::solveTurbState_, and DATurbulenceModel::U_.
Referenced by DAkOmegaSST::correct().
|
virtual |
solve the residual equations and update the state
Implements DATurbulenceModel.
Definition at line 638 of file DAkOmegaSST.C.
References DAkOmegaSST::calcResiduals(), and DAkOmegaSST::solveTurbState_.
void saveOmegaNearWall | ( | ) |
save near wall omega values to omegaNearWall_
Definition at line 386 of file DAkOmegaSST.C.
References forAll(), DATurbulenceModel::mesh_, DAkOmegaSST::omega_, and DAkOmegaSST::omegaNearWall_.
Referenced by DAkOmegaSST::correctOmegaBoundaryConditions().
void setOmegaNearWall | ( | ) |
set omegaNearWall_ to near wall omega values
Definition at line 410 of file DAkOmegaSST.C.
References forAll(), DATurbulenceModel::mesh_, DAkOmegaSST::omega_, and DAkOmegaSST::omegaNearWall_.
Referenced by DAkOmegaSST::calcResiduals(), and DAkOmegaSST::correctOmegaBoundaryConditions().
void correctOmegaBoundaryConditions | ( | ) |
specially treatment to correct epsilon BC
Definition at line 359 of file DAkOmegaSST.C.
References DAkOmegaSST::omega_, DAkOmegaSST::saveOmegaNearWall(), and DAkOmegaSST::setOmegaNearWall().
Referenced by DAkOmegaSST::calcResiduals().
|
protected |
Definition at line 55 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::alphaK().
|
protected |
Definition at line 56 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::alphaK().
|
protected |
Definition at line 58 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::alphaOmega().
|
protected |
Definition at line 59 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::alphaOmega(), DAkOmegaSST::calcResiduals(), and DAkOmegaSST::F1().
|
protected |
Definition at line 61 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::gamma().
|
protected |
Definition at line 62 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::gamma().
|
protected |
Definition at line 64 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::beta().
|
protected |
Definition at line 65 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::beta().
|
protected |
Definition at line 67 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::epsilonByk(), DAkOmegaSST::F1(), DAkOmegaSST::F2(), DAkOmegaSST::GbyNu(), and DAkOmegaSST::Pk().
|
protected |
Definition at line 69 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::correctNut(), and DAkOmegaSST::GbyNu().
|
protected |
Definition at line 70 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::correctNut(), and DAkOmegaSST::GbyNu().
|
protected |
Definition at line 71 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::GbyNu(), and DAkOmegaSST::Pk().
|
protected |
Definition at line 73 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::F23().
|
protected |
Definition at line 164 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::calcResiduals(), DAkOmegaSST::correctNut(), DAkOmegaSST::correctOmegaBoundaryConditions(), DAkOmegaSST::DAkOmegaSST(), DAkOmegaSST::epsilonByk(), DAkOmegaSST::F1(), DAkOmegaSST::F2(), DAkOmegaSST::F3(), DAkOmegaSST::GbyNu(), DAkOmegaSST::omegaSource(), DAkOmegaSST::Pk(), DAkOmegaSST::Qsas(), DAkOmegaSST::saveOmegaNearWall(), and DAkOmegaSST::setOmegaNearWall().
|
protected |
Definition at line 165 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::calcResiduals().
|
protected |
Definition at line 166 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::calcResiduals(), DAkOmegaSST::correctBoundaryConditions(), DAkOmegaSST::correctNut(), DAkOmegaSST::F1(), DAkOmegaSST::F2(), DAkOmegaSST::kSource(), and DAkOmegaSST::Pk().
|
protected |
Definition at line 167 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::calcResiduals().
|
protected |
3D wall distance
Definition at line 171 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::F1(), DAkOmegaSST::F2(), and DAkOmegaSST::F3().
|
protected |
cell-center omega values near the wall, this is to fix the issue that the omegaWallFunction will try to modify omega values for the cells near walls this will cause issue for FD-based partial derivatives, so here we basically implement a zeroGradient BC for near wall omega.
Definition at line 177 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::DAkOmegaSST(), DAkOmegaSST::saveOmegaNearWall(), and DAkOmegaSST::setOmegaNearWall().
|
protected |
whether to solve for turb states
Definition at line 180 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::calcResiduals(), and DAkOmegaSST::correct().
|
protected |
time step interval to print residual
Definition at line 183 of file DAkOmegaSST.H.
Referenced by DAkOmegaSST::calcResiduals(), and DAkOmegaSST::DAkOmegaSST().