ogs5py.tools.vtk_viewer

Viewer for a vtk file.

show_vtk(vtkfile, log_scale=False)[source]

Display a given mesh colored by its material ID.

Parameters:
  • vtkfile (str) – Path to the vtk/vtu file to show.
  • log_scale (bool, optional) – State if the data should be shown in log scale. Default: False

Notes

This routine needs “mayavi” to display the mesh. (see here: https://github.com/enthought/mayavi)