39 <<
"field=" << field.
name()
40 <<
", eqnField=" << eqn.
psi().name() <<
endl;
52 if (&field == &eqn.
psi())
69 eqnSource[
cells[i]] -=
S[i]*sourceCoeff[i];
70 eqnDiag[
cells[i]] +=
S[i]*internalCoeff[i];
85 eqnSource[
cells[i]] -=
S[i]*value[i];
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.
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.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
const dimensionSet & dimensions() const
const fvMesh & mesh() const
Return const access to the mesh database.
const word & name() const
Return const access to the source name.
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.
virtual dimensionedScalar S() const =0
Return the source value.
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.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.