VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPTemporalStreamTracer Class Reference

#include <vtkPTemporalStreamTracer.h>

Inheritance diagram for vtkPTemporalStreamTracer:
[legend]
Collaboration diagram for vtkPTemporalStreamTracer:
[legend]

Public Types

typedef vtkTemporalStreamTracer Superclass
 
- Public Types inherited from vtkTemporalStreamTracer
enum  Units { TERMINATION_TIME_UNIT, TERMINATION_STEP_UNIT }
 
typedef vtkStreamTracer Superclass
 
- Public Types inherited from vtkStreamTracer
enum  Units { LENGTH_UNIT = 1, CELL_LENGTH_UNIT = 2 }
 
enum  Solvers {
  RUNGE_KUTTA2, RUNGE_KUTTA4, RUNGE_KUTTA45, NONE,
  UNKNOWN
}
 
enum  ReasonForTermination {
  OUT_OF_DOMAIN = vtkInitialValueProblemSolver::OUT_OF_DOMAIN, NOT_INITIALIZED = vtkInitialValueProblemSolver::NOT_INITIALIZED, UNEXPECTED_VALUE = vtkInitialValueProblemSolver::UNEXPECTED_VALUE, OUT_OF_LENGTH = 4,
  OUT_OF_STEPS = 5, STAGNATION = 6
}
 
enum  { FORWARD, BACKWARD, BOTH }
 
enum  { INTERPOLATOR_WITH_DATASET_POINT_LOCATOR, INTERPOLATOR_WITH_CELL_LOCATOR }
 
typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkPTemporalStreamTracerNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetController (vtkMultiProcessController *controller)
 
virtual vtkMultiProcessController * GetController ()
 
- Public Member Functions inherited from vtkTemporalStreamTracer
vtkTemporalStreamTracerNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetTimeStep (unsigned int)
 
virtual unsigned int GetTimeStep ()
 
virtual void SetIgnorePipelineTime (int)
 
virtual int GetIgnorePipelineTime ()
 
virtual void IgnorePipelineTimeOn ()
 
virtual void IgnorePipelineTimeOff ()
 
virtual void SetTimeStepResolution (double)
 
virtual double GetTimeStepResolution ()
 
virtual void SetForceReinjectionEveryNSteps (int)
 
virtual int GetForceReinjectionEveryNSteps ()
 
virtual void SetTerminationTime (double)
 
virtual double GetTerminationTime ()
 
virtual void SetTerminationTimeUnit (int)
 
virtual int GetTerminationTimeUnit ()
 
void SetTerminationTimeUnitToTimeUnit ()
 
void SetTerminationTimeUnitToStepUnit ()
 
virtual void SetStaticSeeds (int)
 
virtual int GetStaticSeeds ()
 
virtual void StaticSeedsOn ()
 
virtual void StaticSeedsOff ()
 
virtual void SetStaticMesh (int)
 
virtual int GetStaticMesh ()
 
virtual void StaticMeshOn ()
 
virtual void StaticMeshOff ()
 
virtual void SetParticleWriter (vtkAbstractParticleWriter *pw)
 
virtual vtkAbstractParticleWriter * GetParticleWriter ()
 
virtual void SetParticleFileName (const char *)
 
virtual char * GetParticleFileName ()
 
virtual void SetEnableParticleWriting (int)
 
virtual int GetEnableParticleWriting ()
 
virtual void EnableParticleWritingOn ()
 
virtual void EnableParticleWritingOff ()
 
void AddSourceConnection (vtkAlgorithmOutput *input)
 
void RemoveAllSources ()
 
- Public Member Functions inherited from vtkStreamTracer
vtkStreamTracerNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetSourceConnection (vtkAlgorithmOutput *algOutput)
 
void SetInterpolatorTypeToDataSetPointLocator ()
 
void SetInterpolatorTypeToCellLocator ()
 
void SetInterpolatorPrototype (vtkAbstractInterpolatedVelocityField *ivf)
 
void SetInterpolatorType (int interpType)
 
virtual void SetStartPosition (double, double, double)
 
virtual void SetStartPosition (double[3])
 
virtual double * GetStartPosition ()
 
virtual void GetStartPosition (double &, double &, double &)
 
virtual void GetStartPosition (double[3])
 
void SetSourceData (vtkDataSet *source)
 
