|Solve → Solver Elmer|
|Introduced in version|
|FEM Solver CalculiX, FEM Solver Z88, FEM tutorial|
Elmer is an open source multiphysical simulation software mainly developed by CSC - IT Center for Science (CSC). Elmer development was started 1995 in collaboration with Finnish Universities, research institutes and industry. After it's open source publication in 2005, the use and development of Elmer has become international.
Elmer includes physical models of fluid dynamics, structural mechanics, electromagnetics, heat transfer and acoustics, for example. These are described by partial differential equations which Elmer solves by the Finite Element Method (FEM).
Creating the SolverElmer object in the Analysis container in FreeCAD, gives access to the Elmer Equations for simple or multiphysical analysis.
Since FreeCAD already has an extensive integration of Calculix and Z88 as solvers for mechanical and thermo-mechanical analysis, Elmer will be preferred for Computational Fluid Dynamics (CFD), Heat, Electrostatics, Magnetostatics and Electrical Forces. It can also be used for mechanical FEA through the Elasticity equation or any combination of the aforementioned equations.
Elmer requires two components to be interfaced with FreeCAD:
- ElmerGrid is the interface handling meshes
- ElmerSolver is handling the computation.
There are standalone programs for both of these applications but their installation and usage are beyond the scope of the FreeCAD integration.
- Go to the CSC binaries resources for Elmer: binaries OR CSC binaries
- Download and install the version best suited to your Operating System (Windows or Linux). It is recommended to install the
mpiversion to get multi CPU core support.
- In FreeCAD go to Edit → Preferences → FEM → Elmer
- Link the correct path for both
ElmerSolveror, to make Elmer use all available CPU cores,
You are ready to use Elmer in FreeCAD.
- Switch to the FEM Workbench
- Create an Analysis container by pressing the icon.
- Create a FEM Solver for Elmer, by pressing the icon.
- Note: A successful analysis will require at least a Model (2D or 3D), a Material (Fluid or Solid), a Mesh, Equations and Boundary conditions
Above: Example of a tree view once a Solver for Elmer is activated
- Edit the parameters for the solver in the Property editor tab of the SolverElmer object in the model tree view
- Double-click on the object to prepare an analysis run
- Select the path to write the analysis in by clicking
- Click to write the case files in the directory selected previously
- Click to start the analysis
- To perform the analysis of a particular physical behavior, an Equation must be used (Flow, Heat, Electrostatics...)
- Disambiguation: The term Equation is used in FreeCAD to describe the different physical mechanisms, the term Solver is used in all Elmer documents. Thus when using in FreeCAD the "Flow Equation", in reality Elmer uses the "Flow Solver" to find a solution to the Navier-Stokes equation.
- One or several equations can be used at once with Elmer by simply adding the equation object under the SolverElmer object, thus performing multi-physics analyses:
- Click on the tree view object in the model
- Select an equation:
- Important: in order to get sensible results and to be able to exchange the Elmer input files (named case.sif) with others, all values in the input files must be in SI units. In FreeCAD version 0.19 and earlier this is only the case if you use the unit scheme MKS in the preferences.
- Parameters for the Solver and for the Equations are independently set through the Property editor tab of their respective objects in the tree view.
- Each equation will have a priority, for example, if trying see the effect of a convective flow of hot air, the equation for Flow should be solved with higher priority than Heat, otherwise the solver will first solve Heat through conduction and then Flow.
- 2D vs 3D cases: Elmer can be used to solve both 2D and 3D cases. However, when defining a 2D case, the faces need to be mapped in the XY plane of FreeCAD, otherwise the solver will try to compute a 3D case on a face, and normal vectors will be under-defined. Further information can be found in the FreeCAD forums: https://forum.freecadweb.org/viewtopic.php?f=18&t=48175
The following link gives access to the full documentation for Elmer. This includes the manuals as well as tutorials. Note that documentation and files appended with "gui" generally concern the usage of the Elmer GUI and not the FreeCAD implementation of Elmer.