37 #ifndef fvTotalSource_H
38 #define fvTotalSource_H
119 const word& modelType,
147 virtual scalar
V()
const = 0;
Generic GeometricField class.
Named list of cell indices representing a sub-set of the mesh.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
const fvMesh & mesh() const
Return const access to the mesh database.
const word & name() const
Return const access to the source name.
static const word & fieldName()
Return the name of the field associated with a source term. Special.
Base class for finite volume sources.
Base class for sources which are specified as a total value (e.g., volume or mass flow rate),...
void addSupType(const VolField< Type > &field, fvMatrix< Type > &eqn) const
Add a source term to an equation.
virtual const cellZone & zone() const =0
Return the cellZone that the source applies to.
virtual scalar V() const =0
Return the volume of cells that the source applies to.
const word & phaseName() const
Return the phase name.
TypeName("fvTotalSource")
Runtime type information.
fvTotalSource(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual ~fvTotalSource()
Destructor.
virtual dimensionedScalar S() const =0
Return the source value.
virtual bool addsSupToField(const word &fieldName) const
Return true if the fvModel adds a source term to the given.
void addSource(fvMatrix< scalar > &eqn) const
Add a source term to a field-less proxy equation.
A class for handling words, derived from string.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))