Helper class when generating particle tracks. The interface is fairly rudimentary. More...
Public Member Functions | |
const globalIndex & | parcelAddr () const noexcept |
The original parcel addressing. More... | |
label | nParticle () const |
Total number of particles. More... | |
label | nTracks () const noexcept |
Number of tracks to generate. More... | |
void | reset (const labelUList &origParcelCounts) |
Define the orig parcel mappings. More... | |
label | setSampleRate (const label sampleFreq, const label maxPositions, const label maxTracks=-1) |
Set the sampling stride, upper limits. More... | |
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. More... | |
labelField | origProcIds_ |
The originating processor ids. More... | |
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.
|
inline |
Total number of particles.
Definition at line 117 of file particleTracksSampler.H.
References globalIndex::totalSize().
|
inlinenoexcept |
Number of tracks to generate.
Definition at line 125 of file particleTracksSampler.H.
|
inline |
Define the orig parcel mappings.
Definition at line 133 of file particleTracksSampler.H.
References List< T >::clear(), particleTracksSampler::origParcelIds_, particleTracksSampler::origProcIds_, and globalIndex::reset().
|
inline |
Set the sampling stride, upper limits.
Definition at line 147 of file particleTracksSampler.H.
References Foam::max(), maxPositions(), maxTracks(), Foam::min(), and globalIndex::totalSize().
|
inline |
Definition at line 167 of file particleTracksSampler.H.
References particleTracksSampler::origParcelIds_, particleTracksSampler::origProcIds_, globalIndex::reset(), and List< T >::resize_nocopy().
|
inline |
Definition at line 175 of file particleTracksSampler.H.
References fld, and globalIndex::gatherInplace().
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 particleTracksSampler::reset(), and particleTracksSampler::resetCloud().
labelField origProcIds_ |
The originating processor ids.
Definition at line 101 of file particleTracksSampler.H.
Referenced by particleTracksSampler::reset(), and particleTracksSampler::resetCloud().