FEM: Element names and Nodes

Need help, or want to share a macro? Post here!
Posts: 12
Joined: Thu Jan 10, 2019 5:48 pm

FEM: Element names and Nodes

Postby Zig_mint » Thu Jan 10, 2019 5:59 pm

PS: This is my first post so apologies if I sound dumb.

I wanted to know if there is a way by which I can store all the node numbers and element numbers of a mesh, which was in turn made for geometry by the mesh tool. I want to use the node and element tags for further processing with my algorithms. I want to store the data in a CSV file, which i can later use.
User avatar
Posts: 8330
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM: Element names and Nodes

Postby bernd » Fri Jan 11, 2019 9:28 am

welcome to the world of FreeCAD :) Try this:

Code: Select all

doc = FreeCAD.open(FreeCAD.ConfigGet("AppHomePath") + 'data/examples/FemCalculixCantilever3D.FCStd')
mesh = doc.Box_Mesh.FemMesh
for e in mesh.Volumes: