31 template<
class CloudType>
42 this->coeffDict().template lookupOrDefault<word>(
"alphaName",
"alpha")
50 template<
class CloudType>
57 alphaName_(pt.alphaName_),
58 alphaPtr_(pt.alphaPtr_),
60 threshold_(pt.threshold_)
66 template<
class CloudType>
73 template<
class CloudType>
76 if (alphaPtr_ == NULL)
85 if (gradAlphaPtr_.valid())
96 template<
class CloudType>
99 gradAlphaPtr_.clear();
103 template<
class CloudType>
113 if (alphaPtr_->internalField()[cellI] < threshold_)
115 const vector& gradAlpha = gradAlphaPtr_()[cellI];
117 scalar nHatU = nHat & p.U();
121 p.U() -= 2*nHat*nHatU;
ParticleTrap(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
Mesh data needed to do the Finite Volume discretisation.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual void postMove(typename CloudType::parcelType &p, const label cellI, const scalar dt, const point &position0, bool &keepParticle)
Post-move hook.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void preEvolve()
Pre-evolve hook.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Calculate the gradient of the given field.
stressControl lookup("compactNormalStress") >> compactNormalStress
Traps particles within a given phase fraction for multi-phase cases.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
virtual void postEvolve()
Post-evolve hook.
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual ~ParticleTrap()
Destructor.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Templated base class for dsmc cloud.
Templated cloud function object base class.