CAElinux An introduction to Salome & Code Aster: a...
Transcript of CAElinux An introduction to Salome & Code Aster: a...
![Page 1: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/1.jpg)
CAElinux
An int roduct ion t o Salom e & Code_Ast er:
a sim ple linear st at ics analysis of a pist on
J.Cugnoni, CAElinux.com, 2005
![Page 2: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/2.jpg)
Overview
➲ SALOME● Im port & prepare STEP geom et ry ● Meshing & group creat ion● Export ing to MED file
➲ Code_Aster● Create a new analysis project● Edit com m and file● Run analysis
➲ SALOME● Im port MED result f ile● Visualiye results
![Page 3: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/3.jpg)
SALOM E:im port geom et ry
➲ Start Salom e and select Geom etry m odule
➲ Choose New in the dialog➲ Select Menu File-> Im port
● Choose STEP file form at● Select file “ piston.stp”
➲ Click Menu View -> View Mode -> Shad-ing
➲ Finally, click the Fit All but ton in the View toolbar
![Page 4: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/4.jpg)
Im port Geom et ry
![Page 5: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/5.jpg)
Im port Geom et ry
![Page 6: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/6.jpg)
Prepare geom et ry
➲ Click Menu New Ent ity -> Explode➲ Select the piston.stp_1 object in the
3D view or in the t ree view➲ Choose Sub Shape Type = Face➲ Click OK & confirm your choice ➲ Click on + in the t ree view to expand
piston.stp_1 object
![Page 7: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/7.jpg)
Prepare geom et ry
![Page 8: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/8.jpg)
Prepare geom et ry
![Page 9: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/9.jpg)
M eshing
➲ Change to MESH m odule➲ Choose Menu Hypotheses -> Create
hypotheses● Select “ Average Length” & click Create● Enter Length = 5 & click OK● Select “ Length from Edges” & click Create● Select “ Max Elem ent Volum e” & Create● Enter Max Volum e = 100 & click OK● Close New Hypotheses dialog
![Page 10: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/10.jpg)
M eshing
![Page 11: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/11.jpg)
M eshing
![Page 12: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/12.jpg)
M eshing (2 )
➲ Click Menu Hypotheses -> Create Al-gorithm s
● Select “ Wire Discret isat ion” & click Create● Select “ Triangle (Mefisto)” & click Create● Select “ Tet rahedron (Netgen)” & click
Create
![Page 13: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/13.jpg)
M eshing (2 )
![Page 14: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/14.jpg)
M eshing (3 )
➲ Select m enu Mesh-> Global Hypothese● Click on Arrow but ton near Geom etrical
object● Select “ piston.stp_1” object● Click on Arrow but ton near Hypotheses● By holding the Shift key, select the 3 hy-
potheses in the t ree view● Click on Arrow but ton near Algorithm s● By holding the Shift key, select the 3 algo-
rithm s in the t ree view● Click OK to create the m esh
![Page 15: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/15.jpg)
M eshing (3 )
![Page 16: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/16.jpg)
M eshing (3 )
![Page 17: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/17.jpg)
M eshing (4 )
➲ Right click the Mesh_1 object in the t ree view & select Com pute
➲ When finished, right click the Mesh_1 object & select Update
➲ Finally, right click the Mesh_1 object & select Display Only
![Page 18: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/18.jpg)
M eshing (4 )
![Page 19: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/19.jpg)
Creat e Groups
➲ Select Menu Mesh-> Create Group➲ Select Mesh = Mesh_1➲ Choose Elem ents type = Face➲ Choose Group type = Grp on Geom etry➲ Select "Face_56" from t ree view➲ Enter nam e = PressSurf➲ Click OK
![Page 20: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/20.jpg)
Creat e Groups
![Page 21: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/21.jpg)
Creat e Groups (2 )
➲ Select Menu Mesh-> Create Group➲ Select Mesh = Mesh_1➲ Choose type = Face & Standalone➲ Click Set Filters
● Click Add, choose Criterion= Belong to Geom & enter Face_4 in Value, choose Bi-nary= Or
● Redo the sam e operat ion for Face_6, Face_21 & Face_23
● Select Source= Mesh & click OK➲ Click Add & enter nam e = DisplSurf➲ Click OK
![Page 22: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/22.jpg)
Creat e groups (2 )
![Page 23: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/23.jpg)
Creat e groups (2 )
![Page 24: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/24.jpg)
Export M esh
➲ Right click Mesh_1 in t ree view➲ Choose Export to MED➲ Select form at MED 2.2➲ Choose directory /root /tm p/piston
(create it if necessary)➲ Enter filenam e = piston.m ed➲ Click Save
![Page 25: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/25.jpg)
Export M esh
![Page 26: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/26.jpg)
New FE Analysis
➲ Reduce Salom e window & go back to Desktop
➲ Start "New FE Analysis"● Enter project nam e= piston1● Select base directory = /root /tm p● Select piston.m ed file in /root /tm p/piston● Select the tem plate LinearStat ics3D.com m
in /opt /helpers/Tem plates● Click GO to create project
![Page 27: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/27.jpg)
New FE Analysis
![Page 28: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/28.jpg)
Edit FE m odel
➲ Now start the program ASTK ➲ Click m enu File-> Open ➲ Open /root /tm p/piston1/piston1.astk➲ Now double click on piston1.com m in
the file list to open the FE com m and editor EFICAS
![Page 29: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/29.jpg)
Edit FE m odel
![Page 30: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/30.jpg)
Edit FE m odel (2 )
➲ Read the com m ents in the com m file, explore the details of the com m ands and t ry to understand the st ructure of the proposed FE m odelling
➲ Expand the Defi_Materiau com m and● Select E & enter 70e3 (validate with enter)● Select Rho & click 'Supprim er' to delete
![Page 31: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/31.jpg)
Edit FE m odel (2 )
![Page 32: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/32.jpg)
Edit FE m odel (3 )
➲ Expand com m and Affe_Char_Meca that assigns the boundary condit ions
➲ In Ddl_Im po, select Group_No & click 'Supprim er' to delete this opt ion.
➲ Select Ddl_Im po & double click Group_MA in the list on the right .
➲ In Valeur enter 'DisplSurf' & press the top 'hand' but ton
➲ Validate by a click on 'Valider'
![Page 33: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/33.jpg)
Edit FE m odel (3 )
![Page 34: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/34.jpg)
Edit FE m odel (4 )
➲ Select Force_Nodale & click 'Sup-prim er'
➲ Select Affe_Char_Meca & double click on opt ion Pres_Rep in the list
● Double click on the Group_MA opt ion & en-ter group nam e = 'PressSurf', validate by 'Valider'
● Select Pres_Rep & double click the Pres opt ion, enter value = 0.3, press enter.
➲ Click m enu Fichier-> Enregist rer to save the file
![Page 35: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/35.jpg)
Edit FE m odel (4 )
![Page 36: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/36.jpg)
Solve t he FE problem
➲ Go back to ASTK➲ Click Run and t ry to follow the resolu-
t ion process.➲ When finished, double click pis-
ton1.erre file, you should see no errors (m arked by < F> flag)
➲ Double click piston1.resu to view per-form ance data
![Page 37: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/37.jpg)
Solve FE problem
![Page 38: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/38.jpg)
Post processing
➲ Start a new Salom e session➲ Choose PostPro m odule➲ Validate by a click on New➲ Choose m enu File-> Im port from File➲ Select file piston1res.m ed in
/root /tm p/piston1➲ Expand the piston1res object to view
the content of the file
![Page 39: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/39.jpg)
Post processing
![Page 40: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/40.jpg)
Post processing (2 )
➲ Right click Solut ionDepl... -> 0,Inconnue... and choose Scalar Map
➲ Validate the default choices.➲ Right click scalar m ap, choose proper-
t ies -> opacity & enter 75.➲ Right click Solut ionDepl... ->
0,Inconnue... and choose Deform ed Shape
➲ Enter scale= 1.7e10 and check m agni-tude coloring. Validate
![Page 41: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/41.jpg)
Post Processing (2 )
![Page 42: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/42.jpg)
Post Processing (3 )
➲ Right click Solut ionEqui_Elno_Sigm -> 0,Inconnu and choose scalar m ap
➲ Right click the new Scalar Map object and choose display Only.
➲ Now you can study the VonMises st resses in the center of each ele-m ent .
➲ Try to create other representat ions of the st ress field like IsoSurface or Cut Planes.
![Page 43: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/43.jpg)
Post Processing (3 )
![Page 44: CAElinux An introduction to Salome & Code Aster: a …caelinux.com/downloads/docs/IntroductionTutorial1.pdf · CAElinux An introduction to Salome & Code_Aster: a simple linear statics](https://reader034.fdocuments.us/reader034/viewer/2022050807/5aac8b767f8b9a8f498d2bdb/html5/thumbnails/44.jpg)
CAELinux
Congratu lation , you have fin ished th is first in -troduction to Salom e & Code_Aster.
Don ' t forget to visit our website for m ore in form ations:
www.caelinux.com
J.Cugnon i, CAElinux.com , 2005