Cannot find Netgen FEM Mesh

About the development of the FEM module/workbench.

Moderator: bernd

cadly123
Posts: 1
Joined: Fri Apr 20, 2018 10:31 am

Cannot find Netgen FEM Mesh

Post by cadly123 »

Hello, I recently installed FreeCAD and started to learn about FEM workbench. I watched Youtube tutorials, but they use Netgen Mesh which I cannot find. Where do I look?
Attachments
netgen.png
netgen.png (272.05 KiB) Viewed 3510 times
netgen2.png
netgen2.png (272.38 KiB) Viewed 3510 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Cannot find Netgen FEM Mesh

Post by bernd »

you did not attach your FreeCAD info. AFAIK you are on ubuntu. Since you are new I assume you gone use ppa and not selfcompiled FreeCAD. AFAIK in ppa netgen is not included. But what you can do is install Gmesh and use the icon with the mesh and the G to make a mesh. It works similar to netgen. You even can create regions with finer mesch with Gmesh mesh in FreeCAD FEM.

Ahh welcome to FreeCAD FEM.

Bernd
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Cannot find Netgen FEM Mesh

Post by bernd »

just realized in your screen there is netgen mesh in menue mesh ... Try and see what FreeCAD says ...


netgen2.png
netgen2.png (304.75 KiB) Viewed 3497 times
shahram10715
Posts: 22
Joined: Sat Apr 20, 2019 7:09 am
Contact:

Re: Cannot find Netgen FEM Mesh

Post by shahram10715 »

I have the same problem and I'm sure that I have netgen installed. here is my system specification:

OS: Ubuntu 19.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4.
Build type: Release
Python version: 3.7.5rc1
Qt version: 5.12.4
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
Attachments
Screenshot from 2020-01-24 11-45-24.png
Screenshot from 2020-01-24 11-45-24.png (151.96 KiB) Viewed 3292 times
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Cannot find Netgen FEM Mesh

Post by looo »

netgen seems to be still not supported via daily ppa. You can use the appimage as an alternitive.
https://github.com/FreeCAD/FreeCAD/releases -> 0.19_pre -> assets -> *.AppImage
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Cannot find Netgen FEM Mesh

Post by kkremitzki »

I previously had turned it on but IIRC turned it back off due to introducing a bug, but I guess that's been fixed now, so I could try turning it back on again.
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.
shahram10715
Posts: 22
Joined: Sat Apr 20, 2019 7:09 am
Contact:

Re: Cannot find Netgen FEM Mesh

Post by shahram10715 »

looo wrote: Fri Jan 24, 2020 9:14 am netgen seems to be still not supported via daily ppa. You can use the appimage as an alternitive.
https://github.com/FreeCAD/FreeCAD/releases -> 0.19_pre -> assets -> *.AppImage
Thanks a lot, it worked for me, I thought if I FreeCAD ppa has the latest stable release which has everything included. but from now on I always try the appimage.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Cannot find Netgen FEM Mesh

Post by bernd »

FYI, Netgen is compiled into FreeCAD whereas Gmsh eill be used as external binary. Means for Netgen you need a FreeCAD binarx which has Netgen included and for Gmsh you need to install Gmsh binary snd set the path to the binary in FEM prefs.

Bernd
twangrt
Posts: 40
Joined: Sun Apr 28, 2019 6:34 pm

Re: Cannot find Netgen FEM Mesh

Post by twangrt »

bernd wrote: Sat Jan 25, 2020 8:52 am FYI, Netgen is compiled into FreeCAD whereas Gmsh eill be used as external binary. Means for Netgen you need a FreeCAD binarx which has Netgen included and for Gmsh you need to install Gmsh binary snd set the path to the binary in FEM prefs.

Bernd
I'm missing netgen as well and have compiled it from master. What am I'm doing wrong?

OS: Ubuntu 21.04 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.25566 (Git)
Build type: Unknown
Branch: master
Hash: 8c361dd3fc83840a911da950a845eb9f9342a0b6
Python version: 3.9.5
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/United States (en_US)
user1234
Veteran
Posts: 3506
Joined: Mon Jul 11, 2016 5:08 pm

Re: Cannot find Netgen FEM Mesh

Post by user1234 »

You must:

- satisfy the dependencies
- switch netgen in cmake on with

Code: Select all

-DBUILD_FEM_NETGEN:BOOL=ON
or in the cmake-gui here
0.png
0.png (91.25 KiB) Viewed 2491 times
. Just said: in the repositories netgen is often old and not compatible with other dependencies (for example with OCCT). I think this is the main reason why it is switched of per default. Also only one time it was for me compatible (Debian), build it successfully, but it did not work. Also a hint: if you want use gmsh instead, there is an issue with VTK9. If you use VTK7, there should not be a problem.

Greetings
user1234
Post Reply