fault_mesh.utilities.cubit

Functions to make journal files for remeshing using cubit. A lot of these could be replaced using

Functions

make_journal_file_commands(line, outfile, outmesh[, ...])

Make a journal file for cubit to create a mesh from a line.

make_journal_file_polygon(polygon, outjou, outmesh[, ...])

Make a journal file for cubit to create a mesh from a polygon.

Module Contents

fault_mesh.utilities.cubit.make_journal_file_commands(line, outfile, outmesh, top_z=0.0, depth=20000.0)

Make a journal file for cubit to create a mesh from a line. :param line: The line to mesh :param outfile: The name of the journal file to create :param outmesh: The name of the mesh file to create :param top_z: The z coordinate of the top of the mesh :param depth: The depth of the mesh :return: None

Parameters:
  • line (shapely.geometry.LineString)

  • outmesh (str)

fault_mesh.utilities.cubit.make_journal_file_polygon(polygon, outjou, outmesh, top_z=0.0, depth=20000.0)

Make a journal file for cubit to create a mesh from a polygon. :param polygon: The polygon to mesh :param outjou: The name of the journal file to create :param outmesh: The name of the mesh file to create :param top_z: The z coordinate of the top of the mesh :param depth: The depth of the mesh :return: None

Parameters:
  • polygon (shapely.geometry.Polygon)

  • outjou (str)

  • outmesh (str)