Helper class when generating particle tracks. The interface is fairly rudimentary. More...
#include <particleTracksSampler.H>

Public Member Functions | |
| const globalIndex & | parcelAddr () const noexcept |
| The original parcel addressing. | |
| label | nParticle () const |
| Total number of particles. | |
| label | nTracks () const noexcept |
| Number of tracks to generate. | |
| void | reset (const labelUList &origParcelCounts) |
| Define the orig parcel mappings. | |
| label | setSampleRate (const label sampleFreq, const label maxPositions, const label maxTracks=-1) |
| Set the sampling stride, upper limits. | |
| void | resetCloud (const label localCloudSize) |
| template<class Type> | |
| void | gatherInplace (List< Type > &fld) const |
| template<class Type> | |
| void | createTrackField (const UList< Type > &values, List< DynamicList< Type > > &trackValues) const |
| template<class Type> | |
| label | setTrackFields (const objectRegistry &obr, HashTable< List< DynamicList< Type > > > &fieldTable) const |
Public Attributes | |
| labelField | origParcelIds_ |
| The originating parcel ids. | |
| labelField | origProcIds_ |
| The originating processor ids. | |
Helper class when generating particle tracks. The interface is fairly rudimentary.
Definition at line 54 of file particleTracksSampler.H.
|
inlinenoexcept |
The original parcel addressing.
Definition at line 109 of file particleTracksSampler.H.
References Foam::noexcept.
|
inline |
Total number of particles.
Definition at line 117 of file particleTracksSampler.H.
|
inlinenoexcept |
Number of tracks to generate.
Definition at line 125 of file particleTracksSampler.H.
References Foam::noexcept.
|
inline |
Define the orig parcel mappings.
Definition at line 133 of file particleTracksSampler.H.
References origParcelIds_, and origProcIds_.
|
inline |
Set the sampling stride, upper limits.
Definition at line 146 of file particleTracksSampler.H.
References Foam::max(), maxPositions(), maxTracks(), and Foam::min().

|
inline |
Definition at line 167 of file particleTracksSampler.H.
References origParcelIds_, and origProcIds_.
|
inline |
Definition at line 175 of file particleTracksSampler.H.
References fld().

| void createTrackField | ( | const UList< Type > & | values, |
| List< DynamicList< Type > > & | trackValues ) const |
| label setTrackFields | ( | const objectRegistry & | obr, |
| HashTable< List< DynamicList< Type > > > & | fieldTable ) const |
| labelField origParcelIds_ |
The originating parcel ids.
Definition at line 96 of file particleTracksSampler.H.
Referenced by reset(), and resetCloud().
| labelField origProcIds_ |
The originating processor ids.
Definition at line 101 of file particleTracksSampler.H.
Referenced by reset(), and resetCloud().