Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
mesh_exporter.hpp File Reference
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <map>
#include <numeric>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <utility>
#include <vector>
#include <Eigen/Dense>
#include <vtkAppendFilter.h>
#include <vtkCell.h>
#include <vtkCellArray.h>
#include <vtkCellData.h>
#include <vtkDoubleArray.h>
#include <vtkFieldData.h>
#include <vtkFloatArray.h>
#include <vtkIdList.h>
#include <vtkIntArray.h>
#include <vtkLongLongArray.h>
#include <vtkMPIController.h>
#include <vtkNew.h>
#include <vtkPointData.h>
#include <vtkPoints.h>
#include <vtkPolyData.h>
#include <vtkPolyDataReader.h>
#include <vtkPolygon.h>
#include <vtkPolyhedron.h>
#include <vtkSmartPointer.h>
#include <vtkTetra.h>
#include <vtkTriangle.h>
#include <vtkType.h>
#include <vtkUnstructuredGrid.h>
#include <vtkUnstructuredGridWriter.h>
#include <vtkXMLPUnstructuredGridWriter.h>
#include <vtkXMLUnstructuredGridReader.h>
#include "vulpes/datastructure/crs_map.hpp"
#include "vulpes/datastructure/kdtree.hpp"
#include "vulpes/geometry/mesh/mesh_2d.hpp"
#include "vulpes/geometry/simplexify.hpp"
#include "vulpes/geometry/traits.hpp"
#include "vulpes/utils/mpi_wrappers.hpp"
#include "vulpes/utils/serialize.hpp"
Include dependency graph for mesh_exporter.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vulpes::geometry::VtuOptions
 Configuration options for VTU file export. More...
class  vulpes::geometry::MeshExporterBase< MeshDerived >
 Base class for exporting a mesh to VTK file formats. More...
class  vulpes::geometry::MeshExporter< MeshDerived >
 Exports a single mesh as a single VTK grid. More...
class  vulpes::geometry::MeshExporterSubmesh< MeshDerived >
 Exports a mesh as multiple VTK grids, one for each cell. More...

Namespaces

namespace  vulpes
namespace  vulpes::geometry

Enumerations

enum  vulpes::geometry::DataMode : std::uint8_t { vulpes::geometry::Ascii = vtkXMLWriterBase::Ascii , vulpes::geometry::Binary = vtkXMLWriterBase::Binary , vulpes::geometry::Base64 = vtkXMLWriterBase::Appended }
 Specifies the data mode for writing XML files. More...
enum  vulpes::geometry::CoordinatePrecision : std::uint8_t { vulpes::geometry::Float32 = VTK_FLOAT , vulpes::geometry::Float64 = VTK_DOUBLE }
 Specifies the precision for point coordinates in VTU files. More...

Functions

template<typename MeshType>
void vulpes::geometry::exportMesh (const MeshType &mesh, const std::string &filename)
template<typename MeshDerived>
bool vulpes::geometry::shouldModifyPeriodicMesh (const MeshDerived &mesh)
 Determines if a periodic mesh should be modified for export.
template<typename ScalarType, typename IndexType>
Mesh2D< ScalarType, IndexType > vulpes::geometry::reopenPeriodicMeshForExport (const Mesh2D< ScalarType, IndexType > &mesh)
 Reopens a closed 2D periodic mesh for export.