30 template<
class CloudType>
44 template<
class CloudType>
53 trackInterval_(this->coeffDict().template lookup<
label>(
"trackInterval")),
54 maxSamples_(this->coeffDict().template lookup<
label>(
"maxSamples")),
55 resetOnWrite_(this->coeffDict().lookup(
"resetOnWrite")),
61 template<
class CloudType>
68 trackInterval_(ppm.trackInterval_),
69 maxSamples_(ppm.maxSamples_),
70 resetOnWrite_(ppm.resetOnWrite_),
71 faceHitCounter_(ppm.faceHitCounter_),
72 cloudPtr_(ppm.cloudPtr_)
78 template<
class CloudType>
85 template<
class CloudType>
88 if (!cloudPtr_.valid())
92 this->owner().cloneBare(this->owner().
name() +
"Tracks").ptr()
98 template<
class CloudType>
104 && !this->owner().
solution().
transient()
112 hitCountTable::iterator iter = faceHitCounter_.find(
id);
115 if (iter != faceHitCounter_.end())
122 faceHitCounter_.insert(
id, 1);
128 if ((hitCount % trackInterval_ == 0) && (
nSamples < maxSamples_))
132 static_cast<parcelType*
>(
p.
clone().ptr())
138 template<
class CloudType>
Templated cloud function object base class.
Templated base class for dsmc cloud.
tmp< GeometricField< Type, PatchField, GeoMesh > > clone() const
Clone.
Records particle state (all variables) on each call to postFace.
virtual void postPatch(const parcelType &p, const polyPatch &pp)
Post-patch hook.
ParticleTracks(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
virtual void preFace(const parcelType &p)
Post-face hook.
virtual ~ParticleTracks()
Destructor.
void write()
Write post-processing info.
virtual void preEvolve()
Pre-evolve hook.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A patch is a list of labels that address the faces in the global face list.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
Selector class for relaxation factors, solver type and solution.
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.
word name(const bool)
Return a word representation of a bool.
const label nSamples(pdfDictionary.lookup< label >("nSamples"))