Loading...
Searching...
No Matches
vtk.hpp File Reference
#include <fstream>
#include <iomanip>
#include <iostream>
#include <stdexcept>
#include <string>
#include <variant>
#include <vector>
#include "terra/grid/grid_types.hpp"

Go to the source code of this file.

Classes

class  terra::io::VTKOutput< InputDataScalarType >
 

Namespaces

namespace  terra
 
namespace  terra::io
 

Enumerations

enum class  terra::io::VtkElementType { terra::io::LINEAR_QUAD , terra::io::QUADRATIC_QUAD }
 
enum class  terra::io::DiagonalSplitType { terra::io::FORWARD_SLASH , terra::io::BACKWARD_SLASH }
 

Functions

void terra::io::write_vtk_xml_quad_mesh (const std::string &filename, const Kokkos::View< double **[3] > &vertices, VtkElementType elementType=VtkElementType::LINEAR_QUAD)
 Writes a 2D grid of vertices stored in a Kokkos View to a VTK XML Unstructured Grid file (.vtu) representing a quadrilateral mesh (linear or quadratic).
 
template<typename T >
std::string terra::io::get_vtk_type_string ()
 
template<typename ScalarType >
void terra::io::write_rectilinear_to_triangular_vtu (Kokkos::View< ScalarType **[3] > points_device_view, const std::string &filename, DiagonalSplitType split_type)
 
template<typename PointRealT , typename AttachedDataType >
void terra::io::write_surface_radial_extruded_to_wedge_vtu (grid::Grid2DDataVec< PointRealT, 3 > surface_points_device_view, grid::Grid1DDataScalar< PointRealT > radii_device_view, std::optional< AttachedDataType > optional_attached_data_device_view, const std::string &vector_data_name, const std::string &filename, DiagonalSplitType split_type)
 

Variables

constexpr int terra::io::VTK_QUAD = 9
 
constexpr int terra::io::VTK_QUADRATIC_QUAD = 23