Calculix,Cuda & Netgen,OpenMP

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
mk2
Posts: 77
Joined: Wed Dec 10, 2014 4:27 pm

Calculix,Cuda & Netgen,OpenMP

Post by mk2 »

Hello,

I'm interested in OS FEM software. So i found interesting stuff for the software which will be used in FreeCAD. I will be really happy if the FEM wb will work on Linux, because CGX for Calculix is ... bad to use. Still i have to use Abaqus with only 1 Processor :shock: thats awful.

Now to the stuff i found:

1. Cuda based solver for Calculix
http://homepages.wmich.edu/~pjm8969/res ... as-dl.html

2. Parallel meshing with NETGEN
https://code.google.com/p/pmsh/


Maybe for somebody it could be usefull :-)


Kind Regards

mk2
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Calculix,Cuda & Netgen,OpenMP

Post by yorik »

Wow, a cuda-based solver is interesting, must be blind fast! Crazy that GPUs can now be used for non-graphical tasks!
mk2
Posts: 77
Joined: Wed Dec 10, 2014 4:27 pm

Re: Calculix,Cuda & Netgen,OpenMP

Post by mk2 »

Hello,

It would be 6 times faster then a cpu...

https://developer.nvidia.com/cusp

Gpgpu computing will be really interesting for simulation. But the meshing is still a problem in parallel.



Merry christmes :-)
User avatar
TT-RS
Posts: 70
Joined: Fri Oct 24, 2014 9:19 pm

Re: Calculix,Cuda & Netgen,OpenMP

Post by TT-RS »

yorik wrote:Wow, a cuda-based solver is interesting, must be blind fast!
Indeed, it is very interesting. CaeLinux 2013 OS already have implemented some patches from this website (to be more precise - you have to download them from one thread on caelinux.com forum). Exodus format make possible to postprocess in ParaView (results from CCX). In newer release they want to add also CUDA-Cusp.
yorik wrote: ...Crazy that GPUs can now be used for non-graphical tasks!
GPGPU is nothing very new, and now many developers are working hard to parallelize software for CPUs, GPUs and cards like Intel Xeon Phi. I have heard that software companies are switching from CUDA to OpenCL recently.
mk2 wrote:Gpgpu computing will be really interesting for simulation. But the meshing is still a problem in parallel
Depends on problem, some meshers already are working parallel and very fast, for example in ANSYS and many other apps (mostly commercial ones). One good opensource example is SnapyHexMesh (CFD mesher from OpenFOAM).

Take a look at AGROS2D (http://www.agros2d.org/) - opensource Multiphysics (FEA/CFD/Acoustics/Magnetics,...) project. It doesn't use - so far - GPUs, but heavilly uses OpenMP and with very good results (it is pretty fast on modern CPUs).
mk2
Posts: 77
Joined: Wed Dec 10, 2014 4:27 pm

Re: Calculix,Cuda & Netgen,OpenMP

Post by mk2 »

Oh AGROS2D is really interesting, i have to test this software now :D.

Is SnappyHexMesh exact enough for FEM? And till now i haven't seen which type of element will be meshed by SHM...? I thought that it can only produce eight node hex elements, in my opinion for FEM that is not enough. Is SHM developed under the LGPL? Netgen is so awful to compile... CUBIT is still interesting with METIS partitioning and parallel meshing, but i think it is developed under a special US license.
I'm really interested in the FEM WB from FreeCad, it will be like a quantum jump for every person which want to use Calculix.

There are solver with OpenCL, OpenMP and CUDA support like ViennaCL.

http://www.mcs.anl.gov/petsc/index.html
http://viennacl.sourceforge.net/viennacl-about.html

XeonPHI is a dream for every FEA worker... :D

Kind Regars

mk2
User avatar
TT-RS
Posts: 70
Joined: Fri Oct 24, 2014 9:19 pm

Re: Calculix,Cuda & Netgen,OpenMP

Post by TT-RS »

mk2 wrote: Is SnappyHexMesh exact enough for FEM?
(...)
XeonPHI is a dream for every FEA worker... :D
SnapyHexMesh is only for CFD (and only for OF)- I mentioned it as it is good example of mesher working in parallel. It is really fast.

Xeon Phi - this cards are built of chips similar to Pentium CPUs, but they need to be programmed extra, most software working on CPU doesn't work (without modification) on Xeon Phi.

In subject of GPGPU - Soon (in year or two) there will be available GPUs with ARMs - this will give extra power to GPGPU and provide doing more complex calculations on GPUs.
AlexKaz
Posts: 1
Joined: Sun Jul 30, 2017 1:02 pm

Re: Calculix,Cuda & Netgen,OpenMP

Post by AlexKaz »

Hello!

I've written a simple note about how to get CalculiX binary with CUDA support on Linux: http://alvlk.blogspot.ru/2017/07/calcul ... -cuda.html, https://geektimes.ru/post/291475/ . You can use googletranslation if necessary.

Best regards,
AlexKaz
Post Reply