FEM CalculiX Cantilever 3D: Difference between revisions
No edit summary |
mNo edit summary |
||
(75 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
<translate> |
<translate> |
||
<!--T:1--> |
<!--T:1--> |
||
{{TutorialInfo |
{{TutorialInfo |
||
| |
|Topic=Finite Element Analysis |
||
|Level= |
|Level=Beginner |
||
|Time= |
|Time=10 minutes |
||
|Author=[http://www.freecadweb.org/wiki/index.php?title=User:Berndhahnebach Bernd] |
|Author=[http://www.freecadweb.org/wiki/index.php?title=User:Berndhahnebach Bernd] |
||
|FCVersion=0.16.6377 or above |
|FCVersion=0.16.6377 or above |
||
|Files= |
|||
}} |
}} |
||
== Introduction == <!--T:40--> |
|||
! DO NOT TRANSLATE AT THE MOMENT ! |
|||
<!--T:2--> |
|||
This example is meant to show how a simple Finite Element Analysis (FEA) in |
This example is meant to show how a simple Finite Element Analysis ('''FEA''') in FreeCAD's [[FEM_Workbench|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. |
||
</translate> |
|||
<!--T:9--> |
|||
[[Image: |
[[Image:FEM_example01_pic10.png|700px]] |
||
<translate> |
|||
== Requirements == <!--T:41--> |
|||
<!--T:5--> |
|||
* A compatible version of FreeCAD designated in the tutorial overview. |
|||
* FCVersion=0.16.6377 or above. |
|||
* |
*: Use the {{MenuCommand|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. |
* 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|FEM Install]]. |
|||
== Set up the example file == <!--T:10--> |
|||
=== Load the example file === <!--T:42--> |
|||
<!--T:11--> |
|||
* Start FreeCAD. |
|||
* If the Start Workbench is not activated, load it and open the start page. |
|||
* Open the example "FemCalculixCantilever3D.FcStd". |
|||
</translate> |
|||
==== Load Start Workbench ==== <!--T:11--> |
|||
[[Image:FEM_example01_pic11.png|700px]] |
|||
# Start FreeCAD |
|||
<translate> |
|||
# The Start Workbench should be loaded |
|||
=== Activate the analysis container === <!--T:44--> |
|||
# 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. |
|||
<!--T:12--> |
|||
[[Image:FEM_example01_pic01.jpg|700px]] |
|||
* To work with an analysis the analysis has to be activated. |
|||
* In the [[Tree_view|tree view]], double click on the [[Image:FEM_Analysis.svg|24px]] {{Button|Analysis}}, |
|||
* or right click on the [[Image:FEM_Analysis.svg|24px]] {{Button|Analysis}} and choose {{Button|Activate analysis}}. |
|||
</translate> |
|||
[[Image:FEM_example01_pic12.png|700px]] |
|||
<translate> |
|||
=== Analysis container and its objects === <!--T:45--> |
|||
# To work with an analysis the analysis has to be activated. |
|||
# In tree view right click on the analysis --> activate analysis |
|||
<!--T:15--> |
|||
[[Image:FEM_example01_pic02.jpg|700px]] |
|||
* If the analysis is activated, FreeCAD itself will change the current workbench to FEM. |
|||
* There are at least 5 objects needed to make a static mechanical analysis. |
|||
* [[Image:FEM_Analysis.svg|24px]] analysis container |
|||
# [[Image:FEM_SolverCalculixCxxtools.svg|24px]] a solver |
|||
# [[Image:FEM_MaterialSolid.svg|24px]] a material |
|||
# [[Image:FEM_ConstraintFixed.svg|24px]] a fixed boundary condition |
|||
# [[Image:FEM_ConstraintForce.svg|24px]] a force load |
|||
# [[Image:FEM_FEMMesh.svg|24px]] a FEM mesh |
|||
* In this example, results [[Image:FEM_ResultShow.svg|24px|link=FEM_ResultShow]] are already included as well. |
|||
=== Visualizing Results === <!--T:46--> |
|||
<!--T:17--> |
|||
==== Analysis container and its objects ==== <!--T:15--> |
|||
# |
# Be sure the analysis is activated. |
||
# There are at least the following 5 objects needed to make an static mechanical analysis: |
|||
## a solver |
|||
## a material |
|||
## a fixed constraint |
|||
## a force constraint |
|||
## a FEM mesh |
|||
# Since in the example here the results are included as well, there is a sixth object results. |
|||
==== Visualizing Results ==== <!--T:17--> |
|||
# Be sure the analysis is activated ! |
|||
# Be sure the analysis still contains the result object, if not just reload the example file. |
# Be sure the analysis still contains the result object, if not just reload the example file. |
||
# |
# Double click the result object [[Image:FEM_ResultShow.svg|24px]], or select it and click the [[Image:FEM_ResultShow.svg|24px]] [[FEM_ResultShow|Show result]] button in the FEM toolbar. |
||
# In task window choose z-Displacement. It shows - |
# In the task window, choose {{incode|z-Displacement}}. It shows {{incode|-86.93 mm}} in negative z-direction. This makes sense since the force is in negative z-direction as well. |
||
# This makes sense since the force is in negative z-Direction as well. |
|||
# Activate the check box besides the bottom slider of displacement show. |
# Activate the check box besides the bottom slider of displacement show. |
||
# The slider |
# The slider can be used to alter the mesh to view the deformation in a simplified manner. |
||
# Choose among the different Result types to view all in the GUI available result types. |
# Choose among the different Result types to view all in the GUI available result types. |
||
</translate> |
|||
[[Image:FEM_example01_pic13.png|400px]] |
|||
<translate> |
|||
=== Purging Results === <!--T:47--> |
|||
# To remove the results select in the icon toolbar [[Image:Fem_PurgeResults.png|32px]] [[FEM PurgeResults|Purge results]] |
|||
<!--T:19--> |
|||
# Be sure the analysis is activated. |
|||
# In Tree view double click on the solver object. |
|||
# To remove the results: select in the icon toolbar the [[Image:FEM_ResultsPurge.svg|24px]] [[FEM_ResultsPurge|Purge results]] button. |
|||
# In task window 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. |
|||
# After one or two seconds 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. |
|||
=== Running the FEA === <!--T:48--> |
|||
# 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]]. |
|||
# The Calculix input file will be written, CalculiX will be triggered and the result object should be created. |
|||
<!--T:20--> |
|||
==== Changing Load Direction and Load Value ==== <!--T:19--> |
|||
* In the [[Tree_view|tree view]] double click on the solver object [[Image:FEM_SolverCalculixCxxtools.svg|24px]]. |
|||
* In the [[Task_panel|task panel]] of the solver object make sure static analysis is selected. |
|||
# The visibility of the FEM mesh will be turned off. The geometrical model is still visible. |
|||
* Click on {{Button|Write .inp file}} in the same task window. Watch the log window until it prints "write completed." |
|||
# In tree view double click on the force constraint object to open its task window. |
|||
* Click on {{Button|Run CalculiX}}. Since this is a very small analysis it should take less than a second to run. |
|||
# In the task window change the load value to 500000000 N = 500 MN (force unit in task window has to be in N) |
|||
* In the text window it should print in green letters "CalculiX done without error!" and in the next line "loading result sets ..." |
|||
# Click on Button Direction. |
|||
* You just have finished your first FEA in FreeCAD if there has not been any error message. |
|||
# On the geometrical model click on on of the long edges in x-direction. |
|||
* Click on {{Button|Close}} in the task window. |
|||
# The red arrows of the force will change their direction in x-direction. They show to the fixed direction. |
|||
* A new result object should be created. You know how to visualize the results already. |
|||
# Since tension should be applied to the box the Reverse Direction needs to be triggered by clicking on it. |
|||
* If you get an error message no solver binary or similar when triggering the analysis check [[FEM_Install|FEM Install]]. |
|||
# The red arrows of the force will change their direction. |
|||
# Click on OK in task window. |
|||
# Reactivate the visibility of the FEM mesh be selecting it in tree view and press 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. |
|||
</translate> |
|||
<!--T:30--> |
|||
[[Image:FEM_example01_pic14.png|400px]] |
|||
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. |
|||
<translate> |
|||
=== Running the FEA the fast Way === <!--T:49--> |
|||
<!--T: |
<!--T:21--> |
||
* In tree view select the solver object [[Image:FEM_SolverCalculixCxxtools.svg|24px]] of the analysis [[Image:FEM_Analysis.svg|24px]]. |
|||
[[Category:User Documentation]] |
|||
* In the icon toolbar click on [[Image:FEM_SolverRun.svg|24px]] [[FEM_SolverRun|Run solver calculations]]. |
|||
[[Category:Tutorials]] |
|||
* 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:50--> |
|||
<!--T:22--> |
|||
* In the [[Tree_view|tree view]] expand [[Image:FEM_ResultShow.svg|24px]] CCX_Results and select the [[Image:FEM_MeshResult.svg|24px]] ResultMesh object and press the {{KEY|Space}} key. |
|||
** '''Result:''' The visibility of the FEM mesh will be turned off. The geometrical model is still visible. |
|||
* In the [[Tree_view|tree view]] double click on the [[Image:FEM_ConstraintForce.svg|24px]] FEMConstraintForce object to open its [[Task_panel|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) |
|||
* On the geometrical model click on one of the long edges in x-direction. |
|||
* Click on the {{Button|Direction}} button. |
|||
** '''Result:''' The red arrows that illustrate force will change their direction in x-direction. They indicate the force 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 {{Button|OK}} in task window. |
|||
</translate> |
</translate> |
||
[[Image:FEM_example01_pic15.png|700px]] |
|||
{{clear}} |
|||
<translate> |
|||
<languages/> |
|||
<!--T:51--> |
|||
* You know how to trigger an analysis and how to visualize results already. |
|||
* The deformation in x-direction should be 18.95 mm. |
|||
</translate> |
|||
[[Image:FEM_example01_pic16.png|400px]] |
|||
<translate> |
|||
== What next? == <!--T:52--> |
|||
<!--T:30--> |
|||
* We are now finished with the basic workflow for the [[FEM_Workbench|FEM Workbench]]. |
|||
* You are now prepared to do the second [[FEM_tutorial|FEM tutorial]]. |
|||
* We will create the CalculiX cantilever by ourselves and compare the results with the beam theory. |
|||
</translate> |
|||
{{FEM Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 20:15, 24 November 2023
Tutorial |
Topic |
---|
Finite Element Analysis |
Level |
Beginner |
Time to complete |
10 minutes |
Authors |
Bernd |
FreeCAD version |
0.16.6377 or above |
Example files |
None |
See also |
None |
Introduction
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.
Requirements
- 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 the example file
- Start FreeCAD.
- If the Start Workbench is not activated, load it and open the start page.
- Open the example "FemCalculixCantilever3D.FcStd".
Activate the analysis container
- To work with an analysis the analysis has to be activated.
- In the tree view, double click on the Analysis,
- or right click on the Analysis and choose Activate analysis.
Analysis container and its objects
- If the analysis is activated, FreeCAD itself will change the current workbench to FEM.
- There are at least 5 objects needed to make a static mechanical analysis.
- analysis container
Visualizing Results
- Be sure the analysis is activated.
- Be sure the analysis still contains the result object, if not just reload the example file.
- Double click the result object , or select it and click the Show result button in the FEM toolbar.
- In the task window, choose
z-Displacement
. It shows-86.93 mm
in negative z-direction. This makes sense since the force is in negative z-direction as well. - Activate the check box besides the bottom slider of displacement show.
- The slider can be used to alter the mesh to view the deformation in a simplified manner.
- Choose among the different Result types to view all in the GUI available result types.
Purging Results
- Be sure the analysis is activated.
- To remove the results: select in the icon toolbar the Purge results button.
Running the FEA
- In the tree view double click on the solver object .
- 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 without error!" 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.
Running the FEA the fast Way
- In tree view select the solver object of the analysis .
- In the icon toolbar click on Run solver calculations.
- 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 expand CCX_Results and select the ResultMesh object 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 FEMConstraintForce 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)
- On the geometrical model click on one of the long edges in x-direction.
- Click on the Direction button.
- Result: The red arrows that illustrate force will change their direction in x-direction. They indicate the force 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.
- You know how to trigger an analysis and how to visualize results already.
- The deformation in x-direction should be 18.95 mm.
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.
FEM
- 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
User documentation
- 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, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub