discretize.TreeMesh.from_omf

static TreeMesh.from_omf(element)[source]

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
elementomf.volume.VolumeElement

The open mining format volume element object

Returns
meshdiscretize.TensorMesh

The returned mesh type will be appropriately based on the input element.

modelsdict of [str, (n_cells) numpy.ndarray]

The models contained in element

Notes

Currently only :class:discretize.TensorMesh is supported.