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

You are not logged in.

#1 2020-10-26 17:27:40

massimobrivio
Member
Registered: 2020-09-15
Posts: 30

[SOLVED ]Get elements in group

Good Evening,

Does someone know how i can recover the element IDs of elements inside a group?
I define some groups into the mesh file and then i assign properties to each of these groups in asterstudy. I would like to change those properties based on the results (on each group) that i obtain from the analysis. I can't manage to do that because in the table that i create as a result (POST_RELEVE_T) i have the results listed for each node (and also element) of the mesh but i can't identify which element is part of the groups i defined in the mesh.

Regards,
Massimo

Last edited by massimobrivio (2020-10-29 16:50:14)

Offline

#2 2020-10-26 22:37:02

mf
Member
Registered: 2019-06-18
Posts: 135

Re: [SOLVED ]Get elements in group

Hi,

I am quite sure there is more than one way to do this.

1) in LIRE_MAILLAGE you could activate INFO=2, then all your GROUP_NO and GROUP_MA are printed.
2) in POST_RELEVE_T you have to choose a GROUP_NO anyway, so there is your connection to the group. If you choose more than one group in a single PRT, then they will be stored one after the other (is that your point?). But you can still distinguish them by their INTITULE. Or you could do two or more separate PRTs, one for each group.

Take a look at the attached example, originally I uploaded it because someone asked for a function of RHO and E (also NU) and how to apply it. So, only the POST_RELEVE_T part is interesting. It is not very elegant, but it should help you distinguish which NOEU belongs to which GROUP.

I am sure there are other ways though, also in ParaVis.

Mario.

Last edited by mf (2020-10-27 12:54:39)


Attachments:
TEST37_RHO_FUNCTION.zip, Size: 142.44 KiB, Downloads: 16

Offline

#3 2020-10-29 16:49:50

massimobrivio
Member
Registered: 2020-09-15
Posts: 30

Re: [SOLVED ]Get elements in group

Thanks Mario,

I solved. I read in another post that aster change the element ID with the respect of the ones created in the mesh file. But i checked and it's not the case in salome 2019. So i can directly read them out from the impr_table generated file.

Thanks for the help,
Massimo

Offline

#4 2020-10-29 17:43:05

mf
Member
Registered: 2019-06-18
Posts: 135

Re: [SOLVED ]Get elements in group

Hello,

yes, coming from the MESH module there are most likely changes of the ID, especially if you have more than one single part and do  ASSE_MAILLAGE in AsterStudy. With a mesh compound I do not know, I never checked (it could be the same IDs). But both possibilities I mentioned are within Asterstudy, so IDs are consistent including until you open the file in ParaVis.

Mario.

Last edited by mf (2020-10-29 17:46:06)

Offline

#5 2020-10-30 10:02:12

mf
Member
Registered: 2019-06-18
Posts: 135

Re: [SOLVED ]Get elements in group

Hello again,

I have to correct myself a little: The IDs are the same from MESH module including until ParaVis if you have only one mesh. The IDs change if you do the following:

-) ASSE_MAILLAGE in AsterStudy (the first mesh seems to keep its IDs, however)
-) compound mesh in MESH module (IDs of first mesh change also)

Both is done in the attached example with two simple boxes.

Mario.


Attachments:
TEST40_NODE_IDs.zip, Size: 174.79 KiB, Downloads: 15

Offline

#6 2020-10-30 10:43:09

massimobrivio
Member
Registered: 2020-09-15
Posts: 30

Re: [SOLVED ]Get elements in group

hi Mario! Thanks a lot for the indications.
And in paraview what does it happen? Do you know?
Can i contact you directly somehow?

Massimo

Offline

#7 2020-10-30 11:33:37

mf
Member
Registered: 2019-06-18
Posts: 135

Re: [SOLVED ]Get elements in group

Hello,

ParaView takes the IDs of AsterStudy, they stay the same. Feel free to write a mail if you like,

Mario.

Last edited by mf (2020-10-30 19:23:19)

Offline

#8 2020-10-30 12:03:12

massimobrivio
Member
Registered: 2020-09-15
Posts: 30

Re: [SOLVED ]Get elements in group

Thanks.
E-mail sent.

Massimo

Offline