Templated abstract base class for turbulence models. More...
Public Types | |
typedef Alpha | alphaField |
typedef Rho | rhoField |
typedef TransportModel | transportModel |
Public Member Functions | |
declareRunTimeNewSelectionTable (autoPtr, TurbulenceModel, 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)) | |
TurbulenceModel (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName) | |
Construct. More... | |
virtual | ~TurbulenceModel ()=default |
Destructor. More... | |
const alphaField & | alpha () const |
Access function to phase fraction. More... | |
const transportModel & | transport () const |
Access function to incompressible transport model. More... | |
virtual tmp< volScalarField > | nu () const |
Return the laminar viscosity. More... | |
virtual tmp< scalarField > | nu (const label patchi) const |
Return the laminar viscosity on patchi. More... | |
Static Public Member Functions | |
static autoPtr< TurbulenceModel > | 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 turbulence model. More... | |
Protected Member Functions | |
TurbulenceModel (const TurbulenceModel &)=delete | |
No copy construct. More... | |
void | operator= (const TurbulenceModel &)=delete |
No copy assignment. More... | |
Protected Attributes | |
const alphaField & | alpha_ |
const transportModel & | transport_ |
Templated abstract base class for turbulence models.
Definition at line 59 of file TurbulenceModel.H.
typedef Alpha alphaField |
Definition at line 66 of file TurbulenceModel.H.
typedef Rho rhoField |
Definition at line 67 of file TurbulenceModel.H.
typedef TransportModel transportModel |
Definition at line 68 of file TurbulenceModel.H.
|
protecteddelete |
No copy construct.
TurbulenceModel | ( | const alphaField & | alpha, |
const rhoField & | rho, | ||
const volVectorField & | U, | ||
const surfaceScalarField & | alphaRhoPhi, | ||
const surfaceScalarField & | phi, | ||
const transportModel & | transport, | ||
const word & | propertiesName | ||
) |
Construct.
Definition at line 42 of file TurbulenceModel.C.
|
virtualdefault |
Destructor.
|
protecteddelete |
No copy assignment.
declareRunTimeNewSelectionTable | ( | autoPtr | , |
TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel > | , | ||
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 turbulence model.
Definition at line 80 of file TurbulenceModel.C.
References dict, Foam::endl(), FatalIOErrorInLookup, dictionary::get(), IOobject::group(), IOobject::groupName(), Foam::Info, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE, and U.
|
inline |
Access function to phase fraction.
Definition at line 147 of file TurbulenceModel.H.
References TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::alpha_.
Referenced by NicenoKEqn< BasicTurbulenceModel >::correctNut(), SmagorinskyZhang< BasicTurbulenceModel >::correctNut(), LaheyKEpsilon< BasicTurbulenceModel >::correctNut(), and kOmegaSSTSato< BasicTurbulenceModel >::correctNut().
|
inline |
Access function to incompressible transport model.
Definition at line 153 of file TurbulenceModel.H.
References TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::transport_.
Referenced by NicenoKEqn< BasicTurbulenceModel >::correctNut(), SmagorinskyZhang< BasicTurbulenceModel >::correctNut(), LaheyKEpsilon< BasicTurbulenceModel >::correctNut(), and kOmegaSSTSato< BasicTurbulenceModel >::correctNut().
|
inlinevirtual |
Return the laminar viscosity.
Reimplemented in CompressibleTurbulenceModel< TransportModel >.
Definition at line 159 of file TurbulenceModel.H.
References TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::transport_.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::yPlus().
|
inlinevirtual |
Return the laminar viscosity on patchi.
Reimplemented in CompressibleTurbulenceModel< TransportModel >.
Definition at line 165 of file TurbulenceModel.H.
References TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::transport_.
|
protected |
Definition at line 75 of file TurbulenceModel.H.
Referenced by TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::alpha().
|
protected |
Definition at line 76 of file TurbulenceModel.H.
Referenced by TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::nu(), and TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::transport().