41#ifndef Foam_ParticleForce_H
42#define Foam_ParticleForce_H
58template<
class CloudType>
105 const word& forceType,
106 const bool readCoeffs
132 const word& forceType
162 const typename CloudType::parcelType::trackingData&
td,
173 const typename CloudType::parcelType::trackingData&
td,
184 const typename CloudType::parcelType::trackingData&
td,
202#define makeParticleForceModel(CloudType) \
204 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
205 defineNamedTemplateTypeNameAndDebug \
206 (Foam::ParticleForce<kinematicCloudType>, 0); \
210 defineTemplateRunTimeSelectionTable \
212 ParticleForce<kinematicCloudType>, \
218#define makeParticleForceModelType(SS, CloudType) \
220 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
221 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \
223 Foam::ParticleForce<kinematicCloudType>:: \
224 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \
225 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
const fvMesh & mesh() const noexcept
Return the mesh database.
VectorSpace< Vector< vector >, vector, 2 > returnType
Convenience typedef for return type.
virtual autoPtr< ParticleForce< CloudType > > clone() const
Construct and return a clone.
virtual forceSuSp calcNonCoupled(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
Calculate the non-coupled force.
CloudType & owner() noexcept
Return reference to the cloud owner.
virtual void cacheFields(const bool store)
Cache fields.
static autoPtr< ParticleForce< CloudType > > New(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType)
Selector.
declareRunTimeSelectionTable(autoPtr, ParticleForce, dictionary,(CloudType &owner, const fvMesh &mesh, const dictionary &dict),(owner, mesh, dict))
Declare runtime constructor selection table.
virtual ~ParticleForce()
Destructor.
const CloudType & owner() const noexcept
Return const access to the cloud owner.
virtual scalar massAdd(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
Return the added mass.
ParticleForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType, const bool readCoeffs)
Construct from mesh.
TypeName("particleForce")
Runtime type information.
virtual forceSuSp calcCoupled(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
Calculate the coupled force.
const dictionary & coeffs() const noexcept
Return the force coefficients dictionary.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Helper container for force Su and Sp terms.
Mesh data needed to do the Finite Volume discretisation.
A class for handling words, derived from Foam::string.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
DSMCCloud< dsmcParcel > CloudType
scalarField Re(const UList< complex > &cmplx)
Extract real component.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.