52 Foam::Lagrangian::SchillerNaumannDrag::calcD
54 const LagrangianModelRef& model,
55 const LagrangianSubMesh& subMesh
58 const clouds::spherical& sCloud = cloud<clouds::spherical>();
59 const clouds::sphericalCoupled& scCloud = cloud<clouds::sphericalCoupled>();
66 clouds::coupledToIncompressibleFluid,
67 clouds::coupledToFluid
70 tmp<LagrangianSubScalarField> tmucByRhoOrMuc =
71 isCloud<clouds::coupledToIncompressibleFluid>()
73 cloud<clouds::coupledToIncompressibleFluid>().nuc(model, subMesh)
74 /cloud<clouds::coupledToIncompressibleFluid>().rhoByRhoc
76 : tmp<LagrangianSubScalarField>
78 cloud<clouds::coupledToFluid>().muc(model, subMesh)
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,.
Class containing Lagrangian geometry and topology.
Base class for Lagrangian models.
static tmp< LagrangianSubScalarField > CdRe(const LagrangianSubScalarField &Re)
Return the drag coefficient times Reynold's number, as a function.
SchillerNaumannDrag(const word &name, const LagrangianMesh &mesh, const dictionary &modelDict, const dictionary &stateDict)
Construct from components.
void assertCloud() const
Generate an error if the cloud is not one of the given types.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
addToRunTimeSelectionTable(LagrangianModel, constantCoefficientVirtualMass, dictionary)
defineTypeNameAndDebug(constantCoefficientVirtualMass, 0)
dimensionedScalar pos0(const dimensionedScalar &ds)
void pow(LagrangianPatchField< typename powProduct< Type, r >::type > &f, const LagrangianPatchField< Type > &f1)
dimensionedScalar neg(const dimensionedScalar &ds)
LagrangianSubSubField< scalar > LagrangianSubScalarSubField
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
LagrangianSubField< scalar > LagrangianSubScalarField
scalarField Re(const UList< complex > &cf)