Go to the documentation of this file.
33 #ifndef DASpalartAllmaras_H
34 #define DASpalartAllmaras_H
37 #include "addToRunTimeSelectionTable.H"
63 dimensionedScalar
Cs_;
68 tmp<volScalarField>
chi()
const;
70 tmp<volScalarField>
fv1(
const volScalarField&
chi)
const;
72 tmp<volScalarField>
fv2(
73 const volScalarField&
chi,
74 const volScalarField&
fv1)
const;
76 tmp<volScalarField>
Stilda(
77 const volScalarField&
chi,
78 const volScalarField&
fv1)
const;
80 tmp<volScalarField>
fw(
const volScalarField&
Stilda)
const;
91 const volScalarField&
y_;
109 const word modelType,
145 virtual void correct(label printToScreen);
163 const scalarList& rhs,
virtual void correct(label printToScreen)
solve the residual equations and update the state
dimensionedScalar sigmaNut_
DASpalartAllmaras(const word modelType, const fvMesh &mesh, const DAOption &daOption)
label solveTurbState_
whether to solve for turb states
virtual void correctStateResidualModelCon(List< List< word >> &stateCon) const
update the original variable connectivity for the adjoint state residuals in stateCon
virtual void getTurbProdOverDestruct(volScalarField &PoD) const
return the value of the destruction term from the turbulence model
volScalarField betaFINuTilda_
beta field for field inversion
TypeName("SpalartAllmaras")
autoPtr< fvScalarMatrix > psiNuTildaPC_
tmp< volScalarField > chi() const
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
virtual void calcResiduals(const dictionary &options)
compute the turbulence residuals
tmp< volScalarField > Stilda(const volScalarField &chi, const volScalarField &fv1) const
volScalarField dPsiNuTilda_
volScalarField nuTildaRes_
virtual void addModelResidualCon(HashTable< List< List< word >>> &allCon) const
add the model residual connectivity to stateCon
volScalarField & nuTilda_
virtual void correctBoundaryConditions()
update turbulence variable boundary values
virtual void correctNut()
update nut based on other turbulence variables and update the BCs
tmp< volScalarField > fv1(const volScalarField &chi) const
virtual ~DASpalartAllmaras()
tmp< volScalarField > DnuTildaEff() const
Return the effective diffusivity for nuTilda.
virtual void correctModelStates(wordList &modelStates) const
update the turbulence state for DAStateInfo::regStates_
virtual void solveAdjointFP(const word varName, const scalarList &rhs, scalarList &dPsi)
solve the fvMatrixT field with given rhs and solution
virtual void updateIntermediateVariables()
update any intermediate variables that are dependent on state variables and are used in calcResiduals
tmp< volScalarField > fv2(const volScalarField &chi, const volScalarField &fv1) const
tmp< volScalarField > fw(const volScalarField &Stilda) const
virtual void getTurbConvOverProd(volScalarField &CoP) const
return the value of the convective over production term from the turbulence model
const volScalarField & y_
3D wall distance