16 #ifndef vtkLegacyParticleTracerBase_h 17 #define vtkLegacyParticleTracerBase_h 19 #include "vtkDeprecation.h" 20 #include "vtkPVVTKExtensionsFiltersGeneralMPIModule.h" 21 #include "vtkParaViewDeprecation.h" 59 int CachedDataSetId[2];
90 struct ParticleTracerFunctor;
98 friend struct vtkLegacyParticleTracerBaseNamespace::ParticleTracerFunctor;
109 void PrintSelf(ostream& os,
vtkIndent indent)
override;
110 void PrintParticleHistories();
118 vtkGetMacro(ComputeVorticity,
bool);
119 void SetComputeVorticity(
bool);
126 vtkGetMacro(TerminalSpeed,
double);
127 void SetTerminalSpeed(
double);
135 vtkGetMacro(RotationScale,
double);
136 void SetRotationScale(
double);
159 vtkGetMacro(ForceReinjectionEveryNSteps,
int);
160 void SetForceReinjectionEveryNSteps(
int);
170 void SetTerminationTime(
double t);
171 vtkGetMacro(TerminationTime,
double);
177 void SetIntegratorType(
int type);
178 int GetIntegratorType();
185 vtkGetMacro(StartTime,
double);
186 void SetStartTime(
double t);
210 LINEAR_TRANSFORMATION = 2,
223 virtual void SetMeshOverTime(
int meshOverTime);
230 vtkGetMacro(MeshOverTime,
int);
243 VTK_DEPRECATED_IN_9_2_0(
"Use SetMeshOverTime instead")
246 this->SetMeshOverTime(staticMesh ? STATIC : DIFFERENT);
248 VTK_DEPRECATED_IN_9_2_0(
"Use GetMeshOverTime instead")
249 virtual
vtkTypeBool GetStaticMesh() {
return this->MeshOverTime == STATIC; }
255 INTERPOLATOR_WITH_CELL_LOCATOR
269 void SetInterpolatorType(
int interpolatorType);
278 void SetInterpolatorTypeToDataSetPointLocator();
286 void SetInterpolatorTypeToCellLocator();
304 vtkSetFilePathMacro(ParticleFileName);
305 vtkGetFilePathMacro(ParticleFileName);
315 vtkBooleanMacro(EnableParticleWriting,
vtkTypeBool);
334 void RemoveAllSources();
342 vtkGetMacro(ForceSerialExecution,
bool);
343 vtkSetMacro(ForceSerialExecution,
bool);
344 vtkBooleanMacro(ForceSerialExecution,
bool);
372 int FillInputPortInformation(
int port,
vtkInformation* info)
override;
415 virtual int OutputParticles(
vtkPolyData* poly) = 0;
422 virtual std::vector<vtkDataSet*> GetSeedSources(
vtkInformationVector* inputVector,
int timeStep);
425 int InitializeInterpolator();
451 virtual void AssignUniqueIds(
473 std::atomic<vtkIdType>& particleCount, std::mutex& eraseMutex,
bool sequential);
490 bool ComputeDomainExitLocation(
491 double pos[4],
double p2[4],
double intersection[4],
vtkGenericCell* cell);
509 bool InsideBounds(
double point[]);
511 void CalculateVorticity(
516 double GetCacheDataTime(
int i);
517 double GetCacheDataTime();
519 virtual void ResetCache();
532 void GetPointDataArrayNames(
vtkDataSet* input, std::vector<std::string>& names);
535 vtkGetMacro(ReinjectionCounter,
int);
536 vtkGetMacro(CurrentTimeValue,
double);
578 bool SetTerminationTimeNoModify(
double t);
582 double IntegrationStep;
584 bool ComputeVorticity;
585 double RotationScale;
586 double TerminalSpeed;
589 int ReinjectionCounter;
596 std::vector<double> InputTimeValues;
598 double TerminationTime;
599 double CurrentTimeValue;
604 int TerminationTimeStep;
608 int ForceReinjectionEveryNSteps;
614 char* ParticleFileName;
631 using bounds =
struct bounds_t;
632 std::vector<bounds> CachedBounds[2];
661 unsigned int NumberOfParticles();
665 static const double Epsilon;
A particle tracer for vector fields.
std::list< ParticleInformation > ParticleDataList
virtual int GetMeshOverTimeMinValue()
virtual void AddRestartSeeds(vtkInformationVector **)
For restarts of particle paths, we add in the ability to add in particles from a previous computation...
void SetMeshOverTimeToDifferent()
vtkTypeBool IgnorePipelineTime
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
void SetMeshOverTimeToStatic()
MeshOverTimeTypes
Types of Variance of Mesh over time.
vtkLegacyParticleTracerBaseNamespace::ParticleDataList ParticleHistories
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
virtual int GetMeshOverTimeMaxValue()
vtkSmartPointer< vtkPolyData > Output
vtkIdType UniqueIdCounter
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...
vtkTypeBool DisableResetCache
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
ParticleDataList::iterator ParticleListIterator
virtual void Initialize()
bool ForceSerialExecution
A Parallel Particle tracer for unsteady vector fields.
std::vector< ParticleInformation > ParticleVector
virtual bool SendParticleToAnotherProcess(vtkLegacyParticleTracerBaseNamespace::ParticleInformation &, vtkLegacyParticleTracerBaseNamespace::ParticleInformation &, vtkPointData *)
virtual bool UpdateParticleListFromOtherProcesses()
this is used during classification of seed points and also between iterations of the main loop as par...
virtual void SetToExtraPointDataArrays(vtkIdType, vtkLegacyParticleTracerBaseNamespace::ParticleInformation &)
ParticleVector::iterator ParticleIterator
void SetMeshOverTimeToLinearTransformation()
void SetMeshOverTimeToSameTopology()
virtual void InitializeExtraPointDataArrays(vtkPointData *vtkNotUsed(outputPD))
Methods to append values to existing point data arrays that may only be desired on specific concrete ...
vtkSmartPointer< vtkPointData > ParticlePointData
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...