69 mesh_.objectRegistry::store(ptr);
80 const word& sourceName,
81 const word& modelType,
170 CdName_ =
dict.getOrDefault<
word>(
"Cd",
"Cd");
171 LADname_ =
dict.getOrDefault<
word>(
"LAD",
"LAD");
173 (void) getOrReadField(CdName_);
174 (void) getOrReadField(LADname_);
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
wordList fieldNames_
Field names to apply source to - populated by derived models.
void resize(const label len)
Adjust allocated size of list.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
const fvMesh & mesh_
Reference to the mesh database.
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.
virtual bool read(const dictionary &dict)
Read source dictionary.
const Time & time() const
Return the top-level database.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Return psi.
A class for handling words, derived from Foam::string.
Type * getObjectPtr(const word &name, const bool recursive=false) const
Return non-const pointer to the object of the given Type, using a const-cast to have it behave like a...
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add explicit contribution to momentum equation.
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
static word timeName(const scalar t, const int precision=precision_)
Return time name of given scalar time formatted with the given precision.
virtual bool read(const dictionary &dict)
Read source dictionary.
Mesh data needed to do the Finite Volume discretisation.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
Automatically write from objectRegistry::writeObject()
Intermediate abstract class for handling cell-set options for the derived fvOptions.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Request registration (bool: true)
Calculate the finiteVolume matrix for implicit and explicit sources.