32template<
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();
115template<
class Mixture>
123 if (rhoType_ == rhoType::VARIABLE)
125 return rhoIncTurbulence_->divDevRhoReff(
U);
129 return incTurbulence_->divDevRhoReff(
rho,
U);
133template<
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...
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
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)
word getWord(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Same as get<word>(const word&, keyType::option).
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
Transport model selection class for the incompressibleInterFoam family of solvers.
void correct()
Correct the phase or mixture transport models.
tmp< fvVectorMatrix > divDevRhoReff(const volScalarField &rho, volVectorField &U) const
Return the effective momentum stress divergence.
A class for managing temporary objects.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).