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

You are not logged in.

#1 2018-10-10 17:03:06

eva13
Member
From: Lausanne
Registered: 2018-08-24
Posts: 22

[SOLVED] Question with DEFI_GROUP in AsterStudy module

Hi everybody ! smile

I am facing a problem with the AsterStudy module. I created 2 different groups with DEFI_GROUP, and I want to intersect them to finally find the group I want. The problem is that when I try to create this intersection, the two groups that I just create don’t appear, so I can’t select them. I have the same problem when I want to apply a force on a group of elements, the groups I just create with DEFI_GROUP don’t appear, I can only choose among the groups of elements defined in the mesh module. I looked into the documentation and I saw that the only difference between my analysis and the documentation is « reuse=<mesh object> ». I saw a post on the forum that says that « reuse » is not a keyword, and that I just need to use the same name that previous operator, but I don’t really understand, and I am not sure that this is my problem, it’s just a guess on my part… Does someone know and can explain to me ?
Thank you very much for your help , and don't hesitate to ask questions if it is not clear ! smile
Eva

Last edited by eva13 (2018-10-15 10:31:08)

Offline

#2 2018-10-10 20:36:27

mecour
Member
Registered: 2011-04-04
Posts: 30

Re: [SOLVED] Question with DEFI_GROUP in AsterStudy module

Hello,

I am not specialist in salome-meca and aster study module, I use code-aster and salome separately. I think you can't operate visualy with groups created by keyword DEFI_GROUP because this group is created after the analysis is started by aster solver which reads the comand file(comm) and med file (mesh). In salome-meca(aster study) you can operate only with groups created previously in geom and mesh module.

mecour

Offline

#3 2018-10-11 10:07:11

eva13
Member
From: Lausanne
Registered: 2018-08-24
Posts: 22

Re: [SOLVED] Question with DEFI_GROUP in AsterStudy module

Hi mecour,
Thank you very much for your answer smile I just don't understand something if what you say is true. I read the "Beginning with Code_Aster" bu Jean Pierre Aubry and it says inside that we can create 2 groups and make the difference of the 2 groups with the DIFFE operand just after.... You can have a look, and copy paste the code just below. So I am really confused, I don't understand how to do that.


part2=DEFI_GROUP (
reuse =part2,
MAILLAGE=part2 ,
CREA_GROUP_MA = (
#group for fixation
_F(
NOM=’fx2s’ ,
TYPE_MAILLE=’2D’ ,
OPTION=’BANDE’ ,
POINT=(  68 ,  5.5 ,105 ,) ,
VECT_NORMALE=(1 ,0 ,0 ,) ,
DIST=0.5 ,
),
_F(
NOM=’hole2s-1’ ,
TYPE_MAILLE=’2D’ ,
OPTION=’CYLINDRE’ ,
POINT=(0 ,0 ,0 ,) ,
VECT_NORMALE=(0 ,1 ,0 ,) ,
RAYON=10.6 ,
),
_F(
NOM=’hole2s-2’ ,
TYPE_MAILLE=’2D’ ,
OPTION=’FACE_NORMALE’ ,
VECT_NORMALE=(0 ,1 ,0 ,) ,
VERI_SIGNE=’NON’ ,
),
_F(
NOM=’hole2s’ ,
TYPE_MAILLE=’2D’ ,
DIFFE = ( ’hole2s-1’ , ’hole2s-2’ , ) ,
),
),
);

Offline

#4 2018-10-11 12:33:05

mecour
Member
Registered: 2011-04-04
Posts: 30

Re: [SOLVED] Question with DEFI_GROUP in AsterStudy module

Hello,

I really understand your confusion. It ss good that you  starting with that book. But Jean Pieare Aubry is not user of aster study. In book he creates the comm file in text editor. There were no aster study in time when the book was written.
When you work with aster-study in salome-meca you just create the mesh and prepare the comm file in graphical user interface. But everything you write in comm file (defi_materiau, defi_group, affe_char_meca.....) start to exist after you start the analysis with code-aster solver. If you want graphicaly operate with groups you need to create this groups in geom or mesh module of salome-meca.
Maybe it can be useful for you to try prepare the comm file and mesh file separately and use ASTK as is in book. It is best way how to understand the solution process.

mecour

Last edited by mecour (2018-10-11 12:34:13)

Offline

#5 2018-10-11 13:31:12

mecour
Member
Registered: 2011-04-04
Posts: 30

Re: [SOLVED] Question with DEFI_GROUP in AsterStudy module

On more information. You can export the mesh created during solving proces. The way how to export it with IMPR_RESU is in book on the page 249. Then you can import that mesh to salome a work with it graphicaly. But I have no experience with this.

mecour

Offline

#6 2018-10-13 06:41:07

konyaro
Member
From: Genève
Registered: 2016-04-02
Posts: 103

Re: [SOLVED] Question with DEFI_GROUP in AsterStudy module

Hello,
the groups created within AsterStudy exist but do not appear in the graphical selection window. However you can use them by entering their names in the "Manuel selection" field.

If you run the script below in AsterStudy:

mesh1 = LIRE_MAILLAGE(FORMAT='MED',
                      UNITE=20)

mesh1 = DEFI_GROUP(reuse=mesh1,
                   CREA_GROUP_MA=_F(DIST=0.5,
                                    NOM='bande1',
                                    OPTION='BANDE',
                                    POINT=(1.5, 0.0, 0.0),
                                    VECT_NORMALE=(1.0, 0.0, 0.0)),
                   MAILLAGE=mesh1)

IMPR_RESU(FORMAT='MED',
          RESU=_F(MAILLAGE=mesh1),
          UNITE=71)

and open the saved mesh you will notice that the group 'bande1' exists.

Konyaro


失敗は成功のもと (L'échec est la base de la réussite)

Offline

#7 2018-10-15 10:30:10

eva13
Member
From: Lausanne
Registered: 2018-08-24
Posts: 22

Re: [SOLVED] Question with DEFI_GROUP in AsterStudy module

Ok guys, thanks to you I understood and I solved my problem!
Thank you very much for your help ! big_smile

Offline

Board footer