Error in any shape from gmsh

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
polemidis
Posts: 36
Joined: Thu Feb 09, 2017 4:58 pm

Error in any shape from gmsh

Post by polemidis »

Hello, I have used the FEM successfully in the past but now I cannot even get a simple mesh not even from a cube.
OS: Ubuntu 18.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15403 (Git)
Build type: Release
Branch: master
Hash: 44e8f9e9bf3b7a93e927c97b19c6d2850fd75f19
Python version: 2.7.15+
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

This is what I am getting in console as soon as I press "apply" on the "Create FEM mesh from shape by Gmsh mesher" tool

Code: Select all

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
  /tmp/Box_Geometry.brep
  /tmp/Box_Mesh_TmpGmsh.unv
  /tmp/shape2mesh.geo
  /usr/bin/gmsh
  Group meshing for analysis.
  The Part should have a pretty new FEM mesh!
Error   : Gmsh requires OpenCASCADE to import shape
Any leads are welcomed!
Thank you!
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Error in any shape from gmsh

Post by bernd »

your gmsh is not compiled with OpenCascade. Best is to use this gmsh: https://forum.freecadweb.org/viewtopic.php?f=18&t=31360

Code: Select all

Error   : Gmsh requires OpenCASCADE to import shape
BTW: use code tags for FreeCAD report output. I changed your post in this regard.
polemidis
Posts: 36
Joined: Thu Feb 09, 2017 4:58 pm

Re: Error in any shape from gmsh

Post by polemidis »

I didn;t understand a bit from that post, and I figured its kind of a mess to install a package from 18.04 to 18.10.
So I went online, downloaded the gmsh binary v4.xx and replaced the old gmsh in /usr/bin . Most likely I have caused a lot of mess, but hey, it looks like it works.
It throws a error "Unknown element type for UNV export (MSH type 15) - output file might be invalid" but I can see the mesh and looks like it works.
Until it is updated to 18.10 (or me downgrade to 18.04) I can do my job. Thanx man!
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Error in any shape from gmsh

Post by bernd »

It is not magic at all, you just need a gmsh binary with occt support which you seam to get if you download it from gmsh home page.

bernd
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Error in any shape from gmsh

Post by kkremitzki »

The Community Extras PPA is missing Gmsh 4 for 18.10 which is a bug, I can get to it later but feel free to create an issue in our bug tracker and assign it to me.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
Post Reply