Go to the documentation of this file.
44 multiphaseStabilizedTurbulence,
54 const word& sourceName,
55 const word& modelType,
61 rhoName_(coeffs_.getOrDefault<
word>(
"rho",
"rho")),
64 dimensionedScalar::getOrAddToDict
73 dimensionedScalar::getOrAddToDict
82 dimensionedScalar::getOrAddToDict
91 dimensionedScalar::getOrAddToDict
99 fieldNames_.resize(2);
102 const auto* turbPtr =
105 turbulenceModel::propertiesName
111 fieldNames_[0] = tk().name();
114 fieldNames_[1] = tnut().name();
116 Log <<
" Applying model to " << fieldNames_[0]
117 <<
" and " << fieldNames_[1] <<
endl;
122 <<
"Unable to find incompressible turbulence model"
126 fv::option::resetApplied();
155 Log << this->
name() <<
": applying buoyancy production term to "
160 const auto* turbPtr =
163 turbulenceModel::propertiesName
169 <<
"Unable to find incompressible turbulence model"
203 Log << this->
name() <<
": correcting " << field.name() <<
endl;
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();
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
const word & name() const noexcept
Return const access to the source name.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
A class for handling words, derived from Foam::string.
dimensionedTensor skew(const dimensionedTensor &dt)
A class for managing temporary objects.
static const word propertiesName
Default name of the turbulence properties dictionary.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fvMesh & mesh_
Reference to the mesh database.
tmp< faMatrix< Type > > SuSp(const areaScalarField &sp, const GeometricField< Type, faPatchField, areaMesh > &vf)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
A special matrix type and solver, designed for finite volume solutions of scalar equations.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Base abstract class for handling finite volume options (i.e. fvOption).
wordList fieldNames_
Field names to apply source to - populated by derived models.
multiphaseStabilizedTurbulence(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Return psi.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void correct(volScalarField &field)
Correct the turbulent viscosity.
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
const uniformDimensionedVectorField & g
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)
Global function forwards to reuseTmpDimensionedField::New.
virtual void addSup(const volScalarField &rho, fvMatrix< scalar > &eqn, const label fieldi)
Add explicit contribution to compressible k equation.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
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.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Templated abstract base class for single-phase incompressible turbulence models.
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
const dimensionSet dimless
Dimensionless.