Ubuntu Repository

About the development of the FEM module/workbench.

Moderator: bernd

dubstar-04
Posts: 379
Joined: Mon Mar 04, 2013 8:41 pm
Location: Manchester, UK
Contact:

Ubuntu Repository

Postby dubstar-04 » Fri Apr 03, 2015 12:04 pm

OS: Ubuntu 14.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.4740 (Git)
Branch: master
Hash: 32688a636b0c8487d10d6d6e14fe1cab5e4f3696
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17


I am trying the FemWB using the Ubuntu repo nightly builds and I cant seem to get it to mesh.

Does anyone know if its built with -DBUILD_FEM_NETGEN=1 to allow netgen usage?
Attachments
fem mesh.png
fem mesh.png (253.54 KiB) Viewed 2024 times
Last edited by dubstar-04 on Tue Apr 07, 2015 7:05 am, edited 2 times in total.
ickby
Posts: 2912
Joined: Wed Oct 05, 2011 7:36 am

Re: Ubuntu repo buld mesh

Postby ickby » Fri Apr 03, 2015 12:19 pm

Afaik it does not. If you want to compile yourself You must make sure that netgen (or more exact nglib) is build with the same occ version free cad uses. So if it is not in the repo you need to build nglib yourself and then it works very nice.
User avatar
bernd
Posts: 8215
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Ubuntu repo buld mesh

Postby bernd » Fri Apr 03, 2015 12:20 pm

dubstar-04 wrote: Does anyone know if its built with -DBUILD_FEM_NETGEN=1 to allow netgen usage?
Yes I do. Nightly Builds of ubuntu neither have netgen compiled nor calculix binary included.

Best way is to install gmsh and use the script provided here viewtopic.php?f=18&t=10066= for meshing. Some users have successful compiled calculix viewtopic.php?f=4&t=5975&start=10
some have installed the original binary viewtopic.php?f=18&t=10140.

hope that helps bernd
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Ubuntu repo buld mesh

Postby NormandC » Fri Apr 03, 2015 12:35 pm

I do not use FEM and I have no knowledge of FEM. I've said in the past, if people want FEM to work on the Daily Builds I need help. AFAIK netgen is broken on Linux, and FreeCAD does not support it on Linux.

If no one is willing to volunteer to help, build working netgen and calculix deb packages, change FreeCAD source code or whatever is needed for it to work on Ubuntu, then it won't happen, period.
User avatar
bernd
Posts: 8215
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Ubuntu repo buld mesh

Postby bernd » Fri Apr 03, 2015 12:59 pm

I faild myself in comiling FreeCAD with netgen on linux when I tried a few month ago. User kwahoo has running FreeCAD with netgen on linux viewtopic.php?f=18&t=7172&start=30#p83103
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Ubuntu repo build mesh

Postby NormandC » Fri Apr 03, 2015 2:22 pm

kwahoo wrote:Yes, FreeCAD compiled with BUILD_FEM_NETGEN. Works only with oce-0.15.x.
Reverting to an obsolete OCE version just for Netgen is an unacceptable compromise that would affect all users. I just updated the Daily Builds to OCE-0.17...
User avatar
bernd
Posts: 8215
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Ubuntu repo buld mesh

Postby bernd » Fri Apr 03, 2015 8:48 pm

NormandC wrote:... if people want FEM to work on the Daily Builds I need help. ...
Does it makes sense to include calculix package into daily built? What would be needed for this?
User avatar
shoogen
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Ubuntu repo buld mesh

Postby shoogen » Fri Apr 03, 2015 9:23 pm

Calculix infects the package with the GPL 2.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Ubuntu repo build mesh

Postby NormandC » Fri Apr 03, 2015 10:46 pm

If we want netgen or calculix support, they need to be separate debian packages as I said. Uploading them to the daily builds PPA should not cause licensing problems I think. In the freecad package they could be set as "Recommend" rather than dependencies.

Someone built calculix packages for Debian Wheezy last year, there's a topic in the FEM forum. They could be repackaged for Ubuntu with little trouble. The problem is netgen.
User avatar
bernd
Posts: 8215
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Ubuntu repo build mesh

Postby bernd » Sat Apr 04, 2015 7:08 am

Does it mean, you need a calculix deb package. We would provied this as recomendation. With this we do not have any licence trouble?!?
I have managed to compile calculix on debian jessie. I could try to make a package for ubuntu.