Templated abstract base class for RAS turbulence models. More...
Public Types | |
typedef BasicTurbulenceModel::alphaField | alphaField |
typedef BasicTurbulenceModel::rhoField | rhoField |
typedef BasicTurbulenceModel::transportModel | transportModel |
Public Member Functions | |
TypeName ("RAS") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, RASModel, dictionary,(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName),(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName)) | |
RASModel (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName) | |
Construct from components. More... | |
virtual | ~RASModel ()=default |
Destructor. More... | |
virtual bool | read () |
Read model coefficients if they have changed. More... | |
const dimensionedScalar & | kMin () const |
Return the lower allowable limit for k (default: SMALL) More... | |
const dimensionedScalar & | epsilonMin () const |
Return the lower allowable limit for epsilon (default: SMALL) More... | |
const dimensionedScalar & | omegaMin () const |
Return the lower allowable limit for omega (default: SMALL) More... | |
dimensionedScalar & | kMin () |
Allow kMin to be changed. More... | |
dimensionedScalar & | epsilonMin () |
Allow epsilonMin to be changed. More... | |
dimensionedScalar & | omegaMin () |
Allow omegaMin to be changed. More... | |
virtual const dictionary & | coeffDict () const |
Const access to the coefficients dictionary. More... | |
virtual tmp< volScalarField > | nuEff () const |
Return the effective viscosity. More... | |
virtual tmp< scalarField > | nuEff (const label patchi) const |
Return the effective viscosity on patch. More... | |
virtual tmp< volScalarField > | epsilon () const |
Return the turbulence kinetic energy dissipation rate. More... | |
virtual tmp< volScalarField > | omega () const |
Return the specific dissipation rate. More... | |
virtual void | correct () |
Solve the turbulence equations and correct the turbulence viscosity. More... | |
Static Public Member Functions | |
static autoPtr< RASModel > | New (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName) |
Return a reference to the selected RAS model. More... | |
Protected Member Functions | |
virtual void | printCoeffs (const word &type) |
Print model coefficients. More... | |
RASModel (const RASModel &)=delete | |
No copy construct. More... | |
void | operator= (const RASModel &)=delete |
No copy assignment. More... | |
Protected Attributes | |
dictionary | RASDict_ |
RAS coefficients dictionary. More... | |
Switch | turbulence_ |
Turbulence on/off flag. More... | |
Switch | printCoeffs_ |
Flag to print the model coeffs at run-time. More... | |
dictionary | coeffDict_ |
Model coefficients dictionary. More... | |
dimensionedScalar | kMin_ |
Lower limit of k. More... | |
dimensionedScalar | epsilonMin_ |
Lower limit of epsilon. More... | |
dimensionedScalar | omegaMin_ |
Lower limit for omega. More... | |
Templated abstract base class for RAS turbulence models.
Definition at line 52 of file RASModel.H.
typedef BasicTurbulenceModel::alphaField alphaField |
Definition at line 97 of file RASModel.H.
typedef BasicTurbulenceModel::rhoField rhoField |
Definition at line 98 of file RASModel.H.
typedef BasicTurbulenceModel::transportModel transportModel |
Definition at line 99 of file RASModel.H.
RASModel | ( | const word & | type, |
const alphaField & | alpha, | ||
const rhoField & | rho, | ||
const volVectorField & | U, | ||
const surfaceScalarField & | alphaRhoPhi, | ||
const surfaceScalarField & | phi, | ||
const transportModel & | transport, | ||
const word & | propertiesName | ||
) |
Construct from components.
Definition at line 46 of file RASModel.C.
References Foam::dimVelocity, and Foam::sqr().
|
virtualdefault |
Destructor.
|
protectedvirtual |
Print model coefficients.
Definition at line 34 of file RASModel.C.
References Foam::endl(), and Foam::Info.
Referenced by EBRSM< BasicTurbulenceModel >::EBRSM(), LRR< BasicTurbulenceModel >::LRR(), and SSG< BasicTurbulenceModel >::SSG().
|
protecteddelete |
No copy assignment.
TypeName | ( | "RAS" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
RASModel< BasicTurbulenceModel > | , | ||
dictionary | , | ||
(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName) | , | ||
(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName) | |||
) |
|
static |
Return a reference to the selected RAS model.
Definition at line 114 of file RASModel.C.
|
virtual |
Read model coefficients if they have changed.
Reimplemented in EBRSM< BasicTurbulenceModel >, LRR< BasicTurbulenceModel >, SSG< BasicTurbulenceModel >, linearViscousStress< RASModel< BasicTurbulenceModel > >, linearViscousStress< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >, linearViscousStress< RASModel< EddyDiffusivity< ThermalDiffusivity< PhaseCompressibleTurbulenceModel< phaseModel > > > > >, linearViscousStress< RASModel< EddyDiffusivity< compressible::turbulenceModel > > >, and ReynoldsStress< RASModel< BasicTurbulenceModel > >.
Definition at line 171 of file RASModel.C.
References kEpsilonLopesdaCosta< BasicTurbulenceModel >::read().
|
inline |
Return the lower allowable limit for k (default: SMALL)
Definition at line 170 of file RASModel.H.
References RASModel< BasicTurbulenceModel >::kMin_.
|
inline |
Return the lower allowable limit for epsilon (default: SMALL)
Definition at line 176 of file RASModel.H.
References RASModel< BasicTurbulenceModel >::epsilonMin_.
|
inline |
Return the lower allowable limit for omega (default: SMALL)
Definition at line 182 of file RASModel.H.
References RASModel< BasicTurbulenceModel >::omegaMin_.
|
inline |
Allow kMin to be changed.
Definition at line 188 of file RASModel.H.
References RASModel< BasicTurbulenceModel >::kMin_.
|
inline |
Allow epsilonMin to be changed.
Definition at line 194 of file RASModel.H.
References RASModel< BasicTurbulenceModel >::epsilonMin_.
|
inline |
Allow omegaMin to be changed.
Definition at line 200 of file RASModel.H.
References RASModel< BasicTurbulenceModel >::omegaMin_.
|
inlinevirtual |
Const access to the coefficients dictionary.
Definition at line 206 of file RASModel.H.
References RASModel< BasicTurbulenceModel >::coeffDict_.
|
inlinevirtual |
Return the effective viscosity.
Definition at line 213 of file RASModel.H.
References IOobject::groupName().
|
inlinevirtual |
Return the effective viscosity on patch.
Definition at line 226 of file RASModel.H.
|
virtual |
Return the turbulence kinetic energy dissipation rate.
Reimplemented in EBRSM< BasicTurbulenceModel >, LRR< BasicTurbulenceModel >, and SSG< BasicTurbulenceModel >.
Definition at line 192 of file RASModel.C.
|
virtual |
Return the specific dissipation rate.
Definition at line 211 of file RASModel.C.
References Foam::dimLength, Foam::dimTime, and Foam::sqr().
|
virtual |
Solve the turbulence equations and correct the turbulence viscosity.
Reimplemented in EBRSM< BasicTurbulenceModel >, LRR< BasicTurbulenceModel >, SSG< BasicTurbulenceModel >, linearViscousStress< RASModel< BasicTurbulenceModel > >, linearViscousStress< RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > > >, linearViscousStress< RASModel< EddyDiffusivity< ThermalDiffusivity< PhaseCompressibleTurbulenceModel< phaseModel > > > > >, linearViscousStress< RASModel< EddyDiffusivity< compressible::turbulenceModel > > >, and ReynoldsStress< RASModel< BasicTurbulenceModel > >.
Definition at line 230 of file RASModel.C.
|
protected |
RAS coefficients dictionary.
Definition at line 62 of file RASModel.H.
|
protected |
Turbulence on/off flag.
Definition at line 65 of file RASModel.H.
|
protected |
Flag to print the model coeffs at run-time.
Definition at line 68 of file RASModel.H.
|
protected |
Model coefficients dictionary.
Definition at line 71 of file RASModel.H.
Referenced by RASModel< BasicTurbulenceModel >::coeffDict().
|
protected |
Lower limit of k.
Definition at line 74 of file RASModel.H.
Referenced by EBRSM< BasicTurbulenceModel >::EBRSM(), and RASModel< BasicTurbulenceModel >::kMin().
|
protected |
Lower limit of epsilon.
Definition at line 77 of file RASModel.H.
Referenced by EBRSM< BasicTurbulenceModel >::EBRSM(), RASModel< BasicTurbulenceModel >::epsilonMin(), LRR< BasicTurbulenceModel >::LRR(), and SSG< BasicTurbulenceModel >::SSG().
|
protected |
Lower limit for omega.
Definition at line 80 of file RASModel.H.
Referenced by RASModel< BasicTurbulenceModel >::omegaMin().