discretize.TensorMesh.read_UBC#

classmethod TensorMesh.read_UBC(file_name, directory=None)[source]#

Read 2D or 3D tensor mesh from UBC-GIF formatted file.

Parameters:
file_namestr or file name

full path to the UBC-GIF formatted mesh file or just its name if directory is specified

directorystr, optional

directory where the UBC-GIF file lives

Returns:
discretize.TensorMesh

The tensor mesh