Loading...
Searching...
No Matches
terra::io::VTKOutput< InputDataScalarType > Class Template Reference

#include <vtk.hpp>

Public Types

using ScalarFieldDeviceView = Kokkos::View< InputDataScalarType **** >
 
using VectorFieldDeviceView = Kokkos::View< InputDataScalarType ****[3] >
 
using ScalarFieldHostView = ScalarFieldDeviceView::HostMirror
 
using VectorFieldHostView = VectorFieldDeviceView::HostMirror
 

Public Member Functions

template<class ShellCoordsView , class RadiiView >
 VTKOutput (const ShellCoordsView &shell_node_coords_device, const RadiiView &radii_per_layer_device, bool generate_quadratic_elements_from_linear_input=false)
 
template<class ScalarFieldViewDevice >
void add_scalar_field (const ScalarFieldViewDevice &field_data_view_device)
 
template<class VectorFieldViewDevice >
void add_vector_field (const VectorFieldViewDevice &field_data_view_device)
 
void write (const std::string &output_file)
 

Detailed Description

template<typename InputDataScalarType>
class terra::io::VTKOutput< InputDataScalarType >
Template Parameters
InputDataScalarTypeThe scalar type of the added grids - the output type can be set later.

Member Typedef Documentation

◆ ScalarFieldDeviceView

template<typename InputDataScalarType >
using terra::io::VTKOutput< InputDataScalarType >::ScalarFieldDeviceView = Kokkos::View< InputDataScalarType**** >

◆ ScalarFieldHostView

template<typename InputDataScalarType >
using terra::io::VTKOutput< InputDataScalarType >::ScalarFieldHostView = ScalarFieldDeviceView::HostMirror

◆ VectorFieldDeviceView

template<typename InputDataScalarType >
using terra::io::VTKOutput< InputDataScalarType >::VectorFieldDeviceView = Kokkos::View< InputDataScalarType**** [3] >

◆ VectorFieldHostView

template<typename InputDataScalarType >
using terra::io::VTKOutput< InputDataScalarType >::VectorFieldHostView = VectorFieldDeviceView::HostMirror

Constructor & Destructor Documentation

◆ VTKOutput()

template<typename InputDataScalarType >
template<class ShellCoordsView , class RadiiView >
terra::io::VTKOutput< InputDataScalarType >::VTKOutput ( const ShellCoordsView &  shell_node_coords_device,
const RadiiView &  radii_per_layer_device,
bool  generate_quadratic_elements_from_linear_input = false 
)
inline

Member Function Documentation

◆ add_scalar_field()

template<typename InputDataScalarType >
template<class ScalarFieldViewDevice >
void terra::io::VTKOutput< InputDataScalarType >::add_scalar_field ( const ScalarFieldViewDevice &  field_data_view_device)
inline

◆ add_vector_field()

template<typename InputDataScalarType >
template<class VectorFieldViewDevice >
void terra::io::VTKOutput< InputDataScalarType >::add_vector_field ( const VectorFieldViewDevice &  field_data_view_device)
inline

◆ write()

template<typename InputDataScalarType >
void terra::io::VTKOutput< InputDataScalarType >::write ( const std::string &  output_file)
inline

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