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