30 template<
class AlphaRhoFieldType,
class ... AlphaRhoFieldTypes>
34 const AlphaRhoFieldType& alphaRhoField,
35 const AlphaRhoFieldTypes& ... alphaRhoFields
38 return alphaRhoField.dimensions()*
sourceDims(ds, alphaRhoFields ...);
42 template<
class AlphaRhoFieldType,
class ... AlphaRhoFieldTypes>
45 const AlphaRhoFieldType& alphaRhoField,
46 const AlphaRhoFieldTypes& ... alphaRhoFields
49 return fieldName(alphaRhoFields ...);
53 template<
class AlphaRhoFieldType>
56 const AlphaRhoFieldType& alphaRhoField
59 return alphaRhoField.name();
65 template<
class Type,
class ... AlphaRhoFieldTypes>
70 const AlphaRhoFieldTypes& ... alphaRhoFields
78 sourceDims(ds, alphaRhoFields ...)
83 if (addsSupToField(fieldName(alphaRhoFields ...)))
85 addSup(alphaRhoFields ..., mtx);
181 return this->source(field);
193 return this->source(
alpha, field);
205 return this->source(
rho, field);
Generic GeometricField class.
Dimension set for the base types.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
tmp< fvMatrix< Type > > sourceTerm(const VolField< Type > &eqnField, const dimensionSet &ds, const AlphaRhoFieldTypes &... alphaRhoFields) const
Return a source for an equation.
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
Return source for an equation.
static dimensionSet sourceDims(const dimensionSet &ds, const AlphaRhoFieldType &alphaRhoField, const AlphaRhoFieldTypes &... alphaRhoFields)
Return the dimensions of the matrix of a source term.
tmp< fvMatrix< Type > > sourceProxy(const VolField< Type > &eqnField) const
Add a source term to an equation.
static const word & fieldName()
Return the name of the field associated with a source term. Special.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
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))
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimTime
const dimensionSet dimVolume