Go to the documentation of this file.
47 Foam::fv::atmPlantCanopyTurbSource::calcPlantCanopyTerm
49 const volVectorField::Internal&
U
61 const word& sourceName,
62 const word& modelType,
69 rhoName_(coeffs_.getOrDefault<
word>(
"rho",
"rho")),
78 mesh.time().timeName(),
90 mesh.time().timeName(),
107 <<
"Unable to find a turbulence model."
111 fieldNames_.resize(1);
116 if (!tepsilon.
isTmp())
118 fieldNames_[0] = tepsilon().name();
120 const dictionary& turbDict = turbPtr->coeffDict();
121 Cmu_.
read(
"Cmu", turbDict);
122 C1_.read(
"C1", turbDict);
123 C2_.read(
"C2", turbDict);
125 else if (!tomega.
isTmp())
128 fieldNames_[0] = tomega().name();
130 const dictionary& turbDict = turbPtr->coeffDict();
131 Cmu_.
read(
"betaStar", turbDict);
136 <<
"Unable to find neither epsilon nor omega field." <<
nl
137 <<
"atmPlantCanopyTurbSource needs either epsilon or omega field."
143 Log <<
" Applying atmPlantCanopyTurbSource to: " << fieldNames_[0]
158 atmPlantCanopyTurbSourceEpsilon
168 atmPlantCanopyTurbSourceOmega
207 atmPlantCanopyTurbSourceEpsilon(
alpha,
rho, eqn, fieldi);
211 atmPlantCanopyTurbSourceOmega(
alpha,
rho, eqn, fieldi);
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
static const word propertiesName
Default name of the turbulence properties dictionary.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
virtual void addSup(fvMatrix< scalar > &eqn, const label fieldi)
bool isTmp() const noexcept
Identical to is_pointer()
Ostream & endl(Ostream &os)
Add newline and flush stream.
atmPlantCanopyTurbSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
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)
bool read(Istream &is)
Read dictionary from Istream. Discards the header.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A special matrix type and solver, designed for finite volume solutions of scalar equations....
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)