discretize.CurvilinearMesh.save#

CurvilinearMesh.save(file_name='mesh.json', verbose=False, **kwargs)[source]#

Save the mesh to json.

This method is used to save a mesh by writing its properties to a .json file. To load a mesh you have previously saved, see load_mesh().

Parameters:
file_namestr, optional

File name for saving the mesh properties

verbosebool, optional

If True, the path of the json file is printed