Your Feedback on Code Aster !

@johan check if Strand7 will be in your budget.

@AsterO’dactyle

Thanks for the reply. I see Salome -Meca as an integrated suite of programs and certainly hope that the people responsible for Salome would read my post.

Thanks for the orientation clarification.

Regarding linking elements, I found what I was looking for in LIAISON_MAIL. (I should have read the new U4.44.01 gitlab before I made the comment.) Having found this I thought I will test it on a simple model, just to be confronted with a new surprise: AFFE_CHAR_MECA does not apply the load where I intended it to be. The message is:


MAILLE : M97

MAILLE : M98

MAILLE : M99

MAILLE : M100

║ <MODELISA6_96>

║

║ les 4 mailles imprimées ci-dessus n’appartiennent pas au modèle

║ et pourtant elles ont été affectées dans le mot-clé facteur : FORCE_ARETE


while my intention was to apply it to edge group “Load” elements 335 to 338.

My first question always is “What am I doing wrong.” and in a real simulation it takes a lot of time and effort to find an alternative, if there is one, to get past the error. The alternative is that it confirms my first point.

I have used Salome_Meca 2023 with the default version of Code Aster. I attach my mesh and command files and will appreciate comments on it . (I can’t upload the file, I will post a link to it.)

@johan

The link to my file is:

@k_zurawski

It is a long time since I have last looked at Strand7,but will do so again. I am also using Mecway, which I find very good for small models and it is very user friendly.

HEllo,

If you have specific questions, it is best to make a new post.

COMPOR1_47 => The finite element formulation does not allow for large rotations, as specified in the theoretical documentation (r3.07.05). They must remain less than 360°.

contact + arc-length: This is a very difficult theoretical problem. To my knowledge, the only case that can be dealt with without too much difficulty is penalized contact (see the work of Wriggers).

Do you know if Simvia is working on resolving those issues?: The code_aster development team has no connection with SIMVIA; you’ll have to check with them. I believe they have released a version on Docker.

@johan : When applying a load (NEumann), a finite element support is required (weak formulation). In code_aster, this means that the meshes to which you assign these loads must be in the MODELE. You must therefore assign the group “Load” to which the load is applied in AFFE_MODELE.

@AsterO’dactyle COMPOR1_47 => The finite element formulation does not allow for large rotations, as specified in the theoretical documentation (r3.07.05). They must remain less than 360°.

I’m getting this error even if rotation is around few degrees.

@johan try prepomax as well.

@AsterO’dactyle

Thanks for the reply again, but I think there is a bit of misunderstanding.

Edge group “Load” is created in the mesh module, is recognized in Aster Study and shows correctly in “Mesh groups involved” in AFFE_CHAR_MECA. It appears to me that the element assignment has changed somewhere before it got to Code Aster.

I have never created a mesh group in AFFE_MODELE simply because it is so easy to do it in the geometry or mesh modules.

Yes, misunderstanding

model = AFFE_MODELE(identifier=‘2:1’,

                AFFE=(_F(GROUP_MA=('Solid','Load' ), <===== HERE

                         MODELISATION='3D',

                         PHENOMENE='MECANIQUE'),

                      _F(GROUP_MA=('Plate', ),

                         MODELISATION='COQUE_3D',

                         PHENOMENE='MECANIQUE')),

                MAILLAGE=mesh1)

(I don’t know is Load is on 3D or COQUE_3D)

@k_zurawski

Yes, the message is systematic because it cannot measure rotations since… they are poorly modelled by the element.

It’s going round in circles!

We could change it to simple information instead of an alarm.

@AsterO’dactyle

Thanks again.

I should have been more specific: I need to connect COQUE edges to Solid faces. It appears that one can only connect coque faces to solids?

My commands now are:

model = AFFE_MODELE(AFFE=(_F(GROUP_MA=(‘LinkF’, ‘Solid’),

                         MODELISATION='3D',

                         PHENOMENE='MECANIQUE'),

                      _F(GROUP_MA=('Load', 'LinkE', 'Plate'),

                         MODELISATION='COQUE_3D',

                         PHENOMENE='MECANIQUE')),

                DISTRIBUTION=_F(METHODE='SOUS_DOMAINE',

                                PARTITIONNEUR='METIS'),

                INFO=1,

                MAILLAGE=mesh1,

                VERI_JACOBIEN='OUI',

                VERI_NORM_IFS='OUI')

