List of all members
DASpalartAllmarasFv3FieldInversion Class Reference
Inheritance diagram for DASpalartAllmarasFv3FieldInversion:
Inheritance graph
[legend]
Collaboration diagram for DASpalartAllmarasFv3FieldInversion:
Collaboration graph
[legend]

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 DAOptiondaOption_
 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 nuTildaResPartDeriv_
 
volScalarField & betaFieldInversion_
 A beta field multiplying to the production term. More...
 
volVectorField UData_
 reference velocity field More...
 
volScalarField surfaceFriction_
 a surface friction 'field' when using skin friction data for field inversion More...
 
volScalarField surfaceFrictionData_
 the reference field for surfaceFriction More...
 
volScalarField pData_
 the reference field for pressure More...
 
volScalarField USingleComponentData_
 reference field for profile data More...
 
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 ("SpalartAllmarasFv3FieldInversion")
 
 DASpalartAllmarasFv3FieldInversion (const word modelType, const fvMesh &mesh, const DAOption &daOption)
 
virtual ~DASpalartAllmarasFv3FieldInversion ()
 
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 getTurbProdTerm (scalarList &prodTerm) const
 return the value of the production term from the turbulence model 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...
 
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< DATurbulenceModelNew (const word modelType, const fvMesh &mesh, const DAOption &daOption)
 

Detailed Description

Definition at line 50 of file DASpalartAllmarasFv3FieldInversion.H.

Constructor & Destructor Documentation

◆ DASpalartAllmarasFv3FieldInversion()

DASpalartAllmarasFv3FieldInversion ( const word  modelType,
const fvMesh &  mesh,
const DAOption daOption 
)

Definition at line 41 of file DASpalartAllmarasFv3FieldInversion.C.

References daOption(), mesh, and DASpalartAllmarasFv3FieldInversion::printInterval_.

Here is the call graph for this function:

◆ ~DASpalartAllmarasFv3FieldInversion()

virtual ~DASpalartAllmarasFv3FieldInversion ( )
inlinevirtual

Definition at line 131 of file DASpalartAllmarasFv3FieldInversion.H.

Member Function Documentation

◆ chi()

tmp< volScalarField > chi ( ) const
protected

◆ fv1()

tmp< volScalarField > fv1 ( const volScalarField &  chi) const
protected

◆ fv2()

tmp< volScalarField > fv2 ( const volScalarField &  chi,
const volScalarField &  fv1 
) const
protected

Definition at line 160 of file DASpalartAllmarasFv3FieldInversion.C.

References DASpalartAllmarasFv3FieldInversion::chi(), and DASpalartAllmarasFv3FieldInversion::Cv2_.

Referenced by DASpalartAllmarasFv3FieldInversion::calcResiduals(), and DASpalartAllmarasFv3FieldInversion::getTurbProdTerm().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fv3()

tmp< volScalarField > fv3 ( const volScalarField &  chi,
const volScalarField &  fv1 
) const
protected

◆ fw()

tmp< volScalarField > fw ( const volScalarField &  Stilda) const
protected

◆ TypeName()

TypeName ( "SpalartAllmarasFv3FieldInversion"  )

◆ DnuTildaEff()

tmp< volScalarField > DnuTildaEff ( ) const

Return the effective diffusivity for nuTilda.

Definition at line 198 of file DASpalartAllmarasFv3FieldInversion.C.

References DATurbulenceModel::nu(), DASpalartAllmarasFv3FieldInversion::nuTilda_, and DASpalartAllmarasFv3FieldInversion::sigmaNut_.

Referenced by DASpalartAllmarasFv3FieldInversion::calcResiduals().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ correctModelStates()

void correctModelStates ( wordList &  modelStates) const
virtual

update the turbulence state for DAStateInfo::regStates_

Implements DATurbulenceModel.

Definition at line 205 of file DASpalartAllmarasFv3FieldInversion.C.

References forAll().

Here is the call graph for this function:

◆ correctNut()

void correctNut ( )
virtual

update nut based on other turbulence variables and update the BCs

Implements DATurbulenceModel.

Definition at line 239 of file DASpalartAllmarasFv3FieldInversion.C.

References DASpalartAllmarasFv3FieldInversion::chi(), DATurbulenceModel::correctAlphat(), DASpalartAllmarasFv3FieldInversion::fv1(), DATurbulenceModel::nut_, and DASpalartAllmarasFv3FieldInversion::nuTilda_.

