discretize.mixins.InterfaceOMF.from_omf#
- static InterfaceOMF.from_omf(element)[source]#
Convert an
omf
object to adiscretize
mesh.Convert an OMF element to it’s proper
discretize
type. Automatically determines the output type. Returns both the mesh and a dictionary of model arrays.- Parameters:
- element
omf.volume.VolumeElement
The open mining format volume element object
- element
- Returns:
- mesh
discretize.TensorMesh
The returned mesh type will be appropriately based on the input element.
- models
dict
of
[str
, (n_cells
)numpy.ndarray
] The models contained in element
- mesh
Notes
Currently only :class:discretize.TensorMesh is supported.