vtk-m/vtkm/filter/ParticleAdvection.h

48 lines
1.5 KiB
C
Raw Normal View History

2020-06-18 15:52:16 +00:00
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//============================================================================
#ifndef vtk_m_filter_ParticleAdvection_h
#define vtk_m_filter_ParticleAdvection_h
#include <vtkm/Particle.h>
#include <vtkm/filter/FilterParticleAdvection.h>
2020-06-18 15:52:16 +00:00
namespace vtkm
{
namespace filter
{
2021-06-22 17:36:14 +00:00
/// \brief Advect particles in a vector field.
2020-06-18 15:52:16 +00:00
/// Takes as input a vector field and seed locations and generates the
2020-06-18 19:50:25 +00:00
/// end points for each seed through the vector field.
template <typename ParticleType = vtkm::Particle>
class ParticleAdvectionBase
: public vtkm::filter::FilterParticleAdvection<ParticleAdvectionBase<ParticleType>, ParticleType>
2020-06-18 15:52:16 +00:00
{
public:
VTKM_CONT ParticleAdvectionBase();
template <typename DerivedPolicy>
vtkm::cont::PartitionedDataSet PrepareForExecution(
const vtkm::cont::PartitionedDataSet& input,
2020-06-18 15:52:16 +00:00
const vtkm::filter::PolicyBase<DerivedPolicy>& policy);
};
using ParticleAdvection = ParticleAdvectionBase<vtkm::Particle>;
2020-06-18 15:52:16 +00:00
}
} // namespace vtkm::filter
#ifndef vtk_m_filter_ParticleAdvection_hxx
#include <vtkm/filter/ParticleAdvection.hxx>
#endif
#endif // vtk_m_filter_ParticleAdvection_h