FEM Install/pl

Wprowadzenie
Aby móc przeprowadzić analizę elementów skończonych (MES) w ramach środowiska pracy MES, FreeCAD korzysta z dwóch zewnętrznych środowisk: jedno służy do generowania siatek, a drugie do numerycznego rozwiązywania właściwej analizy. Możesz sprawdzić, czy Twoja instalacja FreeCAD jest gotowa do przeprowadzenia analizy metodą elementów skończonych, uruchamiając przykład MES CalculiX - wspornik 3D, który jest dołączany do każdej instalacji FreeCAD od wersji 0.17.





Solver MES
The default solver to perform finite element calculations is CalculiX, a simple solver for analysis of structures. FreeCAD writes a CalculiX input file, starts the solver, and reads the output, which can then be presented visually in the viewport; this means the CalculiX binary is standalone and independent from FreeCAD. Given that there are many programs that can generate a mesh, it is recommended to install the solver, and make sure it's working first.

If the solver is correctly installed, you may run the single command in the terminal to obtain a simple response:

If the solver is installed, make sure the FEM Workbench is able to find the binary; go to. If you compiled the solver yourself, untick the option, and give the correct path to the binary. For other solvers that could be used with FreeCAD, see FEM Solver.



Generowanie siatki MES
In order to create a FEM Mesh, FreeCAD uses Gmsh as the default mesher. Depending on your operating system and your FreeCAD installation Gmsh may be bundled with the FreeCAD installation binaries. If it is not, you can install it separately from FreeCAD and then use the menu to set the path to the gmsh.exe.

If the program is correctly installed, you may run the command in the terminal to launch the graphical interface of the program. This interface is not used by FreeCAD but demonstrates that the program is installed.

If the mesher is installed, make sure the FEM Workbench is able to find the binary; go to. If you compiled the mesher yourself, untick the option, and give the correct path to the binary. See FEM Mesh for various possibilities of obtaining a valid mesh for analysis.

Netgen
In order to create a FEM Mesh, you can use Netgen as an alternative to Gmsh. Depending on your operating system and your FreeCAD installation Netgen may be bundled with the FreeCAD installation binaries.

If the program is correctly installed, you can run the command in the terminal under Linux to launch the graphical interface of the program.



Instalacja w środowisku Windows
The FreeCAD packages available from the download page already include Netgen and CalculiX, so no additional software needs to be installed. Some links where to get a better Calculix executable than included in FreeCAD can be found here alternative ccx executables



Instalacja w środowisku Linux
Linux distributions have different ways of installing software. Many distributions have software repositories and package managers; before compiling source code, look in your package manager for, , or , and install them following the instructions of your own distribution.



Instalacja w środowisku Ubuntu PPA
The freecad-stable and freecad-daily personal package archives (PPA) provide a more recent version of FreeCAD than is available in the official Ubuntu repositories. These PPAs include the most recent, , and packages as well. See Installing on Linux for more information on setting up the repositories.

If a PPA is already added to your system, install the packages as follows

The freecad-community PPA also provides, , and packages for testing. If they are stable enough, they may be added to the daily or stable repositories. The binaries for ccx 2.14 work on Debian Stretch, but not on Debian Buster due to dependency problems.

the thread Ubuntu Repository discusses the creation of the Ubuntu PPA packages. At the time it was written, CalculiX was not included in the Debian repositories, so there were several personal packages in Launchpad. Only one package should be installed.



Instalacja w środowisku Arch Linux
Get the CalculiX package from the AUR repository.

Instalacja w środowisku Debian

 * Debian 9 Buster: the packages in the repository are outdated, but you can use the packages from the Ubuntu PPA . See Gmsh 4 package available for testing in Community Extras PPA (forum post).
 * Debian 8 Stretch: the packages in the repository are outdated, but you can use the packages from the Ubuntu PPA . See Gmsh 4 package available for testing in Community Extras PPA (forum post).
 * Debian 7 Jessie: install the packages from Debian 8 Stretch using . See Debian source package for Calculix (forum post).

Instalacja w środowisku openSUSE

 * openSUSE:Science Math
 * netgen Automatic 3D tetrahedral mesh generator
 * gmsh A three-dimensional finite element mesh generator
 * ccx An open source finite element package

Additional packages are typically installed with YAST (abbr. Yet another Setup Tool) the Linux operating system setup and configuration tool, or in any terminal/console (root rights required) with:





Binaria CalculiX
The CalculiX authors provide a pre-compiled Linux binary of the solver; it can be downloaded from the authors' website. However, since different Linux distributions have different library paths, most likely this binary will not work without making some adjustments.

To use the binary with Fedora 21, see the thread Making FEM run on linux fedora 21. For newer Fedora versions, you should compile CalculiX yourself.

If you use this binary, check that the binary is executable, that it is in the executable of your system, and that you have the necessary version of the libraries (,, , etc.) against which it was compiled. This is mentioned in the forum post FEM WB.

Use the command to see the libraries that are linked by the binary. Install any missing dependency.



Kompilacja CalculiX
Since CalculiX is a standalone application, you can either install a binary packaged for your distribution, or compile it yourself. Any CalculiX version from 2.7.x onwards should work with FreeCAD, and since the code hasn't changed much in years, lower versions than 2.7.x may work as well.

Compiling CalculiX is a task for experienced users, requiring editing the Makefiles and build options in different platforms. See the following information:
 * Debian: Debian source package for Calculix, Gmsh 4 package available for testing in Community Extras PPA, Compiling CalculiX ccx on fedora, ubuntu and debian.
 * Fedora 27, 28, 29: Compiling CalculiX ccx on fedora, ubuntu and debian.
 * There is a CMake version of the source package in a github repository, but at the FreeCAD forums no one has reported if this package works.



Kompilacja Netgen
Netgen was originally linked by FreeCAD when FreeCAD used OCE, the community fork of OpenCascade (OCCT). As OCE lagged in development behind OCCT, FreeCAD switched back to OCCT. This broke the linking of Netgen, which could only link against OCCT 6.9 or OCE 0.18 and below. As OCCT 7.x versions improved the core funcitonality of FreeCAD, it was decided to drop Netgen support in favor of Gmsh.

Since then some success has been achieved patching and linking newer versions of Netgen against OCCT 7.x. Nevertheless, the inclusion of Netgen with FreeCAD is still problematic.



Instalacja w środowisku MacOSX
The OSX development packages of FreeCAD may include Netgen but may not include CalculiX.

See this forum post FEM on Mac OSX for information on installing CalculiX, and an updated post for more recent information.

CalculiX: The following posts may be outdated:
 * install CalculiX with brew
 * FEM on Mac OSX, post 1
 * MacPorts users: CalculiX port test request



Informacje dodatkowe
The FEM Workbench is under constant development. The most recent information is found in the FreeCAD forum.

If you have problems installing Netgen, Gmsh, or CalculiX, or another external tool, please search the forum first:
 * netgen site:forum.freecadweb.org
 * gmsh site:forum.freecadweb.org
 * calculix site:forum.freecadweb.org