Professional Documents
Culture Documents
Deformed shape
Von Mises
Tresca
- by Dharmit A. Thakore
Second Edition
To
My wife,
Our beloved son
&
Open Source Software
Table of Contents
Forewordxiii
What motivated me to write this bookxiii
This book is written forxiii
This book is not written forxiv
What software would you need to follow throughxiv
Chapter notes60
Appendix Ac
Other sources of informationc
Appendix Bd
Installing Software required for this bookd
Ubuntu 12.04 Configurationd
Salome-Meca 2013.2 installationf
Efficient Installh
Foreword
Foreword
During my university life, I had taken Computer Aided Design (CAD) and Finite Element Analysis (FEA) as my
elective subjects. As a young university student, I was fascinated by the power of computers and the help that
they provide to obtain results that are easy to understand for a complex simulation. Going from Drawing boards,
pencils and erasers to CAD with everything on the computer, having multiple revisions of the same drawing and
the powerful undo and redo functionality were one of the journeys that I will never forget.
At that time, our university was having education version of AutoCAD (I wont tell the version of AutoCAD as
that will reveal my age ) for drafting and Solid Edge for Finite Element Analysis. The only problem was that
outside university we were on our own. We even didnt have student versions of those software to use at home.
xiii
xiv
xv
In the coming chapters of this book, we will be using above philosophy to carry out Finite Element Analysis of 1D,
2D, 3D models of the objects and obtain Displacements, Forces and Stresses. Interpretation of results will be left
to the reader.
xvi
Study Cases
Study Cases
Real world examples are used in this book to describe each Study cases. Not only will this make it interesting, it
will give users a better understanding of how theory translates to practical analysis or what to do when rubber
meets the road.
To make this more interesting a small role play is introduced in this book (at the start of the chapters) in which
the main character Esha is a fresh out of University young Engineer who joined a Design firm and was given
responsibility to carry out FE Analysis of calculations that were traditionally performed by either hand calculations
or the Rule of thumb method was used.
A supervisor John is appointed to mentor Esha. John is passionate about the use of Open Source software
and knows the power they possess. To break the ice, John shows Esha the use of Salome-Meca by giving a very
small example of a 1m cube with pressure of 1MPa applied on top face and in another example he shows stresses
generated in a cantilever beam with gravity load applied.
After showing how easy it is to conduct FE Analysis with Salome-Meca, John shows Esha what the fundamental
steps to perform Stress Analysis are and how to replicate them in Salome-Meca and Code Aster.
John asks Esha to conduct FE Analysis of real world examples that will help her in building her capabilities and
confidence.
With every new example new concepts will be discussed and explained in an easy to follow format.
xvii
xviii
Study Cases
previously carried out 1D and shell analysis, John explains her the difference in results. You will learn what
h-refinement is and also get a hands on experience of the time it takes to compute when the number of elements
are increased.
After describing all the types of analysis that John and Esha are going to have a look at, John showed Esha her
desk where she will be working as an intern. This computer was not a hi-fi top of the notch computer but a 3 years
xix
Appendix B provides information on download and installation of Salome-Meca 2013.2 and Efficient.
xx
Chapter 1
Getting to know Salome-Meca
Before starting straight on FE Analysis, John explained that
a bit of homework before hand will make sure that the study
goes smooth. It is always good to accumulate all the required
information viz. What are the geometric inputs, what material
properties will be used and what are the Specific results required off
this analysis.
Even though John was showing Esha how to operate Salome-Meca, he
explained the input values, geometry and the specific results they were
after as if they had got that information from the client. Esha was writing
down the information that she got from John verbally.
Description
Figure
When Ubuntu starts, it looks like figure below
As can be seen when Salome-Meca is installed, you get an icon on the Desktop.
There are two ways to start Salome-Meca.
3
One is to open terminal and go to the folder where Salome-Meca is installed and then type
./runAppli
Other is to Double Click Salome-Meca icon to start it.
After Salome-Meca Application Loads it will look like figure below.
Description
Figure
The second line has tools like New, Open, Save, Close, Copy and Paste
Next to Paste button is the drop down for SALOME Module Selection. Different modules available in
Salome-Meca are Geometry, Mesh, Post-Pro, YACS, JobManager, Aster, Eficas, OpenTURNS, Homard
and ParaVis.
All of the Modules are also shown as buttons next to the drop down
6
Click Down Arrow where it says
Salome-Meca and Select Geometry.
7
Description
Figure
Hover over the toolbar (shown below) and when you pause for a second over a button, it will display the
name of the button.
Select 5th Button from the left in the tool bar (Fit All) and the Entire box will fit to screen.
Description
Figure
Make sure that Box_1 is selected in the
Object Browser
In Salome-Meca main toolbar, Click
New Entity -> Group -> Create
In the window that pops up, select third
Option for Shape Type for selecting
Faces on the Geometry.
Enter Fixed as Name.
Rotate the model so that you can see
the bottom face.2
11
Description
13
Figure
As John saved the file, Esha was intrigued by the ease with which simple geometries can be done in Salome-Meca.
John explained that the next step is to Mesh this Geometry.
Description
Figure
In Salome-Meca main toolbar, Click the
down arrow where it says Geometry and
Select Mesh.
Make sure that Box_1 is still selected in
the Object Browser and click Mesh ->
Create mesh and a window will pop up
as shown here.
Description
Figure
Description
Figure
Nothing happens to the 3D model. So
where is the mesh?
If you check Object Browser you will see
three new entities added to the Mesh
Tree.
Hypotheses, Algorithms and Mesh_1.
Mesh_1 has an exclamation mark on
it which suggests that it needs to be
computed.
10
Description
Figure
It is this easy said John and then clicked on Save Button before going any further. Then John went on and said
that In the next section, we will discuss how to build information for a Linear Static FE analysis by using SalomeMeca Wizard.
11
Description
Figure
12
Description
Figure
13
Description
Figure
14
Description
Figure
This concludes the Pre-Processing stage of FE Analysis said John while he clicked on the Save button. He added,
Salome-Meca wizards make it very easy to conduct a basic analysis. Esha noted that it only took them 10 minutes
to reach to this stage and most of Johns time was taken up to explain her how to use the Wizard. If John had to do
this analysis by himself, he would have reached this stage in no time. John said, Next, we will discuss how to run
a Linear Static FE analysis by using Salome-Mecas Aster module.
15
Description
Figure
16
Description
Figure
John clicked on the save button and said, As we can see that a Post-Pro node has been added to the Object Browser
tree, Processing has completed and that results are ready for us to be evaluated. Depending on the Type of
Analysis, it can take a few minutes as it happened now or it can take several hours said John. Next we will see
some of the ways we can visualize the results in Post Processing Module of Salome-Meca.
17
Description
Figure
18
Description
Figure
19
Description
Figure
20
Description
Figure
21
Description
Figure
Notice that at the bottom of the window, a graph of Deflection with minimum and maximum
deflections is shown.
The maximum deflection here is 0.004734mm
22
Description
Figure
23
Description
Figure
Right Click on Def.Shape:1
and select Show Only and
only the Deformed shape will be
visible.
Again,
Right
Click
on
Def.Shape:1
and
select
Representation -> Surface frame
and you will be able to see the
deformed 3D model.
Here you will be able to see how
the cube deforms in X direction
only.
10
24
Description
Figure
RESU____SIEQ_NOEU is the
Result (RESU) of the Stress
(SI__) Equivalent (__EQ) or
Equivalent Stresses at Nodes
(NOEU).
11
25
12
Description
Figure
13
14
Notice that at the bottom of the window a graph of VonMises stresses with minimum and maximum
stresses is shown.
The maximum stress here is 1.02521 MPa
26
Description
Figure
27
Description
Figure
RESU____SIGM_NOEU
is
the Result (RESU) of the Stress
(SIGM) or SIGMa at Nodes
(NOEU). Six stresses Sx, Sy, Sz,
Sxy, Sxz, Syz
Open this branch and Right
Click on 0 , - sub-branch.
From the pop up window select
Scalar Map
16
Now lets see how we can run a second analysis in the same .hdf file by adding a new FE Analysis in Aster Module.
28
Description
Figure
Click the down arrow where
it says Post_Pro and Select
Aster.
Make sure that Mesh_1 is
selected in the Object Browser
and click Aster -> Wizards ->
Linear Elastic and a window will
popup.
Select 3D if not already selected
and click Next.
29
Description
Figure
To find out the Deflection and Stresses for this analysis, repeat steps 2 to 16 shown previously.
Well thats the complete FE Analysis of a Carbon Steel Cube. The analysis I just showed you is very helpful to
understand the steps required in Finite Element Analysis. It might not have any practical use though, said John.
John saved the entire Analysis and closed Salome-Meca. Now I understand the fundamental steps of how to
perform FE Analysis in Salome-Meca but there are quite a few questions that come to my mind said Esha. John
was happy to see that Esha had questions to ask as he now knew that she was paying attention.
What if I want to carry out Self Weight analysis, or apply Force instead of Pressure? How do we do that in SalomeMeca? asked Esha. That is what I am going to show you next but before I do that lets recap of what we did right
now said John.
30
Summary
Esha listed out the steps that they followed to perform the analysis out loud
1. We Started Salome-Meca and entered Geometry Module and created a New Study.
2. We created a Primitive Cube and named the top and bottom face which we used in FE Analysis.
3. We meshed the model with tetrahedral mesh elements in Mesh Module.
4. Then we entered Aster Module and created a new Analysis by using Linear Static Analysis Wizard.
5. We entered required information, saved the command (.comm) file and completed the Wizard.
6. We Ran the analysis and as everything went well, we were presented with Post-Pro Module Option.
7. We entered Post-Pro Module and saw Deflected Shape of the Model, VonMises Stresses and Tresca Stresses.
8. We built another analysis in the same study file and completed analysis by visualising results in Post-Pro
module
Very good said John, but dont forget that even before you start the analysis make sure you have all the input and
output parameters for your study that has been discussed with the client.
31
Description
Figure
32
Description
In
Analysis
Tab,
everything default
Figure
keep
33
Description
Figure
In Boundary Condition(s)
Tab, Enter the information
for restricting face Fixed in
All directions as shown in the
figure.
Click on Add
34
Description
Figure
35
Chapternotes
1
In CaeLinux 2011 these entities were not generated by default but in Salome-Meca 2013.2 they are.
Click Second button on the figure shown in Step 11 (looks like a mouse) which will help you to zoom, pan and rotate
the geometry. Alternatively you can perform these operation by Holding down Ctrl key and using Left, Middle or
Right mouse buttons respectively.
If the mouse button is still selected, you wont be able to select the face. If you are using Ctrl key with mouse buttons,
you dont have to click this mouse button again.
36
37
38
Chapter 2
Editing command (.comm) file
John explained that the analysis he was going to
show next was a very simple analysis and follows
the same steps that he had presented previously. In
this analysis they will manually edit the command
(.comm) file, remove the pressure load and apply
Gravity load to the entire 3D model.
39
40
Description
Figure
41
Description
Figure
Save the file with a meaningful name. Next we will Mesh it, said John.
42
Description
Figure
43
Description
Figure
John clicked on the Save button and asked Esha Are you ready for the next Step?
You bet I am was the answer John got.
44
Description
Figure
Click on Aster Module and Make sure that Mesh_1 is still selected in the Object Browser. In Salome-Meca
main toolbar, Click Aster -> Wizards -> Linear Elastic, and a window will popup.
Select 3D as type of analysis. Click Next
Select Mesh_1 in the next step if not already selected. Click Next
Enter 2.1e5 for Youngs Modulus and 0.3 for Poissons Ratio. Click Next
For Geometric Boundary Condition select Fix and give it values 0, 0, 0
45
Description
Figure
This completes the steps to generate a study and save the command (.comm) file as we did earlier for the cube
said John. Now we want to edit the command (.comm) file, remove Pressure term and add Gravity load to it.
46
Description
Figure
47
Description
Figure
48
Description
Figure
Add
RHO=7.8E-9,
as
highlighted in the adjacent
figure. Density units are in
tonne / cubic millimetre.2
49
Description
Figure
50
Description
Figure
So what did we do here? PESANTEUR literally means GRAVITY in French. Translate it and see for
yourself.
So we are writing a code that says that we want to add Gravity Load to the study. The amount of load to be
applied is 9800 mm/square second,3 and that it should have a direction of Negative Z (-Z) which is shown
by a vector (0,0,-1) => (X=0, Y=0, Z=-1).4
John saved the file Gravity.comm and said that the next step is to run this analysis.
51
Description
Figure
Open Salome-Meca again and check that Case2.hdf file is Open. Make sure that Aster module is
selected.
Right Click the linear-static branch in Object Browser and click on Run.
A new window will pop up and as you know numbers will be flying around the screen.
If everything goes well you will be able to see Post-Pro appear in Object Browser.
52
Description
Figure
Esha opened the RESU____DEPL branch and added the Deformed shape.
To make the deformation more prominent, she changed the Scale Factor to 100 as shown in adjacent
figure and Clicked OK.
For this Deformed shape, she enabled Show Only and changed the Representation to Surface
53
Description
Figure
Then she opened RESU____SIEQ_NOEU branch and added Scalar Map with the Mode as VMIS
For this VonMises stresses, she enabled Show Only and changed the Representation to Surface
John said that at this stage dont worry if the results of the analysis are not what you would get from the Manual
Calculations. The sole purpose of this Analysis was to show you how to manually edit the command (.comm) file
and add Gravity load.
After Esha stopped fiddling with the Post Processing Module, she told John that when he started showing her how
to do FE Analysis with Wizards in Salome-Meca, she was not sure if it could be flexible and powerful but after the
second example she has more confidence in what she is learning and hopes that all of her queries will be solved.
John told Esha that they have barely scratched the surface of what lies ahead of them. Salome-Meca is very
powerful tool if the user knows how to use it.
54
Summary
Esha summarised her learning
1. How to manually edit the command (.comm) file to change default Linear Static Wizard information.
2. How to add Gravity load
John said that now it was time for a coffee break as they were doing this for more than an hour.
55
Description
Figure
56
Description
In
Analysis
Tab,
keep
everything default as we are
performing Mechanical 3D
Analysis.
Figure
57
Description
Figure
In Boundary Condition(s)
Tab, Enter the information
for restricting face Fix in
All directions as shown in the
figure.
Click on Add
58
Description
Figure
59
Chapter notes
1
Or any other type of load that requires density of the material, like doing FE analysis of a rotational body.
Remember our units are mm, second, tonne, Newton, Mega Pascals etc.
Same results can be achieved by the value of -9800 and vector of (0,0,1)
60
Chapter 3
1D Finite Element Analysis
After both John and Esha had a casual chat over coffee,
when they returned to the computer John said, Now that
I have showed you what Salome-Meca looks like, next I
will show you how to perform 1D Analysis. For this FE
Analysis John will show 1D Geometry Modelling in SalomeMeca. Then they will generate a command (.comm) file by
using Eficas, then use ASTER module of Salome-Meca to carry
out the analysis and do Post Processing in Salome-Meca.
61
He explained Esha that we will reproduce this manual calculation result by FE Analysis. In this instance a simple
1 Dimensional linear static FE analysis with Beam elements will be performed.
62
63
Description
Figure
64
Description
Figure
65
Description
Figure
Save this file and give it a proper name. I have used Case3.hdf
66
Description
Figure
67
Description
Figure
68
Description
Figure
This concludes creation of the Mesh for the FE Analysis, said John. Next we will create a command (.comm) file
that will give instructions to Aster about the Analysis.
69
Description
Figure
In Salome-Meca select Eficas module to enable it.
Eficas has not been ported to English yet so everything you will be doing from now on will have French
language, including Tool Tips.
In the Main Tool Bar, Click on Eficas
-> Eficas pour Code Aster.
A new application Eficas starts.
As said earlier, it is not in English but
the icons can be understood.
From left to right, icons are
1. Create a new file
2. Open a file
3. Save a file
4. Copy
5. Paste
6. Delete
7. Cut
Click on Create a new file icon
70
Description
Figure
71
Description
Figure
After the file is saved, the Eficas window looks like that shown below. In the left column it shows the
file name Case3.comm in Red colour. This means that this file is not complete. When the file will be
complete, i.e. when it will have all parameters defined like Start, End, Material definition, Mesh definition,
Load and Boundary condition defined, it will become Green. At this stage Eficas is ready for Input from
the user.
The second Column shows all the commands that are available in Code-Aster and these are sorted
Alphabetically. They can be sorted based on groups but in this instance we will stick to Alphabetic sorting.
Information that needs to be entered in command (.comm) file are called Concepts in Code_Aster and we
need to add following Concepts
1. DEBUT (This is the marker for file start)2
2. Material Definition
72
Description
Figure
In the second Column scroll down to DEBUT, Click it and then Click on Valider5 Button at the bottom.
6
When you do that, DEBUT gets added to the comm file and it has Green button which means that no extra
information is required to be entered.
Two Tabs Ajouter Mot-Clef (Add Keyword) and Nouvelle Commande (New Command) are shown.
Next we need to define Material to be
used in the study.
To add a new Command Click on
Nouvelle Commande and Select
DEFI_MATERIAU which means
DEFINE MATERIAL, Click Valider.
73
Description
Figure
10
74
Description
Figure
11
12
75
Description
Figure
13
76
Description
Figure
16
77
Description
Figure
17
Next add
Condition.
18
Geometric
Boundary
78
Description
Next we
Condition.
19
Figure
add
Load
Boundary
79
Description
Figure
20
80
Description
Figure
24
25
81
Description
Click Aster -> Add study case.
Figure
82
Description
Figure
Save this study and next we will have a look at the Results, said John.
83
Description
Figure
First John enabled Deformed Shape for DEFI, showing the Deflection of the Free end of Guide.
Open Branch Result__DEPL._ and Right Click on 0, -. From the Pop up menu Select Deformed
Shape. Leave everything default and Click OK.
As can be seen from the figure below, the Maximum deflection of the Right side edge is 1.29017 and based
on our Units, it is 1.29017mm
Then John enabled Stress in SIPO_NOEU. This has many results embedded in it, but the one we are
interested in is SMFY (Stress due to bending Moment MY).
2
As the beam is longitudinal to Global X axis, and so fortunately for us, Local and Global X, Y and Z
direction for this beam are the same16.
As can be seen from the figure below, the Maximum stress generated at the Fixed point (left side) is -180
and based on our Units, it is -180MPa.
84
Description
Figure
Result
Esha quickly made a Table to show the difference between Hand Calculated values and that obtained by FE Analysis.
Result
Deflection
Stress
FE Analysis Value
1.29017mm
180MPa
Difference
0.3%
0%
John explained that the difference in Deflection is mainly due to rounding error and also due to density of Mesh.
If Esha wants, she can perform the analysis again with increased Segments in the Mesh and compare results.
Summary
John asked Esha what she had learnt in this Case Study. Esha summarised her learnings
1. How to do 1D Geometry Modelling in Salome-Meca
2. How to create Groups of Nodes and Lines in Salome-Meca
3. How to Mesh 1D Geometry in Salome-Meca
4. How to create command (.comm) file in Efficas
5. How to run FE Analysis by using Aster without the Wizard
6. How to do Post Processing of 1D FE Analysis
John said, next we will take this 1D analysis to 2D Frame Analysis.
85
Description
Figure
86
Description
Figure
87
Description
Figure
88
Description
Figure
89
Description
Figure
90
Chapter notes
1
You can also have PORSUIT which means a continuation from previous file.
Code_Aster results can be exported as a Text file with particular result or in a MED file, here we will save the result in
MED file.
If you do not understand what the word means, try to translate from French to English and most of the time you will
be able to understand it.
In defining material there are other parameters that can be defined as well, viz. Density, Thermal Conductivity etc., but
as this is an Elastic Static Analysis only two properties are required.
More than one material can be defined and added to the study. To define another material just add DEFI_MATERIAU
again and give it a different name.
The reason we need to define Mesh group is to convert it to Node group in the next step
As we will add Force and Fix boundary condition on the Nodes we need to define them before we use them
10
If you are having a model that has a 1D element, a sheet metal and a 3D model, you can define different types of
modelling for each different type of element here. Instead of TOUT = OUI in AFFE, you need to select each GROUP_
MA and give it a different MODELISATION.
11
Different types of Modelisation for Beams can be done viz POU_D_E etc
12
As we only have a 1D representation of the beam, we need to explicitly tell the dimensions of the beam to Code_Aster
13
Beams and Shells have 6 degrees of freedom. Three in Translation and Three in Rotation.
14
Instead of specifying what we want, we can ask Code_Aster to add all results that it calculated in the MED file. This
will be shown in 3D case of Pipe Guide.
15
To start with, you can leave default of 128MB memory but soon, for bigger analysis, Code_Aster will complain of
having insufficient memory and stop running, so it is good to give around quarter or half of the total memory of the
computer.
16
Local Co-ordinates for Beams are really interesting and worth investing time in. Local x axis always runs in the
longitudinal direction of the beam. Local y axis is perpendicular to local x axis and if local x axis is not parallel to
Global Y axis, then local y axis it is parallel to Global Y axis and local z axis is perpendicular to both.
91
92
Modal Analysis
Sometimes in her career, Esha had come across a FE problem where she needed to find the Natural frequencies of
a given shape of the object. Esha asked John, if it was possible in Code Aster to find out the Natural frequencies of
the object by performing Modal Analysis?
Thermal Analysis
Esha remembered that once she was asked if there was a way to perform Thermal analysis in Code_Aster. As
Esha didnt know, she had to again pass it along to her colleague. Is there a way to conduct Thermal Analysis in
Code_Aster?
These were some of the example problems that she had the opportunity to do but was not able to due to her limited
knowledge. There were some more problems that she wanted to discuss with John but first she wanted to know if
her existing problems can be solved.
John told Esha that both Salome and Code_Aster were capable of conducting the analysis she asked for and much
more.
Appendix A
Appendix A
Other sources of information
This section is provided here for motivated users who are hungry for more information on the software covered
in this book. Links are provided to the Software home page and also to the User Forums. Links provided to the
websites are correct at the time of writing this; if by any chance these links dont work, just use any search engine
to find relevant software.
1. Salome website http://www.salome-platform.org/
2. Code Aster website http://www.code-aster.org/V2/spip.php?rubrique2
3. Efficient website http://engineering.moonish.biz/efficient/
4. Salome forum http://www.salome-platform.org/forum
5. Code_Aster forum http://www.code-aster.org/forum2/
Appendix B
Installing Software required for this book
All case studies mentioned in this book can be performed on a computer that has Ubuntu 12.04 Operating
System and which has Salome-Meca and Efficient installed on it.
Appendix B
Appendix B
Efficient Install
Efficient is developed in Java and to run it in Ubuntu, you will need OpenJDK Java 7 runtime.
To download and install it go to
https://apps.ubuntu.com/cat/applications/precise/openjdk-7-jre/
Appendix B
On the right hand side of the website latest version of Efficient software can be downloaded. Click on
Download v0.1.0 and a Java Jar file named Efficient_v0-1-0.jar will be downloaded on your computer. Copy
it to a proper location.
To run Efficient, Right Click on Efficient_v0-1-0.jar and Select Open With OpenJDK Java 7 Runtime
By
Dharmit Thakore
CPEng, RPEQ, Brisbane, QLD, Australia
Features:
1. Step by Step procedure to conduct Finite Element Analysis
2. Screen shots to help users visualise the procedure and understand efficiently
3. Real world examples used in the book to make users confident of their knowledge and the power of
Open Source software being used in real world
4. Each chapter introduces a new concept of conducting FE Analysis so that the user is not bombarded
with too much information in one Chapter.