FEM SolverElmer/it: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{UnfinishedDocu{{#translation:}}}}
{{Docnav/it|[[FEM_SolverCalculiX/it|Risolutore CalculiX]]|[[FEM_SolverZ88/it|Risolutore Z88]]|[[FEM_Module/it|FEM]]|IconL=Fem_Solver.svg|IconC=Workbench_FEM.svg|IconR=FEM_SolverZ88.png}}


<div class="mw-translate-fuzzy">
{{GuiCommand/it|Name=FEM SolverElmer|Name/it=Risolutore Elmer|Icon=Fem-elmer.svg|MenuLocation= Solve → Risolutore Elmer||Workbenches=[[Fem Workbench/it|FEM]]|Shortcut=|SeeAlso=[[FEM_SolverCalculiX/it|Risolutore Calculix]], [[FEM_SolverZ88/it|Risolutore Z88]], [[FEM_tutorial/it|Tutorial FEM]]}}
{{Docnav/it|[[FEM_SolverCalculiX/it|Risolutore CalculiX]]|[[FEM_SolverZ88/it|Risolutore Z88]]|[[FEM_Workbench/it|FEM]]|IconL=Fem_Solver.svg|IconC=Workbench_FEM.svg|IconR=FEM_SolverZ88.png}}
</div>


<div class="mw-translate-fuzzy">
==Description==
{{GuiCommand/it|Name=FEM SolverElmer|Name/it=Risolutore Elmer|Icon=Fem-elmer.svg|MenuLocation= Solve → Risolutore Elmer||Workbenches=[[FEM_Workbench/it|FEM]]|Shortcut=|SeeAlso=[[FEM_SolverCalculiX/it|Risolutore Calculix]], [[FEM_SolverZ88/it|Risolutore Z88]], [[FEM_tutorial/it|Tutorial FEM]]}}
</div>


<span id="Description"></span>
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.
==Descrizione==


<div class="mw-translate-fuzzy">
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 è un software di simulazione multifisica open source sviluppato principalmente da CSC - IT Center for Science (CSC). Lo sviluppo di Elmer è stato avviato nel 1995 in collaborazione con università, istituti di ricerca e industria finlandesi. Dopo la sua pubblicazione open source nel 2005, l'uso e lo sviluppo di Elmer sono diventati internazionali.
</div>


<div class="mw-translate-fuzzy">
Creating the SolverElmer object in the Analysis container in FreeCAD, gives access to the Elmer Equations for simple or multiphysical analysis.
Elmer include modelli fisici di dinamica dei fluidi, meccanica strutturale, elettromagnetica, trasferimento di calore e acustica, per esempio. Questi sono descritti da equazioni alle derivate parziali che Elmer risolve con il metodo degli elementi finiti (FEM). https://www.csc.fi/web/elmer
</div>

La creazione dell'oggetto SolverElmer nel contenitore Analysis in FreeCAD, dà accesso alle equazioni di Elmer per analisi semplici o multifisiche.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Poiché FreeCAD ha già un'ampia integrazione di Calculix e Z88 come solutori per analisi meccaniche e termo-meccaniche, Elmer sarà preferito per la fluidodinamica computazionale (CFD), il calore, l'elettrostatica, la magnetostatica e le forze elettriche. Può anche essere utilizzato per la FEA meccanica tramite l'equazione di elasticità o qualsiasi combinazione delle suddette equazioni.
Da fare
</div>
</div>


==Installation==
<span id="Installation"></span>
==Installazione==


Elmer requires two components to be interfaced with FreeCAD:
Elmer requires two components to be interfaced with FreeCAD:
Line 24: Line 34:
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
# Download and install the version best suited to your Operating System ([https://www.nic.funet.fi/pub/sci/physics/elmer/bin/windows/ Windows] or [https://www.nic.funet.fi/pub/sci/physics/elmer/bin/linux/Readme1st.txt Linux]). It is recommended to install the {{incode|mpi}} version to get multi-core support ({{Version|0.21}}).
# 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])
# In FreeCAD go to {{MenuCommand|Edit → Preferences → FEM → Elmer}}
# In FreeCAD go to {{MenuCommand|Edit → Preferences → FEM → Elmer}}
# Link the correct path for both {{incode|ElmerGrid}} and {{incode|ElmerSolver}}
# In the [[FEM_Preferences#Elmer|FEM preferences]] set the correct path for both {{incode|ElmerGrid}} and {{incode|ElmerSolver}}, or {{VersionPlus|0.21}}: set the path for {{incode|ElmerSolver_mpi}} instead of {{incode|ElmerSolver}} to make Elmer use all available CPU cores.
#: [[Image:Preferences-ElmerPath.png|Elmer Tab in FEM Preferences]]
#: [[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}}
#: {{Caption|Elmer preferences dialog menu showing fields to locate important Elmer binaries on Windows OS}}


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


{{VersionMinus|0.19}}: Now start FreeCAD and change the units scheme to ''MKS'' in the [[Preferences_Editor#Units|preferences]]. See [[#Notes|Notes]].
==Usage==


<span id="Usage"></span>
# Switch to the [[Image:Workbench_FEM.svg|24px]] [[FEM Workbench]]
==Utilizzo==
# 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.
# Switch to the [[Image:Workbench_FEM.svg|24px]] [[FEM_Workbench|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_SolverElmer.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
#* 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]]
#: [[Image:Elmer typical file tree.png]]
#: {{Caption|Above: Example of a [[tree view]] once a Solver for Elmer is activated}}
#: {{Caption|Example of a [[Tree_view|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]]
# Edit the parameters for the solver in the [[Property_editor|Property editor]] {{Button|Data}} tab of the SolverElmer object in the model [[Tree_view|tree view]]
# Double-click on the {{KEY|[[Image:Fem-elmer.svg|22px]] SolverElmer}} object to prepare an analysis run
# Double-click on the {{KEY|[[Image:FEM_SolverElmer.svg|22px]] SolverElmer}} object to prepare an analysis run
#: [[Image:ElmerSolver TaskPanel.png]]
#: [[Image:ElmerSolver TaskPanel.png|300px]]
#: {{Caption|Above: Dialog box to run an Elmer analysis}}
#: {{Caption|Dialog box to run an Elmer analysis}}
# Select the path to write the analysis in by clicking {{Button|...}}
# 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|Write}} to write the case files in the directory selected previously
# Click {{Button|Run}} to start the analysis
# Click {{Button|Run}} to start the analysis


===Equations===


* To perform the analysis of a particular physical behavior, an Equation must be used (Flow, Heat, Electrostatics...)
===About Equations===
* 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.
* 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:
* 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 {{KEY|[[Image:Fem-elmer.svg|22px]] SolverElmer}} object in the model [[tree view]]
# Click on the {{KEY|[[Image:FEM_SolverElmer.svg|22px]] SolverElmer}} object in the model [[Tree_view|tree view]]
# Select an equation:
# Select one or several of the available equations:
#* [[Image:Fem-equation-elasticity.svg|32px]] [[FEM_EquationElasticity|Equation elasticity]]
#* [[Image:FEM_EquationDeformation.svg|32px]] [[FEM_EquationDeformation|Deformation equation]]
#* [[Image:Fem-equation-flow.svg|32px]] [[FEM_EquationFlow|Equation flow]]
#* [[Image:FEM_EquationElasticity.svg|32px]] [[FEM_EquationElasticity|Elasticity equation]]
#* [[Image:Fem-equation-heat.svg|32px]] [[FEM_EquationHeat|Equation heat]]
#* [[Image:FEM_EquationElectricforce.svg|32px]] [[FEM_EquationElectricforce|Electricforce equation]]
#* [[Image:Fem-equation-electrostatic.svg|32px]] [[FEM_EquationElectrostatic|Equation electrostatic]]
#* [[Image:FEM_EquationElectrostatic.svg|32px]] [[FEM_EquationElectrostatic|Electrostatic equation]]
#* [[Image:Fem-equation-fluxsolver.svg|32px]] [[FEM_EquationFluxsolver|Equation fluxsolver]]
#* [[Image:FEM_EquationFlow.svg|32px]] [[FEM_EquationFlow|Flow equation]]
#* [[Image:FEM_EquationFlux.svg|32px]] [[FEM_EquationFlux|Flux equation]]
#* [[Image:FEM_EquationHeat.svg|32px]] [[FEM_EquationHeat|Heat equation]]
#* [[Image:FEM_EquationMagnetodynamic.svg|32px]] [[FEM_EquationMagnetodynamic|Magnetodynamic equation]]
#* [[Image:FEM_EquationMagnetodynamic2D.svg|32px]] [[FEM_EquationMagnetodynamic2D|Magnetodynamic 2D equation]]

===Solver Settings===

* Depending on the used equations, you must change the default solver settings. They are explained in the [[FEM_SolverElmer_SolverSettings|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 [[FEM_SolverElmer_SolverSettings#Timestepping_(transient_analyses)|Elmer solver settings]].

===Visualization===

The Elmer solver results are output in [[FEM_PostPipelineFromResult|result pipeline]] objects. ([[FEM_ResultShow|Result objects]] are not possible.)

{{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|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:

[[Image:ElmerSolver_TransientAnalysis.gif]]


==Notes==
==Notes==

* 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]].
* '''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_Editor#Units|preferences]].
* Parameters for the Solver and for the Equations are independently set through the [[Property_editor|Property editor]] {{KEY|Data}} tab of their respective objects in the [[Tree_view|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.
* 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


==Documentation==
<span id="Documentation"></span>
== Documentazione ==


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


<br />


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/it|[[FEM_SolverCalculiX/it|Risolutore CalculiX]]|[[FEM_SolverZ88/it|Risolutore Z88]]|[[FEM_Module/it|FEM]]|IconL=Fem-solver.svg|IconC=Workbench_FEM.svg|IconR=FEM_SolverZ88.png}}
{{Docnav/it|[[FEM_SolverCalculiX/it|Risolutore CalculiX]]|[[FEM_SolverZ88/it|Risolutore Z88]]|[[FEM_Workbench/it|FEM]]|IconL=Fem_Solver.svg|IconC=Workbench_FEM.svg|IconR=FEM_SolverZ88.png}}
</div>
</div>


{{FEM Tools navi{{#translation:}}}}
{{FEM Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 12:49, 24 November 2023

Risolutore Elmer

Posizione nel menu
Solve → Risolutore Elmer
Ambiente
FEM
Avvio veloce
Nessuno
Introdotto nella versione
-
Vedere anche
Risolutore Calculix, Risolutore Z88, Tutorial FEM

Descrizione

Elmer è un software di simulazione multifisica open source sviluppato principalmente da CSC - IT Center for Science (CSC). Lo sviluppo di Elmer è stato avviato nel 1995 in collaborazione con università, istituti di ricerca e industria finlandesi. Dopo la sua pubblicazione open source nel 2005, l'uso e lo sviluppo di Elmer sono diventati internazionali.

Elmer include modelli fisici di dinamica dei fluidi, meccanica strutturale, elettromagnetica, trasferimento di calore e acustica, per esempio. Questi sono descritti da equazioni alle derivate parziali che Elmer risolve con il metodo degli elementi finiti (FEM). https://www.csc.fi/web/elmer

La creazione dell'oggetto SolverElmer nel contenitore Analysis in FreeCAD, dà accesso alle equazioni di Elmer per analisi semplici o multifisiche.

Poiché FreeCAD ha già un'ampia integrazione di Calculix e Z88 come solutori per analisi meccaniche e termo-meccaniche, Elmer sarà preferito per la fluidodinamica computazionale (CFD), il calore, l'elettrostatica, la magnetostatica e le forze elettriche. Può anche essere utilizzato per la FEA meccanica tramite l'equazione di elasticità o qualsiasi combinazione delle suddette equazioni.

Installazione

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.

Utilizzo

  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

Documentazione

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.