Post on 22-Oct-2015
description
Code_Aster, Salome-Meca course materialGNU FDL licence (http://www.gnu.org/copyleft/fdl.html)
Overview on Salome-Meca and Code_Aster
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 meshesNo colourful post-processing
With study data 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 , s, e , s, e , s, e
5 - Code_Aster and Salome-Meca course material GNU FDL Licence
Salome is a generic framework for pre- and post-proc essing
General principles of code and platform (2/4)
Salome generic services
CAD MeshData
settingMath.
operationsVisuali-zation
Supervision, GUI and SDM
Code_AsterVarious physical solvers
Solver X Solver YJob
managerMed
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 simulatio ns
Salome-Meca = Salome + Code_Aster (software integra tion)
AdvantagesEasy installation of a complete framework (linux only)A consistent and continuous graphical environment
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 toolsImportation of meshes and geometries prepared by GEOM and SMESH Salome modulesImportation of different input mesh formats and output result formats
Possibility for a stand-alone use of Code_Aster solver
7 - Code_Aster and Salome-Meca course material GNU FDL Licence
Salome-Meca is the integration of the Code_Aster so lver in the Salome platform
ter module of Salome-Meca
General principles of code and platform (4/4)
CAD moduleGEOM
Mesh moduleSMESH
SolverCode_Aster
Visualization modulePARAVIS
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 100 constitutive lawsA 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 industrial simulation code at EDF
Researches: continuous integration of new models in the development versions
10 - Code_Aster and Salome-Meca course material GNU FDL Licence
Code_Aster for advanced simulations
Solving three types of non-linear problemsMaterial behaviour: about a hundred nonlinear constitutive laws
Kinematic: 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-plasticityELAS, 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-viscoplasticityVISC_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 irradia tionVISC_IRRA_LOG, GRAN_IRRA_LOG, GATT_MONERIE, LEMAITRE_IRRA, LMARC_IRRA, LEMA_SEUIL, IRRAD3M, DIS_GRICRA
Models with mechanical effects of metallurgical tra nsformations
Fracture mechanics and damage modelsENDO_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 mo delsENDO_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
GeomaterialsELAS_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, m etallurgy
User materials : UMAT, ZMAT, 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, dampers
Connections and assembliesLinear relationships between degrees of freedom, transmission of torques effort
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 static : MECA_STATIQUE, STAT_NON_LINE
Dynamic on physical basis : DYNA_LINE_TRAN, DYNA_NON_LINE
Modal analysis : CALC_MODAL, MODE_ITER_*Dynamic on modal basis : DYNA_TRAN_MODAL, DYNA_VIBRA
Other physicsThermics : THER_LINEAIRE, THER_NON_LINE
Acoustics : PHENOMENE ACOUSTIQUE
Metallurgy (for welding applications)FSI : fluid-structure interactionThermo-hydro-mechanical coupling
Tools for resolutionSubstructuring, control of the nonlinear algorithms
Several algebraic solvers, sequential or parallel, direct or iterativePost-processing tools : CALC_CHAMP, POST_CHAMP, POST_DYNA_*
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
AstkComputation launching
Salome (PARAVIS)Visualization application, spreadsheet
Result analysis
Eficas, WizardText editorData setting
Salome (SMESH)Mesh toolMesh generation
Salome (GEOM)CAD modellerGeometry definition
Salome-MecaGeneral toolStep
MED mesh files
MED result files
Code_Astersolving
16 - Code_Aster and Salome-Meca course material GNU FDL Licence
Code_Aster Study Management (1/2)
Aster module of Salome-MecaSuitable for simple studies
Inputs:One command fileOne mesh
Outputs:A results base
Advanced Study manager: ASTKAvailable in Code_Aster standalone and in Aster module of Salome-Meca
Suitable for simple and advanced studies
Various inputsVarious outputs
17 - Code_Aster and Salome-Meca course material GNU FDL Licence
Code_Aster Study Management (2/2)
Aster module of Salome-Meca
18 - Code_Aster and Salome-Meca course material GNU FDL Licence
Creation of a command file (1/4)
With a wizardAvailable in Salome-Meca only4 wizards in Salome-Meca 2013.1
Linear elastic analysisModal analysisLinear thermal analysisCrack analysis
With the graphical command file editor (Eficas)Provided with Salome-MecaProvided with Code_Aster standaloneCannot handle python control flow instructions (if, for,while)
With your favourite text editor (ex: nedit,)Everything is possible!
19 - Code_Aster and Salome-Meca course material GNU FDL Licence
Creation of a command file (2/4)
With a wizard: example of the linear elastic analysis wizard
20 - Code_Aster and Salome-Meca course material GNU FDL Licence
Creation of a command file (3/4)
Overview of the command file
Tab to add or change a keyword
Tab to name the concept
Tab to add a command
With the graphical command file editor (Eficas)
21 - Code_Aster and Salome-Meca course material GNU FDL Licence
Creation of a command file (4/4)
With your favourite text editor (ex: nedit,)
22 - Code_Aster and Salome-Meca course material GNU FDL Licence
Data setting and command language (1/3)Command file is ALSO a python script
However, we should only focus on the Code_Aster commands
Command file composes of a sequence of Code_Aster specific commands
Each 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
23 - 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 choice
Command Factorkeyword
Simple keyword Argumentof the simple keyword
No conceptis produced
Command Factorkeyword
Simple keyword Argumentof the simple keyword
24 - 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 MAconceptdefined 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,),)
25 - Code_Aster and Salome-Meca course material GNU FDL Licence
EFICAS : a user-freindly interface for data setting
A command file can be prepared by a text editor
An EFICAS wizard prevents user frommaking python/syntax errors (parentheses, = sign, indentation ...)frequently looking for command / keyword spelling and connection
The command catalog that describes the command syntax is specific to a given code version
26 - Code_Aster and Salome-Meca course material GNU FDL Licence
Code_Aster input and output files (1/2)
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
27 - Code_Aster and Salome-Meca course material GNU FDL Licence
Code_Aster input and output files (2/2) message and result files report the computation information
General information:Code versionDate and time of executionMachine and systemAssigned memory
Summary execution, command by command
Error, warning or information messages
28 - Code_Aster and Salome-Meca course material GNU FDL Licence
Astk GUI for computation launching (1/4)
GUI Management Study
Files of current
study
Run settingsFile settings ; unit, data file, result file, compr ession,
29 - Code_Aster and Salome-Meca course material GNU FDL Licence
Astk GUI for computation launching (2/4)
Command file
Mesh fileHere in MED format
baseFolder 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"
30 - Code_Aster and Salome-Meca course material GNU FDL Licence
Astk 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
31 - Code_Aster and Salome-Meca course material GNU FDL Licence
Astk 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"
32 - Code_Aster and Salome-Meca course material GNU FDL Licence
Adding test-cases into Salome-Meca installation
Pay attention to the release number
More than 2000 test-cases were developed to verify and validate the development
Test-cases are not included into the Salome-Meca packages due to their very large package size
Test-cases can be downloaded separately from aster-full packages. Then, in the aster-src archive, we have to extract the STA10.8 /astest directory into the suitable directory of the Salome-Meca installation:
~/SALOME-MECA-2013.1 -LGPL/aster/STA 10.8 /astest
33 - Code_Aster and Salome-Meca course material GNU FDL Licence
Browsing test-cases from Astk GUI
After adding test-cases to Salome-Meca installation directory, they can be imported them into Astk. Test-case description can be found in Code_Aster website (V documents)
34 - 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.