vtkDataSet * GetSource ()
 
void SetIntegrator (vtkInitialValueProblemSolver *)
 
virtual
vtkInitialValueProblemSolver * 
GetIntegrator ()
 
void SetIntegratorType (int type)
 
int GetIntegratorType ()
 
void SetIntegratorTypeToRungeKutta2 ()
 
void SetIntegratorTypeToRungeKutta4 ()
 
void SetIntegratorTypeToRungeKutta45 ()
 
virtual void SetMaximumPropagation (double)
 
virtual double GetMaximumPropagation ()
 
void SetIntegrationStepUnit (int unit)
 
int GetIntegrationStepUnit ()
 
virtual void SetInitialIntegrationStep (double)
 
virtual double GetInitialIntegrationStep ()
 
virtual void SetMinimumIntegrationStep (double)
 
virtual double GetMinimumIntegrationStep ()
 
virtual void SetMaximumIntegrationStep (double)
 
virtual double GetMaximumIntegrationStep ()
 
virtual void SetMaximumError (double)
 
virtual double GetMaximumError ()
 
virtual void SetMaximumNumberOfSteps (vtkIdType)
 
virtual vtkIdType GetMaximumNumberOfSteps ()
 
virtual void SetTerminalSpeed (double)
 
virtual double GetTerminalSpeed ()
 
virtual void SetIntegrationDirection (int)
 
virtual int GetIntegrationDirection ()
 
void SetIntegrationDirectionToForward ()
 
void SetIntegrationDirectionToBackward ()
 
void SetIntegrationDirectionToBoth ()
 
virtual void SetComputeVorticity (bool)
 
virtual bool GetComputeVorticity ()
 
virtual void SetRotationScale (double)
 
virtual double GetRotationScale ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkPTemporalStreamTracerSafeDownCast (vtkObjectBase *o)
 
static vtkPTemporalStreamTracerNew ()
 
- Static Public Member Functions inherited from vtkTemporalStreamTracer
static int IsTypeOf (const char *type)
 
static vtkTemporalStreamTracerSafeDownCast (vtkObjectBase *o)
 
static vtkTemporalStreamTracerNew ()
 
- Static Public Member Functions inherited from vtkStreamTracer
static int IsTypeOf (const char *type)
 
static vtkStreamTracerSafeDownCast (vtkObjectBase *o)
 
static vtkStreamTracerNew ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkPTemporalStreamTracer ()
 
 ~vtkPTemporalStreamTracer ()
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
void AddParticleToMPISendList (vtkTemporalStreamTracerNamespace::ParticleInformation &info)
 
virtual void AssignSeedsToProcessors (vtkDataSet *source, int sourceID, int ptId, vtkTemporalStreamTracerNamespace::ParticleVector &LocalSeedPoints, int &LocalAssignedCount)
 
virtual void AssignUniqueIds (vtkTemporalStreamTracerNamespace::ParticleVector &LocalSeedPoints)
 
virtual void TransmitReceiveParticles (vtkTemporalStreamTracerNamespace::ParticleVector &outofdomain, vtkTemporalStreamTracerNamespace::ParticleVector &received, bool removeself)
 
- Protected Member Functions inherited from vtkTemporalStreamTracer
 vtkTemporalStreamTracer ()
 
 ~vtkTemporalStreamTracer ()
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int ProcessInput (vtkInformationVector **inputVector)
 
