# Difference between revisions of "FEM SolverElmer"

RatonLaveur (talk | contribs) |
Renatorivo (talk | contribs) (Marked this version for translation) |
||

(22 intermediate revisions by 5 users not shown) | |||

Line 24: | Line 24: | ||

==Description== <!--T:8--> | ==Description== <!--T:8--> | ||

+ | <!--T:10--> | ||

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 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. | ||

+ | <!--T:11--> | ||

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). https://www.csc.fi/web/elmer | 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). https://www.csc.fi/web/elmer | ||

− | Creating the | + | <!--T:12--> |

+ | Creating the SolverElmer object in the Analysis container in FreeCAD, gives access to the Elmer Equations for simple or multiphysical analysis. | ||

+ | <!--T:2--> | ||

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. | 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. | ||

− | |||

− | ==Installation== | + | ==Installation== <!--T:13--> |

− | Elmer requires two components to be interfaced with FreeCAD | + | <!--T:14--> |

+ | 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. | 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: https://www.nic.funet.fi/pub/sci/physics/elmer/bin/ OR https://www.csc.fi/web/elmer/binaries | + | <!--T:15--> |

− | #Download and install the version best suited to your Operating System ([https://www.nic.funet.fi/pub/sci/physics/elmer/bin/windows/ Windows 64] bits or [https://www.nic.funet.fi/pub/sci/physics/elmer/bin/linux/Readme1st.txt Linux]) | + | # Go to the CSC binaries resources for Elmer: https://www.nic.funet.fi/pub/sci/physics/elmer/bin/ OR https://www.csc.fi/web/elmer/binaries |

− | #In FreeCAD go to | + | # Download and install the version best suited to your Operating System ([https://www.nic.funet.fi/pub/sci/physics/elmer/bin/windows/ Windows 64] bits or [https://www.nic.funet.fi/pub/sci/physics/elmer/bin/linux/Readme1st.txt Linux]) |

− | #Link the correct path for both ElmerGrid | + | # In FreeCAD go to {{MenuCommand|Edit → Preferences → FEM → Elmer}} |

− | [[Image:Preferences-ElmerPath.png|Elmer Tab in FEM Preferences]] | + | # Link the correct path for both {{incode|ElmerGrid}} and {{incode|ElmerSolver}} |

+ | #: [[Image:Preferences-ElmerPath.png|Elmer Tab in FEM Preferences]] | ||

+ | #: {{Caption|Above: Elmer preferences dialog menu showing fields to locate important Elmer binaries on Windows OS}} | ||

+ | <!--T:16--> | ||

You are ready to use Elmer in FreeCAD. | You are ready to use Elmer in FreeCAD. | ||

==Usage== <!--T:9--> | ==Usage== <!--T:9--> | ||

− | |||

− | |||

− | |||

− | |||

− | + | <!--T:17--> | |

− | + | # Switch to the [[Image:Workbench_FEM.svg|24px]] [[FEM Workbench]] | |

− | + | # Create an [[FEM_Analysis|Analysis]] container by pressing the [[Image:Fem-analysis.svg|22px]] icon. | |

− | # | + | # Create a FEM Solver for Elmer, by pressing the [[Image:Fem-elmer.svg|22px]] icon. |

− | + | #* Note: A successful analysis will require at least a Model (2D or 3D), a Material ([[FEM_MaterialFluid|Fluid]] or [[FEM_MaterialSolid|Solid]]), a [[FEM_MeshGmshFromShape|Mesh]], Equations and Boundary conditions | |

− | + | #: [[Image:Elmer typical file tree.png]] | |

− | + | #: {{Caption|Above: Example of a [[tree view]] once a Solver for Elmer is activated}} | |

− | * [[ | + | # Edit the parameters for the solver in the [[Property editor]] {{Button|Data}} tab of the SolverElmer object in the model [[tree view]] |

− | + | # Double-click on the {{KEY|[[Image:Fem-elmer.svg|22px]] SolverElmer}} object to prepare an analysis run | |

− | + | #: [[Image:ElmerSolver TaskPanel.png]] | |

+ | #: {{Caption|Above: Dialog box to run an Elmer analysis}} | ||

+ | # Select the path to write the analysis in by clicking {{Button|...}} | ||

+ | # Click {{Button|Write}} to write the case files in the directory selected previously | ||

+ | # Click {{Button|Run}} to start the analysis | ||

+ | ===About Equations=== <!--T:18--> | ||

+ | * Each type of analysis in Elmer is called an Equation (Flow, Heat, Electrostatics...) | ||

+ | * One or several equations can be used at once with Elmer by simply adding the Equation object under the SolverElmer object: | ||

+ | <!--T:19--> | ||

+ | # Click on the {{KEY|[[Image:Fem-elmer.svg|22px]] SolverElmer}} object in the model [[tree view]] | ||

+ | # Select an equation: | ||

+ | #* [[Image:Fem-equation-elasticity.svg|32px]] [[FEM_EquationElasticity|Equation elasticity]] | ||

+ | #* [[Image:Fem-equation-flow.svg|32px]] [[FEM_EquationFlow|Equation flow]] | ||

+ | #* [[Image:Fem-equation-heat.svg|32px]] [[FEM_EquationHeat|Equation heat]] | ||

+ | #* [[Image:Fem-equation-electrostatic.svg|32px]] [[FEM_EquationElectrostatic|Equation electrostatic]] | ||

+ | #* [[Image:Fem-equation-fluxsolver.svg|32px]] [[FEM_EquationFluxsolver|Equation fluxsolver]] | ||

− | ==Notes== | + | ==Notes== <!--T:20--> |

− | * Parameters for the Solver and for the Equations are independently set through the {{KEY|Data}} tab of their respective objects in the tree. | + | * Parameters for the Solver and for the Equations are independently set through the [[Property editor]] {{KEY|Data}} 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. | * 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. | ||

− | ==Documentation== | + | ==Documentation== <!--T:21--> |

− | The following documentation | + | <!--T:22--> |

− | + | The following link gives access to the full documentation for Elmer https://www.nic.funet.fi/pub/sci/physics/elmer/doc/ | |

+ | 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. | ||

<!--T:3--> | <!--T:3--> |

## Latest revision as of 07:41, 12 June 2020

This documentation is not finished. Please help and contribute documentation.

Gui Command explains how tools should be documented. See Draft ShapeString for an example of a well documented tool. Browse Category:UnfinishedDocu to see incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.

Menu location |
---|

Solve → solver Elmer |

Workbenches |

FEM |

Default shortcut |

Introduced in version |

- |

See also |

Solver CalculiX, Solver Z88, FEM tutorial |

## Description

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). https://www.csc.fi/web/elmer

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.

## Installation

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: https://www.nic.funet.fi/pub/sci/physics/elmer/bin/ OR https://www.csc.fi/web/elmer/binaries
- Download and install the version best suited to your Operating System (Windows 64 bits or Linux)
- In FreeCAD go to
**Edit → Preferences → FEM → Elmer** - Link the correct path for both
`ElmerGrid`

and`ElmerSolver`

You are ready to use Elmer in FreeCAD.

## Usage

- 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 Data tab of the SolverElmer object in the model tree view
- Double-click on the SolverElmer object to prepare an analysis run

- Select the path to write the analysis in by clicking ...
- Click Write to write the case files in the directory selected previously
- Click Run to start the analysis

### About Equations

- Each type of analysis in Elmer is called an Equation (Flow, Heat, Electrostatics...)
- One or several equations can be used at once with Elmer by simply adding the Equation object under the SolverElmer object:

- Click on the SolverElmer object in the model tree view
- Select an equation:

## Notes

- Parameters for the Solver and for the Equations are independently set through the Property editor Data 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.

## Documentation

The following link gives access to the full documentation for Elmer https://www.nic.funet.fi/pub/sci/physics/elmer/doc/ 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.

**Materials:**Solid, Fluid, Nonlinear mechanical; Material editor

**Element geometry:**Beam (1D), Beam rotation (1D), Shell (2D), Fluid flow (1D)

**Constraints**

**Electrostatic:**Potential

**Fluid:**Initial velocity, Fluid boundary, Flow velocity

**Mechanical:**Fixed, Displacement, Plane rotation, Contact, Transform, Force, Pressure, Self weight, Bearing, Gear, Pulley

**Thermal:**Initial temperature, Heat flux, Temperature, Heat source

**Solve:**Calculix tools, CalculiX, Elmer, Z88;**Equations:**Heat, Elasticity, Electrostatic, Fluxsolver, Flow;**Solver:**Solver control, Solver run

**Results:**Purge, Show;**Postprocessing:**Apply changes, Pipeline from result, Create warp vector filter, Create scalar clip filter, Create cut filter, Create clip filter, Create data along line filter, Create linearized stresses,

Create data at point filter, Create functions

**Utilities:**Clipping plane, Remove clipping planes; Mesh clear, Mesh print info

**Additional:**Preferences; FEM Install, FEM Mesh, FEM Solver, FEM CalculiX, FEM Project, FEM Concrete; FEM Element Types

**Getting started****Installation:**Download, Linux, Windows, MacOS, Docker, AppImage, Ubuntu Snap**Basics:**About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties; Help FreeCAD, Donate

**Help:**Tutorials, Video tutorials**Workbenches:**Std Base; Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Points, Raytracing, Reverse Engineering, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web**Unmaintained workbenches:**Plot, Robot, Ship**Deprecated workbenches:**Complete, Drawing

**Code:**Addon Manager, Addons, Macros, External workbenches

**Hubs:**User hub, Power users hub, Developer hub