FreeCAD Logo FreeCAD 1.0
  • English Afrikaans Arabic Belarusian Catalan Czech German Greek Spanish Spanish Basque Finnish Filipino French Galician Croatian Hungarian Indonesian Italian Japanese Kabyle Korean Lithuanian Dutch Norwegian Bokmal Polish Portuguese Portuguese Romanian Russian Slovak Slovenian Serbian Swedish Turkish Ukrainian Valencian Vietnamese Chinese Chinese
  • Features
  • Download
  • Blog
  • Documentation
    Documentation index Getting started Users documentation The FreeCAD manual Workbenches documentation Python coding documentation C++ coding documentation Tutorials Frequently asked questions Privacy policy About FreeCAD
  • Contribute
    How to help Sponsor Report a bug Make a pull request Jobs and funding Contribution guidelines Developers handbook Translations
  • Community
    Code of conduct Forum The FPA GitHub GitLab Codeberg Mastodon Matrix IRC IRC via Webchat Gitter Discord Reddit Twitter Facebook LinkedIn Calendar
  • ♥ Donate

Donate

$
SEPA Information
Please set up your SEPA bank transfer to:
Beneficiary: The FreeCAD project association
IBAN: BE04 0019 2896 4531
BIC/SWIFT: GEBABEBBXXX
Bank agency: BNP Paribas Fortis
Address: Rue de la Station 64, 1360 Perwez, Belgium

While Stripe doesn't support monthly donations, you can still become a sponsor! Simply make a one-time donation equivalent to 12 months of support, and you'll gain access to the corresponding sponsoring tier. It's an easy and flexible way to contribute.

If you are not sure or not able to commit to a regular donation, but still want to help the project, you can do a one-time donation, of any amount.

Choose freely the amount you wish to donate one time only.

You can support FreeCAD by sponsoring it as an individual or organization through various platforms. Sponsorship provides a steady income for developers, allowing the FPA to plan ahead and enabling greater investment in FreeCAD. To encourage sponsorship, we offer different tiers, and unless you choose to remain anonymous, your name or company logo will be featured on our website accordingly.

from 1 USD / 1 EUR per month. You will not have your name displayed here, but you will have helped the project a lot anyway. Together, normal sponsors maintain the project on its feet as much as the bigger sponsors.

from 25 USD / 25 EUR per month. Your name or company name is displayed on this page.

from 100 USD / 100 EUR per month. Your name or company name is displayed on this page, with a link to your website, and a one-line description text.

from 200 USD / 200 EUR per month. Your name or company name and logo displayed on this page, with a link to your website and a custom description text. Companies that have helped FreeCAD early on also appear under Gold sponsors.

Instead of donating each month, you might find it more comfortable to make a one-time donation that, when divided by twelve, would give you right to enter a sponsoring tier. Don't hesitate to do so!

Choose freely the amount you wish to donate each month.

Please inform your forum name or twitter handle as a notein your transfer, or reach to us, so we can give you proper credits!

Tutorial
Topic
Finite Element Analysis
Level
Beginner
Time to complete
10 minutes + Solver time
Authors
Drei
FreeCAD version
0.17 or above
Example files
None
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.17 or above.
  • Netgen and/or GMSH is installed on the system (included in the FreeCAD installation).
  • Calculix is installed on the system (included in the FreeCAD installation).
  • 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 any model created in the Part or PartDesign Workbenches can be used instead.

  1. Press the Std New button to create a new document.
  2. Activate the Part Workbench.
  3. Create a Cube.
  4. Change its Dimensions to the following:
    1. Length: 8.000 m.
    2. Width: 1.000 m.
    3. Height: 1.000 m.

Now we have a model to work with.

Creating the Analysis

  1. Activate the FEM Workbench.
  2. Select the Model → Analysis container‏‎ option from the menu.

Constraints and Forces

  1. Hide the mesh from the Tree View.
  2. Show the original model.
  3. Select Create FEM fixed constraint.
  4. Click Add, select the back face of the Cube object (face on the YZ axis) and click OK.
  5. Select Create FEM force constraint.
  6. Click Add, select the front face of the Cube object (the face parallel to the back face) and set the Force [N] value to 9000000.
  7. Set the Direction to -Z by selecting one of the face edges parallel to that direction.
  8. Click OK.

We now have established the restrictions and forces for our static study.

Material

  1. Select Material for solid and choose Calculix-Steel as the material.
  2. Click OK.

Meshing

It is recommended to make a mesh as the last step in the analysis preparations due to association to a geometry in FreeCAD. Depending on FreeCAD installation, there can be Netgen or GMSH meshers, you can use any of them.

Netgen

  1. Select the model.
  2. FEM mesh from shape by Netgen: Generates a finite element mesh for a model using Netgen.
  3. In the meshing dialog, click Apply and OK.

You can also drag and drop a mesh to a Mechanical Analysis that does not have a mesh within the Tree View.

GMSH

  1. Select the model
  2. FEM mesh from shape by Gmsh: Generates a finite element mesh for a model using Gmsh.
  3. In the meshing dialog, click Apply and OK.

We have now meshed our object and are ready to add constraints and forces.

Running the Solver

Standard Procedure

  1. Select the solver object contained in the Analysis container.
  2. Select Solver job control from the menu.
  3. Select Write .inp File.
  4. Select Run CalculiX.
  5. Click OK.

Quick Procedure

  1. Select the solver object contained in the Analysis container.
  2. Click on Run solver calculations.

Analyzing Results

  1. From the Object Tree, select the CCX_Results object.
  2. Select Show result.
  3. Choose among the different Result types to view the results.
  4. 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.
  5. To remove the results select Purge results.
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 Workbench.

Notes

  • For a video tutorial based on this written tutorial watch: FEM MaterialReinforced tutorial.


This page is retrieved from https://wiki.freecad.org/FEM_tutorial

Get in touch!
Forum GitHub Mastodon Matrix IRC Gitter.im Discord Reddit Twitter Facebook LinkedIn

© The FreeCAD Team. Homepage image credits (top to bottom): ppemawm, r-frank, epileftric, regis, rider_mortagnais, bejant.

This project is supported by: , KiCad Services Corp. and other sponsors

GitHubImprove this page on GitHub