gmsh analysis

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
kadym30200
Posts: 3
Joined: Fri Nov 04, 2022 9:39 am

gmsh analysis

Post by kadym30200 »

Hello,
I'm trying to do a thermal analysis on my compound but for some reason that I didnt understand I have the error below when I'm doing my Gmsh. Its my first time using Freecad and I dont understand how to solve this probleme can you help me please ?
Kadim


my Error:
...Index out of range. This Solid does not exist in the Shape!
...Traceback (most recent call last):
File "C:/Users/", line 354, in <module>
gmsh_mesh.get_group_data()
File "C:\Program Files\FreeCAD 0.19\Mod\Fem\femmesh\gmshtools.py", line 336, in get_group_data
new_group_elements = meshtools.get_mesh_group_elements(mg, self.part_obj)
File "C:\Program Files\FreeCAD 0.19\Mod\Fem\femmesh\meshtools.py", line 1847, in get_mesh_group_elements
grp_ele = get_reference_group_elements(mesh_group_obj, aPart)
File "C:\Program Files\FreeCAD 0.19\Mod\Fem\femmesh\meshtools.py", line 1967, in get_reference_group_elements
elif stype != ref_shape.ShapeType:
<class 'AttributeError'>: 'NoneType' object has no attribute 'ShapeType'
Last edited by kadym30200 on Fri Nov 04, 2022 3:25 pm, edited 1 time in total.
User avatar
NewJoker
Veteran
Posts: 3018
Joined: Sun Oct 11, 2020 7:49 pm

Re: gmsh analysis

Post by NewJoker »

Can you share the script or .FCStd file ?
kadym30200
Posts: 3
Joined: Fri Nov 04, 2022 9:39 am

Re: gmsh analysis

Post by kadym30200 »

NewJoker wrote: Fri Nov 04, 2022 10:58 am Can you share the script or .FCStd file ?
hi,
My code is above I just forgot to precise that my compound is just composed by a fusion of several blocs:
Last edited by kadym30200 on Fri Nov 04, 2022 3:24 pm, edited 1 time in total.
User avatar
NewJoker
Veteran
Posts: 3018
Joined: Sun Oct 11, 2020 7:49 pm

Re: gmsh analysis

Post by NewJoker »

kadym30200 wrote: Fri Nov 04, 2022 1:58 pm My code is above I just forgot to precise that my compound is just composed by a fusion of several blocs:
What I mean is a complete script so that I could open your geometry in FreeCAD and try to make it usable for Gmsh.
kadym30200
Posts: 3
Joined: Fri Nov 04, 2022 9:39 am

Re: gmsh analysis

Post by kadym30200 »

NewJoker wrote: Fri Nov 04, 2022 2:04 pm
kadym30200 wrote: Fri Nov 04, 2022 1:58 pm My code is above I just forgot to precise that my compound is just composed by a fusion of several blocs:
What I mean is a complete script so that I could open your geometry in FreeCAD and try to make it usable for Gmsh.
Sorry but I cant, its a file from my company and I cant share any part of it. Do you have any clues for me ?
I guess my issue come from this part of Meshtool.py but I dont understand what should I do.
Last edited by kadym30200 on Fri Nov 04, 2022 3:24 pm, edited 1 time in total.
User avatar
NewJoker
Veteran
Posts: 3018
Joined: Sun Oct 11, 2020 7:49 pm

Re: gmsh analysis

Post by NewJoker »

kadym30200 wrote: Fri Nov 04, 2022 2:15 pm Do you have any clues for me ?
Try without scripting for now - do it manually in GUI. If it still doesn't work, maybe you can create a simple test example (your case but with simplified geometry), with the same issue, to be shared here.
Post Reply