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

Protected Member Functions

SST functions
tmp< fvScalarMatrix > kSource () const
 
tmp< fvScalarMatrix > epsilonSource () const
 
tmp< volScalarField > DkEff () const
 
tmp< volScalarField > DepsilonEff () const
 
virtual tmp< volScalarField > k () const
 
virtual tmp< volScalarField > epsilon () const
 

Protected Attributes

SST parameters
dimensionedScalar Cmu_
 
dimensionedScalar C1_
 
dimensionedScalar C2_
 
dimensionedScalar C3_
 
dimensionedScalar sigmak_
 
dimensionedScalar sigmaEps_
 
- 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 & epsilon_
 
volScalarField epsilonRes_
 
volScalarField & k_
 
volScalarField kRes_
 
scalarList epsilonNearWall_
 
label solveTurbState_ = 0
 whether to solve for turb states More...
 
label printInterval_
 time step interval to print residual More...
 
 TypeName ("kEpsilon")
 
 DAkEpsilon (const word modelType, const fvMesh &mesh, const DAOption &daOption)
 
virtual ~DAkEpsilon ()
 
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 saveEpsilonNearWall ()
 save near wall epsilon values to epsilonNearWall_ More...
 
void setEpsilonNearWall ()
 set epsilonNearWall_ to near wall epsilon values More...
 
void correctEpsilonBoundaryConditions ()
 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 DAkEpsilon.H.

Constructor & Destructor Documentation

◆ DAkEpsilon()

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

Definition at line 41 of file DAkEpsilon.C.

References daOption(), DAkEpsilon::epsilon_, DAkEpsilon::epsilonNearWall_, forAll(), mesh, and DAkEpsilon::printInterval_.

Here is the call graph for this function:

◆ ~DAkEpsilon()

virtual ~DAkEpsilon ( )
inlinevirtual

Definition at line 115 of file DAkEpsilon.H.

Member Function Documentation

◆ kSource()

tmp< fvScalarMatrix > kSource ( ) const
protected

Definition at line 152 of file DAkEpsilon.C.

References DAkEpsilon::k_.

Referenced by DAkEpsilon::calcResiduals().

Here is the caller graph for this function:

◆ epsilonSource()

tmp< fvScalarMatrix > epsilonSource ( ) const
protected

Definition at line 161 of file DAkEpsilon.C.

References DAkEpsilon::epsilon_.

Referenced by DAkEpsilon::calcResiduals().

Here is the caller graph for this function:

◆ DkEff()

tmp< volScalarField > DkEff ( ) const
protected

Definition at line 170 of file DAkEpsilon.C.

References DATurbulenceModel::nu(), DATurbulenceModel::nut_, and DAkEpsilon::sigmak_.

Referenced by DAkEpsilon::calcResiduals().

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

◆ DepsilonEff()

tmp< volScalarField > DepsilonEff ( ) const
protected

Definition at line 178 of file DAkEpsilon.C.

References DATurbulenceModel::nu(), DATurbulenceModel::nut_, and DAkEpsilon::sigmaEps_.

Referenced by DAkEpsilon::calcResiduals().

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

◆ k()

virtual tmp<volScalarField> k ( ) const
inlineprotectedvirtual

Definition at line 72 of file DAkEpsilon.H.

References DAkEpsilon::k_.

◆ epsilon()

virtual tmp<volScalarField> epsilon ( ) const
inlineprotectedvirtual

Definition at line 78 of file DAkEpsilon.H.

References DAkEpsilon::epsilon_.

◆ TypeName()

TypeName ( "kEpsilon"  )

◆ correctModelStates()

void correctModelStates ( wordList &  modelStates) const
virtual

update the turbulence state for DAStateInfo::regStates_

Implements DATurbulenceModel.

Definition at line 187 of file DAkEpsilon.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 223 of file DAkEpsilon.C.

References DAkEpsilon::Cmu_, DATurbulenceModel::correctAlphat(), DAkEpsilon::epsilon_, DAkEpsilon::k_, and DATurbulenceModel::nut_.

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

References DAkEpsilon::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 330 of file DAkEpsilon.C.

References DAkEpsilon::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 341 of file DAkEpsilon.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 392 of file DAkEpsilon.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 484 of file DAkEpsilon.C.

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

Here is the call graph for this function:

◆ saveEpsilonNearWall()

void saveEpsilonNearWall ( )

save near wall epsilon values to epsilonNearWall_

Definition at line 280 of file DAkEpsilon.C.

References DAkEpsilon::epsilon_, DAkEpsilon::epsilonNearWall_, forAll(), and DATurbulenceModel::mesh_.

Referenced by DAkEpsilon::correctEpsilonBoundaryConditions().

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

◆ setEpsilonNearWall()

void setEpsilonNearWall ( )

set epsilonNearWall_ to near wall epsilon values

Definition at line 304 of file DAkEpsilon.C.

References DAkEpsilon::epsilon_, DAkEpsilon::epsilonNearWall_, forAll(), and DATurbulenceModel::mesh_.

Referenced by DAkEpsilon::calcResiduals(), and DAkEpsilon::correctEpsilonBoundaryConditions().

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

◆ correctEpsilonBoundaryConditions()

void correctEpsilonBoundaryConditions ( )

specially treatment to correct epsilon BC

Definition at line 253 of file DAkEpsilon.C.

References DAkEpsilon::epsilon_, DAkEpsilon::saveEpsilonNearWall(), and DAkEpsilon::setEpsilonNearWall().

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

Referenced by DAkEpsilon::correctNut().

◆ C1_

dimensionedScalar C1_
protected

Definition at line 56 of file DAkEpsilon.H.

Referenced by DAkEpsilon::calcResiduals().

◆ C2_

dimensionedScalar C2_
protected

Definition at line 57 of file DAkEpsilon.H.

Referenced by DAkEpsilon::calcResiduals().

◆ C3_

dimensionedScalar C3_
protected

Definition at line 58 of file DAkEpsilon.H.

Referenced by DAkEpsilon::calcResiduals().

◆ sigmak_

dimensionedScalar sigmak_
protected

Definition at line 59 of file DAkEpsilon.H.

Referenced by DAkEpsilon::DkEff().

◆ sigmaEps_

dimensionedScalar sigmaEps_
protected

Definition at line 60 of file DAkEpsilon.H.

Referenced by DAkEpsilon::DepsilonEff().

◆ epsilon_

volScalarField& epsilon_
protected

◆ epsilonRes_

volScalarField epsilonRes_
protected

Definition at line 87 of file DAkEpsilon.H.

Referenced by DAkEpsilon::calcResiduals().

◆ k_

volScalarField& k_
protected

◆ kRes_

volScalarField kRes_
protected

Definition at line 89 of file DAkEpsilon.H.

Referenced by DAkEpsilon::calcResiduals().

◆ epsilonNearWall_

scalarList epsilonNearWall_
protected

cell-center epsilon values near the wall, this is to fix the issue that the epsilonWallFunction will try to modify epsilon 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 epsilon.

Definition at line 96 of file DAkEpsilon.H.

Referenced by DAkEpsilon::DAkEpsilon(), DAkEpsilon::saveEpsilonNearWall(), and DAkEpsilon::setEpsilonNearWall().

◆ solveTurbState_

label solveTurbState_ = 0
protected

whether to solve for turb states

Definition at line 99 of file DAkEpsilon.H.

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

◆ printInterval_

label printInterval_
protected

time step interval to print residual

Definition at line 102 of file DAkEpsilon.H.

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


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