41 #ifndef Foam_ParticleForce_H 42 #define Foam_ParticleForce_H 58 template<
class CloudType>
105 const word& forceType,
106 const bool readCoeffs
132 const word& forceType
162 const typename CloudType::parcelType::trackingData&
td,
173 const typename CloudType::parcelType::trackingData&
td,
184 const typename CloudType::parcelType::trackingData&
td,
202 #define makeParticleForceModel(CloudType) \ 204 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 205 defineNamedTemplateTypeNameAndDebug \ 206 (Foam::ParticleForce<kinematicCloudType>, 0); \ 210 defineTemplateRunTimeSelectionTable \ 212 ParticleForce<kinematicCloudType>, \ 218 #define makeParticleForceModelType(SS, CloudType) \ 220 typedef Foam::CloudType::kinematicCloudType kinematicCloudType; \ 221 defineNamedTemplateTypeNameAndDebug(Foam::SS<kinematicCloudType>, 0); \ 223 Foam::ParticleForce<kinematicCloudType>:: \ 224 adddictionaryConstructorToTable<Foam::SS<kinematicCloudType>> \ 225 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.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
Abstract base class for particle forces.
Helper container for force Su and Sp terms.
const fvMesh & mesh() const noexcept
Return the mesh database.
VectorSpace< Vector< vector >, vector, 2 > returnType
Convenience typedef for return type.
A class for handling words, derived from Foam::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.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
scalarField Re(const UList< complex > &cmplx)
Extract real component.
const CloudType & owner() const noexcept
Return const access to the cloud owner.
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.
const dictionary & coeffs() const noexcept
Return the force coefficients dictionary.
Templated base class for dsmc cloud.
virtual autoPtr< ParticleForce< CloudType > > clone() const
Construct and return a clone.