Referenced by DASpalartAllmarasFv3FieldInversion::calcResiduals(), and DASpalartAllmarasFv3FieldInversion::updateIntermediateVariables().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ correctBoundaryConditions()

void correctBoundaryConditions ( )
virtual

update turbulence variable boundary values

Implements DATurbulenceModel.

Definition at line 259 of file DASpalartAllmarasFv3FieldInversion.C.

References DASpalartAllmarasFv3FieldInversion::nuTilda_.

◆ updateIntermediateVariables()

void updateIntermediateVariables ( )
virtual

update any intermediate variables that are dependent on state variables and are used in calcResiduals

Implements DATurbulenceModel.

Definition at line 270 of file DASpalartAllmarasFv3FieldInversion.C.

References DASpalartAllmarasFv3FieldInversion::correctNut().

Here is the call graph for this function:

◆ correctStateResidualModelCon()

void correctStateResidualModelCon ( List< List< word >> &  stateCon) const
virtual

update the original variable connectivity for the adjoint state residuals in stateCon

Implements DATurbulenceModel.

Definition at line 281 of file DASpalartAllmarasFv3FieldInversion.C.

References forAll().

Here is the call graph for this function:

◆ addModelResidualCon()

void addModelResidualCon ( HashTable< List< List< word >>> &  allCon) const
virtual

add the model residual connectivity to stateCon

Implements DATurbulenceModel.

Definition at line 331 of file DASpalartAllmarasFv3FieldInversion.C.

References DATurbulenceModel::mesh_.

◆ calcResiduals()

void calcResiduals ( const dictionary &  options)
virtual

◆ correct()

void correct ( )
virtual

solve the residual equations and update the state

Implements DATurbulenceModel.

Definition at line 409 of file DASpalartAllmarasFv3FieldInversion.C.

References DASpalartAllmarasFv3FieldInversion::calcResiduals(), and DASpalartAllmarasFv3FieldInversion::solveTurbState_.

Here is the call graph for this function:

◆ getTurbProdTerm()

void getTurbProdTerm ( scalarList &  prodTerm) const
virtual

Member Data Documentation

◆ sigmaNut_

dimensionedScalar sigmaNut_
protected

◆ kappa_

dimensionedScalar kappa_
protected

◆ Cb1_

dimensionedScalar Cb1_
protected

◆ Cb2_

dimensionedScalar Cb2_
protected

◆ Cw1_

dimensionedScalar Cw1_
protected

◆ Cw2_

dimensionedScalar Cw2_
protected

◆ Cw3_

dimensionedScalar Cw3_
protected

◆ Cv1_

dimensionedScalar Cv1_
protected

◆ Cv2_

dimensionedScalar Cv2_
protected

◆ nuTilda_

volScalarField& nuTilda_
protected

◆ nuTildaRes_

volScalarField nuTildaRes_
protected

◆ nuTildaResPartDeriv_

volScalarField nuTildaResPartDeriv_
protected

Definition at line 90 of file DASpalartAllmarasFv3FieldInversion.H.

◆ betaFieldInversion_

volScalarField& betaFieldInversion_
protected

A beta field multiplying to the production term.

Definition at line 94 of file DASpalartAllmarasFv3FieldInversion.H.

Referenced by DASpalartAllmarasFv3FieldInversion::calcResiduals().

◆ UData_

volVectorField UData_
protected

reference velocity field

Definition at line 97 of file DASpalartAllmarasFv3FieldInversion.H.

◆ surfaceFriction_

volScalarField surfaceFriction_
protected

a surface friction 'field' when using skin friction data for field inversion

Definition at line 100 of file DASpalartAllmarasFv3FieldInversion.H.

◆ surfaceFrictionData_

volScalarField surfaceFrictionData_
protected

the reference field for surfaceFriction

Definition at line 103 of file DASpalartAllmarasFv3FieldInversion.H.

◆ pData_

volScalarField pData_
protected

the reference field for pressure

Definition at line 106 of file DASpalartAllmarasFv3FieldInversion.H.

◆ USingleComponentData_

volScalarField USingleComponentData_
protected

reference field for profile data

Definition at line 109 of file DASpalartAllmarasFv3FieldInversion.H.

◆ y_

const volScalarField& y_
protected

◆ solveTurbState_

label solveTurbState_ = 0
protected

◆ printInterval_

label printInterval_
protected

The documentation for this class was generated from the following files: