30 template<
class CloudType>
36 const word& forceType,
42 coeffs_(readCoeffs ? dict : dictionary::null)
44 if (readCoeffs && (coeffs_.dictName() != forceType))
49 ) <<
"Force " << forceType <<
" must be specified as a dictionary" 55 template<
class CloudType>
66 template<
class CloudType>
73 template<
class CloudType>
78 template<
class CloudType>
82 const typename CloudType::parcelType::trackingData& td,
97 template<
class CloudType>
101 const typename CloudType::parcelType::trackingData& td,
116 template<
class CloudType>
120 const typename CloudType::parcelType::trackingData& td,
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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const vector & Su() const
Return const access to the explicit contribution [kg.m/s2].
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual scalar massAdd(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
Return the added mass.
Abstract base class for particle forces.
Helper container for force Su and Sp terms.
A class for handling words, derived from string.
virtual void cacheFields(const bool store)
Cache fields.
scalar Sp() const
Return const access to the implicit coefficient [kg/s].
ParticleForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType, const bool readCoeffs)
Construct from mesh.
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.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
virtual ~ParticleForce()
Destructor.
Mesh data needed to do the Finite Volume discretisation.
Templated base class for dsmc cloud.