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_ |
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_ |
scalarList | omegaNearWall_ |
label | solveTurbState_ = 0 |
whether to solve for turb states More... | |
label | printInterval_ |
time step interval to print residual 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 () |
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 DAkOmega.H.
Definition at line 41 of file DAkOmega.C.
References daOption(), forAll(), mesh, DAkOmega::omega_, DAkOmega::omegaNearWall_, and DAkOmega::printInterval_.
|
inlinevirtual |
Definition at line 122 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().
|
inlineprotected |
Definition at line 78 of file DAkOmega.H.
References DAkOmega::alphaOmega_, DATurbulenceModel::nu(), and DATurbulenceModel::nut_.
Referenced by DAkOmega::calcResiduals().
TypeName | ( | "kOmega" | ) |
|
virtual |
update the turbulence state for DAStateInfo::regStates_
Implements DATurbulenceModel.
Definition at line 148 of file DAkOmega.C.
References forAll().
|
virtual |
update nut based on other turbulence variables and update the BCs
Implements DATurbulenceModel.
Definition at line 184 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 202 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 291 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 302 of file DAkOmega.C.
References forAll().
|
virtual |
add the model residual connectivity to stateCon
Implements DATurbulenceModel.
Definition at line 401 of file DAkOmega.C.
References DATurbulenceModel::mesh_.
|
virtual |
compute the turbulence residuals
Implements DATurbulenceModel.
Definition at line 513 of file DAkOmega.C.
References DATurbulenceModel::allOptions_, DAkOmega::beta_, DAUtility::boundVar(), DAkOmega::Cmu_, DAkOmega::correctNut(), DAkOmega::correctOmegaBoundaryConditions(), DAkOmega::DkEff(), DAkOmega::DomegaEff(), DAkOmega::gamma_, DATurbulenceModel::isPrintTime(), DAkOmega::k_, DAkOmega::kRes_, DATurbulenceModel::mesh_, normalizeResiduals, DATurbulenceModel::nut_, DAkOmega::omega_, DAkOmega::omegaRes_, DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DATurbulenceModel::phi_, DAkOmega::printInterval_, 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 493 of file DAkOmega.C.
References DAkOmega::calcResiduals(), and DAkOmega::solveTurbState_.
void saveOmegaNearWall | ( | ) |
save near wall omega values to omegaNearWall_
Definition at line 241 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 265 of file DAkOmega.C.
References forAll(), DATurbulenceModel::mesh_, DAkOmega::omega_, and DAkOmega::omegaNearWall_.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::correctOmegaBoundaryConditions().
void correctOmegaBoundaryConditions | ( | ) |
specially treatment to correct epsilon BC
Definition at line 214 of file DAkOmega.C.
References DAkOmega::omega_, DAkOmega::saveOmegaNearWall(), and DAkOmega::setOmegaNearWall().
Referenced by DAkOmega::calcResiduals().
|
protected |
Definition at line 55 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals().
|
protected |
Definition at line 56 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals().
|
protected |
Definition at line 57 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals().
|
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 93 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), DAkOmega::correctNut(), DAkOmega::correctOmegaBoundaryConditions(), DAkOmega::DAkOmega(), DAkOmega::saveOmegaNearWall(), and DAkOmega::setOmegaNearWall().
|
protected |
Definition at line 94 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals().
|
protected |
Definition at line 95 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), DAkOmega::correctBoundaryConditions(), and DAkOmega::correctNut().
|
protected |
Definition at line 96 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals().
|
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().
|
protected |
time step interval to print residual
Definition at line 109 of file DAkOmega.H.
Referenced by DAkOmega::calcResiduals(), and DAkOmega::DAkOmega().