and

mecach = AFFE_CHAR_MECA(DOUBLE_LAGRANGE=‘OUI’,

                    FORCE_ARETE=_F(FZ=-16.7,

                                   GROUP_MA='Load'),

                    INFO=1,

                    LIAISON_MAIL=_F(ELIM_MULT='OUI',

                                    GROUP_MA_ESCL='LinkF',

                                    GROUP_MA_MAIT='LinkE',

                                    TYPE_RACCORD='MASSIF_COQUE'),

                    MODELE=model,

                    VERI_AFFE='OUI',

                    VERI_NORM='OUI')

╔════════════════════════════════════════════════════════════════════════════════════════════════╗

║ <PROJECTION4_55> ║

║ ║

║ Il n’y a pas de mailles à projeter ou en correspondance. ║

║ Dans le cas de l’utilisation de AFFE_CHAR_MECA / LIAISON_MAIL, les mailles maîtres ║

║ doivent avoir la même dimension que l’espace de modélisation : ║

║ - mailles volumiques pour un modèle 3D ║

║ - mailles surfaciques pour un modèle 2D ║

╚════════════════════════════════════════════════════════════════════════════════════════════════╝

@johan to do that you may use rigid connection - LIAISON_SOLIDE, which is probably the closest to RBE2 from Nastran. Prepare two groups, one on the face of the solid and second on the edge of the shell you’d like to connect, then list them both, for example:

`Rigid=AFFE_CHAR_MECA(MODELE=Model,

                    LIAISON_SOLIDE=_F(GROUP_MA=('SHELL_EDGE','SOLID_FACE',),),),`

Then you also call it in calculation like any other BC in EXCIT.

`Result=MECA_STATIQUE(MODELE=Model,

                CHAM_MATER=MatField,

                CARA_ELEM=Cara,

                EXCIT=(_F(CHARGE=fixed,),

                       _F(CHARGE=Rigid,),

                       _F(CHARGE=Moment,),),)`

Shell has 6 DOF, solid 3 DOF - LIAISON_SOLIDE is the simplest way to transfer bending moment to the solid model.

@AsterO’dactyle Yes, the message is systematic because it cannot measure rotations since… they are poorly modelled by the element.

Could you tell more about that? Is it related to mesh quality or some inverted elements I didn’t notice?

@k_zurawski

Thank you Krzysztof, I never thought of that one. Will try it.

Hi,

Code Aster & Asterstudy both are great softwares, and I like them so much. Meanwhile, I like humorous French people, I love romantic France, though I know little about the French language. Now, I’ve got to know LIRE_MAILLAGE = READ_MESH. I think if there is an version of Asterstudy with operators named with the English language, it will be quite easilier to learn & use, and the number of the users of Code Aster & Asterstudy will increase dramatically.

Best wishes!

Phoenix

@AsterO’dactyle

i read some doc about random vibration .

i can’t get stress results.

DEBUT(CODE=_F(NIV_PUB_WEB='INTERNET'),
      DEBUG=_F(SDVERI='OUI'))

nb_modes = 20

liste_modes = tuple(range(1, nb_modes + 1))

liste_amort = tuple([0.02] * nb_modes)

MAIL = LIRE_MAILLAGE(FORMAT='MED',
                     UNITE=2)

MODEL = AFFE_MODELE(AFFE=_F(MODELISATION='3D',
                            PHENOMENE='MECANIQUE',
                            TOUT='OUI'),
                    MAILLAGE=MAIL)

ACIER = DEFI_MATERIAU(ELAS=_F(E=210000000000.0,
                              NU=0.3,
                              RHO=7800.0))

CHMAT = AFFE_MATERIAU(AFFE=_F(MATER=ACIER,
                              TOUT='OUI'),
                      MAILLAGE=MAIL)

ACCE_PSD = DEFI_FONCTION(NOM_PARA='FREQ',
                         NOM_RESU='DSP',
                         PROL_DROITE='CONSTANT',
                         PROL_GAUCHE='CONSTANT',
                         VALE=(1.0, 0.0, 20.0, 0.0, 20.01, 96.24, 80.0, 96.24, 350.0, 96.24, 2000.0, 96.24, 2000.01, 0.0))

