38 hasCarrierEqns_ =
true;
43 carrierEqns<Type>().
find(key);
45 if (iter != carrierEqns<Type>().end())
return **iter;
49 carrierEqns<Type>().insert(key, ptr);
61 hasCarrierEqns_ =
true;
64 carrierEqns<Type>().
find(psic.psi().name());
66 if (iter != carrierEqns<Type>().end())
return **iter;
69 carrierEqns<Type>().insert(psic.psi().name(), ptr);
114 return carrierEqns<Type>().found(key);
122 return carrierEqns<Type>()[key];
128 Foam::clouds::coupled::carrierEqns(
const word& key)
const
154 return hasCarrierEqn<Type>(
psi.name());
162 return carrierEqn<Type>(
psi.name());
170 return carrierEqns<Type>(
psi.name());
Functions for calculating the time derivative for a Lagrangian equation.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Class to store the coefficients of a term in a carrier equation.
A field interpolated from the carrier to the cloud. Uses CloudDerivedField to provide flexible access...
A field derived from other state fields of the cloud. Stores and virtualises a function or a method w...
const word & name() const
Field name.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
const GeoMesh & mesh() const
Return mesh.
Generic GeometricField class.
A HashTable specialisation for hashing pointers.
An STL-conforming hash table.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
word group() const
Return group (extension part of name)
word member() const
Return member (name without the extension)
List of Lagrangian models, constructed as a (Lagrangian) mesh object. Provides similar functions to t...
tmp< LagrangianEqn< Type > > sourceProxy(const LagrangianSubScalarField &deltaT, const LagrangianSubField< Type, PrimitiveField > &field, const LagrangianSubField< Type, PrimitiveEqnField > &eqnField) const
Return source for an equation.
LagrangianModels(const LagrangianMesh &mesh)
Construct for a mesh.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
static word carrierNameToName(const word &namec)
Convert a disambiguated carrier name to its equivalent name. I.e.,.
const CarrierField< vector > & Uc
Carrier velocity.
bool hasCarrierEqn(const word &) const
Return if a carrier equation is in the cache.
CarrierEqn< Type > & carrierEqn(const CloudDerivedField< Type > &)
Add/get a carrier equation to/from the cache.
tmp< LagrangianEqn< scalar > > psicEqn(const LagrangianSubScalarField &deltaT, const LagrangianSubScalarSubField &vOrM, const CloudDerivedField< scalar > &oneOrRhoc) const
Return the basic models-only equation for a carrier field.
bool initPsicDdt(const LagrangianSubScalarSubField &vOrM, const CloudDerivedField< Type > &psic) const
Do we need to re-calculate particles that are modified?
A class for managing temporary objects.
A class for handling words, derived from string.
const volScalarField & psi
bool initDdt(const dimensionSet &mDims, const LagrangianSubSubField< Type > &psi, const bool instantaneousDdt=false)
Initialise time-derivative information. Registers fields used to.
tmp< LagrangianEqn< Type > > noDdt(const LagrangianSubScalarField &deltaT, const dimensionSet &mDims, const LagrangianSubSubField< Type > &psi)
Return the no-time-derivative matrix containing higher-order.