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_; 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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static autoPtr< ParticleForce< CloudType > > New(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType)
Selector.
virtual scalar massAdd(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
Return the added mass.
const fvMesh & mesh() const
Return the mesh database.
Abstract base class for particle forces.
Vector< scalar > vector
A scalar version of the templated Vector.
const CloudType & owner() const
Return const access to the cloud owner.
Helper container for force Su and Sp terms.
VectorSpace< Vector< vector >, vector, 2 > returnType
Convenience typedef for return type.
A class for handling words, derived from string.
virtual void cacheFields(const bool store)
Cache fields.
const dictionary & coeffs() const
Return the force coefficients dictionary.
ParticleForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType, const bool readCoeffs)
Construct from mesh.
TypeName("particleForce")
Runtime type information.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
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.
virtual ~ParticleForce()
Destructor.
Mesh data needed to do the Finite Volume discretisation.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
declareRunTimeSelectionTable(autoPtr, ParticleForce, dictionary,(CloudType &owner, const fvMesh &mesh, const dictionary &dict),(owner, mesh, dict))
Declare runtime constructor selection table.
Templated base class for dsmc cloud.
scalarField Re(const UList< complex > &cf)
virtual autoPtr< ParticleForce< CloudType > > clone() const
Construct and return a clone.