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(
rho, field, field.
name());
121 const word& fieldName
146 const word& fieldName
161 return this->source(field, field.
name());
178 this->mesh_.time().name(),
200 return this->source(
rho, field, field.
name());
220 const word& fieldName
const dimensionSet & dimensions() const
Return dimensions.
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....
tmp< fvMatrix< Type > > d2dt2(const VolField< Type > &field) const
Return source for an equation with a second time derivative.
tmp< fvMatrix< Type > > source(const VolField< Type > &field, const word &fieldName, const dimensionSet &ds, const AlphaRhoFieldTypes &... alphaRhos) const
Return source for equation with specified name and dimensions.
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.
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)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimless
const dimensionSet dimTime
const dimensionSet dimVolume