45 void Foam::fv::zeroDimensionalMassSource::readCoeffs()
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_()
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 keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
Finite volume model abstract base class.
const dictionary & coeffs() const
Return dictionary.
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.
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimTime
const dimensionSet dimMass