virtual int GenerateOutput (vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
int InitializeInterpolator ()
 
int SetTemporalInput (vtkDataObject *td, int index)
 
bool SendParticleToAnotherProcess (vtkTemporalStreamTracerNamespace::ParticleInformation &info, double point1[4], double delT)
 
void AddParticleToMPISendList (vtkTemporalStreamTracerNamespace::ParticleInformation &info)
 
bool InsideBounds (double point[])
 
void TestParticles (vtkTemporalStreamTracerNamespace::ParticleVector &candidates, vtkTemporalStreamTracerNamespace::ParticleVector &passed, int &count)
 
void UpdateParticleList (vtkTemporalStreamTracerNamespace::ParticleVector &candidates)
 
void IntegrateParticle (vtkTemporalStreamTracerNamespace::ParticleListIterator &it, double currenttime, double terminationtime, vtkInitialValueProblemSolver *integrator)
 
bool RetryWithPush (vtkTemporalStreamTracerNamespace::ParticleInformation &info, double velocity[3], double delT)
 
bool ComputeDomainExitLocation (double pos[4], double p2[4], double intersection[4], vtkGenericCell *cell)
 
- Protected Member Functions inherited from vtkStreamTracer
 vtkStreamTracer ()
 
 ~vtkStreamTracer ()
 
virtual vtkExecutive * CreateDefaultExecutive ()
 
void AddInput (vtkDataObject *)
 
void CalculateVorticity (vtkGenericCell *cell, double pcoords[3], vtkDoubleArray *cellVectors, double vorticity[3])
 
void Integrate (vtkPointData *inputData, vtkPolyData *output, vtkDataArray *seedSource, vtkIdList *seedIds, vtkIntArray *integrationDirections, double lastPoint[3], vtkAbstractInterpolatedVelocityField *func, int maxCellSize, int vecType, const char *vecFieldName, double &propagation, vtkIdType &numSteps)
 
void SimpleIntegrate (double seed[3], double lastPoint[3], double stepSize, vtkAbstractInterpolatedVelocityField *func)
 
int CheckInputs (vtkAbstractInterpolatedVelocityField *&func, int *maxCellSize)
 
void GenerateNormals (vtkPolyData *output, double *firstNormal, const char *vecName)
 
void ConvertIntervals (double &step, double &minStep, double &maxStep, int direction, double cellLength)
 
int SetupOutput (vtkInformation *inInfo, vtkInformation *outInfo)
 
void InitializeSeeds (vtkDataArray *&seeds, vtkIdList *&seedIds, vtkIntArray *&integrationDirections, vtkDataSet *source)
 

Protected Attributes

vtkMultiProcessController * Controller
 
- Protected Attributes inherited from vtkTemporalStreamTracer
int RequestIndex
 
int UpdatePiece
 
int UpdateNumPieces
 
int AllFixedGeometry
 
int StaticMesh
 
int StaticSeeds
 
unsigned int TimeStep
 
unsigned int ActualTimeStep
 
int IgnorePipelineTime
 
unsigned int NumberOfInputTimeSteps
 
std::vector< double > InputTimeValues
 
std::vector< double > OutputTimeValues
 
double EarliestTime
 
double CurrentTimeSteps [2]
 
double TimeStepResolution
 
double TerminationTime
 
int TerminationTimeUnit
 
int ForceReinjectionEveryNSteps
 
bool ReinjectionFlag
 
int ReinjectionCounter
 
vtkTimeStamp ParticleInjectionTime
 
vtkAbstractParticleWriter * ParticleWriter
 
char * ParticleFileName
 
int EnableParticleWriting
 
unsigned int NumberOfParticles
 
vtkTemporalStreamTracerNamespace::ParticleDataList ParticleHistories
 
vtkTemporalStreamTracerNamespace::ParticleVector LocalSeeds
 
vtkSmartPointer< vtkFloatArray > ParticleAge
 
vtkSmartPointer< vtkIntArray > ParticleIds
 
vtkSmartPointer< vtkCharArray > ParticleSourceIds
 
vtkSmartPointer< vtkIntArray > InjectedPointIds
 
vtkSmartPointer< vtkIntArray > InjectedStepIds
 
vtkSmartPointer< vtkIntArray > ErrorCode
 
vtkSmartPointer< vtkFloatArray > ParticleVorticity
 
vtkSmartPointer< vtkFloatArray > ParticleRotation
 
vtkSmartPointer< vtkFloatArray > ParticleAngularVel
 
vtkSmartPointer< vtkDoubleArray > cellVectors
 
vtkSmartPointer< vtkPointData > OutputPointData
 
int InterpolationCount
 
vtkSmartPointer< vtkCellArray > ParticleCells
 
vtkSmartPointer< vtkPoints > OutputCoordinates
 
vtkTemporalStreamTracerNamespace::ParticleVector MPISendList
 
vtkSmartPointer
< vtkTemporalInterpolatedVelocityField
Interpolator
 
vtkSmartPointer
< vtkMultiBlockDataSet > 
InputDataT [2]
 
vtkSmartPointer< vtkDataSet > DataReferenceT [2]
 
std::vector< boundsCachedBounds [2]
 
vtkIdType UniqueIdCounter
 
vtkIdType UniqueIdCounterMPI
 
int substeps
 
- Protected Attributes inherited from vtkStreamTracer
bool GenerateNormalsInIntegrate
 
double StartPosition [3]
 
double TerminalSpeed
 
double LastUsedStepSize
 
double MaximumPropagation
 
double MinimumIntegrationStep
 
double MaximumIntegrationStep
 
double InitialIntegrationStep
 
int IntegrationStepUnit
 
int IntegrationDirection
 
vtkInitialValueProblemSolver * Integrator
 
double MaximumError
 
vtkIdType MaximumNumberOfSteps
 
bool ComputeVorticity
 
double RotationScale
 
vtkAbstractInterpolatedVelocityFieldInterpolatorPrototype
 
vtkCompositeDataSet * InputData
 
bool HasMatchingPointAttributes
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkStreamTracer
static double ConvertToLength (double interval, int unit, double cellLength)
 
static double ConvertToLength (IntervalInformation &interval, double cellLength)
 
- Static Protected Attributes inherited from vtkStreamTracer
static const double EPSILON
 

Detailed Description

Definition at line 54 of file vtkPTemporalStreamTracer.h.

Member Typedef Documentation

Definition at line 58 of file vtkPTemporalStreamTracer.h.

Constructor & Destructor Documentation

vtkPTemporalStreamTracer::vtkPTemporalStreamTracer ( )
protected
vtkPTemporalStreamTracer::~vtkPTemporalStreamTracer ( )
protected

Member Function Documentation

static int vtkPTemporalStreamTracer::IsTypeOf ( const char *  type)
static
virtual int vtkPTemporalStreamTracer::IsA ( const char *  type)
virtual

Reimplemented from vtkTemporalStreamTracer.

static vtkPTemporalStreamTracer* vtkPTemporalStreamTracer::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkPTemporalStreamTracer::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkTemporalStreamTracer.

vtkPTemporalStreamTracer* vtkPTemporalStreamTracer::NewInstance ( ) const
void vtkPTemporalStreamTracer::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
static vtkPTemporalStreamTracer* vtkPTemporalStreamTracer::New ( )
static

Construct object using 2nd order Runge Kutta

virtual void vtkPTemporalStreamTracer::SetController ( vtkMultiProcessController *  controller)
virtual

Set/Get the controller used when sending particles between processes The controller must be an instance of vtkMPIController.

virtual vtkMultiProcessController* vtkPTemporalStreamTracer::GetController ( )
virtual

Set/Get the controller used when sending particles between processes The controller must be an instance of vtkMPIController.

virtual int vtkPTemporalStreamTracer::RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

Reimplemented from vtkTemporalStreamTracer.

virtual void vtkPTemporalStreamTracer::AssignSeedsToProcessors ( vtkDataSet *  source,
int  sourceID,
int  ptId,
vtkTemporalStreamTracerNamespace::ParticleVector LocalSeedPoints,
int &  LocalAssignedCount 
)
protectedvirtual

all the injection/seed points according to which processor they belong to. This saves us retesting at every injection time providing 1) The volumes are static, 2) the seed points are static If either are non static, then this step is skipped.

Reimplemented from vtkTemporalStreamTracer.

virtual void vtkPTemporalStreamTracer::AssignUniqueIds ( vtkTemporalStreamTracerNamespace::ParticleVector LocalSeedPoints)
protectedvirtual

give each one a uniqu ID. We need to use MPI to find out who is using which numbers.

Reimplemented from vtkTemporalStreamTracer.

virtual void vtkPTemporalStreamTracer::TransmitReceiveParticles ( vtkTemporalStreamTracerNamespace::ParticleVector outofdomain,
vtkTemporalStreamTracerNamespace::ParticleVector received,
bool  removeself 
)
protectedvirtual

this is used during classification of seed points and also between iterations of the main loop as particles leave each processor domain

Reimplemented from vtkTemporalStreamTracer.

void vtkPTemporalStreamTracer::AddParticleToMPISendList ( vtkTemporalStreamTracerNamespace::ParticleInformation info)
protected

Member Data Documentation

vtkMultiProcessController* vtkPTemporalStreamTracer::Controller
protected

Definition at line 123 of file vtkPTemporalStreamTracer.h.


The documentation for this class was generated from the following file: