28 template<
class Type,
class ... AlphaRhoFieldTypes>
32 const word& fieldName,
34 const AlphaRhoFieldTypes& ... alphaRhos
53 const fvModel& model = modelList[i];
57 addSupFields_[i].insert(fieldName);
61 Info<<
"Applying model " << model.
name() <<
" to field "
65 model.addSup(alphaRhos ..., mtx, fieldName);
81 return this->source(field, field.
name());
103 return this->source(
rho, field, field.
name());
112 const word& fieldName
137 const word& fieldName
152 return this->source(field, field.
name());
169 this->mesh().time().
name(),
191 return this->source(
rho, field, field.
name());
211 const word& fieldName
#define forAll(list, i)
Loop across all elements in list.
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
Dimension set for the base types.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Finite volume model abstract base class.
static dimensionSet sourceDims(const VolField< Type > &field, const dimensionSet &ds, const AlphaRhoFieldType &alphaRho, const AlphaRhoFieldTypes &... alphaRhos)
Return the dimensions of the matrix of a source term.
const word & name() const
Return const access to the source name.
virtual bool addsSupToField(const word &fieldName) const
Return true if the fvModel adds a source term to the given.
tmp< fvMatrix< Type > > d2dt2(const VolField< Type > &field) const
Return source for an equation with a second time derivative.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects...
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
tmp< VolField< Type > > d2dt2(const VolField< Type > &vf)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless
const dimensionSet dimTime
const dimensionSet dimVolume
word name(const complex &)
Return a string representation of a complex.