Muscat.MeshTools.RemeshBackEnds.MmgRemeshing module

CheckIntegrity(GUI=False)[source]
class MmgRemeshing(mesh: Mesh, solution=None, levelset=None, metric=None)[source]

Bases: object

Runner(remesher_options: dict, backEndOptions: dict)[source]

Run the process to write mesh in an inria mesh file, launch mmg and read the resulting mesh

Notes

The inria mesh file (called temp_name) will be writen in a temporary directory

Parameters:
  • remesher_options (dict) – keys corresponding to mmg option name and value corresponding to value if applicable

  • backEndOptions (dict) –

    Extra option for the “by file” mmg communication “temp_name” : str

    name of the output mesh file (without extension) default : “temp_file”

    ”binary”bool

    defaults to True

    ”prefix”str

    defaults to “mmg”

    ”keep_temp_files”bool

    defaults to False

    ”temp_dir”str

    directory to store temporary files if none a Temporary Directory is used for temporary file, default None

Returns:

mesh – mmg resulting mesh from adaption

Return type:

Mesh