fcFEM - FEA from start to finish
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: fcFEM - FEA from start to finish
bummer!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: fcFEM - FEA from start to finish
indeed a bummer.
btw, i suppose you compile everything from scratch
just tried on a linux box with an extracted appimage to do:
so it looks like that got numba working in fc with a simple pip install...
any chance you would reconsider? or is the intel-python the real dealbreaker for you?
btw, i suppose you compile everything from scratch
just tried on a linux box with an extracted appimage to do:
Code: Select all
$ pip install numba
$ freecadcmd
FreeCAD 0.19, Libs: 0.19R24276 (Git)
[FreeCAD Console mode <Use Ctrl-D (i.e. EOF) to exit.>]
>>> import time
>>> from numba import jit
>>> def test():
... t0 = time.perf_counter()
... @jit
... def f(x, y):
... return x + y
... r = f(1, 2)
... t = time.perf_counter() - t0
... print('r = {} in {:.3f} sec'.format(r, t))
...
>>> test()
r = 3 in 0.866 sec
>>> test()
r = 3 in 0.128 sec
>>>
any chance you would reconsider? or is the intel-python the real dealbreaker for you?
Re: fcFEM - FEA from start to finish
Thanks. I will give that a try. Intel is not the deal breaker. Numba is. It accelerates fcFEM by a factor 100.
Anyway, I will continue to develop fcFEM and if full integration does not work we can always call it like we do Calculix.
Anyway, I will continue to develop fcFEM and if full integration does not work we can always call it like we do Calculix.
Re: fcFEM - FEA from start to finish
The issue I have is that I cannot fix the PySide/Shiboken dependency to get FC to build properly (I never had that issue in the old days). This means that the input panels don’t work properly and I cannot generate meshes. So as per the advice I switched to an app image and then hit the problem that you can’t import external dependencies (like Numba). So although numba is properly installed I cannot get the app image to work with it. Any suggestion on how to find an alternative is welcome.
Re: fcFEM - FEA from start to finish
It is possible to package the Numba into appimage as the following:
1. Extract the appimage, './FreeCAD_xxx.AppImage --appimage-extract', and then 'cd squashfs-root/'
2. Copy Numba into 'bin/` directory
3. Repackage with 'appimagetool-x86_64.AppImage squashfs-root'
Now you have an appimage with Numba integrated.
1. Extract the appimage, './FreeCAD_xxx.AppImage --appimage-extract', and then 'cd squashfs-root/'
2. Copy Numba into 'bin/` directory
3. Repackage with 'appimagetool-x86_64.AppImage squashfs-root'
Now you have an appimage with Numba integrated.
Re: fcFEM - FEA from start to finish
Cool. I will give this a try.
PS: would it then also be possible to use the dependencies from the app image to build FreeCAD from the repo?
PS: would it then also be possible to use the dependencies from the app image to build FreeCAD from the repo?
Re: fcFEM - FEA from start to finish
HarryVL, we may be able to use Snap packages.
Thanks to @ppd we've been able to make a dedicated nightly toponaming build, and also create experimental builds for different PRs
What dependencies do you need?
Thanks to @ppd we've been able to make a dedicated nightly toponaming build, and also create experimental builds for different PRs
What dependencies do you need?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: fcFEM - FEA from start to finish
Great. I have issues with user dialogues that according to @wmayer are due to PySide2 and it’s dependencies. They work well in the app image though, but I can’t fix the issue in my build. Apart from that I need Numba.
Re: fcFEM - FEA from start to finish
@HarryvL what version of pyside is necessary ?
I'll open a request to add numba to the nightly 'edge' snap
Edit: https://github.com/FreeCAD/FreeCAD-snap/issues/27
I'll open a request to add numba to the nightly 'edge' snap
Edit: https://github.com/FreeCAD/FreeCAD-snap/issues/27
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: fcFEM - FEA from start to finish
ThanksKunda1 wrote: ↑Mon Jun 20, 2022 11:59 am @HarryvL what version of pyside is necessary ?
I'll open a request to add numba to the nightly 'edge' snap
Edit: https://github.com/FreeCAD/FreeCAD-snap/issues/27