34 template<
class CloudType>
45 this->coeffDict().template getOrDefault<
word>(
"alpha",
"alpha")
48 gradAlphaPtr_(nullptr),
49 threshold_(this->coeffDict().getScalar(
"threshold"))
53 template<
class CloudType>
60 alphaName_(pt.alphaName_),
61 alphaPtr_(pt.alphaPtr_),
62 gradAlphaPtr_(nullptr),
63 threshold_(pt.threshold_)
69 template<
class CloudType>
72 const typename parcelType::trackingData&
td 75 if (alphaPtr_ ==
nullptr)
95 template<
class CloudType>
98 const typename parcelType::trackingData&
td 101 gradAlphaPtr_.clear();
105 template<
class CloudType>
111 const typename parcelType::trackingData&
td 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;
ParticleTrap(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual void preEvolve(const typename parcelType::trackingData &td)
Pre-evolve hook.
Calculate the gradient of the given field.
A class for handling words, derived from Foam::string.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
virtual bool postMove(parcelType &p, const scalar dt, const point &position0, const typename parcelType::trackingData &td)
Post-move hook.
Mesh data needed to do the Finite Volume discretisation.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Templated base class for dsmc cloud.
Traps particles within a given phase fraction for multi-phase cases.
Templated cloud function object base class.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)