netgen example

About the development of the FEM module/workbench.

Moderator: bernd

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

Re: netgen example

Postby bernd » Fri Jun 21, 2019 6:21 pm

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

Re: netgen example

Postby UR_ » Fri Jun 21, 2019 7:50 pm

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 361 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
Posts: 5475
Joined: Wed Oct 22, 2014 5:02 pm

Re: netgen example

Postby sgrogan » Fri Jun 21, 2019 8:12 pm

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?
reox
Posts: 666
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: netgen example

Postby reox » Mon Jun 24, 2019 7:05 am

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
Posts: 8488
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: netgen example

Postby bernd » Mon Jun 24, 2019 2:51 pm

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

Re: netgen example

Postby UR_ » 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:
User avatar
bernd
Posts: 8488
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: netgen example

Postby bernd » Mon Jun 24, 2019 8:34 pm

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: 5
Joined: Tue Apr 30, 2019 1:20 pm

Re: netgen example

Postby PatTropos » Sun Nov 10, 2019 10:02 am

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
Posts: 1905
Joined: Sun Jul 07, 2013 12:08 pm

Re: netgen example

Postby ulrich1a » Sun Dec 01, 2019 2:33 pm

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: 666
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: netgen example

Postby reox » Sun Dec 01, 2019 8:13 pm

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 :(