Go to the documentation of this file.
36 #ifndef streamLineBase_H
37 #define streamLineBase_H
44 #include "indirectPrimitivePatch.H"
187 virtual void track() = 0;
205 const bool loadFromFiles =
false
228 virtual void write();
const objectRegistry & obr_
Database this class is registered to.
virtual void track()=0
Do the actual tracking to fill the track data.
DynamicList< List< point > > allTracks_
All tracks. Per track the points it passed through.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
volScalarField w(IOobject("w", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("w", dimensionSet(0, 0, 0, 0, 0, 0, 0), 0.0))
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.
Base class for function objects, adding functionality to read/write state information (data required ...
wordList scalarNames_
Names of scalar fields.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
virtual void execute()
Execute the averaging.
Standard boundBox + extra functionality for use in octree.
virtual void write()
Track and write.
Switch log_
Switch to send output to Info as well as to file.
autoPtr< sampledSet > sampledSetPtr_
Seed set engine.
virtual void read(const dictionary &)
Read the field average data.
dictionary dict_
Input dictionary.
Mesh consisting of general polyhedral cells.
Registry of regIOobjects.
wordList fields_
List of fields to sample.
void trimToBox(const treeBoundBox &bb, const label trackI, PtrList< DynamicList< point > > &newTracks, PtrList< DynamicList< scalarList > > &newScalars, PtrList< DynamicList< vectorList > > &newVectors) const
Trim and possibly split a track.
virtual void movePoints(const polyMesh &)
Update for mesh point-motion.
word interpolationScheme_
Interpolation scheme to use.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word sampledSetAxis_
Axis of the sampled points to output.
autoPtr< writer< vector > > vectorFormatterPtr_
File writer for vector data.
boundBox bounds_
Optional trimming of tracks.
bool loadFromFiles_
Load fields from files (not from objectRegistry)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
autoPtr< meshSearch > meshSearchPtr_
Mesh searching enigne.
A list of keyword definitions, which are a keyword followed by any number of values (e....
word UName_
Field to transport particle with.
autoPtr< indirectPrimitivePatch > wallPatch() const
Construct patch out of all wall patch faces.
word cloudName_
Optional specified name of particles.
virtual ~streamLineBase()
Destructor.
word seedSet_
Type of seed.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual void end()
Execute the averaging at the final time-loop, currently does nothing.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
streamLineBase(const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false)
Construct for given objectRegistry and dictionary.
label lifeTime_
Maximum lifetime (= number of cells) of particle.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
scalar trackLength_
Track length.
virtual void updateMesh(const mapPolyMesh &)
Update for changes of mesh.
void storePoint(const label trackI, const scalar w, const label leftI, const label rightI, DynamicList< point > &newTrack, DynamicList< List< scalar > > &newScalars, DynamicList< List< vector > > &newVectors) const
Generate point and values by interpolating from existing values.
A bounding box defined in terms of the points at its extremities.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
TypeName("streamLineBase")
Runtime type information.
List< DynamicList< scalarList > > allScalars_
Per scalarField, per track, the sampled values.
autoPtr< writer< scalar > > scalarFormatterPtr_
File writer for scalar data.
bool trackForward_
Whether to use +u or -u.
const word & name() const
Return the name.
wordList vectorNames_
Names of vector fields.