37 #ifndef ParticleForce_H
38 #define ParticleForce_H
53 template<
class CloudType>
100 const word& forceType,
101 const bool readCoeffs
127 const word& forceType
157 const typename CloudType::parcelType::trackingData& td,
168 const typename CloudType::parcelType::trackingData& td,
179 const typename CloudType::parcelType::trackingData& td,
199 #define makeParticleForceModel(CloudType) \
201 typedef Foam::CloudType::momentumCloudType momentumCloudType; \
202 defineNamedTemplateTypeNameAndDebug \
203 (Foam::ParticleForce<momentumCloudType>, 0); \
207 defineTemplateRunTimeSelectionTable \
209 ParticleForce<momentumCloudType>, \
215 #define makeParticleForceModelType(SS, CloudType) \
217 typedef Foam::CloudType::momentumCloudType momentumCloudType; \
218 defineNamedTemplateTypeNameAndDebug(Foam::SS<momentumCloudType>, 0); \
220 Foam::ParticleForce<momentumCloudType>:: \
221 adddictionaryConstructorToTable<Foam::SS<momentumCloudType>> \
222 add##SS##CloudType##momentumCloudType##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 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.
ParticleForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType, const bool readCoeffs)
Construct from mesh.
virtual autoPtr< ParticleForce< CloudType > > clone() const
Construct and return a clone.
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.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Helper container for force Su and Sp terms.
Mesh data needed to do the Finite Volume discretisation.
A class for handling words, derived from string.
Vector< scalar > vector
A scalar version of the templated Vector.
scalarField Re(const UList< complex > &cf)