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 DAOption & | daOption_ |
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< DATurbulenceModel > | New (const word modelType, const fvMesh &mesh, const DAOption &daOption) |
Definition at line 48 of file DAkOmegaFieldInversionOmega.H.
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_.
|
inlinevirtual |
Definition at line 140 of file DAkOmegaFieldInversionOmega.H.
|
inlineprotected |
Definition at line 65 of file DAkOmegaFieldInversionOmega.H.
References DAkOmegaFieldInversionOmega::alphaK_, DATurbulenceModel::nu(), and DATurbulenceModel::nut_.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals().
|
inlineprotected |
Definition at line 78 of file DAkOmegaFieldInversionOmega.H.
References DAkOmegaFieldInversionOmega::alphaOmega_, DATurbulenceModel::nu(), and DATurbulenceModel::nut_.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals().
TypeName | ( | "kOmegaFieldInversionOmega" | ) |
|
virtual |
update the turbulence state for DAStateInfo::regStates_
Implements DATurbulenceModel.
Definition at line 162 of file DAkOmegaFieldInversionOmega.C.
References forAll().
|
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().
|
virtual |
update turbulence variable boundary values
Implements DATurbulenceModel.
Definition at line 216 of file DAkOmegaFieldInversionOmega.C.
References DAkOmegaFieldInversionOmega::k_.
|
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().
|
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().
|
virtual |
add the model residual connectivity to stateCon
Implements DATurbulenceModel.
Definition at line 415 of file DAkOmegaFieldInversionOmega.C.
References DATurbulenceModel::mesh_.
|
virtual |
compute the turbulence residuals
Implements DATurbulenceModel.
Definition at line 527 of file DAkOmegaFieldInversionOmega.C.
References DATurbulenceModel::allOptions_, DAkOmegaFieldInversionOmega::beta_, DAkOmegaFieldInversionOmega::betaFieldInversion_, DAUtility::boundVar(), DAkOmegaFieldInversionOmega::Cmu_, DAkOmegaFieldInversionOmega::correctNut(), DAkOmegaFieldInversionOmega::correctOmegaBoundaryConditions(), DAkOmegaFieldInversionOmega::DkEff(), DAkOmegaFieldInversionOmega::DomegaEff(), DAkOmegaFieldInversionOmega::gamma_, DATurbulenceModel::isPrintTime(), DAkOmegaFieldInversionOmega::k_, DAkOmegaFieldInversionOmega::kRes_, DATurbulenceModel::mesh_, normalizeResiduals, DATurbulenceModel::nut_, DAkOmegaFieldInversionOmega::omega_, DAkOmegaFieldInversionOmega::omegaRes_, DATurbulenceModel::phase_, DATurbulenceModel::phaseRhoPhi_, DATurbulenceModel::phi_, DAkOmegaFieldInversionOmega::printInterval_, DAkOmegaFieldInversionOmega::setOmegaNearWall(), solve(), DAkOmegaFieldInversionOmega::solveTurbState_, and DATurbulenceModel::U_.
Referenced by DAkOmegaFieldInversionOmega::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_.
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().
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().
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().
|
protected |
Definition at line 55 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals().
|
protected |
Definition at line 56 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals().
|
protected |
Definition at line 57 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals().
|
protected |
Definition at line 58 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::DkEff().
|
protected |
Definition at line 59 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::DomegaEff().
|
protected |
Definition at line 93 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals(), DAkOmegaFieldInversionOmega::correctNut(), DAkOmegaFieldInversionOmega::correctOmegaBoundaryConditions(), DAkOmegaFieldInversionOmega::DAkOmegaFieldInversionOmega(), DAkOmegaFieldInversionOmega::saveOmegaNearWall(), and DAkOmegaFieldInversionOmega::setOmegaNearWall().
|
protected |
Definition at line 94 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals().
|
protected |
Definition at line 95 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals(), DAkOmegaFieldInversionOmega::correctBoundaryConditions(), and DAkOmegaFieldInversionOmega::correctNut().
|
protected |
Definition at line 96 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals().
|
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().
|
protected |
whether to solve for turb states
Definition at line 106 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals(), and DAkOmegaFieldInversionOmega::correct().
|
protected |
time step interval to print residual
Definition at line 109 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals(), and DAkOmegaFieldInversionOmega::DAkOmegaFieldInversionOmega().
|
protected |
A beta field multiplying to the production term.
Definition at line 112 of file DAkOmegaFieldInversionOmega.H.
Referenced by DAkOmegaFieldInversionOmega::calcResiduals().
|
protected |
a surface friction 'field' when using skin friction data for field inversion
Definition at line 115 of file DAkOmegaFieldInversionOmega.H.
|
protected |
the reference field for surfaceFriction
Definition at line 118 of file DAkOmegaFieldInversionOmega.H.
|
protected |
the reference field for surfacePressure
Definition at line 121 of file DAkOmegaFieldInversionOmega.H.
|
protected |
reference field (e.g. velocity for DNS)
Definition at line 124 of file DAkOmegaFieldInversionOmega.H.
|
protected |
the reference pressure field data
Definition at line 127 of file DAkOmegaFieldInversionOmega.H.