bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
vtk_writer.h
Go to the documentation of this file.
1#ifndef VTK_WRITER_H
2#define VTK_WRITER_H
3
4#include "kernel/base/config.h"
5#include "kernel/base/types.h"
6#include "kernel/discretization/vtk_mesh_file_writer.h"
7#include "kernel/utilities/file_writer_base.h"
8
9namespace kernel
10{
11namespace numerics
12{
13
14template <int dim> class Mesh;
15class TrilinosEpetraVector;
16template <int dim> class FVDoFManager;
17
19{
20 public:
22 VtkWriter(const std::string &filename, bool open_file = false);
23
24#ifdef USE_TRILINOS
25
28 void write_solution(const Mesh<1> &mesh, const TrilinosEpetraVector &data,
29 const FVDoFManager<1> &manager);
30
33 void write_solution(const Mesh<2> &mesh, const TrilinosEpetraVector &data,
34 const FVDoFManager<2> &manager);
35#endif
36
39 void write_solution(const Mesh<2> &mesh, const DynVec<real_t> &data,
40 const FVDoFManager<2> &manager);
41};
42} // namespace numerics
43} // namespace kernel
44
45#endif // VTK_WRITER_H
Definition vtk_writer.h:16
Definition vtk_mesh_file_writer.h:20
Write the given Mesh object in a VTK format.
Definition vtk_mesh_file_writer.h:26
Definition vtk_writer.h:19
void write_solution(const Mesh< 2 > &mesh, const DynVec< real_t > &data, const FVDoFManager< 2 > &manager)
Write the mesh into the file specified in constructor of this class.
Definition vtk_writer.cpp:72
Definition line_mesh_utils.cpp:13