Transient FEM analysis

Tutorial
Topic
Transient FEM analysis
Level
Time to complete
Authors
FreeCAD version
Example files
See also
None

Introduction

This example shows how to perform a transient thermomechanical analysis of a bimetallic strip.

Creating the model

  1. Starting with a blank FreeCAD project, we build our bimetal strip in the Part Workbench
  2. Draw a Cube and rename it to aluminium.
  3. Give it the dimensions 100 x 10 x 2 mm (Length x Width x Height).
  4. Create a second Cube named 'steel' with the same dimensions.
  5. Offset this part by 2 mm along the Z-axis (via Placement → Position → z).
  6. Select both solids (using the Shift key + mouse click) and create Boolean Fragments from them
  7. Rename these Boolean Fragments to bimetal strip
  8. In the Property editor, we change the mode from ViewStandard to ViewCompSolid. (It should also work by using the Part Compound command instead of Boolean Fragments, however, with more complex intersecting shapes, there might be trouble with the FEM analysis later. So, better get used to using Boolean Fragments in the first place.) The result should look like this:

Preparing and running the FEM analysis

Assigning the materials

In the FEM workbench we create a new Analysis container and add a new Solid Material named 'Aluminium' to the analysis. In the upcoming task window, we select one of the predefined aluminium alloys such as "Aluminum-6061-T6". Under 'Geometry Reference Selector', we assign the material to the lower strip of our model by setting the selection mode to 'Solid', clicking 'Add' and selecting a face or an edge of the lower strip.

We close the task window and repeat the steps to create a second material 'Steel' (material card 'CalculiX-Steel') and assign it to the top strip.

Creating the mesh

Since a Finite Element Analysis obviously needs elements to work with, we have to dissect our model into a so-called mesh. The FEM workbench offers two meshing tools: Netgen and GMSH. We will go with Netgen here: With the Boolean Fragments objects 'bimetal strip' selected, we click on the Netgen icon in the FEM workbench. In the upcoming task window, we have to make different selections, starting from the top:

A click on 'Apply' runs the mesher, and – the time depending on your computer – a mesh appears on our model.

Assigning boundary conditions

An FEM analysis now would result in nothing, because nothing is happening to our model yet. So let’s add some temperature: Use the initial temperature from the FEM workbench and set the temperature to 300 K. Here, no parts of the model will be selected, since this setting applies to the complete model.

Next, we use temperature acting on a face. We click 'Add' in the Task panel and select the two faces at one end of the strip. Two faces of the Boolean Fragments object should appear in the list and little temperature icons on the model. We set the temperature to 400 K and close the Task panel. At the beginning of the analysis, the selected faces will get an instantaneous temperature rise from 300 to 400 K. The heat will be conducted along the metal strips and cause the bending of the strip.

Before we can run the analysis, an additional boundary condition has to be set: The analysis can only run, if our model is fixed somewhere in space. With we select the same two faces as for the temperature boundary condition above. Red bars will appear on the model, visualising that those faces are fixed in space and not able to move around during the analysis.

Running the analysis

The analysis may already contain a solver object 'SolverCalculiX'. If not, we add one by using the solver icon from the toolbar. The solver object has a list of properties below in the left section of the window. Here we select the following options (leave the ones unmentioned unchanged):

After double-clicking the solver object, we check that 'thermomech' is selected and click 'Apply' to start calculations. After some time, the last message 'Process finished' should appear. When the timer at the bottom has stopped, we close the Task panel. (With larger models and/or slower computers, FreeCAD may freeze and we won’t see the timer running. But be patient, in most of the cases, CalculiX is still running in the background and will eventually produce results.)

We should now have a "SolverCalculiXResult" pipeline object with multiple frames. By default, temperature distribution should be shown. We can double-click on the pipeline and switch to Displacement Magnitude. Then we can add Warp Filter to visualize scaled deformation. Alternatively, we could export the results in the VTK format and import them into dedicated post-processor such as ParaView.

Downloads

Other Example

from femexamples.thermomech_bimetall import setup
setup()