Go to the documentation of this file.
63 seedPoints.
cells()[i],
71 if (
log_)
Info<<
" seeded " << nSeeds <<
" particles" <<
endl;
112 particles.
move(td, trackTime);
123 const bool loadFromFiles
129 if (setActive<fvMesh>())
150 bool subCycling =
dict.
found(
"nSubCycle");
151 bool fixedLength =
dict.
found(
"trackLength");
153 if (subCycling && fixedLength)
156 <<
"Cannot both specify automatic time stepping (through '"
157 <<
"nSubCycle' specification) and fixed track length (through '"
165 trackLength_ = VGREAT;
172 <<
" automatic track length specified through"
173 <<
" number of sub cycles : " << nSubCycle_ <<
nl
Holds list of sampling points which is filled at construction time. Various implementations of this b...
void addParticle(ParticleType *pPtr)
Transfer particle to cloud.
const objectRegistry & obr_
Database this class is registered to.
DynamicList< List< point > > allTracks_
All tracks. Per track the points it passed through.
Class used to pass tracking data to the trackToFace function.
A class for handling words, derived from string.
void initInterpolations(const label nSeeds, label &UIndex, PtrList< volScalarField > &vsFlds, PtrList< interpolation< scalar > > &vsInterp, PtrList< volVectorField > &vvFlds, PtrList< interpolation< vector > > &vvInterp)
Initialise fields, interpolators and track storage.
List< DynamicList< vectorList > > allVectors_
Per vectorField, per track, the sampled values.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
A Cloud of streamLine particles.
#define forAll(list, i)
Loop across all elements in list.
Particle class that samples fields as it passes through. Used in streamline calculation.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
label nSubCycle_
Number of subcycling steps.
bool read(const char *, int32_t &)
streamLine(const streamLine &)
Disallow default bitwise copy construct.
const labelList & cells() const
Switch log_
Switch to send output to Info as well as to file.
Ostream & endl(Ostream &os)
Add newline and flush stream.
autoPtr< sampledSet > sampledSetPtr_
Seed set engine.
virtual void read(const dictionary &)
Read the field average data.
virtual void read(const dictionary &)
Read settings.
Registry of regIOobjects.
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 found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Intrusive doubly-linked list.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual ~streamLine()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word cloudName_
Optional specified name of particles.
label lifeTime_
Maximum lifetime (= number of cells) of particle.
dimensionedScalar sqrt(const dimensionedScalar &ds)
scalar trackLength_
Track length.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
List< DynamicList< scalarList > > allScalars_
Per scalarField, per track, the sampled values.
defineTypeNameAndDebug(combustionModel, 0)
bool trackForward_
Whether to use +u or -u.
virtual void track()
Do the actual tracking to fill the track data.
word name(const complex &)
Return a string representation of a complex.
void move(TrackData &td, const scalar trackTime)
Move the particles.