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

You are not logged in.

#1 2020-09-02 14:31:51

ludol78
Member
Registered: 2020-08-07
Posts: 7

[RESOLU] Define "GROUP_NO" for POST_RELEVE_T

Hi everyone !

I'm using code aster with Salome Meca. I need to check the values of a heat source that I defined with "Sour_NL" and "DEFI_Fonction". My idea is to use "POST_RELEVE_T" to extract "sour_elga" but salome didn't find any "GROUP_NO" while I try to define the parameters of "POST_RELEVE_T", althouh I create a group of node with "DEFI_GROUP" named --> CU_NO. Did someone know why salome didn't link CU_NO in "POST_RELEVE_T" ?

If someone knows a better way to extract the values of the heat source, I'm interested too !

Thanks in advance for your answer,
Ludovic

DEBUT(LANG='EN')

.......................................................................................................................................
mesh18 = LIRE_MAILLAGE(identifier=u'0:1',
                       UNITE=20)

mesh18 = DEFI_GROUP(identifier=u'1:1',
                    reuse=mesh18,
                    CREA_GROUP_MA=_F(GROUP_MA=('CU', ),
                                     NOM='CU_MA'),
                    CREA_GROUP_NO=_F(GROUP_NO=('CU', ),
                                     NOM='CU_NO'),
                    MAILLAGE=mesh18)

model = AFFE_MODELE(identifier=u'2:1',
                    AFFE=_F(MODELISATION=('PLAN', ),
                            PHENOMENE='THERMIQUE',
                            TOUT='OUI'),
                    MAILLAGE=mesh18)

listr = DEFI_LIST_REEL(identifier=u'3:1',
                       DEBUT=0.0,
                       INTERVALLE=_F(JUSQU_A=1000.0,
                                     PAS=10.0))

P_joule = DEFI_FONCTION(identifier=u'4:1',
                        ABSCISSE=(-20.0, -19.8090040928, -19.6180081855, -19.4270122783, -19.2360163711, -19.0450204638, -18.8540245566, -18.6630286494, -18.4720327422, -18.2810368349, -18.0900409277, -17.8990450205, -17.7080491132, -17.517053206, -17.3260572988, -17.1350613915, -16.9440654843, -16.7530695771, -16.5620736698, -16.3710777626, -16.1800818554, -15.9890859482, -15.7980900409, -15.6070941337, -15.4160982265, -15.2251023192, -15.0341064...
                        NOM_PARA='TEMP',
                        NOM_RESU='P',
                        ORDONNEE=(196925.594186, 197104.698865, 197283.803544, 197462.908222, 197642.012901, 197821.11758, 198000.222258, 198179.326937, 198358.431616, 198537.536294, 198716.640973, 198895.745652, 199074.85033, 199253.955009, 199433.059688, 199612.164366, 199791.269045, 199970.373724, 200149.478402, 200328.583081, 200507.68776, 200686.792438, 200865.897117, 201045.001796, 201224.106474, 201403.211153, 201582.315832, 201761.42051, 201...

CU = DEFI_MATERIAU(identifier=u'14:1',
                   THER_NL=_F(LAMBDA=Condu_CU,
                              RHO_CP=rho_Cp))
...

load = AFFE_CHAR_THER_F(identifier=u'23:1',
                        MODELE=model,
                        SOUR_NL=_F(GROUP_MA=('CU', ),
                                   SOUR=P_joule))

load0 = AFFE_CHAR_THER(identifier=u'24:1',
                       ECHANGE=_F(COEF_H=50.0,
                                  GROUP_MA=('R_Outer_Sheath_HDPE', ),
                                  TEMP_EXT=30.0),
                       MODELE=model)

resther = THER_NON_LINE(identifier=u'26:1',
                        CHAM_MATER=fieldmat,
                        ETAT_INIT=_F(VALE=30.0),
                        EXCIT=(_F(CHARGE=load0),
                               _F(CHARGE=load)),
                        INCREMENT=_F(LIST_INST=listr),
                        MODELE=model)

resther = CALC_CHAMP(identifier=u'27:1',
                     reuse=resther,
                     RESULTAT=resther,
                     THERMIQUE=('FLUX_NOEU', 'SOUR_ELGA'))

table = MACR_LIGN_COUPE(identifier=u'28:1',
                        LIGN_COUPE=_F(COOR_EXTR=(0.0417852, -0.0283592),
                                      COOR_ORIG=(0.0157925, -0.0091955),
                                      NB_POINTS=50,
                                      TYPE='SEGMENT'),
                        NOM_CHAM='TEMP',
                        RESULTAT=resther,
                        UNITE_MAILLAGE=2)

IMPR_RESU(identifier=u'30:1',
          RESU=_F(RESULTAT=resther),
          UNITE=80)

IMPR_TABLE(identifier=u'31:1',
           FORMAT='XMGRACE',
           NOM_PARA=('ABSC_CURV', 'TEMP'),
           TABLE=table,
           UNITE=10)

IMPR_FONCTION(identifier=u'32:1',
              COURBE=_F(FONCTION=P_joule),
              FORMAT='XMGRACE',
              UNITE=29)

IMPR_TABLE(identifier=u'33:1',
           FORMAT='TABLEAU',
           TABLE=table,
           UNITE=8)


FIN()

Last edited by ludol78 (2020-09-03 14:55:13)

Offline

#2 2020-09-03 07:37:28

dezsit
Member
Registered: 2012-06-27
Posts: 63
Website

Re: [RESOLU] Define "GROUP_NO" for POST_RELEVE_T

Hi,

at this moment, if you create group by DEFI_GROUP, asterStudy does not recognize it, since it will be available during run time only. (I guess it could be handled, maybe in the future releases).
So you should put manually the new names at the bottom of the group selection widget (Manual selection) to use it.

Best regards,
dezsit


Attachments:
Clipboard-_1.png, Size: 20.43 KiB, Downloads: 15

Offline

#3 2020-09-03 14:24:24

ludol78
Member
Registered: 2020-08-07
Posts: 7

Re: [RESOLU] Define "GROUP_NO" for POST_RELEVE_T

Thanks for the tip !

Best regards,

Ludovic

Offline