This page provides a brief description of MFEM's mesh formats and meshing mini applications.
MFEM supports a number of mesh formats, including:
- MFEM's own mesh v1.0 format, which can describe both straight as well as arbitrary high-order curvilinear and more general meshes,
- MFEM's own format for NURBS meshes,
- The VTK unstructured mesh format, for triangular, quadrilateral, tetrahedral and hexahedral meshes,
- The Gmsh ASCII and binary formats for 2D and 3D meshes.
- The CUBIT meshes through the Genesis (NetCDF) binary format.
- The NETGEN triangular and tetrahedral mesh formats,
- The TrueGrid hexahedral mesh format.
miniapps/meshing directory contains a collection of meshing-related miniapps based on MFEM.
Compared to the example codes, the miniapps are more complex, demonstrating more advanced usage of the library. They are intended to be more representative of MFEM-based application codes. We recommend that new users start with the example codes before moving to the miniapps.
The current meshing miniapps are described below.
This miniapp generates various Mobius strip-like surface meshes. It is a good way to generate complex surface meshes.
Manipulating the mesh topology and
performing mesh transformation are demonstrated. The
mobius-strip mesh in the
data directory was generated with this miniapp.
This miniapp generates three types of Klein bottle surfaces. It is similar to the mobius-strip miniapp.
klein-donut meshes in the
data directory were generated with this miniapp.
This miniapp is a handy tool to examine, visualize and manipulate a given mesh.
Some of its features are:
- visualizing of mesh materials and individual mesh elements
- mesh scaling, randomization, and general transformation
- manipulation of the mesh curvature
- the ability to simulate parallel partitioning
- quantitative and visual reports of mesh quality