discretize.TensorMesh.read_vtk#
- classmethod TensorMesh.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
TensorMeshas 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
dictof[str, (n_cells)numpy.ndarray] A dictionary containing the models. The keys correspond to the names of the models.
- mesh