|
| | VtkWriter (const mesh::Mesh< Dim > &mesh, VtkFormat format=VtkFormat::kBinary) |
| |
| Index | num_points () const noexcept |
| | Number of points written: vertices, plus one edge node per edge for order-2 meshes.
|
| |
| VtkWriter & | cell_scalars (std::string name, std::span< const Real > values) |
| |
| VtkWriter & | cell_scalars (std::string name, std::span< const Complex > values) |
| |
| VtkWriter & | cell_scalars (std::string name, std::span< const Index > values) |
| |
| VtkWriter & | cell_vectors (std::string name, std::span< const Point< Dim > > values) |
| |
| VtkWriter & | cell_vectors (std::string name, std::span< const Eigen::Matrix< Complex, Dim, 1 > > values) |
| |
| VtkWriter & | point_scalars (std::string name, std::span< const Real > values) |
| |
| VtkWriter & | point_scalars (std::string name, std::span< const Complex > values) |
| |
| VtkWriter & | point_vectors (std::string name, std::span< const Point< Dim > > values) |
| |
| VtkWriter & | point_vectors (std::string name, std::span< const Eigen::Matrix< Complex, Dim, 1 > > values) |
| |
| void | write (std::ostream &out) const |
| |
| void | write (const std::filesystem::path &file) const |
| |
template<int Dim>
class hpfem::io::VtkWriter< Dim >
Builds a .vtu file from a mesh. Cells are written as (quadratic) triangles or tetrahedra; a second-order mesh exports its edge nodes as additional points, so curved cells are shown curved. The cell tag is always written as cell data cell_tag.
Data arrays are attached fluently; sizes must match mesh.num_cells() for cell data and num_points() for point data. Complex arrays are written as two real arrays <name>_re and <name>_im (convention exp(-iωt), CLAUDE.md §6). Vectors are padded to three components as VTK requires.