Difference between revisions of "FEM tutorial"

From FreeCAD Documentation
Jump to: navigation, search
(Marked this version for translation)
(Moved headings one level up. {{FEM Tools navi}} {{Userdocnavi}} to categorize pages. Removed excessive whitespace. Larger image size 600px.)
 
Line 1: Line 1:
 
<languages/>
 
<languages/>
 
 
<translate>
 
<translate>
 
<!--T:1-->
 
<!--T:1-->
Line 12: Line 11:
 
}}
 
}}
  
=== Introduction === <!--T:8-->
+
== Introduction == <!--T:8-->
 
This tutorial is meant to introduce the reader to the basic workflow of the FEM Workbench, as well as most of the tools that are available to perform a static analysis.
 
This tutorial is meant to introduce the reader to the basic workflow of the FEM Workbench, as well as most of the tools that are available to perform a static analysis.
  
 
<!--T:9-->
 
<!--T:9-->
[[Image:FEM_tutorial_result.png|480px]]
+
[[Image:FEM_tutorial_result.png|600px]]
  
=== Requirements === <!--T:10-->
+
== Requirements == <!--T:10-->
 
* FreeCAD version 0.16.6700 or above
 
* FreeCAD version 0.16.6700 or above
 
* [http://sourceforge.net/projects/netgen-mesher/ Netgen] and/or [http://geuz.org/gmsh/ GMSH] is installed on the system
 
* [http://sourceforge.net/projects/netgen-mesher/ Netgen] and/or [http://geuz.org/gmsh/ GMSH] is installed on the system
Line 25: Line 24:
 
* The reader has the basic knowledge to use the [[Part Workbench|Part]] and [[PartDesign Workbench|PartDesign Workbenches]]
 
* The reader has the basic knowledge to use the [[Part Workbench|Part]] and [[PartDesign Workbench|PartDesign Workbenches]]
  
=== Procedure === <!--T:2-->
+
== Procedure == <!--T:2-->
  
==== Modeling ==== <!--T:11-->
+
=== Modeling === <!--T:11-->
 
In this example a Cube is used as the study object, but models created in the Part or PartDesign Workbenches can be used instead.
 
In this example a Cube is used as the study object, but models created in the Part or PartDesign Workbenches can be used instead.
  
Line 42: Line 41:
 
Now we have a model with which to work with.
 
Now we have a model with which to work with.
  
==== Creating the Analysis ==== <!--T:15-->
+
=== Creating the Analysis === <!--T:15-->
===== Netgen =====
+
==== Netgen ====
 
# Select the model  
 
# Select the model  
 
# Click [[Image:FEM_Analysis.png|16px]] [[FEM Analysis|New mechanical analysis]] from the menu to create an analysis from the object that was selected
 
# Click [[Image:FEM_Analysis.png|16px]] [[FEM Analysis|New mechanical analysis]] from the menu to create an analysis from the object that was selected
Line 51: Line 50:
 
You can also drag and drop a mesh to a Mechanical Analysis that does not have a mesh within the Tree View.
 
You can also drag and drop a mesh to a Mechanical Analysis that does not have a mesh within the Tree View.
  
===== GMSH ===== <!--T:17-->
+
==== GMSH ==== <!--T:17-->
 
The usage of psicofil's macro is recommended, and is used for this example.
 
The usage of psicofil's macro is recommended, and is used for this example.
 
# Activate the macro
 
# Activate the macro
Line 61: Line 60:
 
We have now meshed our object and are ready to add constraints and forces.
 
We have now meshed our object and are ready to add constraints and forces.
  
==== Constraints and Forces ==== <!--T:19-->
+
=== Constraints and Forces === <!--T:19-->
 
# Hide the mesh from the Tree View.
 
# Hide the mesh from the Tree View.
 
# Show the original model
 
# Show the original model
Line 74: Line 73:
 
We now have established the restrictions and forces for our static study.
 
We now have established the restrictions and forces for our static study.
  
==== Final preparations ==== <!--T:21-->
+
=== Final preparations === <!--T:21-->
 
# Select [[Image:FEM_Material.png|16px]] [[FEM_MaterialSolid|Mechanical material...]] and choose Calculix as the material
 
# Select [[Image:FEM_Material.png|16px]] [[FEM_MaterialSolid|Mechanical material...]] and choose Calculix as the material
 
# Click '''OK'''
 
# Click '''OK'''
  
====  Running the Solver ==== <!--T:22-->
+
===  Running the Solver === <!--T:22-->
===== Standard Procedure =====
+
==== Standard Procedure ====
 
# Select the solver object [[Image:FEM_Solver.png|16px]] contained in the '''Mechanical Analysis'''
 
# Select the solver object [[Image:FEM_Solver.png|16px]] contained in the '''Mechanical Analysis'''
 
# Select [[Image:FEM_Calculation.png|16px]] [[FEM_SolverControl|Start calculation]] from the menu
 
# Select [[Image:FEM_Calculation.png|16px]] [[FEM_SolverControl|Start calculation]] from the menu
Line 86: Line 85:
 
# Click '''Close'''
 
# Click '''Close'''
  
===== Quick Procedure ===== <!--T:25-->
+
==== Quick Procedure ==== <!--T:25-->
 
# Select the solver object [[Image:FEM_Solver.png|16px]] contained in the '''Mechanical Analysis'''
 
# Select the solver object [[Image:FEM_Solver.png|16px]] contained in the '''Mechanical Analysis'''
 
# Click on [[Image:FEM_RunCalculiXccx.png|16px]] [[FEM_SolverRun|Quick Analysis]].
 
# Click on [[Image:FEM_RunCalculiXccx.png|16px]] [[FEM_SolverRun|Quick Analysis]].
  
==== Analyzing Results ==== <!--T:23-->
+
=== Analyzing Results === <!--T:23-->
 
# From the '''Object Tree''', select the '''Results''' object
 
# From the '''Object Tree''', select the '''Results''' object
 
# Select [[Image:FEM_ShowResult.png|16px]] [[FEM_ResultShow|Show result]]
 
# Select [[Image:FEM_ShowResult.png|16px]] [[FEM_ResultShow|Show result]]

Latest revision as of 05:56, 8 April 2019

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎română • ‎русский
Base ExampleCommandModel.png Tutorial
Topic
Finite Element Analysis
Level
Beginner
Time to complete
10 minutes + Solver time
Author(s)
Drei
FreeCAD version
0.16.6700 or above
Example files


Introduction

This tutorial is meant to introduce the reader to the basic workflow of the FEM Workbench, as well as most of the tools that are available to perform a static analysis.

FEM tutorial result.png

Requirements

Procedure

Modeling

In this example a Cube is used as the study object, but models created in the Part or PartDesign Workbenches can be used instead.

  1. Create a new document
  2. Activate the Part Workbench
  3. Create a Cube
  4. Change its Dimensions to the following:
    1. Height: 1.000 mm
    2. Length: 8.000 mm
    3. Width: 1.000 mm

Now we have a model with which to work with.

Creating the Analysis

Netgen

  1. Select the model
  2. Click FEM Analysis.png New mechanical analysis from the menu to create an analysis from the object that was selected
  3. In the meshing dialog, click OK

You can also drag and drop a mesh to a Mechanical Analysis that does not have a mesh within the Tree View.

GMSH

The usage of psicofil's macro is recommended, and is used for this example.

  1. Activate the macro
  2. Select the object you wish to use, in this case our Cube
  3. Check the box Create Mechanical Analysis from mesh
  4. Click OK

We have now meshed our object and are ready to add constraints and forces.

Constraints and Forces

  1. Hide the mesh from the Tree View.
  2. Show the original model
  3. Select FEM FixedConstraint.png Create FEM fixed constraint
  4. Select the back face of the Cube (face on the YZ axis) and click OK
  5. Select FEM ForceConstraint.png Create FEM force constraint
  6. Select the front face of the Cube (the face parallel to the back face) and set the Area load value to 9000000.00
  7. Set the Direction to -Z by selecting one of the face edges parallel to that direction.
  8. Click OK

We now have established the restrictions and forces for our static study.

Final preparations

  1. Select FEM Material.png Mechanical material... and choose Calculix as the material
  2. Click OK

Running the Solver

Standard Procedure

  1. Select the solver object FEM Solver.png contained in the Mechanical Analysis
  2. Select FEM Calculation.png Start calculation from the menu
  3. Select Write Calculix Input File
  4. Select Run Calculix
  5. Click Close

Quick Procedure

  1. Select the solver object FEM Solver.png contained in the Mechanical Analysis
  2. Click on FEM RunCalculiXccx.png Quick Analysis.

Analyzing Results

  1. From the Object Tree, select the Results object
  2. Select FEM ShowResult.png Show result
  3. Choose among the different Result types to view the results
  4. The slider at the bottom can be used to alter the mesh visualization. This allows us to visualize the deformation experienced by the object, keep in mind that this is an approximation.
  5. To remove the results select FEM PurgeResults.png Purge results
Comparison to previous example file

If you select the Z displacement result type, you can see that the obtained value is almost identical to the test example provided by FreeCAD. Differences may occur due to the quality of the mesh and the number of nodes it possesses.


We are now finished with the basic workflow for the FEM Module.