36 #ifndef streamlinesParticle_H 37 #define streamlinesParticle_H 52 class streamlinesParticle;
53 class streamlinesCloud;
55 Ostream&
operator<<(Ostream&,
const streamlinesParticle&);
105 const bool trackForward,
106 const label nSubCycle,
107 const scalar trackLength,
118 trackForward_(trackForward),
119 nSubCycle_(nSubCycle),
120 trackLength_(trackLength),
121 allPositions_(allPositions),
123 allScalars_(allScalars),
124 allVectors_(allVectors)
void hitCyclicACMIPatch(const vector &, const scalar, streamlinesCloud &, trackingData &)
Overridable function to handle the particle hitting a.
void hitProcessorPatch(streamlinesCloud &, trackingData &)
const polyMesh & mesh() const
Return the mesh database.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool move(streamlinesCloud &, trackingData &, const scalar)
Track all particles to their end point.
void hitCyclicAMIPatch(const vector &, const scalar, streamlinesCloud &, trackingData &)
Overridable function to handle the particle hitting a.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void hitWallPatch(streamlinesCloud &, trackingData &)
Overridable function to handle the particle hitting a wallPatch.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
trackingData(streamlinesCloud &cloud, const PtrList< interpolation< scalar >> &vsInterp, const PtrList< interpolation< vector >> &vvInterp, const label UIndex, const bool trackForward, const label nSubCycle, const scalar trackLength, DynamicList< List< point >> &allPositions, DynamicList< List< scalar >> &allTimes, List< DynamicList< scalarList >> &allScalars, List< DynamicList< vectorList >> &allVectors)
Construct from components.
const dimensionedScalar c
Speed of light in a vacuum.
const scalar trackLength_
static void writeFields(const Cloud< streamlinesParticle > &)
Write.
DynamicList< vectorList > & allPositions_
List< DynamicList< scalarList > > & allScalars_
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
A cloud is a collection of lagrangian particles.
A Cloud of streamlines particles.
bool hitPatch(streamlinesCloud &, trackingData &)
Overridable function to handle the particle hitting a patch.
void hitWedgePatch(streamlinesCloud &, trackingData &)
Overridable function to handle the particle hitting a wedge.
Particle class that samples fields as it passes through. Used in streamlines calculation.
const PtrList< interpolation< scalar > > & vsInterp_
DynamicList< scalarList > & allTimes_
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void hitCyclicPatch(streamlinesCloud &, trackingData &)
Overridable function to handle the particle hitting a cyclic.
const PtrList< interpolation< vector > > & vvInterp_
void hitSymmetryPatch(streamlinesCloud &, trackingData &)
Overridable function to handle the particle hitting a.
Factory class to read-construct particles used for parallel transfer.
List< DynamicList< vectorList > > & allVectors_
autoPtr< particle > clone() const
Construct and return a clone.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void hitCyclicRepeatAMIPatch(const vector &, const scalar, streamlinesCloud &, trackingData &)
Overridable function to handle the particle hitting a.
Ostream & operator<<(Ostream &, const ensightPart &)
static void readFields(Cloud< streamlinesParticle > &)
Read.
friend Ostream & operator<<(Ostream &, const streamlinesParticle &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
void hitSymmetryPlanePatch(streamlinesCloud &, trackingData &)
Overridable function to handle the particle hitting a.
streamlinesParticle(const polyMesh &c, const vector &position, const label celli, const label lifeTime)
Construct from components.
vector position() const
Return current particle position.