28 #ifndef vtkParticleTracerBase_h
29 #define vtkParticleTracerBase_h
32 #include "vtkFiltersFlowPathsModule.h"
101 struct ParticleTracerFunctor;
107 friend struct vtkParticleTracerBaseNamespace::ParticleTracerFunctor;
119 void PrintParticleHistories();
127 vtkGetMacro(ComputeVorticity,
bool);
128 void SetComputeVorticity(
bool);
135 vtkGetMacro(TerminalSpeed,
double);
136 void SetTerminalSpeed(
double);
144 vtkGetMacro(RotationScale,
double);
145 void SetRotationScale(
double);
168 vtkGetMacro(ForceReinjectionEveryNSteps,
vtkTypeBool);
179 void SetTerminationTime(
double t);
180 vtkGetMacro(TerminationTime,
double);
186 void SetIntegratorType(
int type);
187 int GetIntegratorType();
194 vtkGetMacro(StartTime,
double);
195 void SetStartTime(
double t);
219 LINEAR_TRANSFORMATION = 2,
232 virtual void SetMeshOverTime(
int meshOverTime);
239 vtkGetMacro(MeshOverTime,
int);
255 this->SetMeshOverTime(staticMesh ? STATIC : DIFFERENT);
258 virtual
vtkTypeBool GetStaticMesh() {
return this->MeshOverTime == STATIC; }
264 INTERPOLATOR_WITH_CELL_LOCATOR
278 void SetInterpolatorType(
int interpolatorType);
287 void SetInterpolatorTypeToDataSetPointLocator();
295 void SetInterpolatorTypeToCellLocator();
313 vtkSetFilePathMacro(ParticleFileName);
314 vtkGetFilePathMacro(ParticleFileName);
324 vtkBooleanMacro(EnableParticleWriting,
vtkTypeBool);
343 void RemoveAllSources();
351 vtkGetMacro(ForceSerialExecution,
bool);
352 vtkSetMacro(ForceSerialExecution,
bool);
353 vtkBooleanMacro(ForceSerialExecution,
bool);
424 virtual int OutputParticles(
vtkPolyData* poly) = 0;
431 virtual std::vector<vtkDataSet*> GetSeedSources(
vtkInformationVector* inputVector,
int timeStep);
434 int InitializeInterpolator();
481 std::atomic<vtkIdType>& particleCount, std::mutex& eraseMutex,
bool sequential);
497 bool ComputeDomainExitLocation(
498 double pos[4],
double p2[4],
double intersection[4],
vtkGenericCell* cell);
516 bool InsideBounds(
double point[]);
518 void CalculateVorticity(
523 double GetCacheDataTime(
int i);
524 double GetCacheDataTime();
526 virtual void ResetCache();
539 void GetPointDataArrayNames(
vtkDataSet* input, std::vector<std::string>& names);
542 vtkGetMacro(ReinjectionCounter,
int);
543 vtkGetMacro(CurrentTimeValue,
double);
579 bool SetTerminationTimeNoModify(
double t);
583 double IntegrationStep;
585 bool ComputeVorticity;
586 double RotationScale;
587 double TerminalSpeed;
590 int ReinjectionCounter;
597 std::vector<double> InputTimeValues;
599 double TerminationTime;
600 double CurrentTimeValue;
605 int TerminationTimeStep;
615 char* ParticleFileName;
632 using bounds =
struct bounds_t;
633 std::vector<bounds> CachedBounds[2];
662 unsigned int NumberOfParticles();
667 static const double Epsilon;
virtual int GetMeshOverTimeMinValue()
A helper class for interpolating between times during particle tracing.
abstract class to write particle data to file
MeshOverTimeTypes
Types of Variance of Mesh over time.
represent and manipulate point attribute data
vtkIdType CachedCellId[2]
abstract class to specify dataset behavior
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_DEPRECATED_IN_9_2_0(reason)
record modification and/or execution time
dynamic, self-adjusting array of float
virtual bool SendParticleToAnotherProcess(vtkParticleTracerBaseNamespace::ParticleInformation &, vtkParticleTracerBaseNamespace::ParticleInformation &, vtkPointData *)
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetMeshOverTimeToLinearTransformation()
ParticleVector::iterator ParticleIterator
provides thread-safe access to cells
virtual int GetMeshOverTimeMaxValue()
bool ForceSerialExecution
Proxy object to connect input/output ports.
dynamic, self-adjusting array of double
virtual void AddRestartSeeds(vtkInformationVector **)
For restarts of particle paths, we add in the ability to add in particles from a previous computation...
vtkParticleTracerBaseNamespace::ParticleDataList ParticleHistories
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
vtkSmartPointer< vtkPointData > ProtoPD
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
dynamic, self-adjusting array of int
abstract superclass for composite (multi-block or AMR) datasets
Superclass for algorithms that produce only polydata as output.
vtkTypeBool DisableResetCache
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
vtkSmartPointer< vtkPolyData > Output
virtual void Initialize()
a simple class to control print indentation
void SetMeshOverTimeToDifferent()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIdType UniqueIdCounter
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of signed char
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
virtual void InitializeExtraPointDataArrays(vtkPointData *vtkNotUsed(outputPD))
Methods to append values to existing point data arrays that may only be desired on specific concrete ...
std::list< ParticleInformation > ParticleDataList
vtkTypeBool IgnorePipelineTime
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
object to represent cell connectivity
virtual void SetToExtraPointDataArrays(vtkIdType, vtkParticleTracerBaseNamespace::ParticleInformation &)
void SetMeshOverTimeToSameTopology()
Composite dataset that organizes datasets into blocks.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
std::vector< ParticleInformation > ParticleVector
vtkSmartPointer< vtkPointData > ParticlePointData
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
ParticleDataList::iterator ParticleListIterator
general representation of visualization data
void SetMeshOverTimeToStatic()
represent and manipulate 3D points
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool UpdateParticleListFromOtherProcesses()
this is used during classification of seed points and also between iterations of the main loop as par...
Integrate a set of ordinary differential equations (initial value problem) in time.
A particle tracer for vector fields.
Multiprocessing communication superclass.