discretize.TensorMesh.write_UBC#
- TensorMesh.write_UBC(file_name, models=None, directory=None, comment_lines='')[source]#
Write 2D or 3D tensor mesh (and models) to UBC-GIF formatted file(s).
- Parameters:
- file_name
strorfilename full path for the output mesh file or just its name if directory is specified
- models
dictof[str, (n_cells)numpy.ndarray],optional The dictionary key is a string representing the model’s name. Each model is an (n_cells) array.
- directory
str,optional output directory
- comment_lines
str,optional comment lines preceded are preceeded with ‘!’
- file_name