discretize.utils.load_mesh

discretize.utils.load_mesh(file_name)[source]

Load discretize mesh saved to json file.

For a discretize mesh that has been converted to dictionary and written to a json file, the function load_mesh loads the json file and reconstructs the mesh object.

Parameters
file_namestr

Name of the json file being read in. Contains all information required to reconstruct the mesh.

Returns
discretize.base.BaseMesh

A discretize mesh defined by the class and parameters stored in the json file