44 multiphaseStabilizedTurbulence,
54 const word& sourceName,
55 const word& modelType,
61 rhoName_(coeffs_.getOrDefault<
word>(
"rho",
"rho")),
102 const auto* turbPtr =
122 <<
"Unable to find incompressible turbulence model" 155 Log << this->
name() <<
": applying buoyancy production term to " 160 const auto* turbPtr =
169 <<
"Unable to find incompressible turbulence model" 174 tmp<volScalarField> tepsilon = turbPtr->epsilon();
198 if (
field.name() != fieldNames_[1])
205 const auto* turbPtr =
212 const auto&
U = turbPtr->U();
214 const auto&
epsilon = tepsilon();
216 const auto&
k = tk();
219 const auto& gradU = tgradU();
236 field.correctBoundaryConditions();
multiphaseStabilizedTurbulence(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void correct(volScalarField &field)
Correct the turbulent viscosity.
wordList fieldNames_
Field names to apply source to - populated by derived models.
void resize(const label len)
Adjust allocated size of list.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const fvMesh & mesh_
Reference to the mesh database.
dimensionedTensor skew(const dimensionedTensor &dt)
const word & name() const noexcept
Return the object name.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void addSup(const volScalarField &rho, fvMatrix< scalar > &eqn, const label fieldi)
Add explicit contribution to compressible k equation.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
label k
Boltzmann constant.
const dimensionSet dimless
Dimensionless.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Templated abstract base class for single-phase incompressible turbulence models.
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Return psi.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
zeroField SuSp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
const uniformDimensionedVectorField & g
static const gravity & New(const word &name, const Time &runTime)
Return named gravity field cached or construct on Time.
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
A special matrix type and solver, designed for finite volume solutions of scalar equations.
A class for managing temporary objects.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)