DOLFIN-X
DOLFIN-X C++ interface
VTKWriter.h
1 // Copyright (C) 2010 Garth N. Wells
2 //
3 // This file is part of DOLFINX (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #pragma once
8 
9 #include <cstdint>
10 #include <petscsys.h>
11 #include <string>
12 #include <vector>
13 
14 namespace dolfinx
15 {
16 namespace function
17 {
18 template <typename T>
19 class Function;
20 }
21 namespace mesh
22 {
23 class Mesh;
24 }
25 
26 namespace io
27 {
28 
30 
31 class VTKWriter
32 {
33 public:
35  static void write_mesh(const mesh::Mesh& mesh, std::size_t cell_dim,
36  std::string file);
37 
40  std::string file);
41 };
42 } // namespace io
43 } // namespace dolfinx
This class represents a function in a finite element function space , given by.
Definition: Function.h:42
Write VTK mesh::Mesh representation.
Definition: VTKWriter.h:32
static void write_mesh(const mesh::Mesh &mesh, std::size_t cell_dim, std::string file)
mesh::Mesh writer
Definition: VTKWriter.cpp:253
static void write_cell_data(const function::Function< PetscScalar > &u, std::string file)
Cell data writer.
Definition: VTKWriter.cpp:259
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition: Mesh.h:47