Go to the documentation of this file.
35 #ifndef DASpalartAllmarasFv3FieldInversion_H
36 #define DASpalartAllmarasFv3FieldInversion_H
39 #include "addToRunTimeSelectionTable.H"
70 tmp<volScalarField>
chi()
const;
72 tmp<volScalarField>
fv1(
const volScalarField&
chi)
const;
74 tmp<volScalarField>
fv2(
75 const volScalarField&
chi,
76 const volScalarField&
fv1)
const;
78 tmp<volScalarField>
fv3(
79 const volScalarField&
chi,
80 const volScalarField&
fv1)
const;
82 tmp<volScalarField>
fw(
const volScalarField& Stilda)
const;
112 const volScalarField&
y_;
121 TypeName(
"SpalartAllmarasFv3FieldInversion");
126 const word modelType,
virtual ~DASpalartAllmarasFv3FieldInversion()
tmp< volScalarField > fv3(const volScalarField &chi, const volScalarField &fv1) const
tmp< volScalarField > DnuTildaEff() const
Return the effective diffusivity for nuTilda.
volScalarField nuTildaResPartDeriv_
virtual void calcResiduals(const dictionary &options)
compute the turbulence residuals
volScalarField USingleComponentData_
reference field for profile data
DAOption daOption(mesh, pyOptions_)
tmp< volScalarField > fv1(const volScalarField &chi) const
virtual void correctNut()
update nut based on other turbulence variables and update the BCs
volVectorField UData_
reference velocity field
virtual void correctBoundaryConditions()
update turbulence variable boundary values
virtual void correctModelStates(wordList &modelStates) const
update the turbulence state for DAStateInfo::regStates_
label printInterval_
time step interval to print residual
tmp< volScalarField > fw(const volScalarField &Stilda) const
virtual void getTurbProdTerm(scalarList &prodTerm) const
return the value of the production term from the turbulence model
volScalarField & betaFieldInversion_
A beta field multiplying to the production term.
tmp< volScalarField > chi() const
volScalarField & nuTilda_
virtual void updateIntermediateVariables()
update any intermediate variables that are dependent on state variables and are used in calcResiduals
DASpalartAllmarasFv3FieldInversion(const word modelType, const fvMesh &mesh, const DAOption &daOption)
virtual void correct()
solve the residual equations and update the state
label solveTurbState_
whether to solve for turb states
volScalarField surfaceFriction_
a surface friction 'field' when using skin friction data for field inversion
virtual void addModelResidualCon(HashTable< List< List< word >>> &allCon) const
add the model residual connectivity to stateCon
dimensionedScalar sigmaNut_
volScalarField nuTildaRes_
const volScalarField & y_
3D wall distance
tmp< volScalarField > fv2(const volScalarField &chi, const volScalarField &fv1) const
TypeName("SpalartAllmarasFv3FieldInversion")
volScalarField surfaceFrictionData_
the reference field for surfaceFriction
virtual void correctStateResidualModelCon(List< List< word >> &stateCon) const
update the original variable connectivity for the adjoint state residuals in stateCon
volScalarField pData_
the reference field for pressure