44 void Foam::fv::massSource::readCoeffs()
53 mesh().time().userUnits(),
66 const word& modelType,
83 return setPtr_->cells();
89 return setPtr_->nCells();
105 massFlowRate_->value(mesh().time().value())
112 setPtr_->movePoints();
119 setPtr_->topoChange(map);
125 setPtr_->mapMesh(map);
131 setPtr_->distribute(map);
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....
General run-time selected cell set selection class for fvMesh.
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.
Base class for mass source models.
virtual bool read(const dictionary &dict)
Read source dictionary.
This fvModel applies a mass source to the continuity equation and to all field equations....
virtual bool movePoints()
Update for mesh motion.
virtual scalar V() const
Return the volume of cells that the source applies to.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read source dictionary.
massSource(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
virtual labelUList cells() const
Return the cells that the source applies to.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual label nCells() const
Return the number of cells that the source applies to.
virtual dimensionedScalar S() const
Return the source value.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from string.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimTime
const dimensionSet dimMass
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.