discretize.TensorMesh.write_UBC#
- TensorMesh.write_UBC(file_name, models=None, directory='', comment_lines='')[source]#
Write 2D or 3D tensor mesh (and models) to UBC-GIF formatted file(s).
- Parameters:
- file_name
str
orfile
name
full path for the output mesh file or just its name if directory is specified
- models
dict
of
[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