FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
bernd
Posts: 8468
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)

Postby bernd » Mon Oct 14, 2019 5:41 pm

the 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
joha2
Posts: 243
Joined: Tue Oct 11, 2016 9:48 pm

Re: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)

Postby joha2 » Sat Oct 26, 2019 11:14 am

bernd wrote:
Mon Oct 14, 2019 5:41 pm
the 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,

I've added some unit test to verify the functionality of the group functions roughly. Hope this is like it is intended. At the moment the tests take implicitly as granted that create_nodes(...) and create_elements(...) do not create any mesh groups before. See: https://github.com/berndhahnebach/FreeC ... f93cc21b20

Best wishes
Johannes
joha2
Posts: 243
Joined: Tue Oct 11, 2016 9:48 pm

Re: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)

Postby joha2 » Sat Nov 30, 2019 9:17 am

bernd wrote:
Mon Oct 14, 2019 5:41 pm
ping pong :mrgreen:
Hey bernd,

is there anything missing or to be done which prevents merging these functions into master?

Please just tell me, and I will try to fix it.

Best wishes
Johannes
User avatar
bernd
Posts: 8468
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)

Postby bernd » Wed Dec 04, 2019 10:34 pm

sorry 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
joha2
Posts: 243
Joined: Tue Oct 11, 2016 9:48 pm

Re: FEM mesh: Create mesh groups in Python (exposing C++ functions to Python)

Postby joha2 » Fri Dec 06, 2019 7:22 am

bernd wrote:
Wed Dec 04, 2019 10:34 pm
sorry 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
Hey bernd,

Sorry, no pressure intended. I was not sure whether there is some show stopper from my side. Take your time!

Best wishes
Johannes