Inheritance diagram of TensorMeshIO
class discretize.mixins.TensorMeshIO[source]#

Class for managing the input/output of tensor meshes and models.

The TensorMeshIO class contains a set of class methods specifically for the TensorMesh class. These include:

  • Read/write tensor meshes to file

  • Read/write models defined on tensor meshes


readModelUBC(*args, **kwargs)

readModelUBC has been deprecated.

readUBC(file_name[, directory])

readUBC has been deprecated and replaced by read_UBC

readVTK(file_name[, directory])

readVTK has been deprecated and replaced by read_vtk

read_UBC(file_name[, directory])

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

read_model_UBC(file_name[, directory])

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

read_vtk(file_name[, directory])

Read VTK rectilinear file (vtr or xml) and return a discretize tensor mesh (and models)


Convert vtkRectilinearGrid or RectilinearGrid object to a TensorMesh object.

writeModelUBC(*args, **kwargs)

writeModelUBC has been deprecated.

writeUBC(*args, **kwargs)

writeUBC has been deprecated.

write_UBC(file_name[, models, directory, ...])

Write 2D or 3D tensor mesh (and models) to UBC-GIF formatted file(s).

write_model_UBC(file_name, model[, directory])

Write 2D or 3D tensor model to UBC-GIF formatted file.

Galleries and Tutorials using discretize.mixins.TensorMeshIO#