36template<
class CloudType>
57template<
class CloudType>
66 trackInterval_(this->coeffDict().getLabel(
"trackInterval")),
67 maxSamples_(this->coeffDict().getLabel(
"maxSamples")),
68 resetOnWrite_(this->coeffDict().getBool(
"resetOnWrite")),
74template<
class CloudType>
81 trackInterval_(ppm.trackInterval_),
82 maxSamples_(ppm.maxSamples_),
83 resetOnWrite_(ppm.resetOnWrite_),
84 faceHitCounter_(ppm.faceHitCounter_),
85 cloudPtr_(ppm.cloudPtr_)
91template<
class CloudType>
101 this->owner().cloneBare(this->owner().
name() +
"Tracks").ptr()
107template<
class CloudType>
113 || this->owner().
solution().transient()
123 ++(faceHitCounter_(
labelPair(
p.origProc(),
p.origId()), 0));
125 const label
nSamples = floor(count/trackInterval_);
127 if ((count % trackInterval_) == 0 &&
nSamples < maxSamples_)
131 static_cast<parcelType*
>(
p.
clone(this->owner().mesh()).ptr())
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.
void write()
Write post-processing info.
virtual void preEvolve(const typename parcelType::trackingData &td)
Pre-evolve hook.
virtual void postFace(const parcelType &p, bool &keepParticle)
Post-face hook.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Class used to pass data into container.
Selector class for relaxation factors, solver type and solution.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define DebugInFunction
Report an information message using Foam::Info.
Pair< label > labelPair
A pair of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
static Ostream & output(Ostream &os, const IntRange< T > &range)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const label nSamples(pdfDictionary.get< label >("nSamples"))