netgen example

About the development of the FEM module/workbench.

Moderator: bernd

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

Re: netgen example

Post by bernd »

How do I run this build from github on a fresh clean buster install?
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: netgen example

Post by UR_ »

reox wrote: Fri Jun 21, 2019 1:58 pm ... does netgen currently work in FEM?
FEM WB netgen mesh looks pretty good :)

Annotation 2019-06-21 214301.png
Annotation 2019-06-21 214301.png (42.6 KiB) Viewed 1162 times

Code: Select all

(base) C:\Users\aio>activate freecad

(freecad) C:\Users\aio>conda list netgen
# packages in environment at C:\Users\aio\Miniconda3\envs\freecad:
#
# Name                    Version                   Build  Channel
netgen                    6.2.1808         py36hf58a83f_0    conda-forge/label/cf201901

(freecad) C:\Users\aio>
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: netgen example

Post by sgrogan »

reox wrote: Fri Jun 21, 2019 1:58 pm As wmayer said, it should work - so what is wrong with my version?
What version of OCC does netgen link against, it must match FreeCAD.
PatTropos wrote: Fri Jun 07, 2019 8:33 am Version: 0.17.13541 (Git) AppImage
This version does not have Netgen support, at the time of it's creation there was not a suitable Netgen for OCC 7.3
PatTropos wrote: Fri Jun 07, 2019 8:33 am Version: 0.18.14555 (Git shallow)
Where did you get this version from?
"fight the good fight"
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: netgen example

Post by reox »

bernd wrote: Fri Jun 21, 2019 6:21 pm How do I run this build from github on a fresh clean buster install?
I have created this build script: https://gist.github.com/reox/522922a1a6 ... edd484f48f
In line 58, you need to adjust the branch though.

as I use occ and netgen directly from debian, those should use the same version - at least in packages.debian.org, I see both 7.3

So it looks like that my FEM build is wrong? is there anything I can check?
Is it possible that the internal smesh does not work with netgen 6.2? I looked at the conda build script, which uses external smesh.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: netgen example

Post by bernd »

@UR_
Is your FreeCAD installed on conda or compiled on conda with the needed tools and libraries installed on conda?
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: netgen example

Post by UR_ »

bernd wrote: Mon Jun 24, 2019 2:51 pm Is your FreeCAD installed on conda or compiled on conda with the needed tools and libraries installed on conda?
compiled on conda with the needed tools and libraries installed on conda :sunglasses:
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: netgen example

Post by bernd »

UR_ wrote: Mon Jun 24, 2019 3:09 pm
bernd wrote: Mon Jun 24, 2019 2:51 pm Is your FreeCAD installed on conda or compiled on conda with the needed tools and libraries installed on conda?
compiled on conda with the needed tools and libraries installed on conda :sunglasses:
is there some documentation around how this works?
User avatar
PatTropos
Posts: 19
Joined: Tue Apr 30, 2019 1:20 pm

Re: netgen example

Post by PatTropos »

This version does not have Netgen support, at the time of it's creation there was not a suitable Netgen for OCC 7.3

PatTropos hat geschrieben: ↑
Fr Jun 07, 2019 10:33 am
Version: 0.18.14555 (Git shallow)

Where did you get this version from?
I got this on Linux over the Terminal installing --> over FreeCad-wiki explaination

sorry for late answer
ulrich1a
Veteran
Posts: 1957
Joined: Sun Jul 07, 2013 12:08 pm

Re: netgen example

Post by ulrich1a »

I am having the same problem on Debian Buster. I started compiling FreeCAD with the following cmake command. I figured this out, as I otherwise get problems with python 2.7 and python 3 installed in parallel.

Code: Select all

cmake ../FreeCAD_sf_master -DBUILD_QT5=ON -DBUILD_FEM_NETGEN=ON -DBUILD_ASSEMBLY=OFF -DBUILD_SHIP=OFF -DBUILD_ROBOT=OFF -DPYTHON_EXECUTABLE=/usr/bin/python3 -DSHIBOKEN_PATTERN=.cpython-37m-x86_64-linux-gnu
I am using OCCT and netgen from the Debian distribution.

I remember, that there was a similar problem in the past with such symptoms. But I do not remember the solution.

The actual symptons are, that only some elements of the mesh are shown in FreeCAD. Exporting this mesh as INP-file and opening it with CGX -c mesh.inp shows all other elements, not shown by FreeCAD.

Using the netgen option in the Mesh-workbench results in a proper mesh with all surface 2D-elements.

Ulrich
reox
Posts: 929
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: netgen example

Post by reox »

Actually, i never tried to export the mesh... maybe i would have saw that earlier.

But right now I just get a segfault, when creating the mesh. See this other thread https://forum.freecadweb.org/viewtopic. ... 30#p345362
Apparently, smesh seems to be the culprit :(
Post Reply