how to setActiveAnalysis in freecadcmd for a multimaterial FEA

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
gbanis
Posts: 4
Joined: Wed Sep 16, 2020 1:11 pm

how to setActiveAnalysis in freecadcmd for a multimaterial FEA

Post by gbanis »

Dear all,

I am trying to run a static multimaterial FEM analysis using freecadcmd.
Using GUI, the analysis takes 2 minutes, but from freecadcmd it takes around 20 hours (giving the same results)!
When I mesh the compound with FemMeshGmsh in GUI, it automatically creates mesh groups by importing FemGui and calling

Code: Select all

FemGui.setActiveAnalysis(App.activeDocument().Analysis)

In freecadcmd, groups are not created automatically as in GUI (meshing is the last thing before inp writing in both cases).
I understand that this happens because the analysis is not active while the freecadcmd is creating the mesh.
Is there a similar function to FemGui.setActiveAnalysis that I can call in freecadcmd?

Thank you in advance.


OS: LMDE 4 (debbie) (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.26720 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 7bca26e)
Hash: 7bca26e7c14d4d43374ff7e0c8582735b249cbfd
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United States (en_US)
Post Reply