Go to the documentation of this file.
32 template<
class Mixture>
43 rhoType_(rhoType::UNIFORM),
60 if (turbulenceProperties.
found(
"density"))
62 const word densityMethod
64 turbulenceProperties.
getWord(
"density")
66 if (densityMethod ==
"variable")
68 rhoType_ = rhoType::VARIABLE;
70 else if (densityMethod ==
"uniform")
72 rhoType_ = rhoType::UNIFORM;
77 <<
"The rho type provided is not correct " <<
nl
78 <<
" Available types are : " <<
nl
79 <<
" variable or uniform. " <<
nl
85 if (rhoType_ == rhoType::VARIABLE)
108 incTurbulence_->validate();
115 template<
class Mixture>
123 if (rhoType_ == rhoType::VARIABLE)
125 return rhoIncTurbulence_->divDevRhoReff(
U);
129 return incTurbulence_->divDevRhoReff(
rho,
U);
133 template<
class Mixture>
136 if (rhoType_ == rhoType::VARIABLE)
138 rhoIncTurbulence_->correct();
142 incTurbulence_->correct();
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static autoPtr< IncompressibleTurbulenceModel > New(const volVectorField &U, const surfaceScalarField &phi, const TransportModel &transportModel, const word &propertiesName=turbulenceModel::propertiesName)
static autoPtr< PhaseIncompressibleTurbulenceModel > New(const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const TransportModel &transportModel, const word &propertiesName=turbulenceModel::propertiesName)
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
static const word propertiesName
word getWord(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Same as get< word >(const word&, keyType::option)
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
tmp< fvVectorMatrix > divDevRhoReff(const volScalarField &rho, volVectorField &U) const
#define FatalErrorInFunction
Transport model selection class for the incompressibleInterFoam family of solvers.
Generic GeometricField class.