10#include <dolfinx/common/MPI.h>
11#include <dolfinx/common/types.h>
24template <dolfinx::scalar T, std::
floating_po
int U>
30template <std::
floating_po
int T>
50 VTKFile(MPI_Comm comm,
const std::filesystem::path& filename,
51 const std::string& file_mode);
66 template <std::
floating_po
int U>
83 template <dolfinx::scalar T, std::
floating_po
int U = scalar_value_type_t<T>>
89 std::unique_ptr<pugi::xml_document> _pvd_xml;
91 std::filesystem::path _filename;
A duplicate MPI communicator and manage lifetime of the communicator.
Definition MPI.h:43
Output of meshes and functions in VTK/ParaView format.
Definition VTKFile.h:47
void write(const mesh::Mesh< U > &mesh, double time=0.0)
Write a mesh to file. Supports arbitrary order Lagrange isoparametric cells.
Definition VTKFile.cpp:771
void close()
Close file.
Definition VTKFile.cpp:739
VTKFile(MPI_Comm comm, const std::filesystem::path &filename, const std::string &file_mode)
Create VTK file.
Definition VTKFile.cpp:717
~VTKFile()
Destructor.
Definition VTKFile.cpp:729
void flush()
Flushes XML files to disk.
Definition VTKFile.cpp:756
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition Mesh.h:23
Finite element method functionality.
Definition assemble_matrix_impl.h:26
Support for file IO.
Definition ADIOS2Writers.h:42
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32