Moderator: bernd
Hey @bernd,bernd wrote: ↑Mon Oct 14, 2019 5:41 pmthe unit test modules where reorganised in GSoC. There is no good example afterwards. This might help in how to add a unit test. git commit 86930ef
Hey bernd,bernd wrote: ↑Wed Dec 04, 2019 10:34 pmsorry for not answering to this topic for so long. I am just overwhelmed with other stuff ... work, family, etc I would like to finish https://forum.freecadweb.org/viewtopic.php?f=17&t=41117 and afterwards I will have a look.
cheers bernd
First of all, bernd, I wish you a happy new year and hope you're doing well
Hey qingfen.xia,qingfeng.xia wrote: ↑Sun Jan 26, 2020 8:14 pmGreat Job, Joha2!
It is highly desirable to have group support for FemMesh in FreeCAD.
Yes, this should be the same id. At least Salome accepts an id as argument to the AddGroup function, but it seems to be ignored and the group id is filled up in sequential order. Therefore the Python function which is exposed to FreeCAD returns the group id generated by the addGroup call.qingfeng.xia wrote: ↑Sun Jan 26, 2020 8:14 pmI have not got the experience in SMesh programLet me review the code first.ming, but I guess you code is fine when I read througb your code.
I wonder if `theID` in `int FemMesh::addGroup(const std::string TypeString, const std::string Name, const int theId)` is equal to the group ID in
`void FemMesh::addGroupElements(const int GroupId, const std::set<int> ElementIds)`
That may be true. Since my experience is quite limited which Python C++ functions are fast and which are slow, maybe my choice may not be wise. Nevertheless I would appreciate any hints in this direction very much. Further my C++ skills are a bit rusty and quite old, so if you got ideas in this concern, just tell meqingfeng.xia wrote: ↑Sun Jan 26, 2020 8:14 pmAs you have now experienced in femsh wrapping, I wonder if all C++ coordinates, nodes list are passed to python by copying, via py::set, If true, it may means it is not efficient to deal with large mesh.
As far as I understood, the MeshGroup objects can not immediately use the addGroup functionality. The exposed Python functions are only useful at the moment as a low level interface to provide a group to a mesh. There have to be high level functions implemented which create a MeshGroup object if the addGroup function is called. Further, the XDMF code is somehow broken in the up to date freecaddaily, so before any implementation of addGroup I have to fix itqingfeng.xia wrote: ↑Sun Jan 26, 2020 8:14 pmI am also reading through your xmdf exporting py code. I am hoping your code can be merged asap. Once your code merged, is that possible to import salome mesh into FreeCAD, with groups listed in GUI as `MeshGroup` object?
The other way around, is that posible to export gmsh MeshGroups to fenics xdmf?