Overview on Salome-Meca and Code_Aster Code_Aster, Salome-Meca course material GNU FDL licence (http://www.gnu.org/copyleft/fdl.html)
Outline General principles of code and platform Presentation of Code_Aster General information for computation 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
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 study data prepared in a text file Pre-processing (CAD, meshes) Data setting of the mechanical problem Creation of finite element model and resolution u,, σ, ε Post-processing of results Input: mesh and data setting Output: physical fields (displacement, strain, stress, temperature ) 4 - Code_Aster and Salome-Meca course material GNU FDL Licence
General principles of code and platform (2/4) Salome is a generic framework for pre- and post-processing Med format Various physical solvers Code_Aster Solver X Solver Y Job manager Supervision, GUI and SDM Salome generic services CAD Mesh Data setting Math. operations Visualization 5 - 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) Advantages Easy 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 tools Importation of meshes and geometries prepared by GEOM and SMESH Salome modules Importation of different input mesh formats and output result formats Possibility for a stand-alone use of Code_Aster solver 6 - Code_Aster and Salome-Meca course material GNU FDL Licence
General principles of code and platform (4/4) Salome-Meca is the integration of the Code_Aster solver in the Salome platform ter module of Salome-Meca CAD module GEOM Mesh module SMESH Solver Code_Aster Visualization module PARAVIS 7 - 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 8 - Code_Aster and Salome-Meca course material GNU FDL Licence
Presentation of Code_Aster An all-purpose code for themo-mechanical study of structures With a wide variety of models More than 400 finite elements: 3D, 2D, shells, beams, pipes More than 100 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 industrial simulation code at EDF Researches: continuous integration of new models in the development versions 9 - Code_Aster and Salome-Meca course material GNU FDL Licence
Code_Aster for advanced simulations Solving three types of non-linear problems Material behaviour: about a hundred nonlinear constitutive laws Kinematic: large displacements, large strains, large rotations Contact and/or friction Advanced features in mechanics Porous media, fracture mechanics, fatigue, damage, metallurgy, seismic analysis, rotating systems... 10 - 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, ZMAT, Aster 11 - Code_Aster and Salome-Meca course material GNU FDL Licence
Code_Aster: a wide range of finite elements Continuum mechanics 3D 2D Linear, quadratic, reduced or full integration plane strain, plane stress, axi-symmetry Integration of non-linear behaviour in plane stress Structural elements 2D elements 1D elements Discrete elements : shells, plates : beams, bars, cables, pipes : masses, springs, dampers Connections and assemblies Linear relationships between degrees of freedom, transmission of torques effort Discontinuous media (cracks and joints) XFEM level-sets Joint elements and CZM (Cohesive Zone Model) 12 - Code_Aster and Salome-Meca course material GNU FDL Licence
Code_Aster: algorithms and analysis methods Mechanical solvers Linear or non-linear static Dynamic on physical basis Modal analysis Dynamic on modal basis : MECA_STATIQUE, STAT_NON_LINE : DYNA_LINE_TRAN, DYNA_NON_LINE : CALC_MODAL, MODE_ITER_* : DYNA_TRAN_MODAL, DYNA_VIBRA Other physics Thermics Acoustics Metallurgy (for welding applications) FSI : fluid-structure interaction Thermo-hydro-mechanical coupling : THER_LINEAIRE, THER_NON_LINE : PHENOMENE ACOUSTIQUE Tools for resolution Substructuring, control of the nonlinear algorithms Several algebraic solvers, sequential or parallel, direct or iterative Post-processing tools : CALC_CHAMP, POST_CHAMP, POST_DYNA_* 13 - 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 14 - Code_Aster and Salome-Meca course material GNU FDL Licence
Stages of a study Step Geometry definition Mesh generation Data setting Computation launching Result analysis General tool CAD modeller Mesh tool Text editor Visualization application, spreadsheet Salome-Meca Salome (GEOM) Salome (SMESH) Eficas, Wizard Astk Salome (PARAVIS) MED mesh files MED result files Code_Aster solving 15 - Code_Aster and Salome-Meca course material GNU FDL Licence
Code_Aster Study Management (1/2) Aster module of Salome-Meca Suitable for simple studies Inputs: One command file One mesh Outputs: A results base Advanced Study manager: ASTK Available in Code_Aster standalone and in Aster module of Salome-Meca Suitable for simple and advanced studies Various inputs Various outputs 16 - Code_Aster and Salome-Meca course material GNU FDL Licence
Code_Aster Study Management (2/2) Aster module of Salome-Meca 17 - Code_Aster and Salome-Meca course material GNU FDL Licence
Creation of a command file (1/4) With a wizard Available in Salome-Meca only 4 wizards in Salome-Meca 2013.1 Linear elastic analysis Modal analysis Linear thermal analysis Crack analysis With the graphical command file editor (Eficas) Provided with Salome-Meca Provided with Code_Aster standalone Cannot handle python control flow instructions (if, for,while) With your favourite text editor (ex: nedit, ) Everything is possible! 18 - 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 19 - Code_Aster and Salome-Meca course material GNU FDL Licence
Creation of a command file (3/4) With the graphical command file editor (Eficas) Overview of the command file Tab to add or change a keyword Tab to name the concept Tab to add a command 20 - Code_Aster and Salome-Meca course material GNU FDL Licence
Creation of a command file (4/4) With your favourite text editor (ex: nedit, ) 21 - 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 22 - Code_Aster and Salome-Meca course material GNU FDL Licence
Data setting and command language (2/3) An example of a command STEEL = DEFI_MATERIAU (ELAS = _F ( E=205000.E6, NU=0.3 ) ) Name of the concept User choice Command Factor keyword Simple keyword Argument of the simple keyword An other example IMPR_RESU( RESU = _F ( RESULTAT = RESU ) ) No concept is produced Command Factor keyword Simple keyword Argument of the simple keyword 23 - Code_Aster and Salome-Meca course material GNU FDL Licence
Data setting and command language (3/3) «reuse» keyword is used to extend an existing concept MESH = LIRE_MAILLAGE ( FORMAT = MED ) MESH = DEFI_GROUP ( reuse = MESH, MAILLAGE = MESH, CREA_GROUP_NO = _F (GROUP_MA = upper )) Reuse of the MA concept defined by LIRE_MAILLAGE Indicator of a factor keyword Since commands are sequential, a concept must be created before being used 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,),) 24 - 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 from making 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 25 - 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 26 - 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 version Date and time of execution Machine and system Assigned memory Summary execution, command by command Error, warning or information messages 27 - Code_Aster and Salome-Meca course material GNU FDL Licence
Astk GUI for computation launching (1/4) GUI Management Study Files of current study File settings ; unit, data file, result file, compression, Run settings 28 - Code_Aster and Salome-Meca course material GNU FDL Licence
Astk GUI for computation launching (2/4) Each file has an associated "type" Command file 29 - Code_Aster and Salome-Meca course material GNU FDL Licence Mesh file Here in MED format base Folder containing files (compressed or not) allowing the recovery of the calculation Message file Verbatim report of the computation, information, alarms and errors Result file Text file containing the prints in this format File containing calculated fields Here in MED format
Astk GUI for computation launching (3/4) Input file Output file Compressed file Each file can be input (data), output (result), or both (case of the base) Each type of file has a "logical unit" assigned by default. The value can be changed with caution. 30 - Code_Aster and Salome-Meca course material GNU FDL Licence
Astk GUI for computation launching (4/4) File forma01a.comm DEBUT() MESH1 = LIRE_MAILLAGE( UNITE = 20 ) MESH2 = LIRE_MAILLAGE( FORMAT = 'MED', FIN() UNITE = 21 ) In case of multiple files of the same type (mesh, command file, results), attention to conflicts of "logical units" 31 - Code_Aster and Salome-Meca course material GNU FDL Licence
Adding test-cases into Salome-Meca installation 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/STA10.8/astest Pay attention to the release number 32 - 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) 33 - 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. 34 - Code_Aster and Salome-Meca course material GNU FDL Licence