32 template<
class CloudType>
35 if (cloudPtr_.valid())
56 template<
class CloudType>
65 trackInterval_(this->coeffDict().template lookup<label>(
"trackInterval")),
66 maxSamples_(this->coeffDict().
template lookup<label>(
"maxSamples")),
67 resetOnWrite_(this->coeffDict().
lookup(
"resetOnWrite")),
73 template<
class CloudType>
80 trackInterval_(ppm.trackInterval_),
81 maxSamples_(ppm.maxSamples_),
82 resetOnWrite_(ppm.resetOnWrite_),
83 faceHitCounter_(ppm.faceHitCounter_),
84 cloudPtr_(ppm.cloudPtr_)
90 template<
class CloudType>
97 template<
class CloudType>
100 if (!cloudPtr_.valid())
104 this->owner().cloneBare(this->owner().
name() +
"Tracks").ptr()
110 template<
class CloudType>
116 || this->owner().
solution().
transient()
119 if (!cloudPtr_.valid())
125 hitTableType::iterator iter =
126 faceHitCounter_.find(
labelPair(p.origProc(), p.origId()));
129 if (iter != faceHitCounter_.end())
137 faceHitCounter_.insert(
labelPair(p.origProc(), p.origId()), localI);
141 if ((localI % trackInterval_ == 0) && (nSamples < maxSamples_))
145 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)
void write()
Write post-processing info.
word name(const complex &)
Return a string representation of a complex.
const label nSamples(pdfDictionary.lookup< label >("nSamples"))
ParticleTracks(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
Selector class for relaxation factors, solver type and solution.
virtual ~ParticleTracks()
Destructor.
Templated base class for dsmc cloud.
Templated cloud function object base class.
#define InfoInFunction
Report an information message using Foam::Info.