40 <<
"field=" << field.
name()
41 <<
", eqnField=" << eqn.
psi().name() <<
endl;
44 const scalar
V = this->
V();
50 if (&field == &eqn.
psi())
100 <<
"rho=" <<
rho.name()
101 <<
", field=" << field.
name()
102 <<
", eqnField=" << eqn.
psi().name() <<
endl;
104 addSupType(field, eqn);
119 <<
", rho=" <<
rho.name()
120 <<
", field=" << field.
name()
121 <<
", eqnField=" << eqn.
psi().name() <<
endl;
123 addSupType(
rho, field, eqn);
#define forAll(list, i)
Loop across all elements in list.
const dimensionSet & dimensions() const
Return dimensions.
Pre-declare SubField and related Field type.
Generic GeometricField class.
const Sources & sources() const
Return const-reference to the sources.
const word & name() const
Return name.
const dimensionSet & dimensions() const
Return const reference to dimensions.
const Type & value() const
Return const reference to value.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
const dimensionSet & dimensions() const
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
const fvMesh & mesh() const
Return const access to the mesh database.
const word & name() const
Return const access to the source name.
virtual labelUList cells() const =0
Return the cells that the source applies to.
void addSupType(const VolField< Type > &field, fvMatrix< Type > &eqn) const
Add a source term to an equation.
virtual scalar V() const =0
Return the volume of cells that the source applies to.
virtual dimensionedScalar S() const =0
Return the source value.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
#define DebugInFunction
Report an information message using Foam::Info.
Ostream & endl(Ostream &os)
Add newline and flush stream.