VTK-m  2.2
ParticleAdvection.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 
11 #ifndef vtk_m_filter_flow_ParticleAdvection_h
12 #define vtk_m_filter_flow_ParticleAdvection_h
13 
17 
18 #include <vtkm/filter/flow/worklet/Analysis.h>
19 #include <vtkm/filter/flow/worklet/Field.h>
20 #include <vtkm/filter/flow/worklet/Termination.h>
21 
22 namespace vtkm
23 {
24 namespace filter
25 {
26 namespace flow
27 {
28 
29 class ParticleAdvection;
30 
31 template <>
33 {
35  using TerminationType = vtkm::worklet::flow::NormalTermination;
36  using AnalysisType = vtkm::worklet::flow::NoAnalysis<ParticleType>;
38  using FieldType = vtkm::worklet::flow::VelocityField<ArrayType>;
39 };
40 
42 
45 
48 {
49 public:
55 
56  VTKM_CONT FieldType GetField(const vtkm::cont::DataSet& data) const;
57 
58  VTKM_CONT TerminationType GetTermination(const vtkm::cont::DataSet& data) const;
59 
60  VTKM_CONT AnalysisType GetAnalysis(const vtkm::cont::DataSet& data) const;
61 };
62 
63 }
64 }
65 } // namespace vtkm::filter::flow
66 
67 #endif // vtk_m_filter_flow_ParticleAdvection_h
vtkm::filter::flow::ParticleAdvection::ArrayType
typename FlowTraits< ParticleAdvection >::ArrayType ArrayType
Definition: ParticleAdvection.h:53
vtkm::cont::ArrayHandle
Manages an array-worth of data.
Definition: ArrayHandle.h:300
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::flow::ParticleAdvection::ParticleType
typename FlowTraits< ParticleAdvection >::ParticleType ParticleType
Definition: ParticleAdvection.h:50
vtkm::Particle
Definition: Particle.h:90
vtkm::filter::flow::FlowTraits
Definition: FilterParticleAdvectionSteadyState.h:26
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
FilterParticleAdvectionSteadyState.h
vtkm::filter::flow::FlowTraits< ParticleAdvection >::TerminationType
vtkm::worklet::flow::NormalTermination TerminationType
Definition: ParticleAdvection.h:35
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::flow::FlowTraits< ParticleAdvection >::AnalysisType
vtkm::worklet::flow::NoAnalysis< ParticleType > AnalysisType
Definition: ParticleAdvection.h:36
vtkm::filter::flow::ParticleAdvection::TerminationType
typename FlowTraits< ParticleAdvection >::TerminationType TerminationType
Definition: ParticleAdvection.h:51
VTKM_FILTER_FLOW_EXPORT
#define VTKM_FILTER_FLOW_EXPORT
Definition: vtkm_filter_flow_export.h:44
vtkm::filter::flow::FilterParticleAdvectionSteadyState
Definition: FilterParticleAdvectionSteadyState.h:29
vtkm_filter_flow_export.h
vtkm::filter::flow::ParticleAdvection
Advect particles in a vector field.
Definition: ParticleAdvection.h:46
FlowTypes.h
vtkm::filter::flow::ParticleAdvection::AnalysisType
typename FlowTraits< ParticleAdvection >::AnalysisType AnalysisType
Definition: ParticleAdvection.h:52
vtkm::filter::flow::ParticleAdvection::FieldType
typename FlowTraits< ParticleAdvection >::FieldType FieldType
Definition: ParticleAdvection.h:54
vtkm::filter::flow::FlowTraits< ParticleAdvection >::FieldType
vtkm::worklet::flow::VelocityField< ArrayType > FieldType
Definition: ParticleAdvection.h:38