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

#include <vtkPParticleTracerBase.h>

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

Classes

struct  RemoteParticleInfo
 

Public Types

typedef vtkParticleTracerBase Superclass
 
- Public Types inherited from vtkParticleTracerBase
enum  Solvers {
  RUNGE_KUTTA2, RUNGE_KUTTA4, RUNGE_KUTTA45, NONE,
  UNKNOWN
}
 
typedef vtkPolyDataAlgorithm Superclass
 
- Public Types inherited from vtkPolyDataAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkPParticleTracerBaseNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetController (vtkMultiProcessController *controller)
 
virtual vtkMultiProcessController * GetController ()
 
- Public Member Functions inherited from vtkParticleTracerBase
vtkParticleTracerBaseNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void PrintParticleHistories ()
 
void SetIntegrator (vtkInitialValueProblemSolver *)
 
virtual
vtkInitialValueProblemSolver
GetIntegrator ()
 
void SetIntegratorType (int type)
 
int GetIntegratorType ()
 
virtual bool GetComputeVorticity ()
 
void SetComputeVorticity (bool)
 
virtual double GetTerminalSpeed ()
 
void SetTerminalSpeed (double)
 
void SetRotationScale (double)
 
virtual double GetRotationScale ()
 
virtual void SetIgnorePipelineTime (int)
 
virtual int GetIgnorePipelineTime ()
 
virtual void IgnorePipelineTimeOn ()
 
virtual void IgnorePipelineTimeOff ()
 
void SetForceReinjectionEveryNSteps (int)
 
virtual int GetForceReinjectionEveryNSteps ()
 
void SetTerminationTime (double t)
 
virtual double GetTerminationTime ()
 
void SetStartTime (double t)
 
virtual double GetStartTime ()
 
virtual int GetStaticSeeds ()
 
virtual int GetStaticMesh ()
 
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 ()
 
virtual void SetDisableResetCache (int)
 
virtual int GetDisableResetCache ()
 
virtual void DisableResetCacheOn ()
 
virtual void DisableResetCacheOff ()
 
void AddSourceConnection (vtkAlgorithmOutput *input)
 
void RemoveAllSources ()
 
- Public Member Functions inherited from vtkPolyDataAlgorithm
vtkPolyDataAlgorithmNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
vtkDataObjectGetInput ()
 
vtkDataObjectGetInput (int port)
 
vtkPolyDataGetPolyDataInput (int port)
 
vtkPolyDataGetOutput ()
 
vtkPolyDataGetOutput (int)
 
virtual void SetOutput (vtkDataObject *d)
 
void SetInputData (vtkDataObject *)
 
void SetInputData (int, vtkDataObject *)
 
void AddInputData (vtkDataObject *)
 
void AddInputData (int, vtkDataObject *)
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformation * GetInputPortInformation (int port)
 
vtkInformation * GetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformation * GetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformation * GetInputInformation (int port, int index)
 
vtkInformation * GetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
virtual double ComputePriority ()
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformation * GetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformation * GetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
int * GetUpdateExtent ()
 
int * GetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkPParticleTracerBaseSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkParticleTracerBase
static int IsTypeOf (const char *type)
 
static vtkParticleTracerBaseSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkPolyDataAlgorithm
static vtkPolyDataAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPolyDataAlgorithmSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
static vtkInformationIntegerKey * INPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKey * INPUT_IS_REPEATABLE ()
 
static
vtkInformationInformationVectorKey * 
INPUT_REQUIRED_FIELDS ()
 
static
vtkInformationStringVectorKey * 
INPUT_REQUIRED_DATA_TYPE ()
 
static
vtkInformationInformationVectorKey * 
INPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKey * INPUT_PORT ()
 
static vtkInformationIntegerKey * INPUT_CONNECTION ()
 
static vtkInformationIntegerKey * PRESERVES_DATASET ()
 
static vtkInformationIntegerKey * PRESERVES_GEOMETRY ()
 
static vtkInformationIntegerKey * PRESERVES_BOUNDS ()
 
static vtkInformationIntegerKey * PRESERVES_TOPOLOGY ()
 
static vtkInformationIntegerKey * PRESERVES_ATTRIBUTES ()
 
