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>
64 factor_(this->coeffs().template lookup<scalar>(
"factor"))
68 template<
class CloudType>
75 model_(df.model_, false),
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);
Templated base class for dsmc cloud.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Abstract base class for particle forces.
Particle force model scaled by a constant value.
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.
ScaledForce(CloudType &owner, const fvMesh &mesh, const dictionary &dict)
Construct from mesh.
virtual scalar massAdd(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
Return the added mass.
virtual ~ScaledForce()
Destructor.
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....
Helper container for force Su and Sp terms.
Mesh data needed to do the Finite Volume discretisation.
A class for handling words, derived from string.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
scalarField Re(const UList< complex > &cf)