hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
vtk.hpp File Reference
#include <cstdint>
#include <filesystem>
#include <ostream>
#include <span>
#include <string>
#include <variant>
#include <vector>
#include <Eigen/Core>
#include "hpfem/core/types.hpp"
#include "hpfem/mesh/mesh.hpp"
Include dependency graph for vtk.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  hpfem::io::VtkWriter< Dim >
 
struct  hpfem::io::VtkWriter< Dim >::Array
 One data array of the file; public so that write_vtu_facets can reuse the encoder. More...
 

Namespaces

namespace  hpfem
 
namespace  hpfem::io
 

Enumerations

enum class  hpfem::io::VtkFormat : std::uint8_t { hpfem::io::kAscii , hpfem::io::kBinary }
 

Functions

template<int Dim>
void hpfem::io::write_vtu_facets (const mesh::Mesh< Dim > &mesh, const std::filesystem::path &file, bool boundary_only=true, VtkFormat format=VtkFormat::kBinary)
 
template<int Dim>
void hpfem::io::write_vtu_facets (const mesh::Mesh< Dim > &mesh, std::ostream &out, bool boundary_only=true, VtkFormat format=VtkFormat::kBinary)
 
template void hpfem::io::write_vtu_facets< 2 > (const mesh::Mesh< 2 > &, const std::filesystem::path &, bool, VtkFormat)
 
template void hpfem::io::write_vtu_facets< 3 > (const mesh::Mesh< 3 > &, const std::filesystem::path &, bool, VtkFormat)
 
template void hpfem::io::write_vtu_facets< 2 > (const mesh::Mesh< 2 > &, std::ostream &, bool, VtkFormat)
 
template void hpfem::io::write_vtu_facets< 3 > (const mesh::Mesh< 3 > &, std::ostream &, bool, VtkFormat)
 

Detailed Description

Export of meshes with cell and point data as VTK XML unstructured grids (.vtu), for ParaView / VisIt / pyvista. See docs/theory/mesh.md#vtk-export.