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

Protected Member Functions

kOmega functions
tmp< volScalarField > DkEff () const
 
tmp< volScalarField > DomegaEff () const
 

Protected Attributes

kOmega parameters
dimensionedScalar Cmu_
 
dimensionedScalar beta_
 
dimensionedScalar gamma_
 
dimensionedScalar alphaK_
 
dimensionedScalar alphaOmega_
 
- 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 adjoint residuals

volScalarField & omega_
 
volScalarField omegaRes_
 
volScalarField & k_
 
volScalarField kRes_
 
scalarList omegaNearWall_
 
label solveTurbState_ = 0
 whether to solve for turb states More...
 
label printInterval_
 time step interval to print residual More...
 
volScalarField & betaFieldInversion_
 A beta field multiplying to the production term. 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 surfacePressure More...
 
volVectorField UData_
 reference field (e.g. velocity for DNS) More...
 
volScalarField USingleComponentData_
 the reference pressure field data More...
 
 TypeName ("kOmegaFieldInversionOmega")
 
 DAkOmegaFieldInversionOmega (const word modelType, const fvMesh &mesh, const DAOption &daOption)
 
virtual ~DAkOmegaFieldInversionOmega ()
 
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...
 
void saveOmegaNearWall ()
 save near wall omega values to omegaNearWall_ More...
 
void setOmegaNearWall ()
 set omegaNearWall_ to near wall omega values More...
 
void correctOmegaBoundaryConditions ()
 specially treatment to correct epsilon BC 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< DATurbulenceModelNew (const word modelType, const fvMesh &mesh, const DAOption &daOption)
 

Detailed Description

Definition at line 48 of file DAkOmegaFieldInversionOmega.H.

Constructor & Destructor Documentation

◆ DAkOmegaFieldInversionOmega()

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

field inversion parameters

Definition at line 41 of file DAkOmegaFieldInversionOmega.C.

References daOption(), forAll(), mesh, DAkOmegaFieldInversionOmega::omega_, DAkOmegaFieldInversionOmega::omegaNearWall_, and DAkOmegaFieldInversionOmega::printInterval_.

Here is the call graph for this function:

◆ ~DAkOmegaFieldInversionOmega()

virtual ~DAkOmegaFieldInversionOmega ( )
inlinevirtual

Definition at line 140 of file DAkOmegaFieldInversionOmega.H.

Member Function Documentation

◆ DkEff()

tmp<volScalarField> DkEff ( ) const
inlineprotected

Definition at line 65 of file DAkOmegaFieldInversionOmega.H.

References DAkOmegaFieldInversionOmega::alphaK_, DATurbulenceModel::nu(), and DATurbulenceModel::nut_.

Referenced by DAkOmegaFieldInversionOmega::calcResiduals().

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

◆ DomegaEff()

tmp<volScalarField> DomegaEff ( ) const
inlineprotected

Definition at line 78 of file DAkOmegaFieldInversionOmega.H.

References DAkOmegaFieldInversionOmega::alphaOmega_, DATurbulenceModel::nu(), and DATurbulenceModel::nut_.

Referenced by DAkOmegaFieldInversionOmega::calcResiduals().

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

◆ TypeName()

TypeName ( "kOmegaFieldInversionOmega"  )

◆ correctModelStates()

void correctModelStates ( wordList &  modelStates) const
virtual

update the turbulence state for DAStateInfo::regStates_

Implements DATurbulenceModel.

Definition at line 162 of file DAkOmegaFieldInversionOmega.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 198 of file DAkOmegaFieldInversionOmega.C.

References DATurbulenceModel::correctAlphat(), DAkOmegaFieldInversionOmega::k_, DATurbulenceModel::nut_, and DAkOmegaFieldInversionOmega::omega_.

Referenced by DAkOmegaFieldInversionOmega::calcResiduals(), and DAkOmegaFieldInversionOmega::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 216 of file DAkOmegaFieldInversionOmega.C.

References DAkOmegaFieldInversionOmega::k_.

◆ updateIntermediateVariables()

void updateIntermediateVariables ( )
virtual

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

Implements DATurbulenceModel.

Definition at line 305 of file DAkOmegaFieldInversionOmega.C.

References DAkOmegaFieldInversionOmega::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 316 of file DAkOmegaFieldInversionOmega.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 415 of file DAkOmegaFieldInversionOmega.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 507 of file DAkOmegaFieldInversionOmega.C.

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

Here is the call graph for this function:

◆ saveOmegaNearWall()

