You are on page 1of 23

An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston

J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com


An introduction to Salome & Code _Aster:
A simple linear statics analysis of a piston
J.Cugnoni, CAElinux.com , 200
!pdated to comply "it# Salom$%ECA 20&0.2
'y
C.Andersen, for CAE(inux.com, 20&0
Overview:
)eometry module:
$mport and prepare S%!& file format geometry, group creation
%es# module:
'es(ing geometry in preparation for )! study
Aster module:
Creating a linear statics study using t(e *i+ard
,unning t(e calculation
-ie*ing t(e run.time performance results
!diting a command file *it( !ficas
*ost+processing module ,-.S!/
&ost.processing t(e result of t(e study
of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
Geometry module: Importing geometry
Start Salom0'!CA and select )eometry module, c(oose 0e" in t(e dialog
Select menu 1ile 2 .mport
C(oose S3E* file format in t(e pull.do*n menu
Select t(e file *iston.stp
Clic1 t(e 1it All icon in t(e -ie* tool.2ar
$f t(e geometry is presented as a *ire.frame, clic1 menu -ie" 2 -ie" %ode 2 S#ading
2 of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
A note on importing geometry: 3(en importing geometry from e.g. Solid3or1s or ot(er
CA4 pac1ages, Salom0 con5erts t(e units from4mm5 to 4m5 to conform *it( t(e m6s S$.
system 6 %(is means t(at if t(e piston *as designed in Solid3or1s to (a5e a diameter of
70mm, t(e imported geometry *ill (a5e a diameter of 0.07m 6 i.e. t(e coordinates along t(e
e.g. #.a#is *ill not 2e 80,0,09 : 870,0,09 in Salom0, 2ut 80,0,09 : 80.07,0,09
$f in dou2t, c(ec1 t(e 2ounding 2o# 2y going to menu %easures 2 7imensions 2
8ounding 8ox.
/ of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
Geometry module: Preparing geometry; creating groups
!#pand ;eometry in t(e o2<ect 2ro*ser and rig(t.clic1 *iston.stp_& and select Create
)roup
Select S(ape %ype 1ace
=nder )roup 0ame enter >*ress>
'o5e t(e mouse pointer o5er t(e piston geometry and press LMB to select t(e top,
circular face.
?nce t(e top, circular face is selected, press Add, follo*ed 2y Apply.
%(e geometry group >*ress> is no* created
Creating t(e >#old> group
!nter t(e name >#old> for t(is ne* group
&ressing and (olding CTRL *(ile using RMB to rotate t(e piston geometry, select t(e
t*o upper (al5es of t(e (oles going t(roug( t(e piston 6 (old SHIFT to select t*o
indi5idual faces
Clic1 Add, follo*ed 2y Apply and Close
%o ma1e sure t(e correct face groups (a5e 2een created, e#pand piston.stp_& in t(e
o2<ect 2ro*ser, select 2ot( groups 8pressing and (olding CTRL or SHIFT9 in t(e o2<ect
2ro*ser, rig(t.clic1 and select S#o" 9nly
%o return to a normal 5ie*, rig(t.clic1 piston.stp_& and select S#o" 9nly
@ of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
5 of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
7 of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
Meshing the geometry
S*itc( to t(e %ES: module
Clic1 Create %es#
C(ange t(e name from %es#_& to *iston
=nder )eometry, ma1e sure piston.stp_& is selected, ot(er*ise select piston.stp_&
in t(e o2<ect 2ro*ser and clic1 t(e 2lue arro*.
Clic1 Assign a set of #ypot#eses ; select Automatic 3etra#edrali<ation
Clic1 Cancel in t(e dialog :ypot#esis Construction ; %ax (engt#
Clic1 t(e &7 ta2, under Aypot(esis, clic1 t(e gear icon and select A=erage (engt#
=nder (engt#, c(ange t(e 5alue to 0.00 6 clic1 96
Clic1 Apply and Close
!#pand %es#, rig(t.clic1 t(e *iston mes( and select Compute
3(en t(e mes( is computed, close t(e dialog
,ig(t.clic1 on t(e *iston mes( 8notice t(e yello* >.sign is gone9 and select Con=ert
to?from @uadratic
Con=ert to Auadratic *ill automatically 2e selected
%ic1 %edium 0odes on geometry
Clic1 Apply and Close
B of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
C of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
D of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
0 of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
Aster module Creating a study using a wizard
S*itc( to t(e Aster module
Clic1 t(e (inear Statics Bi<ard icon
$n t(e follo*ing dialog C7 is automatically selected 6 clic1 0ext
$n t(e ne#t dialog select t(e *iston mes# in t(e o2<ect 2ro*ser under %es# and clic1 t(e
2lue arro*
!se )eometrical )roups s(ould 2e selected 6 t(is *ill import and create mes(
groups created in t(e )eometry module
Clic1 0ext
$n t(e ne#t dialog enter a DoungEs %odulus ,E/ 5alue of F0eG 8or B00000000009 and a
*oissonEs ration of 0.C
'ES S$.system is used (ere and t(us all dimensions are in meters, and pressure *ill
2e in &ascals 6 B0eD&a corresponds to a !.module of B0;&a
Clic1 0ext
$n t(e ne#t dialog 8oundary Conditions are imposed on t(e model
4ou2le.clic1 t(e t(e first ro* in t(e )roup column, press t(e do*n.arro* and select
t(e >#oldE group
"ea5e 5alues for 7H,7D and 7I at 0 and clic1 0ext
$n t(e ne#t dialog a group for applying pressure must 2e selected
Again, dou2le.clic1 t(e first ro* in t(e first column, pull do*n t(e menu and select
t(e *ress group
4ou2le.clic1 t(e first ro* in t(e second column and enter a pressure 5alue of C00eC
6 or /00000
Clic1 0ext
$n t(e ne#t dialog a name and a destination for t(e created command file must 2e selected
Clic1 t(e file dialog 2utton
Fa5igate to t(e folder t(at s(ould contain t(e study files and type in a name for t(e
command file 6 clic1 1inis#
of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
2 of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
/ of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
@ of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
!#panding t(e Aster tree in t(e o2<ect 2ro*ser a ne* study s(ould no* 2e present:
.
,ig(t.clic1 linear+static and select Jun
A terminal *indo* s(ould no* appear and a lot of te#t *ill scroll 2y
After t(e calculation (as finis(ed, t(e terminal *ill disappear and you *ill 2e
presented *it( a green tic1 on t(e linear.static study:
%a1e a moment to t(oroug(ly en<oy t(is seemingly innocently loo1ing icon, 2ecause
you 3$"" learn to lo5e it once you start playing around and your studies fail :9
5 of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
!#pand t(e ,esults tree in t(e ?2<ect Gro*ser, t(ere *ill 2e @ entries:

,ig(t.clic1ing eac( entry *ill gi5e you options to Jead as 3ext or Edit as 3ext 6 or
ot(er
Ko'+id: Self.e#planatory
linear+static.mess: %(is file contains messages produced 2y t(e calculation and
s(ould 2e t(e first place to searc( for errors.
linear+static.resu: %(is file contains among ot(er t(ings, s(ort description of errors
encountered and a detailed summation of run.time performance, i.e. (o* long time it
too1 for eac( command to run and o5erall time consumed, in t(is case:
L393A(_J98: E(A*SE7: G.M2 secondsL
linear+static.rmed: %(is file containing t(e results to 2e used in t(e &ost.processing
module
7 of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
Aster module diting a command !ile
S(ould a mista1e (a5e 2een made during t(e *i+ard, suc( as selecting a *rong group,
entering a *rong 5alue for pressure etc., t(e command file can easily 2e edited from *it(in
t(e Aster module:
!#pand t(e linear+static study tree and e#pand t(e 7ata 2ranc( li1e so:
.
3(en rig(t.clic1ing t(e *iston.comm command file, / c(oices are presented:
Jead as 3ext : 3ill display t(e command file in a *indo* in read.only mode
Edit as 3ext : 3ill open t(e command file in an e#ternal editor 8of t(e users c(oice9
Jun Eficas: 3ill open t(e command file in !ficas, an editor specially designed for
creating and editing Code_Aster command files. %(is editor *ill ta1e care of t(e 5ery
strict synta# Code_Aster reHuires, and is (ig(ly recommended for 2eginners for
anyt(ing ot(er t(an c(anging simple 5alues in a command file.
,ig(t.clic1 t(e *iston.comm file in t(e o2<ect 2ro*ser and select Jun Eficas
$n t(is introduction only 2 entries *ill 2e mentioned:
7E1._%A3EJ.A! 6 4efine material:
E(AS 6 !lastic material
%(e 5alues entered earlier are present (ere: E+module, 0! 8&oissons ratio9
A11E_C:AJ_%ECA : Assign 2oundary conditions and loads:
77(_.%*9: %(e face group >#oldE is restricted in all directions, i.e.
7H,7D,7I I 0 844": 4egr0s 4e "i2erties I degrees of freedom, $'&?sed9
*JESS_JE* : A pressure of /00 # 0
/
&ascals is imposed on t(e E*ressE face
group
%o c(ange a group under e.g. *JES_JE*, simply clic1 )J9!*_%A, use t(e rig(t (and
arro* to mo5e t(e name into t(e -alue 8-aleur9 field and clear it. !it(er type t(e name of t(e
group, or select t(e face group in t(e *iston mes# in t(e %ES: module and press t(e
2utton $>5e mar1ed in t(e follo*ing picture 6 curiously t(e icon image is gone in my 5ersion.
=se t(e left (and arro* to enter t(e ne* name, confirm *it( >-alider> 6 a ne* 5alue/name
s(ould no* 2e present under *JESS_JE* 2 )J9!*_%A
B of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
C of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
Post processing
Clic1 t(e *ost+*ro icon to s*itc( to t(e *ost+*ro module
!#pand t(e &ost.&ro tree in t(e o2<ect 2ro*ser until it loo1s li1e t(is:
.
4isplacement / 4eformation:
=nder JES!_7E*(_, rig(t.clic1 0,_ and select 7eformed S#ape
!nter a Scale factor of C00, tic1 %agnitude Coloring and press Apply and Close
Fo* e#pand 0,_ , rig(t.clic1 7ef.S#ape and select S#o" 9nly
D of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
20 of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
-on 'ises stresses:
=nder JES!__E@!._09!E_S.)%, rig(t.clic1 0,_ and select Scalar %ap
$n t(e pull.do*n menu Scalar %ode, select -%.S.+ and clic1 96
Again, e#pand 0,_ , rig(t.clic1 Scalar%ap and select S#o" 9nly
2 of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
22 of 2/
An introduction to Salome & Code _Aster: a simple linear statics analysis of a piston
J.Cugnoni, 2005 / C.Andersen, 200 for CA!"inu#.com
Congratulation , you #a=e finis#ed t#is first introduction to
Salom$ & Code_Aster.
7onEt forget to =isit our "e'site for more information:
""".caelinux.com
J.Cugnoni, CAElinux.com , 200
!pdated to comply "it# Salom$%ECA 20&0.2
8y
C.Andersen, for CAE(inux.com, 20&0
2/ of 2/

You might also like