Go to the documentation of this file.
36 #ifndef wallBoundedStreamLineParticle_H
37 #define wallBoundedStreamLineParticle_H
50 class wallBoundedStreamLineParticleCloud;
68 Cloud<wallBoundedStreamLineParticle>
94 const bool trackForward,
95 const scalar trackLength,
164 const label tetFaceI,
219 bool move(trackingData&,
const scalar trackTime);
autoPtr< particle > clone() const
Construct and return a clone.
bool move(trackingData &, const scalar trackTime)
Track all particles to their end point.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
DynamicList< point > sampledPositions_
Sampled positions.
List< DynamicList< scalarList > > & allScalars_
Cloud< wallBoundedStreamLineParticle > & cloud()
Return a reference to the cloud.
iNew(const polyMesh &mesh)
trackingData(Cloud< wallBoundedStreamLineParticle > &cloud, const PtrList< interpolation< scalar > > &vsInterp, const PtrList< interpolation< vector > > &vvInterp, const label UIndex, const bool trackForward, const scalar trackLength, const PackedBoolList &isWallPatch, DynamicList< List< point > > &allPositions, List< DynamicList< scalarList > > &allScalars, List< DynamicList< vectorList > > &allVectors)
This function object reads fields from the time directories and adds them to the mesh database for fu...
label lifeTime_
Lifetime of particle. Particle dies when reaches 0.
Mesh consisting of general polyhedral cells.
Class used to pass tracking data to the trackToFace function.
vector sample(trackingData &td)
List< DynamicList< vectorList > > & allVectors_
DynamicList< vectorList > & allPositions_
Class used to pass tracking data to the trackToEdge function.
label meshEdgeStart() const
-1 or label of mesh edge
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Particle class that tracks on triangles of boundary faces. Use trackToEdge similar to trackToFace on ...
Particle class that samples fields as it passes through. Used in streamline calculation.
const PtrList< interpolation< vector > > & vvInterp_
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
const polyMesh & mesh() const
Return the mesh database.
static void writeFields(const Cloud< wallBoundedStreamLineParticle > &)
Write.
vector interpolateFields(const trackingData &td, const point &position, const label cellI, const label faceI)
List< DynamicList< vector > > sampledVectors_
Sampled vectors.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A cloud is a collection of lagrangian particles.
static void readFields(Cloud< wallBoundedStreamLineParticle > &)
Read.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Factory class to read-construct particles used for.
const scalar trackLength_
wallBoundedStreamLineParticle(const polyMesh &c, const vector &position, const label cellI, const label tetFaceI, const label tetPtI, const label meshEdgeStart, const label diagEdge, const label lifeTime)
Construct from components.
const PtrList< interpolation< scalar > > & vsInterp_
const vector & position() const
Return current particle position.
const dimensionedScalar c
Speed of light in a vacuum.
label diagEdge() const
-1 or diagonal edge
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
List< DynamicList< scalar > > sampledScalars_
Sampled scalars.