71 const word& fieldName,
72 const word& eqnFieldName
76 fieldName ==
cloud().
U.name()
77 && eqnFieldName ==
cloud().
U.name();
88 if (isCloud<clouds::coupledToConstantDensityFluid>())
95 eqn.
Su += g*(1 - 1/rhoByRhoc);
112 if (isCloud<clouds::coupledToConstantDensityFluid>())
119 eqn.
Su += vOrM*g*(1 - 1/rhoByRhoc);
121 else if (isCloud<clouds::coupledToFluid>() && isCloud<clouds::massive>())
130 eqn.
Su += vOrM*g*(1 - rhoc/
rho);
132 else if (isCloud<clouds::coupledToFluid>() && !isCloud<clouds::massive>())
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This class stores the coefficients of a Lagrangian equation, and facilitates solving that equation an...
LagrangianCoeff< Type, false > Su
Explicit coefficient.
Class containing Lagrangian geometry and topology.
Base class for Lagrangian models.
virtual wordList addSupFields() const
Return the name of the velocity field.
virtual bool addsSupToField(const word &fieldName, const word &eqnFieldName) const
Return true for the velocity field.
virtual void addSup(const LagrangianSubScalarField &deltaT, const LagrangianSubVectorSubField &U, LagrangianEqn< vector > &eqn) const
Add a source term to the velocity equation.
gravity(const word &name, const LagrangianMesh &mesh, const dictionary &modelDict, const dictionary &stateDict)
Construct from components.
Mix-in for Lagrangian models that refer to a cloud.
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
CloudStateField< vector > U
Velocity.
Base class for clouds which are coupled to a constant density fluid.
const dimensionedScalar rhoByRhoc
Cloud/carrier density ratio.
Base class for clouds which are coupled to a variable density fluid.
const CarrierField< scalar > & rhoc
Carrier density.
Base class for clouds with particles with mass.
CloudStateFieldRef< scalar > rho
Density.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
defineTypeNameAndDebug(collisionPhaseTransfer, 0)
addToRunTimeSelectionTable(LagrangianModel, collisionPhaseTransfer, dictionary)
List< word > wordList
A List of words.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
const UniformDimensionedField< Type > & lookupUniformDimensionedField(const objectRegistry &db, const word &name)