static vtkInformationIntegerKey * PRESERVES_RANGES ()
 
static vtkInformationIntegerKey * MANAGES_METAINFORMATION ()
 

Protected Types

typedef std::vector
< RemoteParticleInfo
RemoteParticleVector
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkPParticleTracerBase ()
 
 ~vtkPParticleTracerBase ()
 
virtual int RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual vtkPolyDataExecute (vtkInformationVector **inputVector)
 
virtual bool SendParticleToAnotherProcess (vtkParticleTracerBaseNamespace::ParticleInformation &info, vtkParticleTracerBaseNamespace::ParticleInformation &previous, vtkPointData *)
 
virtual void SendReceiveParticles (RemoteParticleVector &outofdomain, RemoteParticleVector &received)
 
void UpdateParticleListFromOtherProcesses ()
 
virtual bool IsPointDataValid (vtkDataObject *input)
 
virtual void AssignSeedsToProcessors (double time, vtkDataSet *source, int sourceID, int ptId, vtkParticleTracerBaseNamespace::ParticleVector &LocalSeedPoints, int &LocalAssignedCount)
 
virtual void AssignUniqueIds (vtkParticleTracerBaseNamespace::ParticleVector &LocalSeedPoints)
 
- Protected Member Functions inherited from vtkParticleTracerBase
 vtkParticleTracerBase ()
 
virtual ~vtkParticleTracerBase ()
 
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 ProcessInput (vtkInformationVector **inputVector)
 
virtual void Initialize ()
 
virtual int OutputParticles (vtkPolyData *poly)=0
 
virtual void Finalize ()
 
int InitializeInterpolator ()
 
int UpdateDataCache (vtkDataObject *td)
 
void TestParticles (vtkParticleTracerBaseNamespace::ParticleVector &candidates, std::vector< int > &passed)
 
void CreateProtoPD (vtkDataObject *input)
 
vtkFloatArray * GetParticleAge (vtkPointData *)
 
vtkIntArray * GetParticleIds (vtkPointData *)
 
vtkCharArray * GetParticleSourceIds (vtkPointData *)
 
vtkIntArray * GetInjectedPointIds (vtkPointData *)
 
vtkIntArray * GetInjectedStepIds (vtkPointData *)
 
vtkIntArray * GetErrorCodeArr (vtkPointData *)
 
vtkFloatArray * GetParticleVorticity (vtkPointData *)
 
vtkFloatArray * GetParticleRotation (vtkPointData *)
 
vtkFloatArray * GetParticleAngularVel (vtkPointData *)
 
bool InsideBounds (double point[])
 
void CalculateVorticity (vtkGenericCell *cell, double pcoords[3], vtkDoubleArray *cellVectors, double vorticity[3])
 
double GetCacheDataTime (int i)
 
double GetCacheDataTime ()
 
virtual void ResetCache ()
 
void AddParticle (vtkParticleTracerBaseNamespace::ParticleInformation &info, double *velocity)
 
void TestParticles (vtkParticleTracerBaseNamespace::ParticleVector &candidates, vtkParticleTracerBaseNamespace::ParticleVector &passed, int &count)
 
void UpdateParticleList (vtkParticleTracerBaseNamespace::ParticleVector &candidates)
 
void IntegrateParticle (vtkParticleTracerBaseNamespace::ParticleListIterator &it, double currenttime, double terminationtime, vtkInitialValueProblemSolver *integrator)
 
bool ComputeDomainExitLocation (double pos[4], double p2[4], double intersection[4], vtkGenericCell *cell)
 
bool IsPointDataValid (vtkCompositeDataSet *input, std::vector< std::string > &arrayNames)
 
void GetPointDataArrayNames (vtkDataSet *input, std::vector< std::string > &names)
 
- Protected Member Functions inherited from vtkPolyDataAlgorithm
 vtkPolyDataAlgorithm ()
 
 ~vtkPolyDataAlgorithm ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArray * GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArray * GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformation * GetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 

Protected Attributes

vtkMultiProcessController * Controller
 
RemoteParticleVector MPISendList
 
int Rank
 
int NumProcs
 
RemoteParticleVector Tail
 
