graphlow.TensorMesh.save#

TensorMesh.save(file_name: Path | str, *, binary: bool = True, remove_time: bool = True, overwrite_features: bool = False, overwrite_file: bool = False, cast: bool = True)#

Save mesh data. On writing, point_data and cell_data will be copied to pyvista mesh.

Parameters:
file_name: pathlib.Path | str

File name to be written. If the parent directory does not exist, it will be created.

binary: bool

If True, write binary file. The default is True.

remove_time: bool

If True, remove TimeValue field data.

overwrite_features: bool

If True, allow overwriting features. The default is False.

overwrite_file: bool

If True, allow overwriting the file. The default is False.

cast: bool

If True, cast mesh if needed. The default is True.