FEM CalculiX Cantilever 3D: Difference between revisions
m (language bar moved) |
(Moved headings one level up. {{FEM Tools navi}} {{Userdocnavi}} to categorize pages. Removed excessive whitespace.) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
<!--T:1--> |
<!--T:1--> |
||
{{TutorialInfo |
{{TutorialInfo |
||
|Topic= |
|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 |
||
Line 12: | Line 11: | ||
}} |
}} |
||
⚫ | |||
⚫ | |||
This example is meant to show how a simple Finite Element Analysis (FEA) in FreeCADs [[FEM_Module|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|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:3--> |
<!--T:3--> |
||
[[Image:FEM_example01_pic00.jpg|700px]] |
[[Image:FEM_example01_pic00.jpg|700px]] |
||
⚫ | |||
⚫ | |||
* FreeCAD version = 0.16.6377 or above. |
* FreeCAD version = 0.16.6377 or above. |
||
* This could be checked at the menu Help --> about FreeCAD. The Revision number has to be higher than 6377 |
* This could be checked at the menu Help --> about FreeCAD. The Revision number has to be higher than 6377 |
||
Line 27: | Line 23: | ||
* 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]]. |
* 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]]. |
||
⚫ | |||
=== |
=== Load Start Workbench === <!--T:11--> |
||
⚫ | |||
* Start FreeCAD |
* Start FreeCAD |
||
* The Start Workbench should be loaded |
* The Start Workbench should be loaded |
||
⚫ | |||
⚫ | |||
* Go to the example projects and click on "Load an FEM analysis example" |
* 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. |
* If due to further operations some geometry, constraints or the results are broken or deleted just repeat the steps above. |
||
Line 43: | Line 37: | ||
=== Activate the analysis container === <!--T:12--> |
|||
* To work with an analysis the analysis has to be activated. |
* To work with an analysis the analysis has to be activated. |
||
* In tree view right click on the [[Image:FEM_Analysis.png|32px]] MechanicalAnalysis --> Activate analysis |
* In tree view right click on the [[Image:FEM_Analysis.png|32px]] MechanicalAnalysis --> Activate analysis |
||
Line 51: | Line 45: | ||
=== Analysis container and its objects === <!--T:15--> |
|||
* If the analysis is activated FreeCAD itself will change the current workbench to FEM. |
* If the analysis is activated FreeCAD itself will change the current workbench to FEM. |
||
* There are at least the 5 objects needed to make an static mechanical analysis. |
* There are at least the 5 objects needed to make an static mechanical analysis. |
||
Line 63: | Line 57: | ||
=== Visualizing Results === <!--T:17--> |
|||
* Be sure the analysis is activated. |
* 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. |
||
Line 77: | Line 71: | ||
=== Purging Results === <!--T:19--> |
|||
* Be sure the analysis is activated. |
* Be sure the analysis is activated. |
||
* To remove the results select in the icon toolbar [[Image:FEM_PurgeResults.png|32px]] [[FEM ResultsPurge|Purge results]] |
* To remove the results select in the icon toolbar [[Image:FEM_PurgeResults.png|32px]] [[FEM ResultsPurge|Purge results]] |
||
⚫ | |||
⚫ | |||
* In Tree view double click on the solver object [[Image:FEM_Solver.png|32px]]. |
* In Tree view double click on the solver object [[Image:FEM_Solver.png|32px]]. |
||
* 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 96: | Line 89: | ||
[[Image:FEM_example01_pic04.jpg|400px]] |
[[Image:FEM_example01_pic04.jpg|400px]] |
||
⚫ | |||
⚫ | |||
* In tree view select the solver object [[Image:FEM_Solver.png|32px]] of the analysis [[Image:FEM_Analysis.png|32px]]. |
* In tree view select the solver object [[Image:FEM_Solver.png|32px]] of the analysis [[Image:FEM_Analysis.png|32px]]. |
||
* In the icon toolbar click on [[Image:FEM_RunCalculiXccx.png|32px]] [[FEM_SolverRun|Quick Analysis]]. |
* In the icon toolbar click on [[Image:FEM_RunCalculiXccx.png|32px]] [[FEM_SolverRun|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. |
||
⚫ | |||
⚫ | |||
* In tree view select the FEM mesh object [[Image:FEM_Create.png|32px]] and press the space key. |
* In tree view select the FEM mesh object [[Image:FEM_Create.png|32px]] and press the space key. |
||
* The visibility of the FEM mesh will be turned off. The geometrical model is still visible. |
* The visibility of the FEM mesh will be turned off. The geometrical model is still visible. |
||
Line 122: | Line 113: | ||
[[Image:FEM_example01_pic06.jpg|400px]] |
[[Image:FEM_example01_pic06.jpg|400px]] |
||
⚫ | |||
⚫ | |||
* We are now finished with the basic workflow for the [[FEM Module|FEM Module]]. |
* We are now finished with the basic workflow for the [[FEM Module|FEM Module]]. |
||
* You are now prepared to do the second [[FEM_tutorial|FEM tutorial]]. |
* 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. |
* We will create the CalculiX cantilever by ourselves and compare the results with the beam theory. |
||
{{FEM Tools navi}} |
|||
{{Userdocnavi}} |
|||
</translate> |
</translate> |
||
{{clear}} |
{{clear}} |
Revision as of 04:28, 8 April 2019
Tutorial |
Topic |
---|
Finite Element Analysis |
Level |
Beginner |
Time to complete |
10 minutes |
Authors |
Bernd |
FreeCAD version |
0.16.6377 or above |
Example files |
See also |
None |
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. The Revision number has to be higher 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 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.
Activate the analysis container
- To work with an analysis the analysis has to be activated.
- In tree view right click on the MechanicalAnalysis --> 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 the 5 objects needed to make an static mechanical analysis.
- analysis container
- a solver
- a material
- a fixed constraint
- a force constraint
- File:FEM Create.png a FEM mesh
Visualizing Results
- Be sure the analysis is activated.
- Be sure the analysis still contains the result object, if not just reload the example file.
- Click in icon toolbar on Show result
- 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.
- 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 Purge results
Running the FEA
- In Tree view double click on the solver object .
- 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. 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.
Running the FEA the fast Way
- In tree view select the solver object of the analysis .
- In the icon toolbar click on 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 tree view select the FEM mesh object File:FEM Create.png and press the space key.
- The visibility of the FEM mesh will be turned off. The geometrical model is still visible.
- In tree view double click on the force constraint object to open its task window.
- In the task window change the load value to 500000000 N = 500 MN (force unit in task window has to be in N)
- Click on Button Direction.
- On the geometrical model click on on of the long edges in x-direction.
- The red arrows of the force will change their direction in x-direction. They show to 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.
- Turn the visibility of the FEM mesh File:FEM Create.png 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.
What next?
- We are now finished with the basic workflow for the FEM Module.
- 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, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub