34template<
class CloudType>
45 this->coeffDict().template getOrDefault<
word>(
"alpha",
"alpha")
48 gradAlphaPtr_(nullptr),
49 threshold_(this->coeffDict().getScalar(
"threshold"))
53template<
class CloudType>
60 alphaName_(pt.alphaName_),
61 alphaPtr_(pt.alphaPtr_),
62 gradAlphaPtr_(nullptr),
63 threshold_(pt.threshold_)
69template<
class CloudType>
75 if (alphaPtr_ ==
nullptr)
95template<
class CloudType>
101 gradAlphaPtr_.clear();
105template<
class CloudType>
114 if (alphaPtr_->primitiveField()[
p.cell()] < threshold_)
116 const vector& gradAlpha = gradAlphaPtr_()[
p.cell()];
118 scalar nHatU = nHat &
p.U();
122 p.U() -= 2*nHat*nHatU;
Templated cloud function object base class.
Templated base class for dsmc cloud.
virtual void postEvolve()
Post-evolve hook.
Traps particles within a given phase fraction for multi-phase cases.
virtual void postMove(parcelType &p, const scalar dt, const point &position0, bool &keepParticle)
Post-move hook.
virtual void preEvolve(const typename parcelType::trackingData &td)
Pre-evolve hook.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Class used to pass data into container.
Mesh data needed to do the Finite Volume discretisation.
const Type & lookupObject(const word &name, const bool recursive=false) const
A class for handling words, derived from Foam::string.
Calculate the gradient of the given field.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)