42 #ifndef ParticleForce_H 43 #define ParticleForce_H 59 template<
class CloudType>
106 const word& forceType,
107 const bool readCoeffs
133 const word& forceType
163 const typename CloudType::parcelType::trackingData& td,
174 const typename CloudType::parcelType::trackingData& td,
185 const typename CloudType::parcelType::trackingData& td,
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_; 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 a number of values (eg...
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.
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 Foam::string.
scalarField Re(const UList< complex > &cf)
Extract real component.
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.
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.
virtual autoPtr< ParticleForce< CloudType > > clone() const
Construct and return a clone.