40 <<
"field=" << field.
name()
41 <<
", eqnField=" << eqn.
psi().name() <<
endl;
45 if (&field == &eqn.
psi())
66 eqn += tS()*sourceCoeff +
fvm::Sp(tS()*internalCoeff, eqn.
psi());
95 <<
"rho=" <<
rho.name()
96 <<
", field=" << field.
name()
97 <<
", eqnField=" << eqn.
psi().name() <<
endl;
99 addSupType(field, eqn);
114 <<
", rho=" <<
rho.name()
115 <<
", field=" << field.
name()
116 <<
", eqnField=" << eqn.
psi().name() <<
endl;
118 addSupType(
rho, field, eqn);
const dimensionSet & dimensions() const
Return dimensions.
static tmp< DimensionedField< Type, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &, const Field< Type > &)
Return a temporary field constructed from name, mesh,.
Generic GeometricField class.
const Sources & sources() const
Return const-reference to the sources.
const word & name() const
Return name.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
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 tmp< DimensionedField< scalar, volMesh > > S(const word &fieldName) const =0
Return the source value.
A class for managing temporary objects.
Calculate the matrix for implicit and explicit sources.
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.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless