36 #ifndef streamLineParticle_H 37 #define streamLineParticle_H 51 class streamLineParticle;
52 class streamLineParticleCloud;
54 Ostream&
operator<<(Ostream&,
const streamLineParticle&);
102 const bool trackForward,
103 const label nSubCycle,
104 const scalar trackLength,
114 trackForward_(trackForward),
115 nSubCycle_(nSubCycle),
116 trackLength_(trackLength),
117 allPositions_(allPositions),
118 allScalars_(allScalars),
119 allVectors_(allVectors)
const scalar trackLength_
void hitProcessorPatch(streamLineParticleCloud &, trackingData &)
static void writeFields(const Cloud< streamLineParticle > &)
Write.
const polyMesh & mesh() const
Return the mesh database.
List< DynamicList< vectorList > > & allVectors_
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void hitWedgePatch(streamLineParticleCloud &, trackingData &)
Overridable function to handle the particle hitting a wedge.
Factory class to read-construct particles used for parallel transfer.
trackingData(streamLineParticleCloud &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, List< DynamicList< scalarList >> &allScalars, List< DynamicList< vectorList >> &allVectors)
Construct from components.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const PtrList< interpolation< vector > > & vvInterp_
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void hitCyclicACMIPatch(streamLineParticleCloud &, trackingData &, const vector &direction)
Overridable function to handle the particle hitting a.
bool hitPatch(streamLineParticleCloud &, trackingData &)
Overridable function to handle the particle hitting a patch.
List< DynamicList< scalarList > > & allScalars_
autoPtr< particle > clone() const
Construct and return a clone.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
void hitSymmetryPlanePatch(streamLineParticleCloud &, trackingData &)
Overridable function to handle the particle hitting a.
DynamicList< vectorList > & allPositions_
A cloud is a collection of lagrangian particles.
Particle class that samples fields as it passes through. Used in streamline calculation.
static void readFields(Cloud< streamLineParticle > &)
Read.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const PtrList< interpolation< scalar > > & vsInterp_
streamLineParticle(const polyMesh &c, const vector &position, const label celli, const label lifeTime)
Construct from components.
A Cloud of streamLine particles.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
const dimensionedScalar c
Speed of light in a vacuum.
Ostream & operator<<(Ostream &, const ensightPart &)
bool move(streamLineParticleCloud &, trackingData &, const scalar)
Track all particles to their end point.
friend Ostream & operator<<(Ostream &, const streamLineParticle &)
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 hitCyclicAMIPatch(streamLineParticleCloud &, trackingData &, const vector &direction)
Overridable function to handle the particle hitting a.
void hitWallPatch(streamLineParticleCloud &, trackingData &)
Overridable function to handle the particle hitting a wallPatch.
vector position() const
Return current particle position.
void hitSymmetryPatch(streamLineParticleCloud &, trackingData &)
Overridable function to handle the particle hitting a.
void hitCyclicPatch(streamLineParticleCloud &, trackingData &)
Overridable function to handle the particle hitting a cyclic.