discretize.mixins.TensorMeshIO.write_UBC#

TensorMeshIO.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_namestr or file name

full path for the output mesh file or just its name if directory is specified

modelsdict 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.

directorystr, optional

output directory

comment_linesstr, optional

comment lines preceded are preceeded with ‘!’