FEM CalculiX Cantilever 3D: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 15: Line 15:
=== Introduction === <!--T:8-->
=== Introduction === <!--T:8-->
This example is meant to show how a simple Finite Element Analysis (FEA) in FreeCADs [[FEM_Module]] does look like and how the results can be visualized. It is shown 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 is easy to check if the FEM module is set up properly.
This example is meant to show how a simple Finite Element Analysis (FEA) in FreeCADs [[FEM_Module]] does look like and how the results can be visualized. It is shown 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 is easy to check if the FEM module is set up properly.



<!--T:9-->
<!--T:9-->
[[Image:FEM_example01_pic00.jpg|700px]]
[[Image:FEM_example01_pic00.jpg|700px]]



=== Requirements === <!--T:10-->
=== Requirements === <!--T:10-->
Line 24: Line 26:
* No external software is needed for loading the example file, viewing the mesh and geometry as well as for visualizing the results.
* 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 has to be installed on your computer. Probably the solver has been installed together with FreeCAD.
* For rerunning the FEA the solver has to be installed on your computer. Probably the solver has been installed together with FreeCAD.



=== Set up the example file === <!--T:10-->
=== Set up the example file === <!--T:10-->
Line 54: Line 57:
## a FEM mesh
## a FEM mesh
# Since in the example here the results are included as well, there is a sixth object results.
# Since in the example here the results are included as well, there is a sixth object results.



==== Visualizing Results ==== <!--T:17-->
==== Visualizing Results ==== <!--T:17-->
Line 69: Line 73:
# To remove the results select in the icon toolbar [[Image:Fem_PurgeResults.png|32px]] [[FEM PurgeResults|Purge results]]
# To remove the results select in the icon toolbar [[Image:Fem_PurgeResults.png|32px]] [[FEM PurgeResults|Purge results]]



==== Running the Solver ==== <!--T:18-->
==== Running the FEA ==== <!--T:18-->
# In Tree view double click on the solver object.
# In Tree view double click on the solver object.
# In task window of the solver object make sure static analysis is selected.
# In task window of the solver object make sure static analysis is selected.
Line 80: Line 85:
# If you get an error message no solver binary or similar when triggering the analysis check [[FEM_Install]].
# If you get an error message no solver binary or similar when triggering the analysis check [[FEM_Install]].



==== Running the Solver the fast Way ==== <!--T:19-->
==== Running the FEA the fast Way ==== <!--T:19-->
# In tree view select the solver object [[Image:Fem_Solver.svg|32px]] of the analysis.
# In tree view select the solver object [[Image:Fem_Solver.svg|32px]] of the analysis.
# In the icon toolbar click on [[Image:Fem_QuickAnalysis.svg|32px]] [[FEM_RunCalculiXccx|Quick Analysis]].
# In the icon toolbar click on [[Image:Fem_QuickAnalysis.svg|32px]] [[FEM_RunCalculiXccx|Quick Analysis]].
# The Calculix input file will be written, CalculiX will be triggered and the result object should be created.
# The Calculix input file will be written, CalculiX will be triggered and the result object should be created.



==== Changing Load Direction and Load Value ==== <!--T:19-->
==== Changing Load Direction and Load Value ==== <!--T:19-->
Line 99: Line 106:
# You know how to trigger an analysis and how to visualize results already.
# You know how to trigger an analysis and how to visualize results already.
# The deformation in x-Direction should be 19.05 mm.
# The deformation in x-Direction should be 19.05 mm.



==== What next ? ==== <!--T:30-->
==== What next ? ==== <!--T:30-->

Revision as of 17:32, 3 February 2016

Tutorial
Topic
{{{Topic}}}
Level
Beginner
Time to complete
10 minutes
Authors
Bernd
FreeCAD version
0.16.6377 or above
Example files
See also
None

! DO NOT TRANSLATE AT THE MOMENT !

Introduction

This example is meant to show how a simple Finite Element Analysis (FEA) in FreeCADs FEM_Module does look like and how the results can be visualized. It is shown 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 is easy to check if the FEM module is set up properly.



Requirements

  • FreeCAD version = 0.16.6377 or above.
  • This could be checked at the menu Help --> about FreeCAD --> Revision number which has to be bigger than 6377
  • 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 has to be installed on your computer. Probably the solver has been installed together with FreeCAD.


Set up the example file

Load Start Workbench

  1. Start FreeCAD
  2. The Start Workbench should be loaded

Load the example file

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


Activate the analysis container

  1. To work with an analysis the analysis has to be activated.
  2. In tree view right click on the analysis --> activate analysis


Analysis container and its objects

  1. If the analysis is activated FreeCAD itself will change to the FEM Workbench.
  2. There are at least the following 5 objects needed to make an static mechanical analysis:
    1. a solver
    2. a material
    3. a fixed constraint
    4. a force constraint
    5. a FEM mesh
  3. Since in the example here the results are included as well, there is a sixth object results.


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 in icon toolbar on File:Fem Result.svg Show result
  4. In task window choose z-Displacement. It shows -88.443 mm in negative z-Direction.
  5. This makes sense since the force is in negative z-Direction as well.
  6. Activate the check box besides the bottom slider of displacement show.
  7. The slider can be used to alter the mesh to view the deformation in a simplified manner.
  8. Choose among the different Result types to view all in the GUI available result types.


Purging Results

  1. To remove the results select in the icon toolbar File:Fem PurgeResults.png Purge results


Running the FEA

  1. In Tree view double click on the solver object.
  2. In task window of the solver object make sure static analysis is selected.
  3. Click on write .inp file in the same task window. Watch the log window until it prints "write completed."
  4. Click on Run CalculiX.
  5. After one or two seconds it should print in green letters "CalculiX done" and in the next line "loading result sets ..."
  6. You just have finished your first FEA in FreeCAD if there has not been any error message.
  7. Click on Close in the task window.
  8. A new result object should be created. You know how to visualize the results already.
  9. If you get an error message no solver binary or similar when triggering the analysis check FEM_Install.


Running the FEA the fast Way

  1. In tree view select the solver object of the analysis.
  2. In the icon toolbar click on File:Fem QuickAnalysis.svg Quick Analysis.
  3. The Calculix input file will be written, CalculiX will be triggered and the result object should be created.


Changing Load Direction and Load Value

  1. In tree view select the FEM mesh object and press the space key.
  2. The visibility of the FEM mesh will be turned off. The geometrical model is still visible.
  3. In tree view double click on the force constraint object to open its task window.
  4. In the task window change the load value to 500000000 N = 500 MN (force unit in task window has to be in N)
  5. Click on Button Direction.
  6. On the geometrical model click on on of the long edges in x-direction.
  7. The red arrows of the force will change their direction in x-direction. They show to the fixed direction.
  8. Since tension should be applied to the box the Reverse Direction needs to be triggered by clicking on it.
  9. The red arrows of the force will change their direction.
  10. Click on OK in task window.
  11. Reactivate the visibility of the FEM mesh be selecting it in tree view and press space key.
  12. You know how to trigger an analysis and how to visualize results already.
  13. The deformation in x-Direction should be 19.05 mm.


What next ?

We are now finished with the basic workflow for the FEM Module. You are now prepared to do the second FEM_Tutorial. In which we will create the CalculiX cantilever by ourselves and compare the results with the beam theory.