Fem Workbench/de

Der FEM-Arbeitsbereich offers data structures and commands to work with Finiten Elementen.

creation of meshes
Creating a mesh with one Tet-10 Elements: import FreeCAD, Fem m = Fem.FemMesh m.addNode(0,1,0) m.addNode(0,0,1) m.addNode(1,0,0) m.addNode(0,0,0) m.addNode(0,0.5,0.5) m.addNode(0.5,0.03,.5) m.addNode(0.5,0.5,0.03) m.addNode(0,0.5,0) m.addNode(0.03,0,0.5) m.addNode(0.5,0,0) m.addVolume([1,2,3,4,5,6,7,8,9,10]) Fem.show(m)
 * 1) create a empty mesh
 * 1) create the nodes
 * 1) add the volume with the created nodes

Visual handling
Highlight some nodes on the view: import FreeCAD, Fem m = Fem.FemMesh m.addNode(0,1,0) m.addNode(0,0,1) m.addNode(1,0,0) m.addNode(0,0,0) m.addNode(0,0.5,0.5) m.addNode(0.5,0.03,.5) m.addNode(0.5,0.5,0.03) m.addNode(0,0.5,0) m.addNode(0.03,0,0.5) m.addNode(0.5,0,0) m.addVolume([1,2,3,4,5,6,7,8,9,10]) Fem.show(m) Gui.ActiveDocument.ActiveObject.HighlightedNodes = [1,2,3]

Element Types
This description is based on the MED format as described [https://hammi.extra.cea.fr/static/MED/web_med/logiciels/med-2.3.1/doc/html/modele_de_donnees.html#3. here].