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 () |
Destructor. More... | |
const alphaField & | alpha () const |
Access function to phase fraction. More... | |
const transportModel & | transport () const |
Access function to incompressible transport model. More... | |
tmp< volScalarField > | nu () const |
Return the laminar viscosity. More... | |
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 Attributes | |
const alphaField & | alpha_ |
const transportModel & | transport_ |
Templated abstract base class for turbulence models.
Definition at line 57 of file TurbulenceModel.H.
typedef Alpha alphaField |
Definition at line 64 of file TurbulenceModel.H.
typedef Rho rhoField |
Definition at line 65 of file TurbulenceModel.H.
typedef TransportModel transportModel |
Definition at line 66 of file TurbulenceModel.H.
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 41 of file TurbulenceModel.C.
References Foam::constant::atomic::alpha, TimePaths::constant(), IOobject::db(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOobject::group(), Foam::Info, dictionary::lookup(), TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::New(), Foam::nl, phi, rho, IOobject::time(), and U.
|
inlinevirtual |
Destructor.
Definition at line 141 of file TurbulenceModel.H.
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.
Referenced by TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::TurbulenceModel().
|
inline |
Access function to phase fraction.
Definition at line 148 of file TurbulenceModel.H.
|
inline |
Access function to incompressible transport model.
Definition at line 154 of file TurbulenceModel.H.
|
inline |
Return the laminar viscosity.
Definition at line 160 of file TurbulenceModel.H.
Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::DkEff(), kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::DomegaEff(), and alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs().
|
inline |
Return the laminar viscosity on patchi.
Definition at line 166 of file TurbulenceModel.H.
|
protected |
Definition at line 73 of file TurbulenceModel.H.
Referenced by TurbulenceModel< volScalarField, geometricOneField, incompressibleTurbulenceModel, TransportModel >::alpha().
|
protected |
Definition at line 74 of file TurbulenceModel.H.
Referenced by TurbulenceModel< volScalarField, geometricOneField, incompressibleTurbulenceModel, TransportModel >::transport().