discretize.mixins.TensorMeshIO.read_vtk#
- classmethod TensorMeshIO.read_vtk(file_name, directory='')[source]#
Read VTK rectilinear file (vtr or xml) and return a discretize tensor mesh (and models).
This method reads a VTK rectilinear file (vtr or xml format) and returns a tuple containing the
TensorMesh
as well as a dictionary containing any models. The keys in the model dictionary correspond to the file names of the models.- Parameters:
- Returns:
- mesh
discretize.TensorMesh
The tensor mesh object.
- model_dict
dict
of
[str
, (n_cells
)numpy.ndarray
] A dictionary containing the models. The keys correspond to the names of the models.
- mesh