Go to the documentation of this file.
48 const word& sourceName,
49 const word& modelType,
55 rhoName_(coeffs_.getOrDefault<
word>(
"rho",
"rho")),
61 mesh.time().timeName(),
73 mesh.time().timeName(),
81 fieldNames_.resize(1,
"U");
83 fv::option::resetApplied();
85 Log <<
" Applying atmPlantCanopyUSource to: " << fieldNames_[0] <<
endl;
102 eqn -= (plantCd_*leafAreaDensity_*
mag(
U))*
U;
118 eqn -=
rho*(plantCd_*leafAreaDensity_*
mag(
U))*
U;
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.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Ostream & endl(Ostream &os)
Add newline and flush stream.
atmPlantCanopyUSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Return psi.
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.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add explicit contribution to momentum equation.
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)