FEM tutorial/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(37 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
{{TutorialInfo |
{{TutorialInfo |
||
| |
|Topic= Finite Element Analysis |
||
|Level= Beginner |
|Level= Beginner |
||
|Time= 10 minutes + Solver time |
|Time= 10 minutes + Solver time |
||
|Author=[http://freecadweb.org/wiki/index.php?title=User:Drei Drei] |
|Author=[http://freecadweb.org/wiki/index.php?title=User:Drei Drei] |
||
|FCVersion=0.16 or above |
|FCVersion=0.16.6700 or above |
||
|Files= |
|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. |
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. |
||
[[Image:FEM_tutorial_result.png| |
[[Image:FEM_tutorial_result.png|600px]] |
||
== Requirements == |
|||
* FreeCAD version 0.16 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 |
||
* In the case of GMSH, |
* In the case of GMSH, install [[Macro GMSH]] from the [[AddonManager]], developed by [https://github.com/psicofil/Macros_FreeCAD psicofil] |
||
* [http://www.calculix.de/ Calculix] is installed on the system |
* [http://www.calculix.de/ Calculix] is installed on the system |
||
* The reader has the basic knowledge to use the Part and PartDesign Workbenches |
* The reader has the basic knowledge to use the [[Part Workbench|Part]] and [[PartDesign Workbench|PartDesign Workbenches]] |
||
== 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. |
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 29: | Line 29: | ||
# Activate the Part Workbench |
# Activate the Part Workbench |
||
# Create a Cube |
# Create a Cube |
||
# Change its '''Dimensions''' to the following: |
|||
## Height: 1.000 mm |
|||
## Length: 8.000 mm |
|||
## Width: 1.000 mm |
|||
Now we have a model with which to work with. |
Now we have a model with which to work with. |
||
=== Creating the Analysis === |
|||
==== Netgen ==== |
|||
# Select the model |
# Select the model |
||
⚫ | |||
# Select [[Image:Fem_FemMesh.svg|32px]] [[FEM Create|Create FEM mesh]] |
|||
# |
# In the meshing dialog, click '''OK''' |
||
# Select the Mesh from 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. |
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. |
The usage of psicofil's macro is recommended, and is used for this example. |
||
# Activate the macro |
# Activate the macro |
||
Line 50: | Line 53: | ||
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 === |
|||
# Hide the mesh from the Tree View. |
# Hide the mesh from the Tree View. |
||
# Show the original model |
# Show the original model |
||
# Select [[Image: |
# Select [[Image:FEM_FixedConstraint.png|16px]] [[FEM_ConstraintFixed|Create FEM fixed constraint]] |
||
# Select the |
# Select the back face of the Cube (face on the '''YZ''' axis) and click OK |
||
# Select [[Image: |
# Select [[Image:FEM_ForceConstraint.png|16px]] [[FEM_ConstraintForce|Create FEM force constraint]] |
||
# Select the |
# Select the front face of the Cube (the face parallel to the back face) and set the '''Area load''' value to 9000000.00 |
||
# Set the '''Direction''' to '''-Z''' by selecting one of the face edges parallel to that direction. |
|||
# Click OK |
# Click OK |
||
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 === |
|||
# Select [[Image: |
# Select [[Image:FEM_Material.png|16px]] [[FEM_MaterialSolid|Mechanical material...]] and choose Calculix as the material |
||
# Click '''OK''' |
# Click '''OK''' |
||
=== Running the Solver === |
|||
==== Standard Procedure ==== |
|||
⚫ | |||
# Select the solver object [[Image:FEM_Solver.png|16px]] contained in the '''Mechanical Analysis''' |
|||
⚫ | |||
# Select '''Write Calculix Input File''' |
# Select '''Write Calculix Input File''' |
||
# Select '''Run Calculix''' |
# Select '''Run Calculix''' |
||
# Click '''Close''' |
# Click '''Close''' |
||
==== Quick Procedure ==== |
|||
# Select the solver object [[Image: |
# Select the solver object [[Image:FEM_Solver.png|16px]] contained in the '''Mechanical Analysis''' |
||
# Click on [[Image: |
# Click on [[Image:FEM_RunCalculiXccx.png|16px]] [[FEM_SolverRun|Quick Analysis]]. |
||
=== Analyzing Results === |
|||
# From the '''Object Tree''', select the '''Results''' object |
|||
# Select [[Image: |
# Select [[Image:FEM_ShowResult.png|16px]] [[FEM_ResultShow|Show result]] |
||
# Choose among the different Result types to view the results |
# Choose among the different Result types to view the results |
||
# The slider at the bottom can be used to alter the mesh to |
# 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. |
||
#To remove the results select [[Image: |
# To remove the results select [[Image:FEM_PurgeResults.png|16px]] [[FEM_ResultsPurge|Purge results]] |
||
{{Note|Comparison to previous example file|If you select the '''Z |
{{Note|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]]. |
We are now finished with the basic workflow for the [[FEM Module]]. |
||
{{Tutorials navi{{#translation:}}}} |
|||
{{FEM Tools navi{{#translation:}}}} |
|||
[[Category:User Documentation]] |
|||
{{Userdocnavi{{#translation:}}}} |
|||
[[Category:Tutorials]] |
|||
{{clear}} |
|||
⚫ |
Revision as of 11:23, 25 February 2020
Tutorial |
Topic |
---|
Finite Element Analysis |
Level |
Beginner |
Time to complete |
10 minutes + Solver time |
Authors |
Drei |
FreeCAD version |
0.16.6700 or above |
Example files |
See also |
None |
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.
Requirements
- FreeCAD version 0.16.6700 or above
- Netgen and/or GMSH is installed on the system
- In the case of GMSH, install Macro GMSH from the AddonManager, developed by psicofil
- Calculix is installed on the system
- The reader has the basic knowledge to use the Part and PartDesign Workbenches
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.
- Create a new document
- Activate the Part Workbench
- Create a Cube
- Change its Dimensions to the following:
- Height: 1.000 mm
- Length: 8.000 mm
- Width: 1.000 mm
Now we have a model with which to work with.
Creating the Analysis
Netgen
- Select the model
- Click New mechanical analysis from the menu to create an analysis from the object that was selected
- 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.
- Activate the macro
- Select the object you wish to use, in this case our Cube
- Check the box Create Mechanical Analysis from mesh
- Click OK
We have now meshed our object and are ready to add constraints and forces.
Constraints and Forces
- Hide the mesh from the Tree View.
- Show the original model
- Select Create FEM fixed constraint
- Select the back face of the Cube (face on the YZ axis) and click OK
- Select Create FEM force constraint
- Select the front face of the Cube (the face parallel to the back face) and set the Area load value to 9000000.00
- Set the Direction to -Z by selecting one of the face edges parallel to that direction.
- Click OK
We now have established the restrictions and forces for our static study.
Final preparations
- Select Mechanical material... and choose Calculix as the material
- Click OK
Running the Solver
Standard Procedure
- Select the solver object contained in the Mechanical Analysis
- Select Start calculation from the menu
- Select Write Calculix Input File
- Select Run Calculix
- Click Close
Quick Procedure
- Select the solver object contained in the Mechanical Analysis
- Click on Quick Analysis.
Analyzing Results
- From the Object Tree, select the Results object
- Select Show result
- Choose among the different Result types to view the results
- 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.
- To remove the results select Purge results
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.
- Materials: Solid, Fluid, Nonlinear mechanical, Reinforced (concrete); Material editor
- Element geometry: Beam (1D), Beam rotation (1D), Shell (2D), Fluid flow (1D)
Constraints
- Electromagnetic: Electrostatic potential, Current density, Magnetization
- Geometrical: Plane rotation, Section print, Transform
- Mechanical: Fixed, Displacement, Contact, Tie, Spring, Force, Pressure, Centrif, Self weight
- Thermal: Initial temperature, Heat flux, Temperature, Body heat source
- Overwrite Constants: Constant vacuum permittivity
- Solve: CalculiX Standard, Elmer, Mystran, Z88; Equations: Deformation, Elasticity, Electrostatic, Electricforce, Magnetodynamic, Magnetodynamic 2D, Flow, Flux, Heat; Solver: Solver control, Solver run
- Results: Purge, Show; Postprocessing: Apply changes, Pipeline from result, Warp filter, Scalar clip filter, Function cut filter, Region clip filter, Contours filter, Line clip filter, Stress linearization plot, Data at point clip filter, Filter function plane, Filter function sphere, Filter function cylinder, Filter function box
- Additional: Preferences; FEM Install, FEM Mesh, FEM Solver, FEM CalculiX, FEM Concrete; FEM Element Types
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, 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, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub