Protected Member Functions | |
SA functions | |
tmp< volScalarField > | chi () const |
tmp< volScalarField > | fv1 (const volScalarField &chi) const |
tmp< volScalarField > | fv2 (const volScalarField &chi, const volScalarField &fv1) const |
tmp< volScalarField > | Stilda (const volScalarField &chi, const volScalarField &fv1) const |
tmp< volScalarField > | fw (const volScalarField &Stilda) const |
Protected Attributes | |
SA parameters | |
dimensionedScalar | sigmaNut_ |
dimensionedScalar | kappa_ |
dimensionedScalar | Cb1_ |
dimensionedScalar | Cb2_ |
dimensionedScalar | Cw1_ |
dimensionedScalar | Cw2_ |
dimensionedScalar | Cw3_ |
dimensionedScalar | Cv1_ |
dimensionedScalar | Cs_ |
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 residual computation | |
volScalarField & | nuTilda_ |
volScalarField | nuTildaRes_ |
const volScalarField & | y_ |
3D wall distance More... | |
label | solveTurbState_ = 0 |
whether to solve for turb states More... | |
label | printInterval_ |
time step interval to print residual More... | |
TypeName ("SpalartAllmaras") | |
DASpalartAllmaras (const word modelType, const fvMesh &mesh, const DAOption &daOption) | |
virtual | ~DASpalartAllmaras () |
tmp< volScalarField > | DnuTildaEff () const |
Return the effective diffusivity for nuTilda. More... | |
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... | |
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 DASpalartAllmaras.H.
DASpalartAllmaras | ( | const word | modelType, |
const fvMesh & | mesh, | ||
const DAOption & | daOption | ||
) |
Definition at line 41 of file DASpalartAllmaras.C.
References daOption(), mesh, and DASpalartAllmaras::printInterval_.
|
inlinevirtual |
Definition at line 110 of file DASpalartAllmaras.H.
|
protected |
Definition at line 129 of file DASpalartAllmaras.C.
References DATurbulenceModel::nu(), and DASpalartAllmaras::nuTilda_.
Referenced by DASpalartAllmaras::calcResiduals(), DASpalartAllmaras::correctNut(), DASpalartAllmaras::fv1(), DASpalartAllmaras::fv2(), and DASpalartAllmaras::Stilda().
|
protected |
Definition at line 134 of file DASpalartAllmaras.C.
References DASpalartAllmaras::chi(), and DASpalartAllmaras::Cv1_.
Referenced by DASpalartAllmaras::calcResiduals(), DASpalartAllmaras::correctNut(), DASpalartAllmaras::fv2(), and DASpalartAllmaras::Stilda().
|
protected |
Definition at line 141 of file DASpalartAllmaras.C.
References DASpalartAllmaras::chi(), and DASpalartAllmaras::fv1().
Referenced by DASpalartAllmaras::Stilda().
|
protected |
Definition at line 148 of file DASpalartAllmaras.C.
References DASpalartAllmaras::chi(), DASpalartAllmaras::Cs_, DASpalartAllmaras::fv1(), DASpalartAllmaras::fv2(), DASpalartAllmaras::kappa_, DASpalartAllmaras::nuTilda_, DATurbulenceModel::U_, and DASpalartAllmaras::y_.
Referenced by DASpalartAllmaras::calcResiduals(), and DASpalartAllmaras::fw().
|
protected |
Definition at line 161 of file DASpalartAllmaras.C.
References DASpalartAllmaras::Cw2_, DASpalartAllmaras::Cw3_, DASpalartAllmaras::kappa_, DASpalartAllmaras::nuTilda_, DASpalartAllmaras::Stilda(), and DASpalartAllmaras::y_.
Referenced by DASpalartAllmaras::calcResiduals().
TypeName | ( | "SpalartAllmaras" | ) |
tmp< volScalarField > DnuTildaEff | ( | ) | const |
Return the effective diffusivity for nuTilda.
Definition at line 179 of file DASpalartAllmaras.C.
References DATurbulenceModel::nu(), DASpalartAllmaras::nuTilda_, and DASpalartAllmaras::sigmaNut_.
Referenced by DASpalartAllmaras::calcResiduals().
|
virtual |
update the turbulence state for DAStateInfo::regStates_
Implements DATurbulenceModel.
Definition at line 186 of file DASpalartAllmaras.C.
References forAll().
|
virtual |
update nut based on other turbulence variables and update the BCs
Implements DATurbulenceModel.
Definition at line 220 of file DASpalartAllmaras.C.
References DASpalartAllmaras::chi(), DATurbulenceModel::correctAlphat(), DASpalartAllmaras::fv1(), DATurbulenceModel::nut_, and DASpalartAllmaras::nuTilda_.
Referenced by DASpalartAllmaras::calcResiduals(), and DASpalartAllmaras::updateIntermediateVariables().
|
virtual |
update turbulence variable boundary values
Implements DATurbulenceModel.
Definition at line 240 of file DASpalartAllmaras.C.
References DASpalartAllmaras::nuTilda_.
|
virtual |
update any intermediate variables that are dependent on state variables and are used in calcResiduals
Implements DATurbulenceModel.
Definition at line 251 of file DASpalartAllmaras.C.
References DASpalartAllmaras::correctNut().
|
virtual |
update the original variable connectivity for the adjoint state residuals in stateCon
Implements DATurbulenceModel.
Definition at line 262 of file DASpalartAllmaras.C.
References forAll().
|
virtual |
add the model residual connectivity to stateCon
Implements DATurbulenceModel.
Definition at line 312 of file DASpalartAllmaras.C.
References DATurbulenceModel::mesh_.
|
virtual |
compute the turbulence residuals
Implements DATurbulenceModel.
Definition at line 410 of file DASpalartAllmaras.C.
References DATurbulenceModel::allOptions_, DAUtility::boundVar(), DASpalartAllmaras::Cb1_, DASpalartAllmaras::Cb2_, DASpalartAllmaras::chi(), DASpalartAllmaras::correctNut(), DASpalartAllmaras::Cw1_, DASpalartAllmaras::DnuTildaEff(), DASpalartAllmaras::fv1(), DASpalartAllmaras::fw(), DATurbulenceModel::isPrintTime(), DATurbulenceModel::mesh_, normalizeResiduals, DASpalartAllmaras::nuTilda_, DASpalartAllmaras::nuTildaRes_, DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DASpalartAllmaras::printInterval_, DASpalartAllmaras::sigmaNut_, solve(), DASpalartAllmaras::solveTurbState_, DASpalartAllmaras::Stilda(), and DASpalartAllmaras::y_.
Referenced by DASpalartAllmaras::correct().
|
virtual |
solve the residual equations and update the state
Implements DATurbulenceModel.
Definition at line 390 of file DASpalartAllmaras.C.
References DASpalartAllmaras::calcResiduals(), and DASpalartAllmaras::solveTurbState_.
|
protected |
Definition at line 55 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::calcResiduals(), and DASpalartAllmaras::DnuTildaEff().
|
protected |
Definition at line 56 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::fw(), and DASpalartAllmaras::Stilda().
|
protected |
Definition at line 57 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::calcResiduals().
|
protected |
Definition at line 58 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::calcResiduals().
|
protected |
Definition at line 59 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::calcResiduals().
|
protected |
Definition at line 60 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::fw().
|
protected |
Definition at line 61 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::fw().
|
protected |
Definition at line 62 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::fv1().
|
protected |
Definition at line 63 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::Stilda().
|
protected |
Definition at line 86 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::calcResiduals(), DASpalartAllmaras::chi(), DASpalartAllmaras::correctBoundaryConditions(), DASpalartAllmaras::correctNut(), DASpalartAllmaras::DnuTildaEff(), DASpalartAllmaras::fw(), and DASpalartAllmaras::Stilda().
|
protected |
Definition at line 87 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::calcResiduals().
|
protected |
3D wall distance
Definition at line 91 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::calcResiduals(), DASpalartAllmaras::fw(), and DASpalartAllmaras::Stilda().
|
protected |
whether to solve for turb states
Definition at line 94 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::calcResiduals(), and DASpalartAllmaras::correct().
|
protected |
time step interval to print residual
Definition at line 97 of file DASpalartAllmaras.H.
Referenced by DASpalartAllmaras::calcResiduals(), and DASpalartAllmaras::DASpalartAllmaras().