68 mutable bool hasCarrierEqns_;
74 #define DECLARE_CARRIER_EQNS(Type, nullArg) \
75 mutable HashPtrTable<CarrierEqn<Type>> \
76 CAT3(carrier, CAPITALIZE(Type), Eqns_);
78 #undef DECLARE_CARRIER_EQNS
81 mutable autoPtr<volVectorField> dUdtcPtr_;
87 tmp<volScalarField> getNucVf()
const;
90 virtual tmp<LagrangianSubScalarField> calcNuc
92 const LagrangianModelRef& model,
93 const LagrangianSubMesh& subMesh
98 HashPtrTable<CarrierEqn<Type>>& carrierEqns()
const;
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...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
An STL-conforming hash table.
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
Base class for clouds which are carried by a fluid.
Base class for clouds which are coupled to a carrier.
bool hasCarrierEqns() const
Return if any carrier equations are cached.
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.
coupled(const cloud &c, const carried &)
Construct from a reference to the cloud.
TypeName("coupled")
Run-time type information.
bool initPsicDdt(const LagrangianSubScalarSubField &vOrM, const CloudDerivedField< Type > &psic) const
Do we need to re-calculate particles that are modified?
void clearCarrierEqns()
Clear the carrier equations.
const CloudDerivedField< scalar > & nuc
Carrier kinematic viscosity.
void updateCarrier()
Update the cached carrier fields.
virtual ~coupled()
Destructor.
A class for managing temporary objects.
A class for handling words, derived from string.
#define DECLARE_CARRIER_EQNS(Type, nullArg)
Carrier equations.
const volScalarField & psi
const dimensionedScalar c
Speed of light in a vacuum.