FEM CalculiX Freiträger 3D

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page FEM CalculiX Cantilever 3D and the translation is 4% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎română • ‎русский


This example is meant to show how a simple Finite Element Analysis (FEA) in FreeCAD's FEM Workbench looks like in the FreeCAD interface and how the results can be visualized. It illustrates how to trigger a FEA and how to change the load value and load direction. Furthermore, since the example file is provided with any FreeCAD installation, it a useful and easy check to run for the purpose of ascertaining if the the FEM Workbench is set up properly.

FEM example01 pic00.jpg


  • A compatible version of FreeCAD designated in the tutorial overview.
    Use the Help → About FreeCAD to see the version of FreeCAD installed
  • No external software is needed for loading the example file, viewing the mesh and geometry as well as for visualizing the results.
  • For rerunning the FEA the solver software CalculiX has to be installed on your computer. Probably the solver has been installed together with FreeCAD already. If the solver CalculiX is not installed see FEM Install.

Set up the example file

Load Start Workbench

  • Start FreeCAD
  • The Start Workbench should be loaded

Load the example file

  • Go to the example projects and click on "Load an FEM analysis example"
  • If due to further operations some geometry, constraints or the results are broken or deleted just repeat the steps above.

FEM example01 pic01.jpg

Activate the analysis container

  • To work with an analysis the analysis has to be activated.
  • In the tree view, right click on the FEM Analysis.svg MechanicalAnalysis
  • Choose Activate analysis

FEM example01 pic02.jpg

Analysis container and its objects

  • If the analysis is activated FreeCAD itself will change the current workbench to FEM.
  • There are at least the 5 objects needed to make a static mechanical analysis.
  • FEM Analysis.svg analysis container
  1. FEM SolverCalculixCxxtools.svg a solver
  2. FEM MaterialSolid.svg a material
  3. FEM ConstraintFixed.svg a fixed constraint
  4. FEM ConstraintForce.svg a force constraint
  5. FEM FEMMesh.svg a FEM mesh
  • Since in the example here the results are included as well there is a sixth object, the results FEM ResultShow.svg, elaborated on in the next paragraph.

Visualizing Results

  1. Be sure the analysis is activated.
  2. Be sure the analysis still contains the result object, if not just reload the example file.
  3. Click the FEM ResultShow.svg Show result button in the FEM toolbar.
  4. In task window choose z-Displacement. It shows -88.443 mm in negative z-direction. This makes sense since the force is in negative z-direction as well.
  5. Activate the check box besides the bottom slider of displacement show.
  6. The slider can be used to alter the mesh to view the deformation in a simplified manner.
  7. Choose among the different Result types to view all in the GUI available result types.

FEM example01 pic03.jpg

Purging Results

  1. Be sure the analysis is activated.
  2. To remove the results: select in the icon toolbar the FEM ResultsPurge.svg Purge results button.

Running the FEA

  • In the tree view double click on the solver object FEM SolverCalculixCxxtools.svg.
  • In the task panel of the solver object make sure static analysis is selected.
  • Click on write .inp file in the same task window. Watch the log window until it prints "write completed."
  • Click on Run CalculiX. Since this is a very small analysis it should take less than a second to run.
  • In the text window it should print in green letters "CalculiX done!" and in the next line "loading result sets ..."
  • You just have finished your first FEA in FreeCAD if there has not been any error message.
  • Click on Close in the task window.
  • A new result object should be created. You know how to visualize the results already.
  • If you get an error message no solver binary or similar when triggering the analysis check FEM Install.

FEM example01 pic04.jpg

Running the FEA the fast Way

  • In tree view select the solver object FEM SolverCalculixCxxtools.svg of the analysis FEM Analysis.svg.
  • In the icon toolbar click on FEM SolverRun.svg Quick Analysis.
  • The Calculix input file will be written, CalculiX will be triggered and the result object should be created.

Changing Load Direction and Load Value

  • In the tree view select the FEM mesh object FEM FEMMesh.svg and press the Space key.
    • Result: The visibility of the FEM mesh will be turned off. The geometrical model is still visible.
  • In the tree view double click on the force constraint object to open its task panel
  • In the task window change the load value to 500000000 N = 500 MN (Note: force unit in task window has to be in N)
  • Click on the Direction button.
  • On the geometrical model click on one of the long edges in x-direction.
    • Result: The red arrows that illustrate force will change their direction in x-direction. They indicate the fixed direction.
  • Since tension should be applied to the box the Reverse Direction needs to be triggered by clicking on it.
  • The red arrows of the force will change their direction.
  • Click on OK in task window.

FEM example01 pic05.jpg

  • Toggle the visibility of the FEM mesh FEM FEMMesh.svg 'On' by selecting it in tree view and pressing the Space key.
  • You know how to trigger an analysis and how to visualize results already.
  • The deformation in x-direction should be 19.05 mm.

FEM example01 pic06.jpg

What next?

  • We are now finished with the basic workflow for the FEM Workbench.
  • You are now prepared to do the second FEM tutorial.
  • We will create the CalculiX cantilever by ourselves and compare the results with the beam theory.