33 template<
class>
class PrimitiveField,
34 class ... AlphaRhoFieldTypes
40 const AlphaRhoFieldTypes& ... alphaRhoFields
66 addSupFields_[i].insert(fieldName);
79 class FieldSourceType,
80 class ... ModelAndFieldSourceTypes
82 struct Foam::LagrangianModels::modelTypeFieldSourceType
86 ModelAndFieldSourceTypes ...
91 if (isA<ModelType>(model))
108 struct Foam::LagrangianModels::modelTypeFieldSourceType<>
117 template<
class Type,
template<
class>
class PrimitiveField>
130 template<
class>
class PrimitiveField,
131 template<
class>
class PrimitiveEqnField
148 template<
class ... ModelAndFieldSourceTypes>
168 template<
class Type,
template<
class>
class PrimitiveField>
175 return sourceTerm(field, deltaT, field);
182 template<
class>
class PrimitiveField,
183 template<
class>
class PrimitiveEqnField
192 return sourceTerm(eqnField, deltaT, field);
196 template<
class Type,
template<
class>
class PrimitiveField>
204 return sourceTerm(field, deltaT, vOrM, field);
211 template<
class>
class PrimitiveField,
212 template<
class>
class PrimitiveEqnField
222 return sourceTerm(eqnField, deltaT, vOrM, 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, LagrangianEqn< scalar > &eqn) const
Add a fractional source term.
virtual bool addsSupToField(const word &fieldName, const word &eqnFieldName) const =0
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< LagrangianEqn< scalar > > source(const LagrangianSubScalarField &deltaT) const
Return the fractional source.
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.
bool addsSupToField(const word &fieldName) const
Return true if the LagrangianModels adds a source term to the.
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.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
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)