Go to the documentation of this file.
45 multiphaseStabilizedTurbulence,
53 Foam::fv::multiphaseStabilizedTurbulence::multiphaseStabilizedTurbulence
55 const word& sourceName,
56 const word& modelType,
62 rhoName_(coeffs_.getOrDefault<
word>(
"rho",
"rho")),
65 dimensionedScalar::getOrAddToDict
74 dimensionedScalar::getOrAddToDict
83 dimensionedScalar::getOrAddToDict
92 dimensionedScalar::getOrAddToDict
100 fieldNames_.setSize(2,
"undefined");
103 const auto* turbPtr =
106 turbulenceModel::propertiesName
112 fieldNames_[0] = tk().name();
115 fieldNames_[1] = tnut().name();
117 Log <<
" Applying model to " << fieldNames_[0]
118 <<
" and " << fieldNames_[1] <<
endl;
123 <<
"Unable to find incompressible turbulence model"
127 applied_.setSize(fieldNames_.size(),
false);
156 Log << this->
name() <<
": applying buoyancy production term to "
161 const auto* turbPtr =
164 turbulenceModel::propertiesName
170 <<
"Unable to find incompressible turbulence model"
204 Log << this->
name() <<
": correcting " << field.name() <<
endl;
206 const auto* turbPtr =
213 const auto&
U = turbPtr->U();
215 const auto&
epsilon = tepsilon();
217 const auto&
k = tk();
220 const auto& gradU = tgradU();
237 field.correctBoundaryConditions();
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
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)
const word & name() const
Return const access to the source name.
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 GeometricField< Type, fvPatchField, volMesh > & psi() const
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)
Finite volume options abstract base class. Provides a base set of controls, e.g.:
word name(const complex &c)
Return string representation of complex.
wordList fieldNames_
Field names to apply source to - populated by derived models.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void correct(volScalarField &field)
Correct the turbulence 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....
Templated abstract base class for single-phase incompressible turbulence models.
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)