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_.setSize(1,
"undefined");
97 fieldNames_[0] = tnut().name();
102 <<
"Unable to find nut field." <<
nl
103 <<
"atmNutSource requires nut field."
107 applied_.setSize(fieldNames_.size(),
false);
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,...
A class for handling words, derived from Foam::string.
Cell-set options abstract base class. Provides a base set of controls, e.g.:
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
static constexpr const zero Zero
Global zero (0)
const word & name() const
Return const access to the source name.
bool isTmp() const noexcept
True if this is a managed pointer (not a const reference)
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.