 |
VTK
9.1.0
|
Go to the documentation of this file.
28 #ifndef vtkParticleTracerBase_h
29 #define vtkParticleTracerBase_h
31 #include "vtkFiltersFlowPathsModule.h"
124 vtkGetMacro(ComputeVorticity,
bool);
132 vtkGetMacro(TerminalSpeed,
double);
141 vtkGetMacro(RotationScale,
double);
165 vtkGetMacro(ForceReinjectionEveryNSteps,
int);
177 vtkGetMacro(TerminationTime,
double);
191 vtkGetMacro(StartTime,
double);
205 vtkSetMacro(StaticSeeds,
int);
206 vtkGetMacro(StaticSeeds,
int);
219 vtkSetMacro(StaticMesh,
int);
220 vtkGetMacro(StaticMesh,
int);
412 double pos[4],
double p2[4],
double intersection[4],
vtkGenericCell* cell);
454 vtkGetMacro(ReinjectionCounter,
int);
455 vtkGetMacro(CurrentTimeValue,
double);
489 double delT,
int subSteps);
491 bool SetTerminationTimeNoModify(
double t);
495 double IntegrationStep;
497 bool ComputeVorticity;
498 double RotationScale;
499 double TerminalSpeed;
502 int ReinjectionCounter;
505 int AllFixedGeometry;
509 std::vector<double> InputTimeValues;
511 double TerminationTime;
512 double CurrentTimeValue;
517 int TerminationTimeStep;
521 int ForceReinjectionEveryNSteps;
527 char* ParticleFileName;
545 using bounds =
struct bounds_t;
546 std::vector<bounds> CachedBounds[2];
569 unsigned int NumberOfParticles();
574 static const double Epsilon;
represent and manipulate 3D points
void TestParticles(vtkParticleTracerBaseNamespace::ParticleVector &candidates, std::vector< int > &passed)
void CreateProtoPD(vtkDataObject *input)
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
A particle tracer for vector fields.
~vtkParticleTracerBase() override
vtkSmartPointer< vtkPolyData > Output
void SetComputeVorticity(bool)
Turn on/off vorticity computation at streamline points (necessary for generating proper stream-ribbon...
vtkIntArray * GetParticleIds(vtkPointData *)
vtkIntArray * GetInjectedPointIds(vtkPointData *)
represent and manipulate point attribute data
virtual void InitializeExtraPointDataArrays(vtkPointData *vtkNotUsed(outputPD))
Methods to append values to existing point data arrays that may only be desired on specific concrete ...
virtual int ProcessInput(vtkInformationVector **inputVector)
vtkIntArray * GetInjectedStepIds(vtkPointData *)
dynamic, self-adjusting array of float
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
double GetCacheDataTime(int i)
record modification and/or execution time
bool InsideBounds(double point[])
vtkFloatArray * GetParticleAge(vtkPointData *)
vtkSmartPointer< vtkPointData > ParticlePointData
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
std::list< ParticleInformation > ParticleDataList
vtkFloatArray * GetParticleRotation(vtkPointData *)
vtkTypeBool DisableResetCache
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
virtual void AddRestartSeeds(vtkInformationVector **)
For restarts of particle paths, we add in the ability to add in particles from a previous computation...
virtual void Initialize()
vtkIdType CachedCellId[2]
std::vector< ParticleInformation > ParticleVector
virtual std::vector< vtkDataSet * > GetSeedSources(vtkInformationVector *inputVector, int timeStep)
Method to get the data set seed sources.
dynamic, self-adjusting array of signed char
vtkSetFilePathMacro(ParticleFileName)
Set/Get the filename to be used with the particle writer when dumping particles to disk.
abstract superclass for arrays of numeric data
bool IsPointDataValid(vtkCompositeDataSet *input, std::vector< std::string > &arrayNames)
Methods that check that the input arrays are ordered the same on all data sets.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
bool ComputeDomainExitLocation(double pos[4], double p2[4], double intersection[4], vtkGenericCell *cell)
This is an old routine kept for possible future use.
Composite dataset that organizes datasets into blocks.
void SetRotationScale(double)
This can be used to scale the rate with which the streamribbons twist.
abstract superclass for composite (multi-block or AMR) datasets
virtual void AssignSeedsToProcessors(double time, vtkDataSet *source, int sourceID, int ptId, vtkParticleTracerBaseNamespace::ParticleVector &localSeedPoints, int &localAssignedCount)
all the injection/seed points according to which processor they belong to.
vtkParticleTracerBaseNamespace::ParticleDataList ParticleHistories
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType UniqueIdCounter
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
vtkSignedCharArray * GetParticleSourceIds(vtkPointData *)
void TestParticles(vtkParticleTracerBaseNamespace::ParticleVector &candidates, vtkParticleTracerBaseNamespace::ParticleVector &passed, int &count)
inside our data.
void GetPointDataArrayNames(vtkDataSet *input, std::vector< std::string > &names)
Methods that check that the input arrays are ordered the same on all data sets.
vtkTypeBool IgnorePipelineTime
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
ParticleDataList::iterator ParticleListIterator
vtkFloatArray * GetParticleVorticity(vtkPointData *)
void SetIntegrator(vtkInitialValueProblemSolver *)
virtual vtkPolyData * Execute(vtkInformationVector **inputVector)
vtkSmartPointer< vtkPointData > ProtoPD
ProtoPD is used just to keep track of the input array names and number of components for copy allocat...
void AddSourceConnection(vtkAlgorithmOutput *input)
Provide support for multiple seed sources.
vtkIntArray * GetErrorCodeArr(vtkPointData *)
Multiprocessing communication superclass.
void SetForceReinjectionEveryNSteps(int)
When animating particles, it is nice to inject new ones every Nth step to produce a continuous flow.
virtual void AssignUniqueIds(vtkParticleTracerBaseNamespace::ParticleVector &localSeedPoints)
give each one a unique ID.
vtkTemporalInterpolatedVelocityField * GetInterpolator()
a simple class to control print indentation
object to represent cell connectivity
dynamic, self-adjusting array of int
vtkFloatArray * GetParticleAngularVel(vtkPointData *)
abstract class to write particle data to file
void CalculateVorticity(vtkGenericCell *cell, double pcoords[3], vtkDoubleArray *cellVectors, double vorticity[3])
virtual int OutputParticles(vtkPolyData *poly)=0
void SetTerminationTime(double t)
Setting TerminationTime to a positive value will cause particles to terminate when the time is reache...
void SetTerminalSpeed(double)
Specify the terminal speed value, below which integration is terminated.
void PrintParticleHistories()
abstract class to specify dataset behavior
An abstract class for obtaining the interpolated velocity values at a point.
virtual void SetParticleWriter(vtkAbstractParticleWriter *pw)
Set/Get the Writer associated with this Particle Tracer Ideally a parallel IO capable vtkH5PartWriter...
virtual bool SendParticleToAnotherProcess(vtkParticleTracerBaseNamespace::ParticleInformation &, vtkParticleTracerBaseNamespace::ParticleInformation &, vtkPointData *)
void UpdateParticleList(vtkParticleTracerBaseNamespace::ParticleVector &candidates)
and sending between processors, into a list, which is used as the master list on this processor
virtual void AppendToExtraPointDataArrays(vtkParticleTracerBaseNamespace::ParticleInformation &)
vtkGetFilePathMacro(ParticleFileName)
Set/Get the filename to be used with the particle writer when dumping particles to disk.
virtual bool UpdateParticleListFromOtherProcesses()
this is used during classification of seed points and also between iterations of the main loop as par...
Proxy object to connect input/output ports.
void IntegrateParticle(vtkParticleTracerBaseNamespace::ParticleListIterator &it, double currenttime, double terminationtime, vtkInitialValueProblemSolver *integrator)
particle between the two times supplied.
A helper class for interpolating between times during particle tracing.
concrete dataset represents vertices, lines, polygons, and triangle strips
provides thread-safe access to cells
dynamic, self-adjusting array of double
int InitializeInterpolator()
virtual bool IsPointDataValid(vtkDataObject *input)
Methods that check that the input arrays are ordered the same on all data sets.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Integrate a set of ordinary differential equations (initial value problem) in time.
ParticleVector::iterator ParticleIterator
void SetStartTime(double t)
Set the time value for particle tracing to begin.
general representation of visualization data
double GetCacheDataTime()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int UpdateDataCache(vtkDataObject *td)
void AddParticle(vtkParticleTracerBaseNamespace::ParticleInformation &info, double *velocity)
void RemoveAllSources()
Provide support for multiple seed sources.
virtual void ResetCache()
void SetIntegratorType(int type)
Superclass for algorithms that produce only polydata as output.