List of all members
DAkOmega Class Reference
Inheritance diagram for DAkOmega:
Inheritance graph
[legend]
Collaboration diagram for DAkOmega:
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...
 
 TypeName ("kOmega")
 
 DAkOmega (const word modelType, const fvMesh &mesh, const DAOption &daOption)
 
virtual ~DAkOmega ()
 
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 DAkOmega.H.

Constructor & Destructor Documentation

◆ DAkOmega()

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

Definition at line 41 of file DAkOmega.C.

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

Here is the call graph for this function:

◆ ~DAkOmega()

virtual ~DAkOmega ( )
inlinevirtual

Definition at line 122 of file DAkOmega.H.

Member Function Documentation

◆ DkEff()

tmp<volScalarField> DkEff ( ) const
inlineprotected

Definition at line 65 of file DAkOmega.H.

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

Referenced by DAkOmega::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 DAkOmega.H.

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

Referenced by DAkOmega::calcResiduals().

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

◆ TypeName()

TypeName ( "kOmega"  )

◆ correctModelStates()

void correctModelStates ( wordList &  modelStates) const
virtual

update the turbulence state for DAStateInfo::regStates_

Implements DATurbulenceModel.

Definition at line 148 of file DAkOmega.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 184 of file DAkOmega.C.

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

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

References DAkOmega::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 291 of file DAkOmega.C.

References DAkOmega::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 302 of file DAkOmega.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 401 of file DAkOmega.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 493 of file DAkOmega.C.

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

Here is the call graph for this function:

◆ saveOmegaNearWall()

void saveOmegaNearWall ( )

save near wall omega values to omegaNearWall_

Definition at line 241 of file DAkOmega.C.

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

Referenced by DAkOmega::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 265 of file DAkOmega.C.

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

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

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

Referenced by DAkOmega::calcResiduals().

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

Member Data Documentation

◆ Cmu_

dimensionedScalar Cmu_
protected

Definition at line 55 of file DAkOmega.H.

Referenced by DAkOmega::calcResiduals().

◆ beta_

dimensionedScalar beta_
protected

Definition at line 56 of file DAkOmega.H.

Referenced by DAkOmega::calcResiduals().

◆ gamma_

dimensionedScalar gamma_
protected

Definition at line 57 of file DAkOmega.H.

Referenced by DAkOmega::calcResiduals().

◆ alphaK_

dimensionedScalar alphaK_
protected

Definition at line 58 of file DAkOmega.H.

Referenced by DAkOmega::DkEff().

◆ alphaOmega_

dimensionedScalar alphaOmega_
protected

Definition at line 59 of file DAkOmega.H.

Referenced by DAkOmega::DomegaEff().

◆ omega_

volScalarField& omega_
protected

◆ omegaRes_

volScalarField omegaRes_
protected

Definition at line 94 of file DAkOmega.H.

Referenced by DAkOmega::calcResiduals().

◆ k_

volScalarField& k_
protected

◆ kRes_

volScalarField kRes_
protected

Definition at line 96 of file DAkOmega.H.

Referenced by DAkOmega::calcResiduals().

◆ 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 DAkOmega.H.

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

◆ solveTurbState_

label solveTurbState_ = 0
protected

whether to solve for turb states

Definition at line 106 of file DAkOmega.H.

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

◆ printInterval_

label printInterval_
protected

time step interval to print residual

Definition at line 109 of file DAkOmega.H.

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


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