Equana

Docs/Finite Element (MFEM)/mfem.mesh.toGmsh
Back to Finite Element (MFEM)

mfem.mesh.toGmsh

Exports a mesh to Gmsh MSH 2.2 format string.

Syntax

mfem.mesh.toGmsh(mesh)

Description

Exports a mesh to Gmsh MSH 2.2 format string. Generates a string representation of the mesh in Gmsh MSH format, which can be used with Gmsh or other tools that support this format. **Note:** This is a simplified implementation that exports node coordinates and basic element information. Full element connectivity is not yet supported. For complete mesh export, prefer or .

Parameters

NameDescription
mesh- The mesh to export

Returns

string