Go to the documentation of this file.
39 #ifndef wallBoundedStreamLineParticle_H
40 #define wallBoundedStreamLineParticle_H
53 class wallBoundedStreamLineParticleCloud;
58 class wallBoundedStreamLineParticle;
60 Ostream&
operator<<(Ostream&,
const wallBoundedStreamLineParticle&);
95 template <
class TrackCloudType>
98 TrackCloudType&
cloud,
102 const scalar trackLength,
103 const bitSet& isWallPatch,
172 const label tetFacei,
176 const bool trackForward,
186 bool newFormat =
true
229 template<
class TrackCloudType>
232 TrackCloudType&
cloud,
234 const scalar trackTime
autoPtr< particle > clone() const
Construct and return a clone.
wallBoundedStreamLineParticle(const polyMesh &c, const point &position, const label celli, const label tetFacei, const label tetPti, const label meshEdgeStart, const label diagEdge, const bool trackForward, const label lifeTime)
Construct from components.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
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_
iNew(const polyMesh &mesh)
label lifeTime_
Lifetime of particle. Particle dies when reaches 0.
Mesh consisting of general polyhedral cells.
vector sample(trackingData &td)
virtual ~trackingData()=default
List< DynamicList< vectorList > > & allVectors_
DynamicList< vectorList > & allPositions_
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Class used to pass tracking data to the trackToEdge function.
label meshEdgeStart() const
-1 or label of mesh edge
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_
vector position() const
Return current particle position.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
const polyMesh & mesh() const
Return the mesh database.
static void writeFields(const Cloud< wallBoundedStreamLineParticle > &)
Write.
bool move(TrackCloudType &cloud, trackingData &td, const scalar trackTime)
Track all particles to their end point.
Class used to pass tracking data to the trackToFace function.
List< DynamicList< vector > > sampledVectors_
Sampled vectors.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A cloud is a registry 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...
trackingData(TrackCloudType &cloud, const PtrList< interpolation< scalar >> &vsInterp, const PtrList< interpolation< vector >> &vvInterp, const label UIndex, const scalar trackLength, const bitSet &isWallPatch, DynamicList< List< point >> &allPositions, List< DynamicList< scalarList >> &allScalars, List< DynamicList< vectorList >> &allVectors)
Factory class to read-construct particles used for.
const scalar trackLength_
const PtrList< interpolation< scalar > > & vsInterp_
const dimensionedScalar c
Speed of light in a vacuum.
label diagEdge() const
-1 or diagonal edge
vector interpolateFields(const trackingData &td, const point &position, const label celli, const label facei)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
List< DynamicList< scalar > > sampledScalars_
Sampled scalars.
bool trackForward_
Track with +U or -U.