53 Foam::Lagrangian::SaffmanMeiLift::calcL
55 const LagrangianModelRef& model,
56 const LagrangianSubMesh& subMesh
59 using namespace constant::mathematical;
61 const clouds::spherical& sCloud = cloud<clouds::spherical>();
62 const clouds::coupled& cCloud = cloud<clouds::coupled>();
63 const clouds::sphericalCoupled& scCloud = cloud<clouds::sphericalCoupled>();
74 isCloud<clouds::coupledToIncompressibleFluid>()
75 ? v/cloud<clouds::coupledToIncompressibleFluid>().rhoByRhoc
76 : v*cloud<clouds::coupledToFluid>().rhoc(model, subMesh)
92 -mcByMOrMc*3/(
twoPi*
sqrt(Rew + rootVSmall))*Cld*(*curlUc)
97 void Foam::Lagrangian::SaffmanMeiLift::addUSup
100 LagrangianEqn<vector>& eqn
112 else if (eqn.isPsi(Uc))
119 eqn.Su +=
L & (Uc -
U);
164 assertCloud<clouds::coupledToIncompressibleFluid>();
178 assertCloud<clouds::coupledToIncompressibleFluid, clouds::coupledToFluid>();
Functions for calculating sources in a Lagrangian equation.
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...
static tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Mesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
This class stores the coefficients of a Lagrangian equation, and facilitates solving that equation an...
Class containing Lagrangian geometry and topology.
Base class for Lagrangian models.
const LagrangianMesh & mesh() const
The mesh.
const word & name() const
The source name.
virtual wordList addSupFields() const
Return the name of the velocity field.
virtual void addSup(const LagrangianSubScalarField &deltaT, const LagrangianSubVectorSubField &U, LagrangianEqn< vector > &eqn) const
Add a source term to the velocity equation.
SaffmanMeiLift(const word &name, const LagrangianMesh &mesh, const dictionary &modelDict, const dictionary &stateDict)
Construct from components.
const CloudDerivedField< tensor > & L
Lift force.
Base class for Lagrangian models that refer to a cloud. Not a Lagrangian model in itself....
const Cloud & cloud() const
Get a reference to the cloud.
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
static dictionary stateDict(const word &name, const objectRegistry &db)
Construct and return the state dictionary for reading.
A class for managing temporary objects.
A class for handling words, derived from string.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
addToRunTimeSelectionTable(LagrangianModel, constantCoefficientVirtualMass, dictionary)
defineTypeNameAndDebug(constantCoefficientVirtualMass, 0)
tmp< LagrangianEqn< Type > > Sp(const LagrangianSubField< SpType > &Sp, const LagrangianSubSubField< Type > &psi)
const scalar twoPi(2 *pi)
dimensionedScalar pos(const dimensionedScalar &ds)
List< word > wordList
A List of words.
dimensionedScalar exp(const dimensionedScalar &ds)
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
LagrangianSubSubField< vector > LagrangianSubVectorSubField
dimensionedScalar neg(const dimensionedScalar &ds)
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
LagrangianSubSubField< scalar > LagrangianSubScalarSubField
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
LagrangianSubField< tensor > LagrangianSubTensorField
LagrangianSubField< scalar > LagrangianSubScalarField
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
LagrangianSubField< vector > LagrangianSubVectorField
scalarField Re(const UList< complex > &cf)