FreeCAD / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
19.12k stars 3.97k forks source link

FEM: Gmsh throws "list index out of range" error when a shape is below the FEM Analysis container #13364

Open FEA-eng opened 5 months ago

FEA-eng commented 5 months ago

Is there an existing issue for this?

Problem description

As mentioned in #13360, Netgen works fine when a shape to be meshed is located below the Analysis container in the tree while Gmsh fails in such cases with the following error message: list index out of range

Full version info

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.36784 (Git)
Build type: Release
Branch: main
Hash: d1930fc7e6fc35c413f9f39d22f2ea28fca827c7
Python 3.11.8, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: Polish/Poland (pl_PL)

Subproject(s) affected?

FEM

Anything else?

No response

Code of Conduct

marioalexis84 commented 5 months ago

@FEA-eng, I can't reproduce it. Could you provide the steps?

FEA-eng commented 5 months ago

@FEA-eng, I can't reproduce it. Could you provide the steps?

It seems that it may depend on what's in the tree. Try this:

If it still doesn't happen for you then it might be OS-specific.

Gmsh_failure.zip

marioalexis84 commented 5 months ago

I guess you have mesh groups for reference shapes enabled in Fem preferences. I had already noticed that problem. I have it on my to-do list.

FEA-eng commented 5 months ago

I guess you have mesh groups for reference shapes enabled in Fem preferences. I had already noticed that problem. I have it on my to-do list.

Yes, I do. And it seems that it works without it. Good to know that you already have it on the radar.