FEM SolverElmer/ru

From FreeCAD Documentation
This page is a translated version of the page FEM SolverElmer and the translation is 16% complete.
Outdated translations are marked like this.

FEM SolverElmer

Системное название
FEM SolverElmer
Расположение в меню
Solve → solver Elmer
Верстаки
FEM
Быстрые клавиши
Нет
Представлено в версии
-
См. также
FEM Solver CalculiX, FEM Solver Z88, Учебник МКЭ

Описание

Elmer - это программное обеспечение для мультифизического моделирования с открытым исходным кодом, которое в основном разрабатывается CSC - IT Center for Science (CSC). Разработка Elmer началась в 1995 году в сотрудничестве с финскими университетами, исследовательскими институтами и промышленностью. После публикации с открытым исходным кодом в 2005 году использование и развитие Elmer стало международным.

Элмер включает, в частности, физические модели гидродинамики, строительной механики, электромагнетизма, теплопередачи и акустики. Они описываются уравнениями в частных производных, которые Элмер решает методом конечных элементов (МКЭ). https://www.csc.fi/web/elmer

Создание объекта SolverElmer в контейнере анализа в FreeCAD дает доступ к уравнениям Elmer для простого или мультифизического анализа.

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 and electrodynamics. It can also be used for mechanical FEA through the Elasticity equation or any combination of the aforementioned equations. This combination makes Elmer the preferred choice for multi-physics analyses.

Установка

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.

  1. Download and install the version best suited to your Operating System (Windows or Linux). It is recommended to install the mpi version to get multi-core support (introduced in version 0.21).
  2. In FreeCAD go to Edit → Preferences → FEM → Elmer
  3. In the FEM preferences set the correct path for both ElmerGrid and ElmerSolver, or version 0.21 and above: set the path for ElmerSolver_mpi instead of ElmerSolver to make Elmer use all available CPU cores.
    Elmer Tab in FEM Preferences

    Elmer preferences dialog menu showing fields to locate important Elmer binaries on Windows OS

You are ready to use Elmer in FreeCAD.

version 0.19 and below: Now start FreeCAD and change the units scheme to MKS in the preferences. See Notes.

Применение

  1. Switch to the FEM Workbench
  2. Create an Analysis container by pressing the icon.
  3. 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

    Example of a tree view once a Solver for Elmer is activated

  4. Edit the parameters for the solver in the Property editor Data tab of the SolverElmer object in the model tree view
  5. Double-click on the SolverElmer object to prepare an analysis run

    Dialog box to run an Elmer analysis

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

Equations

  • 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:
  1. Click on the SolverElmer object in the model tree view
  2. Select one or several of the available equations:

Solver Settings

  • Depending on the used equations, you must change the default solver settings. They are explained in the Elmer solver settings.
  • The solver will by default perform a steady-state simulation. To perform a transient simulation (how the model behaves/develops over time) see the section Timestepping (transient analyses) in the Elmer solver settings.

Visualization

The Elmer solver results are output in result pipeline objects. (Result objects are not possible.)

introduced in version 0.21:

For transient analyses you get a result pipeline for every output time step. To edit all of them at once, select them in the tree view and set the parameters in the property editor. To make animations of the temporal progression, the best method is currently to:

  • Hide the view of the first time result.
  • Select an object of your choice in the tree view, but not a pipeline object.
  • Hover with the mouse over the pipelines.

The result is an animation like this:

Notes

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