discretize.TreeMesh.from_omf#
- static TreeMesh.from_omf(element)[source]#
Convert an
omfobject to adiscretizemesh.Convert an OMF element to it’s proper
discretizetype. 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
dictof[str, (n_cells)numpy.ndarray] The models contained in element
- mesh
Notes
Currently only :class:discretize.TensorMesh is supported.