Tutorial Getting Started With Code Aster PDF
Tutorial Getting Started With Code Aster PDF
platform
EDF R&D
School of MACE
Manchester University
The objective of that Tutorial is to present Code_Aster and Salome_meca platform and to guide you
through a first simple example.
Code_Aster
Salome_meca
1. Code_Aster and Salome_meca short presentation
Code_Aster Capabilities
Large range of capabilities for structural analysis
Thermal and mechanical analysis
Static and dynamic analysis, linear or non-linear
Modal analysis, harmonic and random response
400 finite element types : 3D, 2D, shells, beams, pipes
Example
When you cannot idealize (too much) the structure : big FEM models
8.5
7.2
mm
mm
2
,
,
13.0m
m
1
m, 4m
8m
34.0m m
m
Cong 2.2mm
x 200
Interne Inf rieur
4m
de la cuve
http://www.code-aster.org
- Define the geometry in the Geometry Salome module. Then mesh it in Mesh module. You can
also do that pre-processing with other tools like Gibi, Ideas, GMSH, any other tool able to
export mesh files in a compatible format.
- Write the command file. You could do that by writing it directly by hand or by using Eficas, a
dedicated tool that allows you to write the file in Salome_Meca.
- Run the calculation, using Astk. The results are saved in .resu file, and messages are in the
.mess file.
A steel cube of sides 0.1m and whose base is fixed is subjected to a 100 MPa pressure, distributed on
its upper face, see the figure below.
0,1 m y
The material is steel with the properties E = 210 000 MPa, = 0.3
The aim of the analysis is to determine the stresses, strains and displacements in the cube, assuming
elastic behaviour.
3. Geometry definition
Run Salome_meca.
You can zoom, translate, rotate the graphical view pushing Ctrl key and using the mouse buttons, or
click on the graphical buttons.
Now that you have defined the geometry you need to define the faces and nodes where your
boundary conditions and loadings are applied.
Use New Entity / Explode
Select Box_1 as the main object. The sub-shapes we want to define are faces. Choose to select the sub
shapes and select the bottom face and them the upper face. Rename the faces: bottom and upper.
4. Mesh definition
Open the mesh module
Name : MAIL
Mesh / compute
Create upper group of faces and bottom group of nodes with Mesh / Create groups from geometry
Open Eficas
You are now going to define the different commands for the finite element analysis. In Eficas you can
select the commands among the listed ones on the right side of the screen and insert them in the file.
The program offers you the different commands and key words and gives you the rules for their use. In
particular it provides information about mandatory and optional inputs.
When you have a question about a command, the best solution is to read the associated
documentation. The use of each command is explained in detail there. The whole Code_Aster
documentation will be available in English by the summer.
You have to name the concept that will be the result of the command: MAIL
Define the format of the mesh with format option: MED in our case
AFFE_MODELE Assigns the elements type and the modelling to the whole mesh or different
parts of it
Select MODELISATION = 3D
I would advise you to always use SI units: it will prevent you from false results arising from mistakes
with units.
AFFE_CHAR_MECA Defines and assigns the boundary conditions and / or the loadings
Select GROUP_NO and choose the bottom face nodes using Salome
interface Select DX, put 0.0 value
Enter PRES=100000000.0
MECA_STATIQUE Performs the static mechanical calculation
We are now going to write the commands to calculate values that we want to post-process.
Take SIGM_NOEU_DEPL
Take EQUI_NOEU_SIGM
Take REAC_NODA
Select UNITE = 80. The logical unit number of the file will be 80
Aster/Tools/Astk
the results file (text file . resu and Med File .rmed),
You can also construct a base that will allow you to save the calculation outputs in order
to use them again to calculate other values or as the initial state of a new calculation. For
each file, default properties are specified : the Logical Unit Number (LU) and if the file
contains data for the calculation (D), results (R) and if it has to be compressed (C).
You can follow the progress of the job clicking on the corresponding box.
Ended OK: it means that the calculation was carried out successfully.
Ended Alarm: the calculation was carried out, but there were alerts that should be checked in the
.mess file.
7. Post processing
Calculate the stresses, strains and displacements of the upper face by hand to be able to compare the
results.
Open Post-Pro Salome module
- Visualize the vertical displacements (choose DEPL field and click on visualization, choose DZ
in Scalar Mode box) with the option deformed shape and scalar Map. You can enlarge the
scale factor to 500 for example. Is the maximum displacement what you expected?
- Visualize the different stresses (choose SIZZ for the vertical ones for example) using cut
planes // X-Y.
- Visualize the equivalent Von Mises stress from the equivalent stresses field, using cut planes.
You can also mesh the cube again, changing elements type or size, run the calculation and compare
the results.