28 template<
class Type,
class AlphaRhoFieldType,
class ... AlphaRhoFieldTypes>
33 const AlphaRhoFieldType& alphaRho,
34 const AlphaRhoFieldTypes& ... alphaRhos
37 return alphaRho.dimensions()*sourceDims(field, ds, alphaRhos ...);
54 template<
class Type,
class ... AlphaRhoFieldTypes>
58 const word& fieldName,
60 const AlphaRhoFieldTypes& ... alphaRhos
68 sourceDims(field, ds, alphaRhos ...)
73 if (addsSupToField(fieldName))
75 addSup(alphaRhos ..., mtx, fieldName);
90 return this->source(field, field.
name());
112 return this->source(field, field.
name());
121 const word& fieldName
136 return this->source(field, field.
name());
146 const word& fieldName
const word & name() const
Return name.
tmp< fvMatrix< Type > > source(const GeometricField< Type, fvPatchField, volMesh > &field, const word &fieldName, const dimensionSet &ds, const AlphaRhoFieldTypes &... alphaRhos) const
Return source for equation with specified name and dimensions.
T & ref() const
Return non-const reference or generate a fatal error.
static dimensionSet sourceDims(const GeometricField< Type, fvPatchField, volMesh > &field, const dimensionSet &ds, const AlphaRhoFieldType &alphaRho, const AlphaRhoFieldTypes &... alphaRhos)
Return the dimensions of the matrix of a source term.
Generic GeometricField class.
const dimensionSet dimTime
const dimensionSet & dimensions() const
Return dimensions.
Dimension set for the base types.
A class for handling words, derived from string.
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.
const dimensionSet dimVolume
A class for managing temporary objects.