void saveOmegaNearWall ( )

save near wall omega values to omegaNearWall_

Definition at line 255 of file DAkOmegaFieldInversionOmega.C.

References forAll(), DATurbulenceModel::mesh_, DAkOmegaFieldInversionOmega::omega_, and DAkOmegaFieldInversionOmega::omegaNearWall_.

Referenced by DAkOmegaFieldInversionOmega::correctOmegaBoundaryConditions().

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

◆ setOmegaNearWall()

void setOmegaNearWall ( )

set omegaNearWall_ to near wall omega values

Definition at line 279 of file DAkOmegaFieldInversionOmega.C.

References forAll(), DATurbulenceModel::mesh_, DAkOmegaFieldInversionOmega::omega_, and DAkOmegaFieldInversionOmega::omegaNearWall_.

Referenced by DAkOmegaFieldInversionOmega::calcResiduals(), and DAkOmegaFieldInversionOmega::correctOmegaBoundaryConditions().

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

◆ correctOmegaBoundaryConditions()

void correctOmegaBoundaryConditions ( )

specially treatment to correct epsilon BC

Definition at line 228 of file DAkOmegaFieldInversionOmega.C.

References DAkOmegaFieldInversionOmega::omega_, DAkOmegaFieldInversionOmega::saveOmegaNearWall(), and DAkOmegaFieldInversionOmega::setOmegaNearWall().

Referenced by DAkOmegaFieldInversionOmega::calcResiduals().

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

Member Data Documentation

◆ Cmu_

dimensionedScalar Cmu_
protected

◆ beta_

dimensionedScalar beta_
protected

◆ gamma_

dimensionedScalar gamma_
protected

◆ alphaK_

dimensionedScalar alphaK_
protected

Definition at line 58 of file DAkOmegaFieldInversionOmega.H.

Referenced by DAkOmegaFieldInversionOmega::DkEff().

◆ alphaOmega_

dimensionedScalar alphaOmega_
protected

◆ omega_

volScalarField& omega_
protected

◆ omegaRes_

volScalarField omegaRes_
protected

◆ k_

volScalarField& k_
protected

◆ kRes_

volScalarField kRes_
protected

◆ omegaNearWall_

scalarList omegaNearWall_
protected

cell-center omega values near the wall, this is to fix the issue that the omegaWallFunction will try to modify omega values for the cells near walls this will cause issue for FD-based partial derivatives, so here we basically implement a zeroGradient BC for near wall omega.

Definition at line 103 of file DAkOmegaFieldInversionOmega.H.

Referenced by DAkOmegaFieldInversionOmega::DAkOmegaFieldInversionOmega(), DAkOmegaFieldInversionOmega::saveOmegaNearWall(), and DAkOmegaFieldInversionOmega::setOmegaNearWall().

◆ solveTurbState_

label solveTurbState_ = 0
protected

whether to solve for turb states

Definition at line 106 of file DAkOmegaFieldInversionOmega.H.

Referenced by DAkOmegaFieldInversionOmega::calcResiduals(), and DAkOmegaFieldInversionOmega::correct().

◆ printInterval_

label printInterval_
protected

time step interval to print residual

Definition at line 109 of file DAkOmegaFieldInversionOmega.H.

Referenced by DAkOmegaFieldInversionOmega::calcResiduals(), and DAkOmegaFieldInversionOmega::DAkOmegaFieldInversionOmega().

◆ betaFieldInversion_

volScalarField& betaFieldInversion_
protected

A beta field multiplying to the production term.

Definition at line 112 of file DAkOmegaFieldInversionOmega.H.

Referenced by DAkOmegaFieldInversionOmega::calcResiduals().

◆ surfaceFriction_

volScalarField surfaceFriction_
protected

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

Definition at line 115 of file DAkOmegaFieldInversionOmega.H.

◆ surfaceFrictionData_

volScalarField surfaceFrictionData_
protected

the reference field for surfaceFriction

Definition at line 118 of file DAkOmegaFieldInversionOmega.H.

◆ pData_

volScalarField pData_
protected

the reference field for surfacePressure

Definition at line 121 of file DAkOmegaFieldInversionOmega.H.

◆ UData_

volVectorField UData_
protected

reference field (e.g. velocity for DNS)

Definition at line 124 of file DAkOmegaFieldInversionOmega.H.

◆ USingleComponentData_

volScalarField USingleComponentData_
protected

the reference pressure field data

Definition at line 127 of file DAkOmegaFieldInversionOmega.H.


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