48 const word& sourceName,
49 const word& modelType,
54 fv::cellSetOption(sourceName, modelType,
dict,
mesh),
55 artNutName_(
dict.getOrDefault<
word>(
"nut",
"artNut")),
73 <<
"Unable to find artificial turbulent viscosity field." <<
nl 74 <<
"atmNutSource requires an artificial nut field." 87 <<
"Unable to find a turbulence model." 93 const tmp<volScalarField>& tnut = turbPtr->nut();
95 if (tnut.is_reference())
102 <<
"Unable to find nut field." <<
nl 103 <<
"atmNutSource requires nut field." 121 field.correctBoundaryConditions();
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.
const word & name() const noexcept
Return the object name.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
constexpr char nl
The newline '\n' character (0x0a)
virtual void correct(volScalarField &field)
Correct the turbulent viscosity.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool headerOk()
Read and check header info. Does not check the headerClassName.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
Macros for easy insertion into run-time selection tables.
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.
atmNutSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
A class for handling words, derived from Foam::string.
errorManip< error > abort(error &err)
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
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)
Defines the attributes of an object for which implicit objectRegistry management is supported...
static constexpr const zero Zero
Global zero (0)