BLOCAGE = AFFE_CHAR_MECA(DDL_IMPO=_F(DX=0.0,
                                     DY=0.0,
                                     DZ=0.0,
                                     GROUP_NO='BASE'),
                         MODELE=MODEL)

RIGIELEM = CALC_MATR_ELEM(CHAM_MATER=CHMAT,
                          CHARGE=BLOCAGE,
                          MODELE=MODEL,
                          OPTION='RIGI_MECA')

MASSELEM = CALC_MATR_ELEM(CHAM_MATER=CHMAT,
                          CHARGE=BLOCAGE,
                          MODELE=MODEL,
                          OPTION='MASS_MECA')

NUMEDDL = NUME_DDL(MATR_RIGI=RIGIELEM)

RIGIDITE = ASSE_MATRICE(MATR_ELEM=RIGIELEM,
                        NUME_DDL=NUMEDDL)

MASSE = ASSE_MATRICE(MATR_ELEM=MASSELEM,
                     NUME_DDL=NUMEDDL)

CHAR_SEIS = CALC_CHAR_SEISME(DIRECTION=(1.0, 0.0, 0.0),
                             MATR_MASS=MASSE,
                             MONO_APPUI='OUI')

MODES = CALC_MODES(CALC_FREQ=_F(NMAX_FREQ=nb_modes),
                   MATR_MASS=MASSE,
                   MATR_RIGI=RIGIDITE,
                   OPTION='PLUS_PETITE',
                   VERI_MODE=_F(STOP_ERREUR='NON'))

MODES = CALC_CHAMP(reuse=MODES,
                   CHAM_MATER=CHMAT,
                   CONTRAINTE='SIGM_ELNO',
                   MODELE=MODEL,
                   RESULTAT=MODES)

SPECTRE = DEFI_INTE_SPEC(DIMENSION=1,
                         PAR_FONCTION=_F(FONCTION=ACCE_PSD,
                                         NUME_ORDRE_I=1,
                                         NUME_ORDRE_J=1))

DYNA_DEPL = DYNA_ALEA_MODAL(BASE_MODALE=_F(AMOR_REDUIT=liste_amort,
                                           MODE_MECA=MODES,
                                           NUME_ORDRE=liste_modes),
                            EXCIT=_F(CHAM_NO=CHAR_SEIS,
                                     GRANDEUR='EFFO',
                                     INTE_SPEC=SPECTRE,
                                     NUME_ORDRE_I=1),
                            REPONSE=_F(DERIVATION=0,
                                       FREQ_MAX=2000.0,
                                       FREQ_MIN=1.0,
                                       PAS=1.0))

REP_DEPL = REST_SPEC_PHYS(GROUP_NO='SPECIMEN',
                          INTE_SPEC_GENE=DYNA_DEPL,
                          MODE_MECA=MODES,
                          NOM_CHAM='DEPL',
                          NOM_CMP='DX',
                          OPTION='DIAG_DIAG',
                          TOUT_ORDRE='OUI')

REP_SIGM = REST_SPEC_PHYS(BANDE=(1.0, 2000.0),
                          GROUP_MA=('V214', 'V239'),
                          GROUP_NO=('N100', 'N47'),
                          INTE_SPEC_GENE=DYNA_DEPL,
                          MODE_MECA=MODES,
                          NOM_CHAM=('SIGM_ELNO', ),
                          NOM_CMP=('SIXX', ),
                          OPTION='DIAG_DIAG',
                          TOUT_ORDRE='OUI')

DEPL_N100 = RECU_FONCTION(INTE_SPEC=REP_DEPL,
                          NOEUD_I='N100',
                          NOM_CMP_I='DX')

RMS_DEPL = INFO_FONCTION(RMS=_F(FONCTION=DEPL_N100,
                                METHODE='TRAPEZE'))

SIGM_FUNC = RECU_FONCTION(INTE_SPEC=REP_SIGM,
                          NOEUD_I='N100',
                          NOM_CMP_I='SIXX')

