32 template<
class CloudType>
38 const word& forceType,
46 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,
word dictName() const
The local dictionary name (final part of scoped name)
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 a number of values (eg...
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)
Helper container for force Su and Sp terms.
A class for handling words, derived from Foam::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.
scalarField Re(const UList< complex > &cmplx)
Extract real component.
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.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
static constexpr const zero Zero
Global zero (0)