TypeName("particleTrap")
Runtime type information.
virtual autoPtr< CloudFunctionObject< CloudType > > clone() const
Construct and return a clone.
Traps particles within a given phase fraction for multi-phase cases.
virtual void postEvolve()
Post-evolve hook.
autoPtr< volVectorField > gradAlphaPtr_
Gradient of the volume fraction field.
CloudType::parcelType parcelType
Convenience typedef for parcel type.
const volScalarField * alphaPtr_
Pointer to the volume fraction field.
virtual void postMove(typename CloudType::parcelType &p, const label cellI, const scalar dt, const point &position0, bool &keepParticle)
Post-move hook.
const word alphaName_
Name of vol fraction field.
scalar threshold_
Threshold beyond which model is active.
ParticleTrap(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.