RMS_SIGM = INFO_FONCTION(RMS=_F(FONCTION=SIGM_FUNC,
                                METHODE='TRAPEZE'))

#comment: IMPR_TABLE(TABLE=RMS_DEPL,
#comment:            UNITE=8)

#comment: IMPR_TABLE(TABLE=RMS_SIGM,
#comment:            UNITE=8)

IMPR_FONCTION(COURBE=_F(FONCTION=SIGM_FUNC,
                        LEGENDE='Stress PSD'),
              FORMAT='TABLEAU',
              TITRE='Stress Response PSD',
              UNITE=4)

DYNA_VITE = DYNA_ALEA_MODAL(BASE_MODALE=_F(AMOR_REDUIT=liste_amort,
                                           MODE_MECA=MODES,
                                           NUME_ORDRE=liste_modes),
                            EXCIT=_F(CHAM_NO=CHAR_SEIS,
                                     GRANDEUR='EFFO',
                                     INTE_SPEC=SPECTRE,
                                     NUME_ORDRE_I=1),
                            REPONSE=_F(DERIVATION=1,
                                       FREQ_MAX=2000.0,
                                       FREQ_MIN=1.0,
                                       PAS=1.0))

REP_VITE = REST_SPEC_PHYS(GROUP_NO='SPECIMEN',
                          INTE_SPEC_GENE=DYNA_VITE,
                          MODE_MECA=MODES,
                          NOM_CHAM='VITE',
                          NOM_CMP='DX',
                          OPTION='DIAG_DIAG',
                          TOUT_ORDRE='OUI')

VITE_N100 = RECU_FONCTION(INTE_SPEC=REP_VITE,
                          NOEUD_I='N100',
                          NOM_CMP_I='DX')

RMS_VITE = INFO_FONCTION(RMS=_F(FONCTION=VITE_N100,
                                METHODE='TRAPEZE'))

#comment: IMPR_TABLE(TABLE=RMS_VITE,
#comment:            UNITE=8)

DYNA_ACCE = DYNA_ALEA_MODAL(BASE_MODALE=_F(AMOR_REDUIT=liste_amort,
                                           MODE_MECA=MODES,
                                           NUME_ORDRE=liste_modes),
                            EXCIT=_F(CHAM_NO=CHAR_SEIS,
                                     GRANDEUR='EFFO',
                                     INTE_SPEC=SPECTRE,
                                     NUME_ORDRE_I=1),
                            REPONSE=_F(DERIVATION=2,
                                       FREQ_MAX=2000.0,
                                       FREQ_MIN=1.0,
                                       PAS=1.0))

REP_ACCE = REST_SPEC_PHYS(GROUP_NO='SPECIMEN',
                          INTE_SPEC_GENE=DYNA_ACCE,
                          MODE_MECA=MODES,
                          NOM_CHAM='ACCE',
                          NOM_CMP='DX',
                          OPTION='DIAG_DIAG',
                          TOUT_ORDRE='OUI')

ACCE_N100 = RECU_FONCTION(INTE_SPEC=REP_ACCE,
                          NOEUD_I='N100',
                          NOM_CMP_I='DX')

RMS_ACCE = INFO_FONCTION(RMS=_F(FONCTION=ACCE_N100,
                                METHODE='TRAPEZE'))

#comment: IMPR_TABLE(TABLE=RMS_ACCE,
#comment:            UNITE=8)

#comment: IMPR_FONCTION(COURBE=(_F(FONCTION=DEPL_N100,
#comment:                          LEGENDE='Displacement PSD'),
#comment:                       _F(FONCTION=VITE_N100,
#comment:                          LEGENDE='Velocity PSD'),
#comment:                       _F(FONCTION=ACCE_N100,
#comment:                          LEGENDE='Acceleration PSD')),
#comment:               FORMAT='TABLEAU',
#comment:               TITRE='Response PSD at Node N100',
#comment:               UNITE=8)

table = POST_DYNA_ALEA(INTERSPECTRE=_F(INTE_SPEC=DYNA_DEPL,
                                       MOMENT=(2, ),
                                       OPTION='DIAG'))

IMPR_TABLE(TABLE=table,
           UNITE=3)

FIN()