Skip to content

adding hdfvtk format export for all meshes #3620

@shimwell

Description

@shimwell

Description

We can currently export mesh data to an asci format vtk file using mesh.write_data_to_vtk().

This makes use of an optional dependency vtk to write the asci vtk format file.

Avoiding importing or using the vtk package is possible as we can also write hdf5 format vtk files with h5py. H5py is a core dependency of openmc and the format is newer. Newer versions of Paraview can open the hdfvtk format quickly and it takes up less disk space.

We should allow this hdfvtk format for all meshes

  • RegularMesh
  • RectalinearMesh
  • SphericalMesh
  • CylindricalMesh
  • UnstructuredMesh

I have done UnstructuredMesh in this PR which serves as an example of how to do this.

Compatibility

The old asci legacy vtk expirt remains as the default option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions