Thanks for the code examples! In particular we should have a look at the copy code for groups, maybe this provides some hints on how to proceed.bernd wrote: ↑Mon Apr 22, 2019 7:41 pmthe commits which added some group reading methods ...
git commit 084e163
git commit efb87dc1
some group code ...
https://github.com/FreeCAD/FreeCAD/blob ... #L211-L249 and https://github.com/FreeCAD/FreeCAD/blob ... L960-L1032
Do you refer to the function names which should be exposed to Python? If so, I would suggest something like addGroup('name') [the group number is simply incremented) and addGroupElements(group_number, element_list) [a counterpart to getGroupElements] where the element_list may only consist of elements which already exist in the mesh structure (they were created by addNode, addEdge, ... and so on.)
Any news here? If we have implemented addGroup and the former mentioned functions, maybe we can think of to define boundary conditions also based on groups and not only on geometry. From this the flexibility of FEM is increased and also compliance calculations (these simulations shown in another thread removing elements to maintain a mechanism or functionality) could be done, couldn't they?
Hehe I knew that this would make you happy