52 const word& modelType,
58 motion_(coeffs_,
mesh.time()),
59 UName_(coeffs_.getOrDefault<
word>(
"U",
"U")),
74 void Foam::fv::tabulatedAccelerationSource::addSup
84 void Foam::fv::tabulatedAccelerationSource::addSup
91 addSup<volScalarField>(
rho, eqn, fieldi);
99 return motion_.read(coeffs_);
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
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)
tabulatedAccelerationSource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
const Time & time() const
Return the top-level database.
Macros for easy insertion into run-time selection tables.
word UName_
Name of operand velocity field.
const dimensionSet dimAcceleration
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
dimensionedVector g0_
Gravitational accelaration.
virtual bool read(const dictionary &dict)
Read source dictionary.
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.
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
Mesh data needed to do the Finite Volume discretisation.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
virtual bool read(const dictionary &dict)
Read source dictionary.
static constexpr const zero Zero
Global zero (0)