mesh_part_prep Package

mesh_part_prep Package

A preprocessort for the mesh partitioner

cli Module

The command line interface for mesh_part_prep allows you to run preperatory steps needed to transform the output files generated by the Triangle program into METIS compatible input files.

After installation, you can use:

mesh_part_prep --help

usage: mesh_part_prep [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] mesh_dir

positional arguments:
  mesh_dir              Path to the unpartioned mesh directory

optional arguments:
  -h, --help            show this help message and exit
  -l {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --log {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Set the logging level

The only required argument is the path to the mesh:

mesh_part_prep /some/path/goes/here

In this case, the level information is prepended to the aux3d.out file.

mesh_part_prep.cli.main()[source]
mesh_part_prep.cli.parse_args()[source]

Parsers command line arguments

mesh_part_prep Module

The Python module allows you to prepare a Triangle output for use with the mesh partitioner.

A minimal example:

>>> from mesh_part_prep import RawMesh
>>> path = "/some/path/with/a/triangle/output"
>>> rm = RawMesh(path)
>>> rm.process()
exception mesh_part_prep.mesh_part_prep.MeshPartPrepError[source]

Bases: Exception

Raise this when prepping the raw mesh fails

class mesh_part_prep.mesh_part_prep.RawMesh(path)[source]

Bases: object

A representation of the raw mesh (after Triangle, before MeshPart)

process()[source]

Processes files to generate a partitioned FESOM-2.0 mesh using the METIS mesh partitioner from a standard Triangle output