30 template<
class CloudType>
36 const word& forceType,
45 ?
dict.optionalSubDict(forceType +
"Coeffs")
49 if (readCoeffs && coeffs_.
isNull())
54 ) <<
"Force " << forceType <<
" must be specified as a dictionary"
60 template<
class CloudType>
71 template<
class CloudType>
78 template<
class CloudType>
83 template<
class CloudType>
87 const typename CloudType::parcelType::trackingData& td,
102 template<
class CloudType>
106 const typename CloudType::parcelType::trackingData& td,
121 template<
class CloudType>
125 const typename CloudType::parcelType::trackingData& td,
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Abstract base class for particle forces.
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.
virtual void cacheFields(const bool store)
Cache fields.
virtual ~ParticleForce()
Destructor.
virtual scalar massAdd(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
Return the added mass.
ParticleForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType, const bool readCoeffs)
Construct from mesh.
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.
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool isNull() const
Return whether this dictionary is null.
Helper container for force Su and Sp terms.
const vector & Su() const
Return const access to the explicit contribution [kg m/s^2].
scalar Sp() const
Return const access to the implicit coefficient [kg/s].
Mesh data needed to do the Finite Volume discretisation.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
scalarField Re(const UList< complex > &cf)