No mesh

About the development of the FEM module/workbench.

Moderator: bernd

UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: No mesh

Post by UR_ »

JV_3D wrote: Thu Jun 21, 2018 5:18 am How do you export the mesh in .geo format from FreeCAD?
FreeCAD writes out a .geo file after hitting [Apply] button from task panel "Fem mesh by Gmsh"
screenshot task panel.png
screenshot task panel.png (19.66 KiB) Viewed 811 times

In report view something like this appears:

Please note red marked text, here you will find generated .geo file

We are going to start Gmsh FEM mesh run!
Part to mesh: Name --> Box, Label --> Cube, ShapeType --> Solid
CharacteristicLengthMax: 1e+22
CharacteristicLengthMin: 0.0
ElementOrder: 2
ElementDimension: 3
c:\users\aio\appdata\local\temp\Box_Geometry.brep
c:\users\aio\appdata\local\temp\Box_Mesh_TmpGmsh.unv
c:\users\aio\appdata\local\temp\shape2mesh.geo
C:/Program Files/FreeCAD/bin/gmsh_3.0.6.exe
Group meshing for analysis.
Empty reference: SolidMaterial
One material with no reference shapes. No need to make a group for materials.
{'FemConstraintFixed': ['Face1'], 'FemConstraintForce': ['Face2']}
Start: ViewProviderFEMMeshBuilder::createMesh() =================================
0.000000: Start build up 872 face helper
0.000000: Start eliminate internal faces SIMPLE
0.000000: Start build up node map
0.000000: Start set point vector
0.000000: Start count triangle size
NumTriangles:800
0.000000: Start build up triangle vector
0.000000: Start build up edge vector
NumEdges:1200
0.000000: Finish =========================================================
The Part should have a pretty new FEM mesh!
On the other hand your Gmsh.exe is a outdated build from 2016!
Please update to version 3.0.6
As you can see in these about dialogs:
FreeCAD is build against OCC 7.2.0, while your Gmsh is build against OCC 6.8.0 :shock:
This is pretty dangerous.
JV_3D
Posts: 41
Joined: Fri Dec 23, 2016 4:45 am

Re: No mesh

Post by JV_3D »

UR_ wrote: Fri Jun 22, 2018 1:23 pm
JV_3D wrote: Thu Jun 21, 2018 5:18 am How do you export the mesh in .geo format from FreeCAD?
FreeCAD writes out a .geo file after hitting [Apply] button from task panel "Fem mesh by Gmsh"

screenshot task panel.png


In report view something like this appears:

Please note red marked text, here you will find generated .geo file

We are going to start Gmsh FEM mesh run!
Part to mesh: Name --> Box, Label --> Cube, ShapeType --> Solid
CharacteristicLengthMax: 1e+22
CharacteristicLengthMin: 0.0
ElementOrder: 2
ElementDimension: 3
c:\users\aio\appdata\local\temp\Box_Geometry.brep
c:\users\aio\appdata\local\temp\Box_Mesh_TmpGmsh.unv
c:\users\aio\appdata\local\temp\shape2mesh.geo
C:/Program Files/FreeCAD/bin/gmsh_3.0.6.exe
Group meshing for analysis.
Empty reference: SolidMaterial
One material with no reference shapes. No need to make a group for materials.
{'FemConstraintFixed': ['Face1'], 'FemConstraintForce': ['Face2']}
Start: ViewProviderFEMMeshBuilder::createMesh() =================================
0.000000: Start build up 872 face helper
0.000000: Start eliminate internal faces SIMPLE
0.000000: Start build up node map
0.000000: Start set point vector
0.000000: Start count triangle size
NumTriangles:800
0.000000: Start build up triangle vector
0.000000: Start build up edge vector
NumEdges:1200
0.000000: Finish =========================================================
The Part should have a pretty new FEM mesh!
On the other hand your Gmsh.exe is a outdated build from 2016!
Please update to version 3.0.6
As you can see in these about dialogs:
FreeCAD is build against OCC 7.2.0, while your Gmsh is build against OCC 6.8.0 :shock:
This is pretty dangerous.

Well, I resolved by 'saving as', selecting unv AND writing .unv in the name, without writing and specifying the extension it did not work.
This is pretty dangerous.
How dangerous is this? I download the Gmsh available in the Software manager from Mint
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: No mesh

Post by bernd »

normally it should not be a problem to use a FreeCAD and gmesh with different OpenCascade versions. For exchange between them brep and unv files are used. These file formats should work independent from OpenCascade versions. IMHO.

@JV_3D:
have you solved the issue? Does Gmsh works inside FreeCAD for you?

bernd
omi06
Posts: 6
Joined: Sun Nov 11, 2018 3:25 pm

Re: No mesh

Post by omi06 »

Hi,

I'm having the same problem as you JV_3D, did you find a solution ?

Thank you
Romain
Post Reply