Go to the documentation of this file.
48 const word& sourceName,
49 const word& modelType,
55 artNutName_(
dict.getOrDefault<
word>(
"nut",
"artNut")),
61 mesh.time().timeName(),
63 IOobject::READ_IF_PRESENT,
70 if (!(artNut_.headerOk()))
73 <<
"Unable to find artificial turbulent viscosity field." <<
nl
74 <<
"atmNutSource requires an artificial nut field."
81 turbulenceModel::propertiesName
87 <<
"Unable to find a turbulence model."
91 fieldNames_.resize(1);
97 fieldNames_[0] = tnut().name();
102 <<
"Unable to find nut field." <<
nl
103 <<
"atmNutSource requires nut field."
107 fv::option::resetApplied();
109 Log <<
" Applying atmNutSource to: " << fieldNames_[0] <<
endl;
117 Log << this->
name() <<
": correcting " << field.name() <<
endl;
121 field.correctBoundaryConditions();
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return const access to the source name.
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
bool isTmp() const noexcept
Identical to is_pointer()
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Abstract base class for turbulence models (RAS, LES and laminar).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
atmNutSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
virtual void correct(volScalarField &field)
Correct the turbulent viscosity.