FEM Install/fr

Introduction
Pour pouvoir effectuer une analyse par éléments finis (FEA) à l'aide de l'outil FEM Worbench FreeCAD utilise deux programmes externes. L'un est utilisé pour générer le FEM-Mesh et l'autre pour résoudre le système d'équations. Si votre FreeCAD est configuré pour effectuer des analyses mécaniques par éléments finis, vous pouvez le vérifier facilement en chargeant et en analysant un fichier exemple. Voir FEM_CalculiX_Cantilever_3D

FEM Solver
Pour résoudre le système d'équations, nous utilisons CalculiX. Voir http://www.calculix.de/ FreeCAD écrit un fichier d’entrée CalculiX, lance CalculiX et lit la sortie de CalculiX. Cela signifie que le binaire CalculiX est autonome et indépendant de FreeCAD. Pour cette raison, et comme il existe plus de possibilités d'obtenir un FEM-Mesh valide, il est recommandé d'installer le solveur en premier. À ce jour (mi-2015), CalculiX est le seul solveur pris en charge du module FEM.

FEM Mesh Generator
In respect to a meshing tool, in order to create a FEM Mesh, FreeCAD uses Netgen. Using Netgen in the FEM Workbench, FreeCAD needs to be compiled against netgen libraries. Apart from Netgen a common way to create a FEM Mesh is the use FEM Gmsh mesh tool. For the use of this tool Gmsh has to be installed on your system. Check out FEM Mesh for the various possibilities to create an FEM Mesh in FreeCAD.

Windows
If either a stable or development version from Download is used no further software needs to be installed. Netgen and CalculiX are included in the FreeCAD download package.

Ubuntu PPA
The easiest possibility to get an working FEM Workbench on Linux is the use of the Ubuntu PPA Version. Check out Install on Unix. The netgen FEM Mesh Generator is already included in the PPA version. CalculiX is an extra package provided by the Ubuntu PPA Version as well. If the Ubuntu PPA repository is already added to your package manager install CalculiX by apt-get install ccx

The following FreeCAD Ubuntu PPA packages have Netgen and CalculiX:
 * Ubuntu 14.04 (Trusty Tahr)
 * Ubuntu 14.10 (Utopic Unicorn)
 * Ubuntu 15.04 (Vivid Vervet)

For Developers: There is a huge forum thread in which the creation of the Ubuntu PPA packages was discussed. It may be useful if the Ubuntu PPA packages needs to be updated. On Launchpad there are more than one CalculiX packages. Only one CalculiX package should be installed and any of them should work. There is a simple reason for not taking the one which was already on Launchpad. We did not know about it (see http://forum.freecadweb.org/viewtopic.php?f=18&t=10393&start=90#p85498)

Other
On other Linux distributions you need to make sure to get the appropriate software and libraries installed yourself before using FEM workbench.

CalculiX
Since CalculiX is a standalone software you either can install a CalculiX binary or compile CalculiX yourself. Any CalculiX version from 2.7.X works with FreeCAD. Since there hasn't been much changes in CalculiX resently lower versions than 2.7.X might work as well.

Install CalculiX Binary
There are only a few Linux Distributions which are known to have CalculiX Packages in their Repositories. Following a list:
 * Arch Linux --> https://aur.archlinux.org/packages/calculix/
 * Debian 09 Buster:
 * Debian packages are outdated, thus https://forum.freecadweb.org/viewtopic.php?f=18&t=31360&p=279925#p279925
 * Debian 08 Stretch:
 * https://packages.debian.org/stretch/calculix-ccx
 * Debian packages are outdated, thus https://forum.freecadweb.org/viewtopic.php?f=18&t=31360&p=279925#p260872
 * Debian 07 Jessie --> The packages of Debian Stretch can be installed by dpkg see FreeCAD forum

On the CalculiX Website it is possible to download a generic Linux binary of CalculiX. Check out http://www.dhondt.de/ Since any Linux Distribution could have different library paths it is likely possible this binary will not work out of the box at your linux distribution. Check out the following FreeCAD forum threads for more infomation:
 * Fedora 21 --> http://forum.freecadweb.org/viewtopic.php?f=18&t=10140
 * Some bash commands that may help --> http://forum.freecadweb.org/viewtopic.php?f=3&t=11830&start=20#p95741

Compile CalculiX
Compiling CalculiX is not as easy as it is with many OpenSource software. There are many different resources at FreeCAD forum and the internet. Check out the following:
 * Debian --> http://forum.freecadweb.org/viewtopic.php?f=4&t=5975&start=10
 * There is a CMake Repository on github, but at FreeCAD forum noone has reported if this one works
 * https://github.com/ricortiz/CalculiX-cmake

Netgen
There have been mixed results with the Netgen mesher and the compilation of FreeCAD with Netgen support.
 * ToDo

Further Informations
The FreeCAD forum is a very good resource for informations in this regard. Check out google search on FreeCAD forum page by :
 * calculix site:forum.freecadweb.org
 * netgen site:forum.freecadweb.org

OSX
The OSX development packages of FreeCAD 0.17.xxxxx do include Netgen but they do not include CalculiX.

CalculiX
Voir ce message de forum FreeCAD Fem on OSX comment installer CalculiX sur OSX Les informations suivantes peuvent être obsolètes:
 * forum
 * forum