VTK
vtkPLagrangianParticleTracker.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPLagrangianParticleTracker.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
37 #ifndef vtkPLagrangianParticleTracker_h
38 #define vtkPLagrangianParticleTracker_h
39 
40 #include "vtkFiltersParallelFlowPathsModule.h" // For export macro
42 #include "vtkSmartPointer.h" // for ivars
43 
44 class MasterFlagManager;
45 class ParticleStreamManager;
46 class RankFlagManager;
47 class vtkMPIController;
50 
51 class VTKFILTERSPARALLELFLOWPATHS_EXPORT vtkPLagrangianParticleTracker :
53 {
54 public:
56  virtual void PrintSelf(ostream& os, vtkIndent indent) override;
58 
59 protected:
62 
64  vtkInformationVector *) override;
65 
66  void GenerateParticles(const vtkBoundingBox* bounds, vtkDataSet* seeds,
67  vtkDataArray* initialVelocities, vtkDataArray* initialIntegrationTimes,
68  vtkPointData* seedData, int nVar, std::queue<vtkLagrangianParticle*>& particles) override;
69 
84  virtual void GetParticleFeed(std::queue<vtkLagrangianParticle*>& particleQueue) override;
85  virtual int Integrate(vtkLagrangianParticle*, std::queue<vtkLagrangianParticle*>& particleQueue,
86  vtkPolyData* particlePathsOutput, vtkIdList* particlePathPointId,
87  vtkDataObject* interactionOutput) override;
88 
89  void SendParticle(vtkLagrangianParticle* particle);
90  void ReceiveParticles(std::queue<vtkLagrangianParticle*>& particleQueue);
91 
92  bool FinalizeOutputs(vtkPolyData* particlePathsOutput,
93  vtkDataObject* interractionOutput) override;
94 
95  bool CheckParticlePathsRenderingThreshold(vtkPolyData* particlePathsOutput) override;
96 
97  bool UpdateSurfaceCacheIfNeeded(vtkDataObject*& surfaces) override;
98 
102  virtual vtkIdType GetNewParticleId() override;
103 
105 
108  vtkGetMacro(ParticleCounter, vtkIdType);
110 
114  ParticleStreamManager* StreamManager;
115  MasterFlagManager* MFlagManager;
116  RankFlagManager* RFlagManager;
117 
118 private:
119  vtkPLagrangianParticleTracker(const vtkPLagrangianParticleTracker&) = delete; // Not implemented.
120  void operator=(const vtkPLagrangianParticleTracker&) = delete; // Not implemented.
121 };
122 #endif
virtual void GetParticleFeed(std::queue< vtkLagrangianParticle * > &particleQueue)
represent and manipulate point attribute data
Definition: vtkPointData.h:37
static vtkLagrangianParticleTracker * New()
parallel Lagrangian particle tracker
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
int vtkIdType
Definition: vtkType.h:347
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
virtual bool CheckParticlePathsRenderingThreshold(vtkPolyData *particlePathsOutput)
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSmartPointer< vtkMultiBlockDataSet > TmpSurfaceInputMB
list of point or cell ids
Definition: vtkIdList.h:36
dataset represents arbitrary combinations of all possible cell types
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Process communication using MPI.
Basis class for Lagrangian particles.
virtual bool UpdateSurfaceCacheIfNeeded(vtkDataObject *&surfaces)
virtual void GenerateParticles(const vtkBoundingBox *bounds, vtkDataSet *seeds, vtkDataArray *initialVelocities, vtkDataArray *initialIntegrationTimes, vtkPointData *seedData, int nVar, std::queue< vtkLagrangianParticle * > &particles)
Composite dataset that organizes datasets into blocks.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
virtual int Integrate(vtkLagrangianParticle *, std::queue< vtkLagrangianParticle * > &, vtkPolyData *particlePathsOutput, vtkIdList *particlePathPointId, vtkDataObject *interactionOutput)
virtual vtkIdType GetNewParticleId()
Get an unique id for a particle.
general representation of visualization data
Definition: vtkDataObject.h:64
virtual bool FinalizeOutputs(vtkPolyData *particlePathsOutput, vtkDataObject *interractionOutput)
Filter to inject and track particles in a flow.
vtkSmartPointer< vtkUnstructuredGrid > TmpSurfaceInput
Fast Simple Class for dealing with 3D bounds.