39 void Foam::fvTotalSource::readCoeffs(
const dictionary&
dict)
50 <<
"eqnField=" << eqn.
psi().name() <<
endl;
53 const scalar V = this->V();
64 eqnSource[
cells[i]] -=
f*
S.value();
74 const word& modelType,
106 readCoeffs(coeffs(
dict));
#define forAll(list, i)
Loop across all elements in list.
word group() const
Return group (extension part of name)
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....
const dimensionSet & dimensions() const
Mesh data needed to do the Finite Volume discretisation.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
static const dictionary & coeffs(const word &modelType, const dictionary &)
Return the coefficients sub-dictionary for a given model type.
virtual bool read(const dictionary &dict)
Read source dictionary.
Base class for finite volume sources.
Base class for sources which are specified as a total value (e.g., volume or mass flow rate),...
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 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.
static const word null
An empty word.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define DebugInFunction
Report an information message using Foam::Info.
const char *const group
Group name for atomic constants.
tmp< fvMatrix< Type > > S(const Pair< tmp< volScalarField::Internal >> &, const VolField< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTypeNameAndDebug(combustionModel, 0)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.