VTK-m
2.0
|
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 |
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:
The dataset properties are determined by:
Minimum/MaximumExtent
: The logical point extents of the dataset.Spacing
: The distance between points of the dataset.Center
: The center of the dataset.The scalar functions is control via:
Center
: The center of a Gaussian contribution to the scalars.StandardDeviation
: The unscaled width of a Gaussian contribution.MaximumValue
: Upper limit of the scalar range.Frequency
: The Frq[XYZ] parameters of the periodic contributions.Magnitude
: The Mag[XYZ] parameters of the periodic contributions.By default, the following parameters are used:
Extents
: { -10, -10, -10 } -->
{ 10, 10, 10 }Spacing
: { 1, 1, 1 }Center
: { 0, 0, 0 }StandardDeviation
: 0.5MaximumValue
: 255Frequency
: { 60, 30, 40 }Magnitude
: { 10, 18, 5 }
|
default |
VTKM_CONT vtkm::cont::PartitionedDataSet vtkm::source::Amr::Execute | ( | ) | const |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
default |