Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2017-03-18 22:44:48

pierre_j
Member
Registered: 2010-01-19
Posts: 771

[SOLVED] Adding a new 'MODELISATION'?

Hi,

I am trying to create a new "MODELISATION" that I named "3D_HY".
Here are the steps I followed:
- modifying phenomenons_modelisations.py with following code:

phen.add('3D_HY', Modelisation(dim=(3,3), code='3DH',
    attrs=(
        (AT.NBSIGM,'6'),
        (AT.TYPMOD,'COMP3D'),
    ),
    elements=(
        (MT.HEXA27    , EL.MECA_HEXH27),
        (MT.QUAD9     , EL.MECA_FACE9),
        (MT.SEG3      , EL.MECA_ARETE3),
    )))

- creating meca_3d_hy.py by copying / renaming directly meca_3d.py, and keeping only the class MECA_HEXA27, that I renamed MECA_HEXH27

- to come: modify in this file te number, and create them accordingly...

With the 2 1st steps, I should be able to use MODELISATION="3D_HY" which will actually mean that I am using standard 3D ISO formulation.

However, doing so, I get the message:

 Etape : AFFE_MODELE    ligne : 57    fichier : u'fort.1'
      AFFE
         b_mecanique
            Mot-clé simple : MODELISATION
               !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
               ! La valeur : '3D_HY'  ne fait pas partie des choix possibles (u'2D_DIS_T',         !
               ! u'2D_DIS_TR', u'2D_FLUI_ABSO', u'2D_FLUI_PESA', u'2D_FLUI_STRU', u'2D_FLUIDE',    !
               ! u'3D', u'3D_ABSO', u'3D_FAISCEAU', u'3D_FLUI_ABSO', u'3D_FLUIDE', u'3D_INCO_UPG', !
               !  u'3D_INCO_UPGB', u'3D_INCO_UP', u'3D_INCO_UPO', u'3D_SI', u'3D_GRAD_EPSI',       !
               ! u'3D_GRAD_VARI', u'3D_GVNO', u'3D_JOINT', u'3D_JOINT_HYME', u'3D_INTERFACE',      !
               ! u'3D_INTERFACE_S', u'AXIS', u'AXIS_FLUI_STRU', u'AXIS_FLUIDE', u'AXIS_FOURIER',   !
               ! u'AXIS_INCO_UPG', u'AXIS_INCO_UPGB', u'AXIS_INCO_UP', u'AXIS_INCO_UPO',           !
               ! u'AXIS_SI', u'AXIS_GRAD_VARI', u'AXIS_GVNO', u'AXIS_JOINT', u'AXIS_INTERFACE',    !
               ! u'AXIS_INTERFACE_S', u'AXIS_ELDI', u'BARRE', u'CABLE_GAINE', u'2D_BARRE',         !
               ! u'C_PLAN', u'C_PLAN_SI', u'C_PLAN_GRAD_EPSI', u'CABLE', u'CABLE_POULIE',          !
               ! u'COQUE_3D', u'COQUE_AXIS', u'D_PLAN', u'D_PLAN_GRAD_EPSI', u'D_PLAN_GRAD_VARI',  !
               ! u'D_PLAN_GVNO', u'D_PLAN_GRAD_SIGM', u'PLAN_JOINT', u'PLAN_JOINT_HYME',           !
               ! u'PLAN_INTERFACE', u'PLAN_INTERFACE_S', u'PLAN_ELDI', u'D_PLAN_ABSO',             !
               ! u'D_PLAN_INCO_UPG', u'D_PLAN_INCO_UPGB', u'D_PLAN_INCO_UP', u'D_PLAN_INCO_UPO',   !
               ! u'D_PLAN_SI', u'DIS_T', u'DIS_TR', u'DKT', u'DKTG', u'DST', u'FLUI_STRU',         !
               ! u'POU_FLUI_STRU', u'GRILLE_EXCENTRE', u'GRILLE_MEMBRANE', u'MEMBRANE',            !
               ! u'POU_D_E', u'POU_D_EM', u'POU_D_T', u'POU_D_T_GD', u'POU_D_TG', u'POU_D_TGM',    !
               ! u'Q4G', u'Q4GG', u'TUYAU_3M', u'TUYAU_6M', u'SHB', u'D_PLAN_HHM',                 !
               ! u'D_PLAN_HH2M_SI', u'D_PLAN_HM', u'D_PLAN_HM_SI', u'D_PLAN_THM', u'D_PLAN_HHMD',  !
               ! u'D_PLAN_HH2MD', u'D_PLAN_HMD', u'D_PLAN_THHD', u'D_PLAN_THH2D', u'D_PLAN_THVD',  !
               ! u'D_PLAN_THH2MD', u'D_PLAN_THHMD', u'D_PLAN_THMD', u'D_PLAN_HHMS',                !
               ! u'D_PLAN_HH2MS', u'D_PLAN_HMS', u'D_PLAN_THHS', u'D_PLAN_THH2S', u'D_PLAN_THVS',  !
               ! u'D_PLAN_THH2MS', u'D_PLAN_THHMS', u'D_PLAN_THMS', u'D_PLAN_HM_P', u'D_PLAN_HS',  !
               ! u'D_PLAN_HHD', u'D_PLAN_HHS', u'D_PLAN_HH2D', u'D_PLAN_HH2S', u'D_PLAN_2DG',      !
               ! u'D_PLAN_DIL', u'3D_DIL', u'AXIS_THM', u'AXIS_HHM', u'AXIS_HM', u'AXIS_HH2MD',    !
               ! u'AXIS_HHMD', u'AXIS_HMD', u'AXIS_THHD', u'AXIS_THH2D', u'AXIS_THVD',             !
               ! u'AXIS_THHMD', u'AXIS_THH2MD', u'AXIS_THMD', u'AXIS_HH2MS', u'AXIS_HHMS',         !
               ! u'AXIS_HMS', u'AXIS_THHS', u'AXIS_THH2S', u'AXIS_THVS', u'AXIS_THHMS',            !
               ! u'AXIS_THH2MS', u'AXIS_THMS', u'AXIS_HHD', u'AXIS_HHS', u'AXIS_HH2D',             !
               ! u'AXIS_HH2S', u'3D_HHM', u'3D_HH2M_SI', u'3D_HM', u'3D_HM_SI', u'3D_THHM',        !
               ! u'3D_THM', u'3D_HHMD', u'3D_HMD', u'3D_THHD', u'3D_THVD', u'3D_THHMD',            !
               ! u'3D_THMD', u'3D_HHMS', u'3D_HMS', u'3D_THHS', u'3D_THVS', u'3D_THHMS',           !
               ! u'3D_THMS', u'3D_THH2MD', u'3D_THH2MS', u'3D_HH2MD', u'3D_HH2MS', u'3D_THH2S',    !
               ! u'3D_THH2D', u'3D_HS', u'3D_HHD', u'3D_HHS', u'3D_HH2D', u'3D_HH2S',              !
               ! u'3D_HH2SUDA', u'D_PLAN_HH2SUDA', u'PLAN_JHMS', u'AXIS_JHMS')                     !
               !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            Fin Mot-clé simple : MODELISATION
         Fin b_mecanique
      Fin AFFE
   Fin Etape : AFFE_MODELE

Is something more to be done to tell Aster about this "new" MODELISATION?

I thank you in advance for your help.

Bests,

Pierre

PS: to ease help, you can have a look to the modifications I have made on this fork:
https://bitbucket.org/pierre_j/codeaster-src_hyb

Last edited by pierre_j (2017-03-20 21:11:07)

Offline

#2 2017-03-19 14:23:43

AsterO'dactyle
Administrator
Registered: 2007-11-29
Posts: 121

Re: [SOLVED] Adding a new 'MODELISATION'?

Hello,

You have to change affe_modele.capy to add the new modelization


Code_Asterの開発者

Offline

#3 2017-03-20 21:10:37

pierre_j
Member
Registered: 2010-01-19
Posts: 771

Re: [SOLVED] Adding a new 'MODELISATION'?

Hi Mickaël,

Thank you very much for your help, it works now!
I have the pleasure that as you answered me, I have assigned you as the "person_in_charge" of this new MODELISATION.
I hope that you appreciate it wink.

Thanks again.
Bests,

Pierre

PS: more seriously, I "Ctrl-F" d5.02.04 and didn't find any mention of affe_modele.capy. Shouldn't this be mentionned in it?

Offline

Board footer