45 void Foam::fv::zeroDimensionalMassSource::readCoeffs(
const dictionary&
dict)
47 zeroDimensionalMassFlowRate_.reset
52 mesh().time().userUnits(),
60 Foam::scalar Foam::fv::zeroDimensionalMassSource::massFlowRate()
const
62 return zeroDimensionalMassFlowRate_->value(
mesh().time().value());
71 const word& modelType,
77 zeroDimensionalMassFlowRate_()
89 readCoeffs(coeffs(
dict));
Macros for easy insertion into run-time selection tables.
static autoPtr< Function1< scalar > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh data needed to do the Finite Volume discretisation.
Finite volume model abstract base class.
static const dictionary & coeffs(const word &modelType, const dictionary &)
Return the coefficients sub-dictionary for a given model type.
const fvMesh & mesh() const
Return const access to the mesh database.
virtual bool read(const dictionary &dict)
Read source dictionary.
Base class for zero-dimensional mass source models.
This fvModel applies a mass source to the continuity equation and to all field equations,...
virtual bool read(const dictionary &dict)
Read source dictionary.
zeroDimensionalMassSource(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
const dimensionSet dimTime
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
const dimensionSet dimMass