25 #include "GenericFile.h" 36 class GenericFunction;
38 template<
typename T>
class MeshFunction;
50 VTKFile(
const std::string filename, std::string encoding);
56 void write(
const Mesh& mesh);
74 void write(
const Mesh& mesh,
double t);
89 void write(
const Function& u,
double t);
95 void write_mesh(
const Mesh& mesh,
double time);
97 std::string
init(
const Mesh& mesh, std::size_t dim)
const;
99 void finalize(std::string vtu_filename,
double time);
101 void results_write(
const Function& u, std::string file)
const;
104 std::string file)
const;
106 void pvd_file_write(std::size_t step,
double time, std::string file);
109 void pvtu_write_function(std::size_t dim, std::size_t rank,
110 const std::string data_location,
111 const std::string name,
112 const std::string filename,
113 std::size_t num_processes)
const;
115 void pvtu_write_mesh(
const std::string pvtu_filename,
116 const std::size_t num_processes)
const;
118 void pvtu_write(
const Function& u,
const std::string pvtu_filename)
const;
120 void vtk_header_open(std::size_t num_vertices, std::size_t num_cells,
121 std::string file)
const;
123 void vtk_header_close(std::string file)
const;
125 std::string vtu_name(
const int process,
const int num_processes,
126 const int counter, std::string ext)
const;
128 void clear_file(std::string file)
const;
131 void mesh_function_write(T& meshfunction,
double time);
134 std::string strip_path(std::string file)
const;
138 void pvtu_write_mesh(pugi::xml_node xml_node)
const;
141 const std::string _encoding;
142 std::string encode_string;
double time()
Return wall time elapsed since some implementation dependent epoch.
Definition: timing.cpp:48
Base class for file I/O objects.
Definition: GenericFile.h:44
Output of meshes and functions in VTK format.
Definition: VTKFile.h:45
Definition: Function.h:65
void init(int argc, char *argv[])
Definition: init.cpp:27
Definition: GenericFunction.h:53