33 template<
class>
class PrimitiveField,
34 class ... AlphaRhoFieldTypes
40 const AlphaRhoFieldTypes& ... alphaRhoFields
65 addSupFields_[i].insert(fieldName);
78 class FieldSourceType,
79 class ... ModelAndFieldSourceTypes
81 struct Foam::LagrangianModels::modelTypeFieldSourceType
85 ModelAndFieldSourceTypes ...
90 if (isA<ModelType>(model))
92 result.
insert(model.
name(), FieldSourceType::typeName);
107 struct Foam::LagrangianModels::modelTypeFieldSourceType<>
116 template<
class Type,
template<
class>
class PrimitiveField>
126 template<
class ... ModelAndFieldSourceTypes>
146 template<
class Type,
template<
class>
class PrimitiveField>
153 return sourceTerm(field, deltaT, field);
160 template<
class>
class PrimitiveField,
161 template<
class>
class PrimitiveEqnField
170 return sourceTerm(eqnField, deltaT, field);
174 template<
class Type,
template<
class>
class PrimitiveField>
182 return sourceTerm(field, deltaT, m, field);
189 template<
class>
class PrimitiveField,
190 template<
class>
class PrimitiveEqnField
200 return sourceTerm(eqnField, deltaT, m, field);
#define forAll(list, i)
Loop across all elements in list.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An STL-conforming hash table.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
This class stores the coefficients of a Lagrangian equation, and facilitates solving that equation an...
Base class for Lagrangian models.
virtual void addSup(const LagrangianSubScalarField &deltaT, LagrangianSubScalarField &S) const
Add a fractional source term.
virtual bool addsSupToField(const word &) const
Return true if the LagrangianModel adds a source term to the.
static word fieldsName(const AlphaRhoFieldType &alphaRhoField, const AlphaRhoFieldTypes &... alphaRhoFields)
Return the name of the product of the fields associated with a.
static word fieldName(const AlphaRhoFieldType &alphaRhoField, const AlphaRhoFieldTypes &... alphaRhoFields)
Return the name of the field associated with a source term.
const word & name() const
The source name.
tmp< LagrangianSubScalarField > source(const LagrangianSubScalarField &deltaT) const
Return the fractional source.
bool addsSupToField(const word &) const
Return true if the LagrangianModels adds a source term to the.
HashTable< word > modelTypeFieldSourceTypes() const
Return a table of field source types that are chosen to match given.
tmp< LagrangianEqn< Type > > sourceProxy(const LagrangianSubScalarField &deltaT, const LagrangianSubField< Type, PrimitiveField > &field, const LagrangianSubField< Type, PrimitiveEqnField > &eqnField) const
Return source for an equation.
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.
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
tmp< DimensionedField< Type, GeoMesh, SubField > > toSubField(const DimensionedField< Type, GeoMesh, Field > &)
Return a temporary sub-field from a reference to a field.
static void insert(const LagrangianModel &model, HashTable< word > &result)
static void insert(const LagrangianModel &model, HashTable< word > &result)