discretize.SimplexMesh.read_vtk#
- classmethod SimplexMesh.read_vtk(file_name, directory='')[source]#
Read VTK unstructured file (vtu or xml) and return a discretize simplex mesh (and models).
This method reads a VTK unstructured file (vtu or xml format) and returns the
SimplexMeshas 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.SimplexMesh 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