FEM MeshGmshFromShape

From FreeCAD Documentation
Jump to navigation Jump to search
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎русский

This documentation is not finished. Please help and contribute documentation.

GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.

FEM MeshGmshFromShape.svg FEM MeshGmshFromShape

Menu location
Mesh → FEM mesh from shape by Gmsh
Default shortcut
Introduced in version
See also
FEM tutorial


For a finite elements analysis the geometry needs to be discretized into a FEM Mesh. This command uses gmsh (which needs to be installed on the system) for calculating the mesh.


  1. Select the shape you want to analyze. For volume FEM this needs to be a solid or compsolid. A compsolid is necessary if your part is made from multiple materials. (A compsolid can be created with the BooleanFragments command.) -- For shell and beam FEM somebody needs to fill in the details here.
  2. There are several ways to invoke the command:
    • Press the FEM MeshGmshFromShape.svg FEM MeshGmshFromShape button.
    • Select the Mesh → FEM MeshGmshFromShape.svg FEM mesh from shape by Gmsh option from the menu.
  3. Optionally edit the minimal and maximal element size. (Autodetection works fine unless you apply complicated boundary conditions.)
  4. Click the Apply button and wait for the computation of the mesh to complete
  5. Close the task. You now should see a new FEMMeshGMSH object in your active analysis container.