Protected Member Functions | |
SST functions | |
tmp< fvScalarMatrix > | kSource () const |
tmp< fvScalarMatrix > | epsilonSource () const |
tmp< volScalarField > | DkEff () const |
tmp< volScalarField > | DepsilonEff () const |
virtual tmp< volScalarField > | k () const |
virtual tmp< volScalarField > | epsilon () const |
Protected Attributes | |
SST parameters | |
dimensionedScalar | Cmu_ |
dimensionedScalar | C1_ |
dimensionedScalar | C2_ |
dimensionedScalar | C3_ |
dimensionedScalar | sigmak_ |
dimensionedScalar | sigmaEps_ |
![]() | |
const fvMesh & | mesh_ |
fvMesh More... | |
const DAOption & | daOption_ |
DAOption object. More... | |
const dictionary & | allOptions_ |
all DAFoam options More... | |
DAGlobalVar & | daGlobalVar_ |
global variable 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... | |
volScalarField | rhoOne_ |
an uniform rho field with ones More... | |
word | turbModelType_ = "None" |
whether the turbulence model is incompressible or compressible 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 & | epsilon_ |
volScalarField | epsilonRes_ |
volScalarField & | k_ |
volScalarField | kRes_ |
autoPtr< volScalarField::Internal > | GPtr_ |
volScalarField | betaFIK_ |
beta field for field inversion More... | |
volScalarField | betaFIEpsilon_ |
scalarList | epsilonNearWall_ |
label | solveTurbState_ = 0 |
whether to solve for turb states More... | |
TypeName ("kEpsilon") | |
DAkEpsilon (const word modelType, const fvMesh &mesh, const DAOption &daOption) | |
virtual | ~DAkEpsilon () |
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 (label printToScreen) |
solve the residual equations and update the state More... | |
void | saveEpsilonNearWall () |
save near wall epsilon values to epsilonNearWall_ More... | |
void | setEpsilonNearWall () |
set epsilonNearWall_ to near wall epsilon values More... | |
void | correctEpsilonBoundaryConditions () |
specially treatment to correct epsilon BC More... | |
virtual void | getFvMatrixFields (const word varName, scalarField &diag, scalarField &upper, scalarField &lower) |
return the diag(), upper(), and lower() scalarFields from the turbulence model's fvMatrix More... | |
virtual void | getTurbProdOverDestruct (volScalarField &PoD) const |
return the value of the destruction term from the turbulence model More... | |
virtual void | getTurbConvOverProd (volScalarField &CoP) const |
return the value of the convective over production term from the turbulence model More... | |
Additional Inherited Members | |
![]() | |
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 (volScalarField &prodTerm) const |
return the value of the production term from the turbulence 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 > | nut () |
get the nut field More... | |
tmp< volScalarField > | alphaEff () |
return effective thermal diffusivity More... | |
tmp< volScalarField > | nu () const |
get the nu field More... | |
tmp< volScalarField > | alpha () const |
get alpha field More... | |
tmp< volScalarField > | rho () const |
get the density field More... | |
dimensionSet | rhoDimensions () const |
return the dimension of rho More... | |
tmp< volScalarField > | phase () |
get the phase field More... | |
scalar | prt () |
get the turbulent Prandtl number More... | |
tmp< Foam::volScalarField > | mu () const |
get mu More... | |
bool | writeData (Ostream &os) const |
this is a virtual function for regIOobject More... | |
void | printYPlus (const label printToScreen) const |
print the min max and mean yPlus to screen More... | |
word | getTurbModelType () const |
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... | |
virtual void | solveAdjointFP (const word varName, const scalarList &rhs, scalarList &dPsi) |
solve the fvMatrixT field with given rhs and solution More... | |
![]() | |
static autoPtr< DATurbulenceModel > | New (const word modelType, const fvMesh &mesh, const DAOption &daOption) |
Definition at line 48 of file DAkEpsilon.H.
DAkEpsilon | ( | const word | modelType, |
const fvMesh & | mesh, | ||
const DAOption & | daOption | ||
) |
Definition at line 41 of file DAkEpsilon.C.
References DAkEpsilon::epsilon_, DAkEpsilon::epsilonNearWall_, DAkEpsilon::epsilonRes_, forAll(), DAkEpsilon::GPtr_, DAkEpsilon::kRes_, DATurbulenceModel::nut_, DATurbulenceModel::turbModelType_, and DATurbulenceModel::U_.
|
inlinevirtual |
Definition at line 120 of file DAkEpsilon.H.
|
protected |
Definition at line 160 of file DAkEpsilon.C.
References DAkEpsilon::k_, and DATurbulenceModel::rhoDimensions().
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::getFvMatrixFields().
|
protected |
Definition at line 169 of file DAkEpsilon.C.
References DAkEpsilon::epsilon_, and DATurbulenceModel::rhoDimensions().
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::getFvMatrixFields().
|
protected |
Definition at line 178 of file DAkEpsilon.C.
References DATurbulenceModel::nu(), DATurbulenceModel::nut_, and DAkEpsilon::sigmak_.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::getFvMatrixFields().
|
protected |
Definition at line 186 of file DAkEpsilon.C.
References DATurbulenceModel::nu(), DATurbulenceModel::nut_, and DAkEpsilon::sigmaEps_.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::getFvMatrixFields().
|
inlineprotectedvirtual |
Definition at line 72 of file DAkEpsilon.H.
References DAkEpsilon::k_.
|
inlineprotectedvirtual |
Definition at line 78 of file DAkEpsilon.H.
References DAkEpsilon::epsilon_.
TypeName | ( | "kEpsilon" | ) |
|
virtual |
update the turbulence state for DAStateInfo::regStates_
Implements DATurbulenceModel.
Definition at line 195 of file DAkEpsilon.C.
References forAll().
|
virtual |
update nut based on other turbulence variables and update the BCs
Implements DATurbulenceModel.
Definition at line 231 of file DAkEpsilon.C.
References DAkEpsilon::Cmu_, DATurbulenceModel::correctAlphat(), DAkEpsilon::epsilon_, DAkEpsilon::k_, and DATurbulenceModel::nut_.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::updateIntermediateVariables().
|
virtual |
update turbulence variable boundary values
Implements DATurbulenceModel.
Definition at line 249 of file DAkEpsilon.C.
References DAkEpsilon::k_.
|
virtual |
update any intermediate variables that are dependent on state variables and are used in calcResiduals
Implements DATurbulenceModel.
Definition at line 338 of file DAkEpsilon.C.
References DAkEpsilon::correctNut().
|
virtual |
update the original variable connectivity for the adjoint state residuals in stateCon
Implements DATurbulenceModel.
Definition at line 349 of file DAkEpsilon.C.
References forAll().
|
virtual |
add the model residual connectivity to stateCon
Implements DATurbulenceModel.
Definition at line 400 of file DAkEpsilon.C.
References DATurbulenceModel::mesh_, and DATurbulenceModel::turbModelType_.
|
virtual |
compute the turbulence residuals
Implements DATurbulenceModel.
Definition at line 514 of file DAkEpsilon.C.
References DATurbulenceModel::allOptions_, DAkEpsilon::betaFIEpsilon_, DAkEpsilon::betaFIK_, DAUtility::boundVar(), DAkEpsilon::C1_, DAkEpsilon::C2_, DAkEpsilon::C3_, DAkEpsilon::correctEpsilonBoundaryConditions(), DAkEpsilon::correctNut(), DATurbulenceModel::daGlobalVar_, DAkEpsilon::DepsilonEff(), DAkEpsilon::DkEff(), DAkEpsilon::epsilon_, DAkEpsilon::epsilonRes_, DAkEpsilon::epsilonSource(), DAkEpsilon::GPtr_, DAkEpsilon::k_, DAkEpsilon::kRes_, DAkEpsilon::kSource(), normalizeResiduals, DATurbulenceModel::nut_, DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DATurbulenceModel::phi_, DAGlobalVar::primalMaxRes, DAUtility::primalResidualControl(), DATurbulenceModel::rho(), DAkEpsilon::setEpsilonNearWall(), solve(), DAkEpsilon::solveTurbState_, and DATurbulenceModel::U_.
Referenced by DAkEpsilon::correct().
|
virtual |
solve the residual equations and update the state
Implements DATurbulenceModel.
Definition at line 493 of file DAkEpsilon.C.
References DAkEpsilon::calcResiduals(), and DAkEpsilon::solveTurbState_.
void saveEpsilonNearWall | ( | ) |
save near wall epsilon values to epsilonNearWall_
Definition at line 288 of file DAkEpsilon.C.
References DAkEpsilon::epsilon_, DAkEpsilon::epsilonNearWall_, forAll(), and DATurbulenceModel::mesh_.
Referenced by DAkEpsilon::correctEpsilonBoundaryConditions().
void setEpsilonNearWall | ( | ) |
set epsilonNearWall_ to near wall epsilon values
Definition at line 312 of file DAkEpsilon.C.
References DAkEpsilon::epsilon_, DAkEpsilon::epsilonNearWall_, forAll(), and DATurbulenceModel::mesh_.
Referenced by DAkEpsilon::calcResiduals(), DAkEpsilon::correctEpsilonBoundaryConditions(), and DAkEpsilon::getFvMatrixFields().
void correctEpsilonBoundaryConditions | ( | ) |
specially treatment to correct epsilon BC
Definition at line 261 of file DAkEpsilon.C.
References DAkEpsilon::epsilon_, DAkEpsilon::saveEpsilonNearWall(), and DAkEpsilon::setEpsilonNearWall().
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::getFvMatrixFields().
|
virtual |
return the diag(), upper(), and lower() scalarFields from the turbulence model's fvMatrix
Reimplemented from DATurbulenceModel.
Definition at line 647 of file DAkEpsilon.C.
References DAkEpsilon::betaFIEpsilon_, DAkEpsilon::betaFIK_, DAkEpsilon::C1_, DAkEpsilon::C2_, DAkEpsilon::C3_, DAkEpsilon::correctEpsilonBoundaryConditions(), DAkEpsilon::DepsilonEff(), DAkEpsilon::DkEff(), DAkEpsilon::epsilon_, DAkEpsilon::epsilonSource(), DAkEpsilon::GPtr_, DAkEpsilon::k_, DAkEpsilon::kSource(), DATurbulenceModel::nut_, DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DATurbulenceModel::phi_, DATurbulenceModel::rho(), DAkEpsilon::setEpsilonNearWall(), and DATurbulenceModel::U_.
|
virtual |
return the value of the destruction term from the turbulence model
Reimplemented from DATurbulenceModel.
Definition at line 722 of file DAkEpsilon.C.
References D, DAkEpsilon::epsilon_, forAll(), DAkEpsilon::GPtr_, DATurbulenceModel::nut_, DATurbulenceModel::phase_, DATurbulenceModel::rho(), and DATurbulenceModel::U_.
|
virtual |
return the value of the convective over production term from the turbulence model
Reimplemented from DATurbulenceModel.
Definition at line 743 of file DAkEpsilon.C.
References forAll(), DAkEpsilon::GPtr_, DAkEpsilon::k_, DATurbulenceModel::nut_, DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DATurbulenceModel::rho(), and DATurbulenceModel::U_.
|
protected |
Definition at line 55 of file DAkEpsilon.H.
Referenced by DAkEpsilon::correctNut().
|
protected |
Definition at line 56 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::getFvMatrixFields().
|
protected |
Definition at line 57 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::getFvMatrixFields().
|
protected |
Definition at line 58 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::getFvMatrixFields().
|
protected |
Definition at line 59 of file DAkEpsilon.H.
Referenced by DAkEpsilon::DkEff().
|
protected |
Definition at line 60 of file DAkEpsilon.H.
Referenced by DAkEpsilon::DepsilonEff().
|
protected |
Definition at line 86 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), DAkEpsilon::correctEpsilonBoundaryConditions(), DAkEpsilon::correctNut(), DAkEpsilon::DAkEpsilon(), DAkEpsilon::epsilon(), DAkEpsilon::epsilonSource(), DAkEpsilon::getFvMatrixFields(), DAkEpsilon::getTurbProdOverDestruct(), DAkEpsilon::saveEpsilonNearWall(), and DAkEpsilon::setEpsilonNearWall().
|
protected |
Definition at line 87 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::DAkEpsilon().
|
protected |
Definition at line 88 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), DAkEpsilon::correctBoundaryConditions(), DAkEpsilon::correctNut(), DAkEpsilon::getFvMatrixFields(), DAkEpsilon::getTurbConvOverProd(), DAkEpsilon::k(), and DAkEpsilon::kSource().
|
protected |
Definition at line 89 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::DAkEpsilon().
|
protected |
we need to make the G field a class variable and register it to the mesh.db such that the omegaWallFunction BC can find it
Definition at line 94 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), DAkEpsilon::DAkEpsilon(), DAkEpsilon::getFvMatrixFields(), DAkEpsilon::getTurbConvOverProd(), and DAkEpsilon::getTurbProdOverDestruct().
|
protected |
beta field for field inversion
Definition at line 97 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::getFvMatrixFields().
|
protected |
Definition at line 98 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::getFvMatrixFields().
|
protected |
cell-center epsilon values near the wall, this is to fix the issue that the epsilonWallFunction will try to modify epsilon 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 epsilon.
Definition at line 104 of file DAkEpsilon.H.
Referenced by DAkEpsilon::DAkEpsilon(), DAkEpsilon::saveEpsilonNearWall(), and DAkEpsilon::setEpsilonNearWall().
|
protected |
whether to solve for turb states
Definition at line 107 of file DAkEpsilon.H.
Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::correct().