31 template<
class CloudType>
34 const dictionary& dict
37 dictionary modelDict(dict);
38 modelDict.add<word>(
"type", dict.lookup<word>(
"forceType"),
true);
45 template<
class CloudType>
61 dict.lookup<
word>(
"forceType")
64 factor_(this->coeffs().template lookup<scalar>(
"factor"))
68 template<
class CloudType>
82 template<
class CloudType>
89 template<
class CloudType>
93 const typename CloudType::parcelType::trackingData& td,
100 return factor_*model_->calcCoupled(p, td, dt, mass, Re, muc);
104 template<
class CloudType>
108 const typename CloudType::parcelType::trackingData& td,
115 return factor_*model_->calcCoupled(p, td, dt, mass, Re, muc);
119 template<
class CloudType>
123 const typename CloudType::parcelType::trackingData& td,
127 return factor_*model_->massAdd(p, td, mass);
virtual ~ScaledForce()
Destructor.
Particle force model scaled by a constant value.
virtual scalar massAdd(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
Return the added mass.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Abstract base class for particle forces.
ScaledForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict)
Construct from mesh.
Helper container for force Su and Sp terms.
A class for handling words, derived from string.
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.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Mesh data needed to do the Finite Volume discretisation.
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.
Templated base class for dsmc cloud.