Go to the documentation of this file.
11 #ifndef vtk_m_filter_flow_FilterParticleAdvection_h
12 #define vtk_m_filter_flow_FilterParticleAdvection_h
57 template <
typename ParticleType>
64 template <
typename ParticleType>
73 this->BlockIds = blockIds;
74 this->BlockIdsSet =
true;
103 VTKM_CONT virtual void ValidateOptions()
const;
105 bool BlockIdsSet =
false;
113 bool UseAsynchronousCommunication =
true;
114 bool UseThreadedAlgorithm =
false;
126 #endif // vtk_m_filter_flow_FilterParticleAdvection_h
Manages an array-worth of data.
Definition: ArrayHandle.h:300
Groups connected points that have the same field value.
Definition: Atomic.h:19
void SetSeeds(const std::vector< ParticleType > &seeds, vtkm::CopyFlag copyFlag=vtkm::CopyFlag::On)
Specify the seed locations for the particle advection.
Definition: FilterParticleAdvection.h:65
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:430
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
bool CanThread() const override
Returns whether the filter can execute on partitions in concurrent threads.
Definition: FilterParticleAdvection.h:36
vtkm::cont::UnknownArrayHandle Seeds
Definition: FilterParticleAdvection.h:109
void SetUseThreadedAlgorithm(bool val)
Definition: FilterParticleAdvection.h:90
void SetUseAsynchronousCommunication()
Definition: FilterParticleAdvection.h:93
bool GetUseAsynchronousCommunication()
Definition: FilterParticleAdvection.h:95
std::vector< vtkm::Id > BlockIds
Definition: FilterParticleAdvection.h:106
void SetSolverEuler()
Definition: FilterParticleAdvection.h:81
void SetNumberOfSteps(vtkm::Id n)
Specifies the maximum number of integration steps for each particle.
Definition: FilterParticleAdvection.h:50
void SetUseSynchronousCommunication()
Definition: FilterParticleAdvection.h:98
IntegrationSolverType
Definition: FlowTypes.h:19
Base class for all filters.
Definition: Filter.h:163
VectorFieldType
Definition: FlowTypes.h:25
bool GetUseThreadedAlgorithm()
Definition: FilterParticleAdvection.h:87
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
bool GetUseSynchronousCommunication()
Definition: FilterParticleAdvection.h:100
base class for advecting particles in a vector field.
Definition: FilterParticleAdvection.h:32
#define VTKM_FILTER_FLOW_EXPORT
Definition: vtkm_filter_flow_export.h:44
void SetSeeds(vtkm::cont::ArrayHandle< ParticleType > &seeds)
Specify the seed locations for the particle advection.
Definition: FilterParticleAdvection.h:58
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:236
void SetStepSize(vtkm::FloatDefault s)
Specifies the step size used for the numerical integrator.
Definition: FilterParticleAdvection.h:44
CopyFlag
Identifier used to specify whether a function should deep copy data.
Definition: Flags.h:17
vtkm::cont::ArrayHandleBasic< T > make_ArrayHandle(const T *array, vtkm::Id numberOfValues, vtkm::CopyFlag copy)
A convenience function for creating an ArrayHandle from a standard C array.
Definition: ArrayHandleBasic.h:270
void SetBlockIDs(const std::vector< vtkm::Id > &blockIds)
Definition: FilterParticleAdvection.h:71
void SetSolverRK4()
Definition: FilterParticleAdvection.h:78