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 > | fv3 (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 | Cv2_ |
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_ |
volScalarField | pseudoNuTilda_ |
pseudoNuTilda_ and pseudoNuTildaEqn_ for solving adjoint equation More... | |
fvScalarMatrix | pseudoNuTildaEqn_ |
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... | |
scalar | relaxNuTildaEqn_ = 1.0 |
dictionary | solverDictNuTilda_ |
TypeName ("SpalartAllmarasFv3") | |
DASpalartAllmarasFv3 (const word modelType, const fvMesh &mesh, const DAOption &daOption) | |
virtual | ~DASpalartAllmarasFv3 () |
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... | |
virtual void | invTranProdNuTildaEqn (const volScalarField &mySource, volScalarField &pseudoNuTilda) |
Inverse transpose product, A_nuTilda^(-T) More... | |
virtual void | constructPseudoNuTildaEqn () |
construct pseudoNuTildaEqn_, which is nuTildaEqn with swapped upper and lower arrays More... | |
virtual void | rhsSolvePseudoNuTildaEqn (const volScalarField &nuTildaSource) |
solve pseudoNuTildaEqn_ with overwritten rhs More... | |
virtual void | calcLduResidualTurb (volScalarField &nuTildaRes) |
calculate the turbulence residual using LDU matrix 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 |
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 DASpalartAllmarasFv3.H.
DASpalartAllmarasFv3 | ( | const word | modelType, |
const fvMesh & | mesh, | ||
const DAOption & | daOption | ||
) |
Definition at line 41 of file DASpalartAllmarasFv3.C.
References daOption(), mesh, DASpalartAllmarasFv3::printInterval_, DASpalartAllmarasFv3::relaxNuTildaEqn_, and DASpalartAllmarasFv3::solverDictNuTilda_.
|
inlinevirtual |
Definition at line 118 of file DASpalartAllmarasFv3.H.
|
protected |
Definition at line 152 of file DASpalartAllmarasFv3.C.
References DATurbulenceModel::nu(), and DASpalartAllmarasFv3::nuTilda_.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), DASpalartAllmarasFv3::constructPseudoNuTildaEqn(), DASpalartAllmarasFv3::correctNut(), DASpalartAllmarasFv3::fv1(), DASpalartAllmarasFv3::fv2(), and DASpalartAllmarasFv3::fv3().
|
protected |
Definition at line 157 of file DASpalartAllmarasFv3.C.
References DASpalartAllmarasFv3::chi(), and DASpalartAllmarasFv3::Cv1_.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), DASpalartAllmarasFv3::constructPseudoNuTildaEqn(), DASpalartAllmarasFv3::correctNut(), and DASpalartAllmarasFv3::fv3().
|
protected |
Definition at line 164 of file DASpalartAllmarasFv3.C.
References DASpalartAllmarasFv3::chi(), and DASpalartAllmarasFv3::Cv2_.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), and DASpalartAllmarasFv3::constructPseudoNuTildaEqn().
|
protected |
Definition at line 171 of file DASpalartAllmarasFv3.C.
References DASpalartAllmarasFv3::chi(), DASpalartAllmarasFv3::Cv2_, and DASpalartAllmarasFv3::fv1().
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), and DASpalartAllmarasFv3::constructPseudoNuTildaEqn().
|
protected |
Definition at line 184 of file DASpalartAllmarasFv3.C.
References DASpalartAllmarasFv3::Cw2_, DASpalartAllmarasFv3::Cw3_, DASpalartAllmarasFv3::kappa_, DASpalartAllmarasFv3::nuTilda_, and DASpalartAllmarasFv3::y_.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), and DASpalartAllmarasFv3::constructPseudoNuTildaEqn().
TypeName | ( | "SpalartAllmarasFv3" | ) |
tmp< volScalarField > DnuTildaEff | ( | ) | const |
Return the effective diffusivity for nuTilda.
Definition at line 202 of file DASpalartAllmarasFv3.C.
References DATurbulenceModel::nu(), DASpalartAllmarasFv3::nuTilda_, and DASpalartAllmarasFv3::sigmaNut_.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), and DASpalartAllmarasFv3::constructPseudoNuTildaEqn().
|
virtual |
update the turbulence state for DAStateInfo::regStates_
Implements DATurbulenceModel.
Definition at line 209 of file DASpalartAllmarasFv3.C.
References forAll().
|
virtual |
update nut based on other turbulence variables and update the BCs
Implements DATurbulenceModel.
Definition at line 243 of file DASpalartAllmarasFv3.C.
References DASpalartAllmarasFv3::chi(), DATurbulenceModel::correctAlphat(), DASpalartAllmarasFv3::fv1(), DATurbulenceModel::nut_, and DASpalartAllmarasFv3::nuTilda_.
Referenced by DASpalartAllmarasFv3::calcResiduals(), and DASpalartAllmarasFv3::updateIntermediateVariables().
|
virtual |
update turbulence variable boundary values
Implements DATurbulenceModel.
Definition at line 263 of file DASpalartAllmarasFv3.C.
References DASpalartAllmarasFv3::nuTilda_.
|
virtual |
update any intermediate variables that are dependent on state variables and are used in calcResiduals
Implements DATurbulenceModel.
Definition at line 274 of file DASpalartAllmarasFv3.C.
References DASpalartAllmarasFv3::correctNut().
|
virtual |
update the original variable connectivity for the adjoint state residuals in stateCon
Implements DATurbulenceModel.
Definition at line 285 of file DASpalartAllmarasFv3.C.
References forAll().
|
virtual |
add the model residual connectivity to stateCon
Implements DATurbulenceModel.
Definition at line 335 of file DASpalartAllmarasFv3.C.
References DATurbulenceModel::mesh_.
|
virtual |
compute the turbulence residuals
Implements DATurbulenceModel.
Definition at line 433 of file DASpalartAllmarasFv3.C.
References DATurbulenceModel::allOptions_, DAUtility::boundVar(), DASpalartAllmarasFv3::Cb1_, DASpalartAllmarasFv3::Cb2_, DASpalartAllmarasFv3::chi(), DASpalartAllmarasFv3::correctNut(), DASpalartAllmarasFv3::Cw1_, DASpalartAllmarasFv3::DnuTildaEff(), DASpalartAllmarasFv3::fv1(), DASpalartAllmarasFv3::fv2(), DASpalartAllmarasFv3::fv3(), DASpalartAllmarasFv3::fw(), DATurbulenceModel::isPrintTime(), DASpalartAllmarasFv3::kappa_, DATurbulenceModel::mesh_, normalizeResiduals, DASpalartAllmarasFv3::nuTilda_, DASpalartAllmarasFv3::nuTildaRes_, DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DASpalartAllmarasFv3::printInterval_, DASpalartAllmarasFv3::sigmaNut_, solve(), DASpalartAllmarasFv3::solveTurbState_, DATurbulenceModel::U_, and DASpalartAllmarasFv3::y_.
Referenced by DASpalartAllmarasFv3::correct().
|
virtual |
solve the residual equations and update the state
Implements DATurbulenceModel.
Definition at line 413 of file DASpalartAllmarasFv3.C.
References DASpalartAllmarasFv3::calcResiduals(), and DASpalartAllmarasFv3::solveTurbState_.
|
virtual |
Inverse transpose product, A_nuTilda^(-T)
Reimplemented from DATurbulenceModel.
Definition at line 520 of file DASpalartAllmarasFv3.C.
|
virtual |
construct pseudoNuTildaEqn_, which is nuTildaEqn with swapped upper and lower arrays
Reimplemented from DATurbulenceModel.
Definition at line 595 of file DASpalartAllmarasFv3.C.
References DASpalartAllmarasFv3::chi(), DASpalartAllmarasFv3::Cw1_, DASpalartAllmarasFv3::DnuTildaEff(), DASpalartAllmarasFv3::fv1(), DASpalartAllmarasFv3::fv2(), DASpalartAllmarasFv3::fv3(), DASpalartAllmarasFv3::fw(), DASpalartAllmarasFv3::kappa_, DASpalartAllmarasFv3::nuTilda_, DATurbulenceModel::phi_, DASpalartAllmarasFv3::pseudoNuTilda_, DASpalartAllmarasFv3::pseudoNuTildaEqn_, DASpalartAllmarasFv3::relaxNuTildaEqn_, DATurbulenceModel::U_, and DASpalartAllmarasFv3::y_.
|
virtual |
solve pseudoNuTildaEqn_ with overwritten rhs
Reimplemented from DATurbulenceModel.
Definition at line 633 of file DASpalartAllmarasFv3.C.
References forAll(), DASpalartAllmarasFv3::pseudoNuTilda_, DASpalartAllmarasFv3::pseudoNuTildaEqn_, and DASpalartAllmarasFv3::solverDictNuTilda_.
|
virtual |
calculate the turbulence residual using LDU matrix
Reimplemented from DATurbulenceModel.
Definition at line 665 of file DASpalartAllmarasFv3.C.
References DASpalartAllmarasFv3::Cb1_, DASpalartAllmarasFv3::Cb2_, DASpalartAllmarasFv3::chi(), DASpalartAllmarasFv3::Cw1_, DASpalartAllmarasFv3::DnuTildaEff(), forAll(), DASpalartAllmarasFv3::fv1(), DASpalartAllmarasFv3::fv2(), DASpalartAllmarasFv3::fv3(), DASpalartAllmarasFv3::fw(), DASpalartAllmarasFv3::kappa_, DASpalartAllmarasFv3::nuTilda_, DATurbulenceModel::phi_, DASpalartAllmarasFv3::sigmaNut_, DATurbulenceModel::U_, and DASpalartAllmarasFv3::y_.
|
protected |
Definition at line 55 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), and DASpalartAllmarasFv3::DnuTildaEff().
|
protected |
Definition at line 56 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), DASpalartAllmarasFv3::constructPseudoNuTildaEqn(), and DASpalartAllmarasFv3::fw().
|
protected |
Definition at line 57 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), and DASpalartAllmarasFv3::calcResiduals().
|
protected |
Definition at line 58 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), and DASpalartAllmarasFv3::calcResiduals().
|
protected |
Definition at line 59 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), and DASpalartAllmarasFv3::constructPseudoNuTildaEqn().
|
protected |
Definition at line 60 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::fw().
|
protected |
Definition at line 61 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::fw().
|
protected |
Definition at line 62 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::fv1().
|
protected |
Definition at line 63 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::fv2(), and DASpalartAllmarasFv3::fv3().
|
protected |
Definition at line 86 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), DASpalartAllmarasFv3::chi(), DASpalartAllmarasFv3::constructPseudoNuTildaEqn(), DASpalartAllmarasFv3::correctBoundaryConditions(), DASpalartAllmarasFv3::correctNut(), DASpalartAllmarasFv3::DnuTildaEff(), and DASpalartAllmarasFv3::fw().
|
protected |
Definition at line 87 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::calcResiduals().
|
protected |
pseudoNuTilda_ and pseudoNuTildaEqn_ for solving adjoint equation
Definition at line 91 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::constructPseudoNuTildaEqn(), and DASpalartAllmarasFv3::rhsSolvePseudoNuTildaEqn().
|
protected |
Definition at line 92 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::constructPseudoNuTildaEqn(), and DASpalartAllmarasFv3::rhsSolvePseudoNuTildaEqn().
|
protected |
3D wall distance
Definition at line 95 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::calcLduResidualTurb(), DASpalartAllmarasFv3::calcResiduals(), DASpalartAllmarasFv3::constructPseudoNuTildaEqn(), and DASpalartAllmarasFv3::fw().
|
protected |
whether to solve for turb states
Definition at line 98 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::calcResiduals(), and DASpalartAllmarasFv3::correct().
|
protected |
time step interval to print residual
Definition at line 101 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::calcResiduals(), and DASpalartAllmarasFv3::DASpalartAllmarasFv3().
|
protected |
Definition at line 104 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::constructPseudoNuTildaEqn(), and DASpalartAllmarasFv3::DASpalartAllmarasFv3().
|
protected |
Definition at line 105 of file DASpalartAllmarasFv3.H.
Referenced by DASpalartAllmarasFv3::DASpalartAllmarasFv3(), and DASpalartAllmarasFv3::rhsSolvePseudoNuTildaEqn().