37 #ifndef ParticleForce_H 38 #define ParticleForce_H 53 template<
class CloudType>
100 const word& forceType,
101 const bool readCoeffs
127 const word& forceType
196 #define makeParticleForceModel(CloudType) \ 198 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 199 defineNamedTemplateTypeNameAndDebug \ 200 (Foam::ParticleForce<kinematicCloudType>, 0); \ 204 defineTemplateRunTimeSelectionTable \ 206 ParticleForce<kinematicCloudType>, \ 212 #define makeParticleForceModelType(SS, CloudType) \ 214 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 215 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \ 217 Foam::ParticleForce<kinematicCloudType>:: \ 218 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \ 219 add##SS##CloudType##kinematicCloudType##ConstructorToTable_;
virtual scalar massAdd(const typename CloudType::parcelType &p, const scalar mass) const
Return the added mass.
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 forceSuSp calcCoupled(const typename CloudType::parcelType &p, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
Calculate the coupled force.
Abstract base class for particle forces.
Vector< scalar > vector
A scalar version of the templated Vector.
const fvMesh & mesh() const
Return the mesh database.
Helper container for force Su and Sp terms.
virtual forceSuSp calcNonCoupled(const typename CloudType::parcelType &p, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
Calculate the non-coupled force.
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.
ParticleForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType, const bool readCoeffs)
Construct from mesh.
TypeName("particleForce")
Runtime type information.
virtual autoPtr< ParticleForce< CloudType > > clone() const
Construct and return a clone.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
virtual ~ParticleForce()
Destructor.
Mesh data needed to do the Finite Volume discretisation.
const CloudType & owner() const
Return const access to the cloud owner.
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.
const dictionary & coeffs() const
Return the force coefficients dictionary.
Templated base class for dsmc cloud.
scalarField Re(const UList< complex > &cf)