28 template<
class Type,
class ... AlphaRhoFieldTypes>
32 const word& fieldName,
34 const AlphaRhoFieldTypes& ... alphaRhos
44 fvModel::sourceDims(field, ds, 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
127 return this->source(alpha, rho, field, field.
name());
137 const word& fieldName
152 return this->source(field, field.
name());
169 this->mesh_.time().timeName(),
179 return this->source(alpha,
one, field, field.
name());
191 return this->source(rho, field, field.
name());
211 const word& fieldName
#define forAll(list, i)
Loop across all elements in list.
tmp< GeometricField< Type, fvPatchField, volMesh > > d2dt2(const GeometricField< Type, fvPatchField, volMesh > &vf)
const word & name() const
Return name.
const word & name() const
Return const access to the source name.
T & ref() const
Return non-const reference or generate a fatal error.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Finite volume model abstract base class.
Generic GeometricField class.
const dimensionSet dimless
void insert(const word &, T *)
Add at head of dictionary.
const dimensionSet dimTime
Dimension set for the base types.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
A class for handling words, derived from string.
virtual bool addsSupToField(const word &fieldName) const
Return true if the fvModel adds a source term to the given.
tmp< fvMatrix< Type > > d2dt2(const GeometricField< Type, fvPatchField, volMesh > &field) const
Return source for an equation with a second time derivative.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimVolume
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects...