32 template<
class Mixture>
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")
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();
static autoPtr< PhaseIncompressibleTurbulenceModel > New(const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const TransportModel &transportModel, const word &propertiesName=turbulenceModel::propertiesName)
Return a reference to the selected turbulence model.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
tmp< fvVectorMatrix > divDevRhoReff(const volScalarField &rho, volVectorField &U) const
Return the effective momentum stress divergence.
constexpr char nl
The newline '\n' character (0x0a)
static autoPtr< IncompressibleTurbulenceModel > New(const volVectorField &U, const surfaceScalarField &phi, const TransportModel &transportModel, const word &propertiesName=turbulenceModel::propertiesName)
Return a reference to the selected turbulence model.
Ignore writing from objectRegistry::writeObject()
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
word getWord(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Same as get< word >(const word&, keyType::option)
Transport model selection class for the incompressibleInterFoam family of solvers.
Container (non-empty) with identical values.
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
void correct()
Correct the phase or mixture transport models.