next up previous contents
Next: NASTRAN Procedure Up: Modal Element Data Previous: FEM File Format   Contents


Code Aster Procedure

The fem_data_file can be generated by Code Aster, using the macro provided in the cms.py file, which is located in directory contrib/CodeAster/cms/ of the distribution, and is installed in directory $PREFIX/share/py/.

Preparing the input for Code Aster essentially requires to prepare the bulk of the mesh either manually or using some meshing tools (e.g. gmsh), as illustrated in the related documentation and tutorials, and then writing a simple script in python (http://www.python.org/) that defines the execution procedure.

To produce the data for MBDyn's modal element, a specific macro needs to be invoked during the execution of Aster. The macro instructs Aster about how the solution procedure needs to be tailored to produce the desired results, and then generates the .fem file with all the requested data.

The steps of the procedure are as follows:

  1. prepare a Code Aster input model (the .mail file), containing the nodes, the connections and at least a few groups of nodes, as indicated in the following;

  2. prepare a Code Aster command file (the .comm file), following, for example, one of the given templates;

  3. as soon as the model, the materials, the element properties and any optional boundary constrains are defined, call the CMS macro with the appropriate parameters. The syntax of the macro is:
        CMS(
            MAILLAGE = <mesh concept> ,
            [ INTERFACE = <interface node set name> , ]
            EXPOSED = _F( { GROUP_NO = <exposed node set name> | TOUT = 'OUI' } ),
            MODELE = <model concept> ,
            CARA_ELEM = <element properties concept> ,
            CHAM_MATER = <material properties concept> ,
            [ CHAR_MECA = <boundary conditions concept> ,
            [ OPTIONS = _F(
                [ NMAX_FREQ = <maximum number of frequencies> ]
            ), ]
            OUT = _F(
                TYPE = { 'MBDYN' },
                    [ PRECISION = <number of digits> , ]
                    [ DIAG_MASS = { 'OUI' | 'NON' } , ]
                    [ RIGB_MASS = { 'OUI' | 'NON' } , ]
                    FICHIER = <output file name> 
            )
        );
    
    where: the macro returns a python object consisting in the generalized model it used to generate the file, as returned by MACR_ELEM_DYNA.

  4. prepare a .export file, either following the examples or using astk;

  5. run Aster.

Annotated examples are provided in directory contrib/CodeAster/cms/.


next up previous contents
Next: NASTRAN Procedure Up: Modal Element Data Previous: FEM File Format   Contents
MBDyn: MultiBody Dynamics Software
Document version: 1.3.13
Last update: Wed Mar 3, 2010
Maintained by mbdyn@aero.polimi.it