Code_Aster, Salome-Meca course materialGNU FDL licence (http://www.gnu.org/copyleft/fdl.html)
Presentation of code_aster and Salome-
Meca
2 - Code_Aster and Salome-Meca course material GNU FDL Licence
Outline
General principles of code and platform
Presentation of code_aster
General information for computation
3 - Code_Aster and Salome-Meca course material GNU FDL Licence
Outline
General principles of code and platform
Presentation of code_aster
General information for computation
4 - Code_Aster and Salome-Meca course material GNU FDL Licence
General principles of code and platform (1/4)
code_aster is a « stand-alone » thermo-mechanical solver No integrated GUI to create geometries and meshes
No colourful post-processing
With the data settings prepared in a text file
Input: mesh and data setting
Output: physical fields (displacement, strain, stress, temperature …)
Pre-processing
(CAD, meshes)
Data setting of the
mechanical problem
Creation of finite
element model and
resolution
Post-processing
of results
u, s, e …
5 - Code_Aster and Salome-Meca course material GNU FDL Licence
SALOME is a generic framework for pre- and post-processing
General principles of code and platform (2/4)
Salome
generic
servicesCAD Mesh
Data
setting
Math.
operations
Visuali-
zation
Supervision, GUI and SDM
code_asterVarious
physical
solversSolver X Solver Y
Job
manager
Med
format
6 - Code_Aster and Salome-Meca course material GNU FDL Licence
General principles of code and platform (3/4)
code_aster is a thermo-mechanical solver
SALOME is a generic platform for physical simulations
Salome-Meca = SALOME + code_aster (software integration)
AdvantagesEasy installation of a complete environment (linux only)
A consistent and continuous user experience
Access from different modules to main SALOME study elements: meshes, results
Graphical selection of topological entities for data setting of code_aster
Possibility of using different pre- and post-processing tools
Importation of meshes and geometries prepared by Geometry and Mesh modules of SALOME
Importation of different input mesh formats and output result formats
Possibility for a “stand-alone” use of code_aster solver
Salome-Meca is the integration of the code_aster solver in the
SALOME platform including the AsterStudy module for
Computer Aided Engineering (CAE)
7 - Code_Aster and Salome-Meca course material GNU FDL Licence
General principles of code and platform (4/4)
CAD module
Geometry
Mesh module
Mesh
code_aster GUI module
AsterStudyVisualization module
ParaViS
8 - Code_Aster and Salome-Meca course material GNU FDL Licence
Outline
General principles of code and platform
Presentation of code_aster
General information for computation
9 - Code_Aster and Salome-Meca course material GNU FDL Licence
Presentation of code_aster
An all-purpose code for themo-mechanical study of structuresWith a wide variety of models
More than 400 finite elements: 3D, 2D, shells, beams, pipes …
More than 200 constitutive laws
A wide range of solvers: mechanical statics and dynamics, vibrations, modal and harmonic analysis,
thermo-hydro-mechanical coupled problems, thermics, metallurgy, acoustics …
A computational software used by engineers, experts and researchers
Studies: a need of a robust, reliable, tested and qualified mechanical simulation software at EDF
Researches: continuous integration of new models in the development version
10 - Code_Aster and Salome-Meca course material GNU FDL Licence
code_aster for advanced simulations
Solving three types of non-linear problemsMaterial behaviour: around two hundred nonlinear constitutive laws
Kinematics: large displacements, large strains, large rotations
Contact and/or friction
Advanced features in mechanicsPorous media, fracture mechanics, fatigue, damage, metallurgy, seismic analysis,
rotating systems ...
11 - Code_Aster and Salome-Meca course material GNU FDL Licence
code_aster: a wide range of behaviours
Elasticity and elasto-plasticity'ELAS‘, ELAS_HYPER‘, 'VMIS_ISOT_TRAC‘, 'VMIS_ISOT_PUIS‘, 'VMIS_ISOT_LINE‘, 'VMIS_CINE_LINE‘, 'VMIS_ECMI_TRAC‘, 'VMIS_ECMI_LINE, 'VMIS_CIN1_CHAB‘,
'VMIS_CIN2_CHAB‘, 'VMIS_CIN2_MEMO‘, 'DIS_CHOC‘, 'VMIS_POU_LINE‘, 'VMIS_POU_FLEJOU‘, 'ARME‘, 'ASSE_CORN‘, 'DIS_GOUJ2E_PLAS‘, 'DIS_GOUJ2E_ELAS‘,
'VMIS_ASYM_LINE‘, 'DIS_ECRO_CINE ‘, 'DIS_BILI_ELAS‘
Elasto-viscoplasticity'VISC_ISOT_LINE‘, 'VISC_ISOT_TRAC‘, 'LEMAITRE‘, 'DIS_VISC‘, 'VISC_CIN1_CHAB‘, 'VISC_CIN2_CHAB‘, 'VISC_CIN2_MEMO‘, 'VISCOCHAB‘ , 'NORTON_HOFF‘,
'VISC_TAHERI‘, 'MONOCRISTAL‘, 'POLYCRISTAL‘
Materials for nuclear fuel and metals under irradiation'VISC_IRRA_LOG‘, 'GRAN_IRRA_LOG‘, 'GATT_MONERIE‘, 'LEMAITRE_IRRA‘, 'LMARC_IRRA‘, 'LEMA_SEUIL‘, 'IRRAD3M‘, 'DIS_GRICRA‘
Models with mechanical effects of metallurgical transformations
Fracture mechanics and damage models'ENDO_FRAGILE‘, 'ROUSSELIER', 'ROUSS_PR', 'ROUSS_VISC‘, 'VENDOCHAB‘, 'VISC_ENDO_LEMA‘, 'CZM_EXP_REG‘, 'CZM_LIN_REG‘, 'CZM_EXP‘, 'CZM_OUV_MIX' ,
'CZM_TAC_MIX‘, 'CZM_TRA_MIX' , 'CZM_FAT_MIX‘, 'RUPT_FRAG‘, 'JOINT_MECA_RUPT‘, 'JOINT_MECA_FROT‘,'ENDO_HETEROGENE‘
Concrete, reinforced concrete, civil engineering models'ENDO_ISOT_BETON‘, 'ENDO_SCALAIRE‘,'ENDO_CARRE' , 'ENDO_ORTH_BETON‘, 'MAZARS‘, 'BETON_DOUBLE_DP‘, 'LABORD_1D‘, 'GRILLE_ISOT_LINE‘,
'GRILLE_CINE_LINE‘, 'GRILLE_PINTO_MEN‘, 'PINTO_MENEGOTTO‘, 'GLRC_DAMAGE‘, 'GLRC_DM' , 'CORR_ACIER' , 'BETON_REGLE_PR‘, 'JOINT_BA' , 'GRANGER_FP‘,
'GRANGER_FP_V‘, 'GRANGER_FP_INDT' , 'BETON_UMLV_FP‘, 'BETON_RAG'
Geomaterials'ELAS_GONF ‘, 'CJS ' , 'LAIGLE ‘, 'LETK ‘, 'HOEK_BROWN' , 'HOEK_BROWN_EFF‘, ‘HOEK_BROWN_TOT ’ , 'CAM_CLAY ‘, 'BARCELONE ’ , 'DRUCK_PRAGER' ,
'DRUCK_PRAG_N_A' , 'VISC_DRUC_PRAG, 'HUJEUX ‘, 'JOINT_BANDIS '
Multi-physics: thermo-hydro-mechanical, concrete, metallurgy
User materials : UMAT, MFront, Aster
12 - Code_Aster and Salome-Meca course material GNU FDL Licence
code_aster: a wide range of finite elements
Continuum mechanics3D
Linear, quadratic, reduced or full integration
2D
plane strain, plane stress, axi-symmetry
Integration of non-linear behaviour in plane stress
Structural elements2D elements : shells, plates
1D elements : beams, bars, cables, pipes
Discrete elements : masses, springs, dashpots
Connections and assembliesLinear relationships between degrees of freedom, transmission of torque
Discontinuous media (cracks and joints)XFEM level-sets
Joint elements and CZM (Cohesive Zone Model)
13 - Code_Aster and Salome-Meca course material GNU FDL Licence
code_aster: algorithms and analysis methods
Mechanical solversLinear or non-linear statics : MECA_STATIQUE, STAT_NON_LINE
Dynamics on physical basis : DYNA_VIBRA, DYNA_NON_LINE
Modal analysis : CALC_MODES
Dynamic on modal basis : DYNA_VIBRA
Other physicsThermics : THER_LINEAIRE, THER_NON_LINE
Acoustics : PHENOMENE=‘ACOUSTIQUE’
Metallurgy (for welding applications)
FSI : fluid-structure interaction
Thermo-hydro-mechanical coupling (porous media modelling)
Tools for resolutionSubstructuring, control of the nonlinear algorithms
Several algebraic solvers, sequential or parallel, direct or iterative
Post-processing tools : CALC_CHAMP, POST_CHAMP, …
14 - Code_Aster and Salome-Meca course material GNU FDL Licence
Outline
General principles of code and platform
Presentation of code_aster
General information for computation
15 - Code_Aster and Salome-Meca course material GNU FDL Licence
Stages of a study
Step Salome-Meca code_aster standalone
Geometry definition SALOME (Geometry) CAD modeller
Mesh generation SALOME (Mesh) Mesh tool
Data settings
SALOME (AsterStudy)
Text editor
Computation launching
and survey
Result analysis SALOME (ParaViS) Visualization application,
spreadsheet …
code_aster
solving
MED mesh MED result
16 - Code_Aster and Salome-Meca course material GNU FDL Licence
AsterStudy integrated GUI for code_aster in
SALOME Platform (1/2)
Case management:
Data settings:
Graphical data setting with strong mesh
interaction
Text mode with custom embedded text
editor for high level command file edition
(python loops, code_aster data structure
introspection …)
Data files:
Automatic input and output files
management in graphical mode
Custom management by user in advanced
text mode
17 - Code_Aster and Salome-Meca course material GNU FDL Licence
AsterStudy Integrated GUI for code_aster in
SALOME Platform (2/2)
Case computation:
Launch computation:
Choose which stages of a
study case to launch
Set properties for a run
(code_aster version, memory
allocation, cluster or localhost
execution)
Survey and management of running case:
Interactive follow up of computation
Graphical display of relation between running cases
Access to output and message file from a run case
Case View tab overview :
18 - Code_Aster and Salome-Meca course material GNU FDL Licence
Data Settings management
Data Files management
Main commands
sort in categories
Stage management
Stages 1 and 2: stages are used to
divide a case, here thermal analysis and
then mechanical analysis
Show all commands
available
19 - Code_Aster and Salome-Meca course material GNU FDL Licence
Data settings:
Graphical command editionAdd
commentary
Show only filled
keyword
Information on
keyword
Go to
documentation
Rules
representation
Mandatory keyword
Switch
Aster/Skill-
oriented
language
20 - Code_Aster and Salome-Meca course material GNU FDL Licence
Graphical command edition
Factor keyword
summary and
edition button
Search tool
for keyword Depth of edition
Unfold the list of
factor keyword
occurrences
Add factor
keyword
occurence
21 - Code_Aster and Salome-Meca course material GNU FDL Licence
Graphical mesh interaction
Add mesh from a
file
Available meshes
from Mesh module
Group selection
synchronized with
group visualization
Group selection
widget, with automatic
group detection
22 - Code_Aster and Salome-Meca course material GNU FDL Licence
Graphical Python variables definition
Add simple Python variable
All Python variables are stored at
the beginning of each stage
Python variable edition panel
23 - Code_Aster and Salome-Meca course material GNU FDL Licence
Case View:
Advanced text mode command file editionSwitch to text mode for advanced
command file edition
Custom embedded editor (command completion, syntax
coloring…)
24 - Code_Aster and Salome-Meca course material GNU FDL Licence
Data setting and command language (1/3)
Command file is ALSO a python
scriptHowever, we should only focus on the
code_aster commands
Command file composes of a
sequence of code_aster specific
commandsEach specific command composes of keywords
and defines, assigns or uses data as input
Most of the commands produce
"concepts"On the left side of the equal sign ( = )
The concepts generated by one command can
be used as an input to the following command
Command file contains no geometry
description
25 - Code_Aster and Salome-Meca course material GNU FDL Licence
An example of a command
STEEL = DEFI_MATERIAU (ELAS = _F ( E=205000.E6, NU=0.3 ) )
An other example IMPR_RESU( RESU = _F ( RESULTAT = RESU ) )
Data setting and command language (2/3)
Name of the concept
User choiceCommand Factor
keyword
Simple keyword Argument
of the simple keyword
No concept
is produced
Command Factor
keywordSimple keyword Argument
of the simple keyword
26 - Code_Aster and Salome-Meca course material GNU FDL Licence
« reuse » keyword is used to extend an existing conceptMESH = LIRE_MAILLAGE ( FORMAT = ‘MED’ )
MESH = DEFI_GROUP ( reuse = MESH,
MAILLAGE = MESH,
CREA_GROUP_NO = _F (GROUP_MA = ‘upper’ ))
Since commands are sequential, a concept must be created before being used
Data setting and command language (3/3)
Reuse of the MA concept
defined by LIRE_MAILLAGE Indicator of a factor keyword
MESH = LIRE_MAILLAGE()
STEEL = DEFI_MATERIAU(ELAS = _F( E = 205000.0E6,
NU = 0.3, ),)
CHMAT = AFFE_MATERIAU(MAILLAGE=MESH,
AFFE =_F(TOUT='OUI',
MATER=STEEL,),)
27 - Code_Aster and Salome-Meca course material GNU FDL Licence
Data Settings: code_aster input and output files
Input files:
Command file
Meshes:
Aster (.mail)
Med (.med)
Gibi (.mgib)
Ideas (.unv)
GMSH (.msh)
Bases (folder):
Aster base or HDF
Various data in text format
Output files:
Aster Message file
Aster Result file
Output format:
Med (.med)
Ideas (.unv)
GMSH (.msh)
others …
Bases (folder):
Aster base or HDF
Various results in text
format
28 - Code_Aster and Salome-Meca course material GNU FDL Licence
Data files: Graphical mode
Directly add files in
command edition panel
File summary for stage forma01a
Command related with the file
forma01a.mmed
29 - Code_Aster and Salome-Meca course material GNU FDL Licence
Data files: Advanced Text Mode
2
Manage file manually
Pay attention to the
correspondance between data
files and command files for
logical units
30 - Code_Aster and Salome-Meca course material GNU FDL Licence
History view tab overview:
Switch to History View
Case management:
Create and import case
Current case
(needs to be
selected for
edition and
launch to be
possible)
List of
previous run
cases
Selection of
stages to be run
Automatically refreshed output
of the calculation for the currently
selected case
31 - Code_Aster and Salome-Meca course material GNU FDL Licence
Selection of the stages to be run
Stage 1 will be run ( ) and may be used to
restart a computation (« Reusable »)
Neither stage 2 nor stage 3 will be run ( )
Stage 1 won’t be executed, only its results
will be reused ( )
Stage 2 will be executed and may be reused
afterwards
Stage 3 won’t be run
Stage 1 won’t be executed, only its results
will be reused
Stage 2 and 3 will be executed jointly and
the results of stage 3 will be reusable
32 - Code_Aster and Salome-Meca course material GNU FDL Licence
Launching of calculations
Free field to
describe the
case to be run
Standard
parameters
Server on which the
calculation is runParallel calculations
settings
Location of
outputs and logs
for each run case
33 - Code_Aster and Salome-Meca course material GNU FDL Licence
Representation of previously run cases
1st run case
2nd run case
3rd run case
34 - Code_Aster and Salome-Meca course material GNU FDL Licence
Follow-up of calculations
Hyperlinks to easily browse
through the ASCII output of
the calculation by stage
To search
the output
Tool tip with the metadata
of a previously run case
including the free
comment field
35 - Code_Aster and Salome-Meca course material GNU FDL Licence
ASTK standalone GUI for computation launching
(1/4)
GUI Management Study
Files of
current
study
Run settingsFile settings ; unit, data file, result file, compression,
36 - Code_Aster and Salome-Meca course material GNU FDL Licence
ASTK standalone GUI for computation launching
(2/4)
Command file
Mesh fileHere in MED format
“base”Folder containing files (compressed or not) allowing the recovery of the calculation
Message fileVerbatim report of the computation, information, alarms and errors
Result fileText file containing the prints in this format
File containing calculated fieldsHere in MED format
Each file has an associated "type"
37 - Code_Aster and Salome-Meca course material GNU FDL Licence
ASTK standalone GUI for computation launching
(3/4)
Each type of file has a "logical unit"
assigned by default. The value can be
changed with caution.
Each file can be input (data),
output (result), or both (case of the
base)
Input file
Output file
Compressed file
38 - Code_Aster and Salome-Meca course material GNU FDL Licence
ASTK standalone GUI for computation launching
(4/4)
File forma01a.commDEBUT()
MESH1 = LIRE_MAILLAGE( UNITE = 20 )
MESH2 = LIRE_MAILLAGE( FORMAT = 'MED',
UNITE = 21 )
FIN()
In case of multiple files of the same type (mesh, command file,
results), attention to conflicts of "logical units"
39 - Code_Aster and Salome-Meca course material GNU FDL Licence
End of presentation
Is something missing or unclear in this document?
Or feeling happy to have read such a clear tutorial?
Please, we welcome any feedbacks about Code_Aster training materials.
Do not hesitate to share with us your comments on the Code_Aster forum
dedicated thread.