42#ifndef ParticleForce_H
43#define ParticleForce_H
59template<
class CloudType>
106 const word& forceType,
107 const bool readCoeffs
133 const word& forceType
205#define makeParticleForceModel(CloudType) \
207 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
208 defineNamedTemplateTypeNameAndDebug \
209 (Foam::ParticleForce<kinematicCloudType>, 0); \
213 defineTemplateRunTimeSelectionTable \
215 ParticleForce<kinematicCloudType>, \
221#define makeParticleForceModelType(SS, CloudType) \
223 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \
224 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \
226 Foam::ParticleForce<kinematicCloudType>:: \
227 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \
228 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Abstract base class for particle forces.
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.
const dictionary & coeffs() const
Return the force coefficients dictionary.
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.
virtual scalar massAdd(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
Return the added mass.
const CloudType & owner() const
Return const access to the cloud owner.
const fvMesh & mesh() const
Return the mesh database.
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.
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,...
Class used to pass data into container.
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.
scalarField Re(const UList< complex > &cf)
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.