Protected Member Functions | |
kOmega functions | |
tmp< volScalarField > | DkEff () const |
tmp< volScalarField > | DomegaEff () const |
Protected Attributes | |
kOmega parameters | |
dimensionedScalar | Cmu_ |
dimensionedScalar | beta_ |
dimensionedScalar | gamma_ |
dimensionedScalar | alphaK_ |
dimensionedScalar | alphaOmega_ |
![]() | |
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 & | omega_ |
volScalarField | omegaRes_ |
volScalarField & | k_ |
volScalarField | kRes_ |
autoPtr< volScalarField > | GPtr_ |
volScalarField | betaFIK_ |
beta field for field inversion More... | |
volScalarField | betaFIOmega_ |
scalarList | omegaNearWall_ |
label | solveTurbState_ = 0 |
whether to solve for turb states More... | |
TypeName ("kOmega") | |
DAkOmega (const word modelType, const fvMesh &mesh, const DAOption &daOption) | |
virtual | ~DAkOmega () |
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 | 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... | |
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 DAkOmega.H.
Definition at line 41 of file DAkOmega.C.
References forAll(), DAkOmega::GPtr_, DAkOmega::kRes_, DATurbulenceModel::nut_, DAkOmega::omega_, DAkOmega::omegaNearWall_, DAkOmega::omegaRes_, DATurbulenceModel::turbModelType_, and DATurbulenceModel::U_.
|
inlinevirtual |
Definition at line 119 of file DAkOmega.H.
|
inlineprotected |
Definition at line 65 of file DAkOmega.H.
References DAkOmega::alphaK_, DATurbulenceModel::nu(), and DATurbulenceModel::nut_.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::getFvMatrixFields().
|
inlineprotected |
Definition at line 74 of file DAkOmega.H.
References DAkOmega::alphaOmega_, DATurbulenceModel::nu(), and DATurbulenceModel::nut_.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::getFvMatrixFields().
TypeName | ( | "kOmega" | ) |
|
virtual |
update the turbulence state for DAStateInfo::regStates_
Implements DATurbulenceModel.
Definition at line 152 of file DAkOmega.C.
References forAll().
|
virtual |
update nut based on other turbulence variables and update the BCs
Implements DATurbulenceModel.
Definition at line 188 of file DAkOmega.C.
References DATurbulenceModel::correctAlphat(), DAkOmega::k_, DATurbulenceModel::nut_, and DAkOmega::omega_.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::updateIntermediateVariables().
|
virtual |
update turbulence variable boundary values
Implements DATurbulenceModel.
Definition at line 206 of file DAkOmega.C.
References DAkOmega::k_.
|
virtual |
update any intermediate variables that are dependent on state variables and are used in calcResiduals
Implements DATurbulenceModel.
Definition at line 295 of file DAkOmega.C.
References DAkOmega::correctNut().
|
virtual |
update the original variable connectivity for the adjoint state residuals in stateCon
Implements DATurbulenceModel.
Definition at line 306 of file DAkOmega.C.
References forAll().
|
virtual |
add the model residual connectivity to stateCon
Implements DATurbulenceModel.
Definition at line 405 of file DAkOmega.C.
References DATurbulenceModel::mesh_, and DATurbulenceModel::turbModelType_.
|
virtual |
compute the turbulence residuals
Implements DATurbulenceModel.
Definition at line 519 of file DAkOmega.C.
References DATurbulenceModel::allOptions_, DAkOmega::beta_, DAkOmega::betaFIK_, DAkOmega::betaFIOmega_, DAUtility::boundVar(), DAkOmega::Cmu_, DAkOmega::correctNut(), DAkOmega::correctOmegaBoundaryConditions(), DATurbulenceModel::daGlobalVar_, DAkOmega::DkEff(), DAkOmega::DomegaEff(), DAkOmega::gamma_, DAkOmega::GPtr_, DAkOmega::k_, DAkOmega::kRes_, normalizeResiduals, DATurbulenceModel::nut_, DAkOmega::omega_, DAkOmega::omegaRes_, DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DATurbulenceModel::phi_, DAGlobalVar::primalMaxRes, DAUtility::primalResidualControl(), DATurbulenceModel::rho(), DAkOmega::setOmegaNearWall(), solve(), DAkOmega::solveTurbState_, and DATurbulenceModel::U_.
Referenced by DAkOmega::correct().
|
virtual |
solve the residual equations and update the state
Implements DATurbulenceModel.
Definition at line 498 of file DAkOmega.C.
References DAkOmega::calcResiduals(), and DAkOmega::solveTurbState_.
void saveOmegaNearWall | ( | ) |
save near wall omega values to omegaNearWall_
Definition at line 245 of file DAkOmega.C.
References forAll(), DATurbulenceModel::mesh_, DAkOmega::omega_, and DAkOmega::omegaNearWall_.
Referenced by DAkOmega::correctOmegaBoundaryConditions().
void setOmegaNearWall | ( | ) |
set omegaNearWall_ to near wall omega values
Definition at line 269 of file DAkOmega.C.
References forAll(), DATurbulenceModel::mesh_, DAkOmega::omega_, and DAkOmega::omegaNearWall_.
Referenced by DAkOmega::calcResiduals(), DAkOmega::correctOmegaBoundaryConditions(), and DAkOmega::getFvMatrixFields().
void correctOmegaBoundaryConditions | ( | ) |
specially treatment to correct epsilon BC
Definition at line 218 of file DAkOmega.C.
References DAkOmega::omega_, DAkOmega::saveOmegaNearWall(), and DAkOmega::setOmegaNearWall().
Referenced by DAkOmega::calcResiduals(), and DAkOmega::getFvMatrixFields().
|
virtual |
return the diag(), upper(), and lower() scalarFields from the turbulence model's fvMatrix
Reimplemented from DATurbulenceModel.
Definition at line 649 of file DAkOmega.C.
References DAkOmega::beta_, DAkOmega::betaFIK_, DAkOmega::betaFIOmega_, DAkOmega::Cmu_, DAkOmega::correctOmegaBoundaryConditions(), DAkOmega::DkEff(), DAkOmega::DomegaEff(), DAkOmega::gamma_, DAkOmega::GPtr_, DAkOmega::k_, DATurbulenceModel::nut_, DAkOmega::omega_, DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DATurbulenceModel::phi_, DATurbulenceModel::rho(), DAkOmega::setOmegaNearWall(), and DATurbulenceModel::U_.
|
virtual |
return the value of the destruction term from the turbulence model
Reimplemented from DATurbulenceModel.
Definition at line 723 of file DAkOmega.C.
References DAkOmega::Cmu_, D, forAll(), DAkOmega::GPtr_, DAkOmega::k_, DATurbulenceModel::nut_, DAkOmega::omega_, 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 744 of file DAkOmega.C.
References forAll(), DAkOmega::GPtr_, DAkOmega::k_, DATurbulenceModel::nut_, DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DATurbulenceModel::rho(), and DATurbulenceModel::U_.
|
protected |
Definition at line 55 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), DAkOmega::getFvMatrixFields(), and DAkOmega::getTurbProdOverDestruct().
|
protected |
Definition at line 56 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::getFvMatrixFields().
|
protected |
Definition at line 57 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::getFvMatrixFields().
|
protected |
Definition at line 58 of file DAkOmega.H.
Referenced by DAkOmega::DkEff().
|
protected |
Definition at line 59 of file DAkOmega.H.
Referenced by DAkOmega::DomegaEff().
|
protected |
Definition at line 85 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), DAkOmega::correctNut(), DAkOmega::correctOmegaBoundaryConditions(), DAkOmega::DAkOmega(), DAkOmega::getFvMatrixFields(), DAkOmega::getTurbProdOverDestruct(), DAkOmega::saveOmegaNearWall(), and DAkOmega::setOmegaNearWall().
|
protected |
Definition at line 86 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::DAkOmega().
|
protected |
Definition at line 87 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), DAkOmega::correctBoundaryConditions(), DAkOmega::correctNut(), DAkOmega::getFvMatrixFields(), DAkOmega::getTurbConvOverProd(), and DAkOmega::getTurbProdOverDestruct().
|
protected |
Definition at line 88 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::DAkOmega().
|
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 93 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), DAkOmega::DAkOmega(), DAkOmega::getFvMatrixFields(), DAkOmega::getTurbConvOverProd(), and DAkOmega::getTurbProdOverDestruct().
|
protected |
beta field for field inversion
Definition at line 96 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::getFvMatrixFields().
|
protected |
Definition at line 97 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::getFvMatrixFields().
|
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 103 of file DAkOmega.H.
Referenced by DAkOmega::DAkOmega(), DAkOmega::saveOmegaNearWall(), and DAkOmega::setOmegaNearWall().
|
protected |
whether to solve for turb states
Definition at line 106 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::correct().