Volume

Methods for converting volumetric data objects

Volume Shape

omfvista.volume.get_volume_shape(vol)[source]

Returns the shape of a gridded volume

Volume Grid Geometry to VTK

omfvista.volume.volume_grid_geom_to_vtk(volgridgeom, origin=0.0, 0.0, 0.0)[source]

Convert the 3D gridded volume to a pyvista.StructuredGrid (or a pyvista.RectilinearGrid when apprropriate) object contatining the 2D surface.

Parameters

volgridgeom (omf.volume.VolumeGridGeometry) – the grid geometry to convert

Volume to VTK

omfvista.volume.volume_to_vtk(volelement, origin=0.0, 0.0, 0.0)[source]

Convert the volume element to a VTK data object.

Parameters

volelement (omf.volume.VolumeElement) – The volume element to convert