Class VtkMeshFileWriter

Inheritance Relationships

Base Type

  • public FileWriterBase

Derived Type

Class Documentation

class VtkMeshFileWriter : public FileWriterBase

Write the given Mesh object in a VTK format.

Subclassed by kernel::numerics::VtkWriter

Public Functions

VtkMeshFileWriter(const std::string &filename, bool open_file = false)

Constructor.

void write_mesh(const Mesh<2> &mesh)

Write the mesh into the file specified in constructor of this class.

void write_mesh(const Mesh<2> &mesh, const VtkMeshMeshCellOptions &options)

Write the mesh into the file specified in constructor of this class.

void write_mesh(const Mesh<2> &mesh, const std::vector<real_t> &cell_values, const std::string &option_name)

Write the mesh into the file specified in the constructor of this class and also append the given cell values.

virtual void write_header() override

Write the header of the file. By default some information such as date and time the file was created is written.

Protected Functions

virtual void write_option(const Mesh<2> &mesh, const std::string &name)