VTK-m  2.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
vtkm::source::Amr Class Reference

The Amr source creates a dataset similar to VTK's vtkRTAnalyticSource. More...

#include <Amr.h>

Public Member Functions

VTKM_CONT Amr ()=default
 
VTKM_CONT void SetDimension (vtkm::IdComponent dimension)
 
VTKM_CONT vtkm::IdComponent GetDimension () const
 
VTKM_CONT void SetCellsPerDimension (vtkm::IdComponent cellsPerDimension)
 
VTKM_CONT vtkm::IdComponent GetCellsPerDimension () const
 
VTKM_CONT void SetNumberOfLevels (vtkm::IdComponent numberOfLevels)
 
VTKM_CONT vtkm::IdComponent GetNumberOfLevels () const
 
VTKM_CONT vtkm::cont::PartitionedDataSet Execute () const
 

Public Attributes

VTKM_CONT VTKM_DEPRECATED(2.0, "Use Set* methods to set parameters.") Amr(vtkm VTKM_CON ~Amr )()=default
 

Private Member Functions

template<vtkm::IdComponent Dim>
vtkm::cont::DataSet GenerateDataSet (unsigned int level, unsigned int amrIndex) const
 

Private Attributes

vtkm::IdComponent Dimension = 2
 
vtkm::IdComponent CellsPerDimension = 6
 
vtkm::IdComponent NumberOfLevels = 4
 

Detailed Description

The Amr source creates a dataset similar to VTK's vtkRTAnalyticSource.

This class generates a predictable structured dataset with a smooth yet interesting set of scalars, which is useful for testing and benchmarking.

The Execute method creates a complete structured dataset that have a point field names 'scalars'

The scalars are computed as:

MaxVal * Gauss + MagX * sin(FrqX*x) + MagY * sin(FrqY*y) + MagZ * cos(FrqZ*z)

The dataset properties are determined by:

The scalar functions is control via:

By default, the following parameters are used:

Constructor & Destructor Documentation

◆ Amr()

VTKM_CONT vtkm::source::Amr::Amr ( )
default

Member Function Documentation

◆ Execute()

VTKM_CONT vtkm::cont::PartitionedDataSet vtkm::source::Amr::Execute ( ) const

◆ GenerateDataSet()

template<vtkm::IdComponent Dim>
vtkm::cont::DataSet vtkm::source::Amr::GenerateDataSet ( unsigned int  level,
unsigned int  amrIndex 
) const
private

◆ GetCellsPerDimension()

VTKM_CONT vtkm::IdComponent vtkm::source::Amr::GetCellsPerDimension ( ) const
inline

◆ GetDimension()

VTKM_CONT vtkm::IdComponent vtkm::source::Amr::GetDimension ( ) const
inline

◆ GetNumberOfLevels()

VTKM_CONT vtkm::IdComponent vtkm::source::Amr::GetNumberOfLevels ( ) const
inline

◆ SetCellsPerDimension()

VTKM_CONT void vtkm::source::Amr::SetCellsPerDimension ( vtkm::IdComponent  cellsPerDimension)
inline

◆ SetDimension()

VTKM_CONT void vtkm::source::Amr::SetDimension ( vtkm::IdComponent  dimension)
inline

◆ SetNumberOfLevels()

VTKM_CONT void vtkm::source::Amr::SetNumberOfLevels ( vtkm::IdComponent  numberOfLevels)
inline

Member Data Documentation

◆ CellsPerDimension

vtkm::IdComponent vtkm::source::Amr::CellsPerDimension = 6
private

◆ Dimension

vtkm::IdComponent vtkm::source::Amr::Dimension = 2
private

◆ NumberOfLevels

vtkm::IdComponent vtkm::source::Amr::NumberOfLevels = 4
private

◆ ~Amr

VTKM_CONT VTKM_DEPRECATED (2.0, "Use Set* methods to set parameters.") Amr(vtkm VTKM_CON vtkm::source::Amr::~Amr) ()=default
default

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