[solved], Problem create a FEM mesh from a shape by GMSH

Hi,

Before I would like to apologize for my English, I’m french and my english is very poor. I hope you will understand my problem without much difficulty :blush:

I have been using FreeCad for some time but I just installed 0.17 on my system for use thermal simulation with FEM.

My FreeCad informations :

OS: Linux Mint 18.3 Sylvia
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.17.13541 (Git)
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)


I can’t generate a mesh with gmsh. I have version 2.10.1 of gmsh which is in the /usr/bin/gmsh directory.
When I run a mesh generation I’ve got this error:


We are going to start Gmsh FEM mesh run!
Part to mesh: Name → Box, Label → Cube, ShapeType → Solid
CharacteristicLengthMax: 2.0
CharacteristicLengthMin: 1.0
ElementOrder: 2
ElementDimension: 3
/tmp/Box_Geometry.brep
/tmp/Box_Mesh_TmpGmsh.unv
/tmp/shape2mesh.geo
/usr/bin/gmsh
No Group meshing for analysis.
*** Error in `/usr/bin/gmsh’: free(): invalid pointer: 0xb4634b98 ***

If you have an idea, I’m interested, thank you very much.

Romain

What geometry did you try to mesh? Try a simple box!

Have you tried to start gmsh gui separately. Open a terminal type in gmsh … Gmsh gui should start.

bernd

Hi,

Thanks for your answer.

I try to mesh a simple box and gmsh start good when I open a terminal and I start gmsh gui separately…

I don’t try to make a mesh with gmsh gui separately… Should I try it ?

You could do that too. Export the geometry in FreeCAD as brep and export the mesh from gmsh gui as unv. BTW: this is exactly what FreeCAD does in background.

Does meshing a simple box in FreeCAD with gmsh object works for you ?


bernd

Ok I try this.

No I have this error :

We are going to start Gmsh FEM mesh run!
Part to mesh: Name → Box, Label → Cube, ShapeType → Solid
CharacteristicLengthMax: 2.0
CharacteristicLengthMin: 1.0
ElementOrder: 2
ElementDimension: 3
/tmp/Box_Geometry.brep
/tmp/Box_Mesh_TmpGmsh.unv
/tmp/shape2mesh.geo
/usr/bin/gmsh
No Group meshing for analysis.
*** Error in `/usr/bin/gmsh’: free(): invalid pointer: 0xb4634b98 ***

Thank you.
Romain

Hi,

I solved my problem by installing version 4 of gmsh instead of version 2. :sunglasses:

Thank for all.
A++
Romain

Op, Please mark this issue [Solved,] by changing the summary of the first post of this thread.

Did you build it yourself or are you using the version from the Community-Extras PPA?

Hi,

I use the wget function of linux.
On the site of gmsh I found the version that corresponded to my linux and in terminal :

Name-of-my-computer ~ $ cd ~
Name-of-my-computer ~ $ wget http://gmsh.info/bin/Linux/gmsh-4.0.4-Linux32.tgz
Name-of-my-computer ~ $ tar -xzvf gmsh-4.0.4-Linux32.tgz
Name-of-my-computer ~ $ sudo ln -s ~/gmsh-4.0.4-Linux32/bin/gmsh /usr/bin/gmsh

Thank
Romain