40 void Foam::fvTotalSource::readCoeffs()
51 <<
"eqnField=" << eqn.
psi().name() <<
endl;
54 const scalar V = this->V();
64 const scalar
f = mesh().V()[
cells[i]]/V;
65 eqnSource[
cells[i]] -=
f*
S.value();
75 const word& modelType,
105 const word& fieldName
#define forAll(list, i)
Loop across all elements in list.
word group() const
Return group (extension part of name)
A list of keyword definitions, which are a keyword followed by any number of values (e....
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T, if not found return the given default.
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 dictionary & coeffs() const
Return dictionary.
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 tmp< scalarField > source(const word &fieldName) const
Return the source value.
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 managing temporary objects.
A class for handling words, derived from string.
static const word null
An empty word.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
#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.
word name(const bool)
Return a word representation of a bool.
defineTypeNameAndDebug(combustionModel, 0)