- Protected Attributes inherited from vtkParticleTracerBase
vtkSmartPointer< vtkPolyDataOutput
 
vtkSmartPointer< vtkPointData > ProtoPD
 
vtkIdType UniqueIdCounter
 
vtkParticleTracerBaseNamespace::ParticleDataList ParticleHistories
 
vtkSmartPointer< vtkPointData > ParticlePointData
 
int ReinjectionCounter
 
int IgnorePipelineTime
 
int DisableResetCache
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformation * Information
 
double Progress
 
char * ProgressText
 
unsigned long ErrorCode
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKey * PORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

Definition at line 39 of file vtkPParticleTracerBase.h.

Member Typedef Documentation

Definition at line 43 of file vtkPParticleTracerBase.h.

Definition at line 62 of file vtkPParticleTracerBase.h.

Constructor & Destructor Documentation

vtkPParticleTracerBase::vtkPParticleTracerBase ( )
protected
vtkPParticleTracerBase::~vtkPParticleTracerBase ( )
protected

Member Function Documentation

static int vtkPParticleTracerBase::IsTypeOf ( const char *  type)
static
virtual int vtkPParticleTracerBase::IsA ( const char *  type)
virtual
static vtkPParticleTracerBase* vtkPParticleTracerBase::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkPParticleTracerBase::NewInstanceInternal ( ) const
protectedvirtual
vtkPParticleTracerBase* vtkPParticleTracerBase::NewInstance ( ) const
void vtkPParticleTracerBase::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkPParticleTracerBase::SetController ( vtkMultiProcessController *  controller)
virtual

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

virtual vtkMultiProcessController* vtkPParticleTracerBase::GetController ( )
virtual

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

virtual int vtkPParticleTracerBase::RequestUpdateExtent ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

This is called by the superclass. This is the method you should override.

Reimplemented from vtkParticleTracerBase.

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

This is called by the superclass. This is the method you should override.

Reimplemented from vtkParticleTracerBase.

virtual vtkPolyData* vtkPParticleTracerBase::Execute ( vtkInformationVector **  inputVector)
protectedvirtual

Reimplemented from vtkParticleTracerBase.

virtual bool vtkPParticleTracerBase::SendParticleToAnotherProcess ( vtkParticleTracerBaseNamespace::ParticleInformation info,
vtkParticleTracerBaseNamespace::ParticleInformation previous,
vtkPointData *   
)
protectedvirtual

Reimplemented from vtkParticleTracerBase.

virtual void vtkPParticleTracerBase::AssignSeedsToProcessors ( double  time,
vtkDataSet *  source,
int  sourceID,
int  ptId,
vtkParticleTracerBaseNamespace::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 vtkParticleTracerBase.

virtual void vtkPParticleTracerBase::AssignUniqueIds ( vtkParticleTracerBaseNamespace::ParticleVector LocalSeedPoints)
protectedvirtual

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

Reimplemented from vtkParticleTracerBase.

virtual void vtkPParticleTracerBase::SendReceiveParticles ( RemoteParticleVector outofdomain,
RemoteParticleVector received 
)
protectedvirtual

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

void vtkPParticleTracerBase::UpdateParticleListFromOtherProcesses ( )
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 vtkParticleTracerBase.

virtual bool vtkPParticleTracerBase::IsPointDataValid ( vtkDataObject input)
protectedvirtual

Method that checks that the input arrays are ordered the same on all data sets. This needs to be true for all blocks in a composite data set as well as across all processes.

Reimplemented from vtkParticleTracerBase.

Member Data Documentation

vtkMultiProcessController* vtkPParticleTracerBase::Controller
protected

Definition at line 123 of file vtkPParticleTracerBase.h.

RemoteParticleVector vtkPParticleTracerBase::MPISendList
protected

Definition at line 126 of file vtkPParticleTracerBase.h.

int vtkPParticleTracerBase::Rank
protected

Definition at line 128 of file vtkPParticleTracerBase.h.

int vtkPParticleTracerBase::NumProcs
protected

Definition at line 129 of file vtkPParticleTracerBase.h.

RemoteParticleVector vtkPParticleTracerBase::Tail
protected

Definition at line 130 of file vtkPParticleTracerBase.h.


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