Go to the documentation of this file.
35 #ifndef ParticleTracks_H
36 #define ParticleTracks_H
49 template<
class CloudType>
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
virtual void preEvolve()
Pre-evolve hook.
A class for handling words, derived from string.
label trackInterval_
Number of face-hit intervals between storing parcel data.
void write()
Write post-processing info.
CloudType::parcelType parcelType
Convenience typedef for parcel type.
virtual autoPtr< CloudFunctionObject< CloudType > > clone() const
Construct and return a clone.
Records particle state (all variables) on each call to postFace.
const CloudType & owner() const
Return const access to the owner cloud.
label trackInterval() const
Return const access to the track interval.
const word & modelName() const
Return const access to the name of the sub-model.
ParticleTracks(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
TypeName("particleTracks")
Runtime type information.
autoPtr< Cloud< parcelType > > cloudPtr_
Pointer to the cloud storage.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dictionary & dict() const
Return const access to the cloud dictionary.
virtual ~ParticleTracks()
Destructor.
hitTableType faceHitCounter_
Table of number of times a particle has hit a face.
Templated base class for dsmc cloud.
Switch resetOnWrite_
Flag to indicate whether data should be reset/cleared on writing.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Cloud< parcelType > & cloud() const
Return const access to the cloud.
label maxSamples_
Maximum number of particles to store per track.
label maxSamples() const
Return const access to the max samples.
const hitTableType & faceHitCounter() const
Rerurn the table of number of times a particle has hit a face.
An STL-conforming hash table.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Templated cloud function object base class.
Base cloud calls templated on particle type.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
HashTable< label, labelPair, typename labelPair::Hash<> > hitTableType
Convenience typedef for hash hit-table.
const Switch & resetOnWrite() const
Return const access to the reset on write flag.
virtual void postFace(const parcelType &p, const label faceI, bool &keepParticle)
Post-face hook.