33 template<
class CloudType>
36 if (cloudPtr_.valid())
57 template<
class CloudType>
68 resetOnWrite_(this->coeffDict().lookup(
"resetOnWrite")),
74 template<
class CloudType>
81 trackInterval_(ppm.trackInterval_),
82 maxSamples_(ppm.maxSamples_),
83 resetOnWrite_(ppm.resetOnWrite_),
84 faceHitCounter_(ppm.faceHitCounter_),
85 cloudPtr_(ppm.cloudPtr_)
91 template<
class CloudType>
98 template<
class CloudType>
101 if (!cloudPtr_.valid())
105 this->owner().cloneBare(this->owner().
name() +
"Tracks").ptr()
111 template<
class CloudType>
117 || this->owner().
solution().
transient()
120 if (!cloudPtr_.valid())
126 hitTableType::iterator iter =
127 faceHitCounter_.find(
labelPair(p.origProc(), p.origId()));
130 if (iter != faceHitCounter_.end())
138 faceHitCounter_.insert(
labelPair(p.origProc(), p.origId()), localI);
142 if ((localI % trackInterval_ == 0) && (nSamples < maxSamples_))
146 static_cast<parcelType*>(p.clone(this->owner().mesh()).ptr())
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Records particle state (all variables) on each call to postFace.
virtual void postFace(const parcelType &p, bool &keepParticle)
Post-face hook.
stressControl lookup("compactNormalStress") >> compactNormalStress
A class for handling words, derived from string.
virtual void preEvolve()
Pre-evolve hook.
Pair< label > labelPair
Label pair.
errorManip< error > abort(error &err)
label readLabel(Istream &is)
void write()
Write post-processing info.
word name(const complex &)
Return a string representation of a complex.
ParticleTracks(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
Selector class for relaxation factors, solver type and solution.
const label nSamples(readLabel(pdfDictionary.lookup("nSamples")))
virtual ~ParticleTracks()
Destructor.
Templated base class for dsmc cloud.
Templated cloud function object base class.
#define InfoInFunction
Report an information message using Foam::Info.