Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
1/18
Organization (S): EDF-R & D/AMA
Handbook of Utilization
U4.2- booklet: Grid
Document: U4.22.01
Operator DEFI_GROUP
1 Goal
To define in an existing grid, new groups of nodes or meshs. This can facilitate
definition of new loci for inputs or postprocessings.
To create new groups, one uses topological, logical or geometrical criteria.
Modify a structure of data of the grid type or skeleton.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
2/18
2 Syntax
my (grid) =
DEFI_GROUP
(
reuse = my,
MAILLAGE
= my
,
/
[grid]
/
[skeleton]
| DETR_GROUP_MA = _F (
NOM
=
lgma),
[l_group_ma]
| DETR_GROUP_NO = _F (
NOM
=
lgno),
[l_group_no]
| CREA_GROUP_MA = (_F (
NOM
=
gma
,
[identifier]
/MAILLE
=
lmail
,
[l_maille]
/ALL = “YES”,
/
INTERSEC
=
lgma,
[l_group_ma]
/
UNION
=
lgma,
[l_group_ma]
/
DIFFE
=
lgma,
[l_group_ma]
/GROUP_MA = gma
,
[group_ma]
/NUME_INIT
=/nuini, [I]
/
1
,
[DEFAUT]
NUME_FIN
=
nufin
,
[I]
/POSITION =/“INIT”,
/
“FIN”
,
/
“MILIEU”
,
/OPTION
= “FACE_NORMALE”,
/ANGL_NAUT = (,), [l_R]
/VECT_NORMALE= (X, y, Z), [l_R]
ANGL_PREC =/, [R]
/
0.5,
[DEFAUT]
VERI_SIGNE
=
/“NON”,
/
“OUI”
,
[DEFAUT]
/OPTION
= “SPHERE”
,
/POINT = (X, y, Z),
[l_R]
/
NOEUD_CENTER
=
No,
[node]
/GROUP_NO_CENTER = grno, [group_no]
RAYON
=
R, [R]
/OPTION
= “CYLINDRE”
,
/POINT = (X, y, Z),
[l_R]
/
NOEUD_CENTER
=
No,
[node]
/GROUP_NO_CENTER = grno, [group_no]
RAYON
=
R, [R]
/ANGL_NAUT = (,), [l_R]
/
VECT_NORMALE=
(X,
y,
Z),
[l_R]
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
3/18
/OPTION
= “BANDE”
,
/POINT = (X, y, Z),
[l_R]
/
NOEUD_CENTER
=
No,
[node]
/GROUP_NO_CENTER = grno, [group_no]
/ANGL_NAUT = (,), [l_R]
/VECT_NORMALE= (X, y, Z),
[l_R]
DIST
=
D,
[R]
/OPTION
= “APPUI_LACHE”
,
/GROUP_NO
=
lgno
,
[l_group_no]
/
NOEUD
=
lno,
[l_noeud]
),),
|
CREA_GROUP_NO
=
(_F (
/
NOM
=
gno
,
[identifier]
/NOEUD
=
lnoeu
,
[l_noeud]
/INTERSEC = lgno, [l_group_no]
/
UNION
=
lgno,
[l_group_no]
/
DIFFE
=
lgno,
[l_group_no]
/GROUP_NO = gno
,
[group_no]
/NUME_INIT
=/nuini, [I]
/
1
,
[DEFAUT]
NUME_FIN
=
nufin
,
[I]
/POSITION =/“INIT”
,
/
“FIN”
,
/
“MILIEU”
,
/
OPTION
=
“ENV_SPHERE”
,
/POINT = (X, y, Z),
[l_R]
/NOEUD_CENTER = No,
[node]
/GROUP_NO_CENTER = grno, [group_no]
RAYON
=
R, [R]
PRECISION
=
eps
,
[R]
/
OPTION
=
“ENV_CYLINDRE”
,
/POINT = (X, y, Z),
[l_R]
/NOEUD_CENTER = No,
[node]
/GROUP_NO_CENTER = grno, [group_no]
RAYON
=
R, [R]
/ANGL_NAUT = (,),
[l_R]
/
VECT_NORMALE= (X,
y,
Z),
[l_R]
PRECISION = eps, [R]
/
OPTION
=
“PLAN”
,
/POINT = (X, y, Z),
[l_R]
/NOEUD_CENTER = No,
[node]
/GROUP_NO_CENTER = grno, [group_no]
/ANGL_NAUT = (,),
[l_R]
/
VECT_NORMALE= (X,
y,
Z),
[l_R]
PRECISION = eps, [R]
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
4/18
/
OPTION
=
“SEGM_DROI_ORDO”
,
/NOEUD = lno,
[l_noeud]
/
GROUP_NO
=
gno2
,
[group_no]
/NOEUD_ORIG = noA,
[node]
/
GROUP_NO_ORIG=
gnoA
,
[group_no]
/NOEUD_EXTR = noB,
[node]
/
GROUP_NO_EXTR=
gnoB
,
[group_no]
PRECISION
=
prec,
[R]
CRITERION =/“RELATIVE”,
/“ABSOLU”,
/
OPTION
=
“NOEUD_ORDO”
,
GROUP_MA
= gmaAB
,
[group_ma]
/NOEUD_ORIG = noA,
[node]
/
GROUP_NO_ORIG=
gnoA
,
[group_no]
/NOEUD_EXTR = noB,
[node]
/
GROUP_NO_EXTR=
gnoB
,
[group_no]
/
OPTION
=
“TUNNEL”
,
/ALL = “YES”
/ | GROUP_MA = lgma,
[l_group_ma]
| MAILLE = lmai,
[l_maille]
/MAILLE_AXE = noA,
[l_maille]
/
GROUP_MA_AXE
=
gnoA
,
[l_group_ma]
/NOEUD_ORIG = noA,
[node]
/
GROUP_NO_ORIG=
gnoA
,
[group_no]
RAYON = R, [R]
LONGUEUR = long,
[R]
/
GROUP_MA
=
lgma,
[l_identificator]
NOM = lgno,
[l_group_no]
CRIT_NOEUD =/“ALL”,
[DEFAUT]
/
“SOMMET”
,
/
“MILIEU”
,
/
“CENTER”
,
/
TOUT_GROUP_MA
:
“OUI”
,
),),
ALARME
=
/
“OUI”,
[DEFAUT]
/
“NON”,
INFO =/1,
/2,
)
Type of the result:
If GRID: grid
then:
grid
:
skeleton
skeleton
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
5/18
3 Operands
3.1
General information on the operands
This command in the same way treats the concepts of the grid type or skeleton. In
continuation one will use the vocabulary “grid”.
This command makes it possible to define new groups of meshs (or groups of nodes) in one
existing grid: one enriches the grid my.
The definition of a new group can be done in several ways:
·
in extension: key words MAILLE or NOEUD,
·
by Boolean operation on existing groups: intersection (INTERSEC), meeting
(UNION) or difference (DIFFE),
·
according to a geometrical criterion: meshs whose node belongs to a given sphere,…
·
for the groups of nodes, by referring to existing groups of meshs.
group nodes thus definite contains all the nodes of the meshs of the group of meshs
origin (key words TOUT_GROUP_MA and GROUP_MA).
The operator treats initially key word CREA_GROUP_MA so that one can make use of the groups of
meshs thus defined in key word CREA_GROUP_NO.
With each occurrence of a key word CREA_GROUP_MA (_NO) one defines a new group named (word
key NOM). This new group can then be re-used in the following occurrences to define
new groups by intersection, meeting,…
Key words DETR_GROUP_MA and DETR_GROUP_NO make it possible “to destroy” groups of meshs
or of nodes. The meshs and the nodes of these groups are not removed, they are only them
definitions of the groups which are unobtrusive. These key words are useful for example in the loops
python when one wants to create a group with each iteration of the loop: one starts by destroying
this group then one recreates it under the same name. That avoids changing name of group with each
iteration.
3.2 Operand
MAILLAGE
MAILLAGE = my
my is the name of the grid which one wants “to enrich”.
3.3 Words
keys
DETR_GROUP_MA and DETR_GROUP_NO
These two key words factor make it possible to remove the definition of groups of meshs or nodes.
These key words are sometimes necessary because the code stops in fatal error if one tries to create one
group whose name is already used. It is necessary to destroy the group before being able to re-use its name.
behavior of the two key words is similar and we will speak here only about DETR_GROUP_MA.
Syntax:
DETR_GROUP_MA=_F (NOM= (GM1, GM2,…)),
The key word factor DETR_GROUP_MA is a priori répétable but it is never necessary because the word
key NOM makes it possible to indicate a list of names of groups to be destroyed (gm1, gm2,…).
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
6/18
It is important to know that all the occurrences of key word DETR_GROUP_MA are treated front
those of key word CREA_GROUP_NO because the objective of this key word is to be able to re-use the destroyed name. It
is also necessary to know that the destruction of a non-existent group does not involve any message of alarm.
These choices make it possible for example to make in a loop python:
for I in arranges (N):
DEFI_GROUPE (reuse=MA, MAILLAGE=MA,
DETR_GROUP_MA=_F (NAME (“GM1”,),
CREA_GROUP_MA=_F (NOM=' GM1',…
At the time of the first iteration, group “GM1” does not exist, one requires his destruction but any
message of alarm is not transmitted.
Note:
As the destruction takes place at the beginning of the command, it is impossible to modify one
group by calling only one upon DEFI_GROUP. For example, one cannot make “grow bigger”
(in a loop) a group by adding a small group (b1) to him:
for I in arranges (N):
b1=nouveau group…
DEFI_GROUP (reuse=MA, MAILLAGE=MA,
CREA_GROUP_MA=_F (NOM=' tout', UNION= (“all”, “b1”),),)
To do that, DEFI_GROUP should be invited twice:
for I in arranges (N):
b1=nouveau group…
DEFI_GROUP (reuse=MA, MAILLAGE=MA,
DETR_GROUP_MA=_F (NOM=' TOUT2'),
CREA_GROUP_MA=_F (NOM=' tout2', UNION= (“all”, “b1”),),)
DEFI_GROUP (reuse=MA, MAILLAGE=MA,
DETR_GROUP_MA=_F (NOM=' tout'),
CREA_GROUP_MA=_F (NOM=' tout', UNION= (“tout2”, “b1”),),)
3.4 Word
key
CREA_GROUP_MA
| CREA_GROUP_MA
An occurrence of this key word factor makes it possible to define a new group of meshs.
3.4.1 Operand
NOM
NOM = gma
One gives here the name (with “quotes”) of the new group of meshs.
3.4.2 Operand
MAILLE
/MAILLE = lmail
This key word makes it possible to define the group of meshs in extension: the list of the meshs is given
the component.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
7/18
3.4.3 Operand
TOUT
/ALL = “YES”
This key word makes it possible to define a group containing all the meshs of the grid.
3.4.4 Operand
INTERSEC
/INTERSEC = (gma1, gma2, gma3,…),
The new group of meshs will be obtained by taking all the meshs of gma1 which
also belong to gma2, gma3,…. The command of the meshs remains that of gma1.
3.4.5 Operand
UNION
/
UNION
= (gma1, gma2, gma3,…)
The new group of meshs will be obtained by taking all the meshs of gma1, then in
adding the meshs of gma2 which do not belong to gma1, then those of gma3 which
belong neither to gma1 nor with gma2, etc
3.4.6 Operand
DIFFE
/DIFFE = (gma1, gma2, gma3,…)
The new group of meshs will be obtained by taking all the meshs of gma1 which
do not belong to the other groups of the list. The command of the meshs remains that of gma1.
3.4.7 Sub-group of an existing group
: key words GROUP_MA/POSITION/
NUME_INIT/NUME_FIN
One can create a new group of mesh by selecting certain meshs of an existing group.
1čre possibility:
One creates a group of only one mesh by specifying by key word POSITION the required mesh.
Example:
CREA_GROUP_MA = _F (
GROUP_MA = G1
, POSITION = “INIT”, NAME = G1I)
Group G1I contains the 1čre mesh of the G1 group.
2nd possibility:
One creates a group containing the meshs ranging between the rows nuini and nufin (included) in one
existing group.
Example:
CREA_GROUP_MA=_F (GROUP_MA = G1, NUME_INIT = 3
, NUME_FIN = 7,
NOM =
G1P)
Group G1P contains meshs 3, 4, 5,…, 7 of G1.
Caution:
These key words use the concept of command of the meshs in a group of meshs. This command is
often unknown to the user. He can depend on the preprocessor. It is the command of the meshs at the time
definition of the GROUP_MA in the file of Aster grid.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
8/18
3.4.8 Operand
OPTION = “FACE_NORMALE”
/OPTION = “FACE_NORMALE”
This option makes it possible to define a GROUP_MA made up of surface meshs of which the normal
is parallel to the direction of the vector defined by its components if the key word is used
VECT_NORMALE or with that of the first vector of the new base defined by the change
of reference mark due to the nautical angles.
In 3D, one supposes that the surface meshs are plane facets. They are of type
TRIA3, TRIA6, QUAD4, QUAD8 or QUAD9. If one calls X1, X2, and X3 the vectors position
of the first three nodes nodes of the element, the normal is determined by the product
vectorial: (X2 X1) (X3 X1).
In 2D, one supposes that the surface meshs are right segments. They are of type
SEG2 or SEG3. If one calls X1 and X2 the vectors position of the two nodes ends of
the element, the normal is defined by (X2 X1) Z where Z is the perpendicular unit vector
in the plan and where one has affected 0. like third component with X2 X1.
Note:
A mesh “facet” will be retained if its normal is colinéaire with the normal vector defined by
VECT_NORMALE [§3.3.6.2]. This condition must be checked except for a certain precision
(key word ANGL_PREC [§3.3.6.3]).
When one chooses a ANGL_PREC (for example 30. degrees), one defines in fact the group of
meshs whose normal belongs to the cone of axis VECT_NORMALE and point angle
ANGL_PREC.
This can be used (for example) to gather the meshs of a half wraps
spherical (ANGL_PREC = 90.).
3.4.8.1 Operand
ANGL_NAUT
/ANGL_NAUT
=
in 2D
(,) in 3D
The nautical angles, defined in degrees, are the angles making it possible to pass from the reference mark
total of definition of the co-ordinates of the nodes to a reference mark whose first vector indicates
the direction according to which the normal of the surface meshs is directed which one wishes
to recover.
For the definition of the nautical angles, to see operator AFFE_CARA_ELEM [U4.42.01]
operand ORIENTATION.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
9/18
3.4.8.2 Operand
VECT_NORMALE
/VECT_NORMALE = (X, y)
in 2D
(X,
y,
Z)
in 3D
Co-ordinates X, y, Z are those giving the direction according to which is directed
normal of the surface meshs which one wishes to recover.
3.4.8.3 Operand
ANGL_PREC
ANGL_PREC
=
It is the tolerance, in degrees, that one accepts on the angle formed by the vector provided by
the user and the normal vector with the surface element to affirm that these two vectors have
even direction.
The default value of is 0.5 degree.
3.4.8.4 Operand
VERI_SIGNE
VERI_SIGNE
=
/“NON”
,
/
“OUI”
,
[DEFAUT]
If one assigns value “NON” to VERI_SIGNE, the GROUP_MA will be consisted of the meshs
surface whose normal is parallel to the vector given by the user.
If one affects value “OUI”, the GROUP_MA will be consisted of the surface meshs of which
normal is parallel and with the same orientation as the vector given by the user.
The default value is “OUI”.
3.4.9 Operand
OPTION = “SPHERE”
/OPTION = “SPHERE”
This option makes it possible to define a GROUP_MA made up of the meshs of which at least a node
belongs to a sphere (a circle in 2D) defined by its center and its.
3.4.9.1 Operand
POINT
/POINT = (X, y)
in 2D
(X,
y,
Z)
in 3D
X y Z are the co-ordinates of the center of the sphere.
3.4.9.2 Operand/NOEUD_CENTER/GROUP_NO_CENTER
/NOEUD_CENTER
= No
/GROUP_NO_CENTER = grno
These two key words make it possible to indicate which is the node coinciding with the center of
sphere.
3.4.9.3 Operand
RAYON
RAYON = R
R is the radius of the sphere (circle in 2D).
3.4.10 Operand OPTION = “CYLINDER”
/OPTION = “CYLINDER”
This option makes it possible to define a GROUP_MA made up of the meshs of which at least a node
belongs to a cylinder defined by its axis and its radius.
The axis is defined by a vector and a point pertaining to this axis. This option does not have a direction
that in 3D.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
10/18
3.4.10.1 Operand NOT
/POINT = (X, y, Z)
X y Z are the punctual coordinates located on the axis of the cylinder.
3.4.10.2 Operand/NOEUD_CENTER/GROUP_NO_CENTER
/NOEUD_CENTER
= No
/GROUP_NO_CENTER = grno
These two key words make it possible to indicate a node located on the axis of the cylinder.
3.4.10.3 Operand RADIUS
RAYON = R
R is the radius of the cylinder.
3.4.10.4 Operand ANGL_NAUT
/ANGL_NAUT
= (,)
The nautical angles, defined in degrees, are the angles making it possible to pass from the reference mark
total of definition of the co-ordinates of the nodes to a reference mark whose first vector indicates
direction of the axis of the cylinder.
For the definition of the nautical angles to see operator AFFE_CARA_ELEM [U4.42.01]
operand ORIENTATION.
3.4.10.5 Operand VECT_NORMALE
/VECT_NORMALE = (X, y, Z)
X y Z are the co-ordinates of a vector directing the axis of the cylinder.
3.4.11 Operand OPTION = “TAPE”
/OPTION = “TAPE”
This option makes it possible to define a GROUP_MA made up of the meshs of which at least a node
to a “tape” defined by a plan “medium belongs” (a line in 2D) and the half-width of
leaves and other of this plan.
The plan is defined by a normal vector in this plan and a point belonging to him.
3.4.11.1 Operand NOT
/POINT = (X, y)
in 2D
(X,
y,
Z)
in 3D
X y Z are the punctual coordinates pertaining to the plan “medium” of the tape.
3.4.11.2 Operand/NOEUD_CENTER/GROUP_NO_CENTER
/NOEUD_CENTER
= No
/GROUP_NO_CENTER = grno
These two key words make it possible to define pertaining to the plan “medium” of the tape.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
11/18
3.4.11.3 Operand ANGL_NAUT
/ANGL_NAUT
=
in 2D
(,) in 3D
The nautical angles, defined in degrees, are the angles making it possible to pass from the reference mark
total of definition of the co-ordinates of the nodes to a reference mark whose first vector is
orthogonal in the plan “medium” of the tape.
For the definition of the nautical angles, to see operator AFFE_CARA_ELEM [U4.42.01]
operand ORIENTATION.
3.4.11.4 Operand VECT_NORMALE
/VECT_NORMALE = (X, y)
in 2D
(X,
y,
Z)
in 3D
X y and Z are the components of a vector perpendicular to the plan “medium” of the tape.
3.4.11.5 Operand DIST
DIST
=
D
D is the half-width of the tape.
3.4.12 Operand OPTION = “APPUI_LACHE”
/GROUP_NO = l_gno
/NOEUD
= l_no
This option makes it possible to recover the group of the meshs of which one (at least) of the nodes belongs to
the whole of the nodes specified by key words NOEUD and GROUP_NO.
3.5 Word
key
CREA_GROUP_NO
| CREA_GROUP_NO
An occurrence of this key word factor makes it possible to define a new group of nodes (for
key words GROUP_MA and TOUT_GROUP_MA, one creates several groups of nodes “of a blow”).
3.5.1 Operand
NOM
/NOM = gno
One gives here the name (with “quotes”) of the new group of nodes.
3.5.2 Operand
NOEUD
/NOEUD = lnoeu
This key word makes it possible to define the group of nodes in extension: the list of the nodes is given
the component.
3.5.3 Operand
INTERSEC
/INTERSEC = (gno1, gno2, gno3,…)
The new group of nodes will be obtained by taking all the nodes of gno1 which
also belong to gno2, gno3,…. The command of the nodes remains that of gno1.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
12/18
3.5.4 Operand
UNION
/UNION = (gno1, gno2, gno3,…)
The new group of nodes will be obtained by taking all the nodes of gno1, then in
adding the nodes of gno2 which do not belong to gno1, then those of gno3 which
belong neither to gno1 nor with gno2, etc
3.5.5 Operand
DIFFE
/DIFFE = (gno1, gno2, gno3,…)
The new group of nodes will be obtained by taking all the nodes of gno1 which
do not belong to the other groups of the list. The command of the nodes remains that of gno1.
3.5.6 Under group of an existing group
: key words GROUP_NO/POSITION/
NUME_INIT/NUME_FIN
One can create a new group of node by selecting certain nodes of an existing group.
1čre possibility:
One creates a group of only one node by specifying by key word POSITION the required node.
Example:
CREA_GROUP_NO = _F (GROUP_NO = G1
, POSITION = “INIT”, NAME = G1I)
Group G1I contains the 1st node of the G1 group.
2nd possibility:
One creates a group containing the nodes ranging between the rows nuini and nufin (included) in one
existing group.
Example:
CREA_GROUP_NO=_F (GROUP_NO = G1, NUME_INIT = 3
NUME_FIN = 7, NAME = G1P)
Group G1P contains node 3, 4, 5,…, 7 of G1.
Caution:
These key words use the concept of command of the nodes in a group of nodes. This command is
often unknown to the user. He can depend on the preprocessor. It is the command of the nodes at the time
definition of the GROUP_NO in the file of Aster grid.
3.5.7 Operand
OPTION = “ENV_SPHERE”
/OPTION = “ENV_SPHERE”
This option makes it possible to define a GROUP_NO made up of the nodes located on the envelope
of a sphere except for a precision given.
3.5.7.1 Operand
POINT
/POINT = (X, y),
in 2D
(X,
y,
Z), in 3D
X y Z are the co-ordinates of the center of the sphere.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
13/18
3.5.7.2 Operand/NOEUD_CENTER/GROUP_NO_CENTER
/NOEUD_CENTER
= No
/GROUP_NO_CENTER = grno
These two key words make it possible to define the node coinciding with the center of the sphere.
3.5.7.3 Operand
RAYON
RAYON
= R
R is the radius of the sphere.
3.5.7.4 Operand
PRECISION
PRECISION
= eps
eps is the tolerance with which one defines the membership of one node in the envelope of the sphere.
This tolerance is to be taken with the following direction:
if D is the distance from a node in the center of the sphere, it is said that this node belongs to the group
if:
D - R eps
3.5.8 Operand
OPTION = “ENV_CYLINDRE”
/OPTION
=
“ENV_CYLINDRE”
This option makes it possible to define a GROUP_NO made up of nodes located on the envelope of one
roll except for a precision given.
This option has direction only in 3D.
3.5.8.1 Operand
POINT
/POINT = (X, y, Z)
X y Z are the punctual coordinates pertaining to the axis of the cylinder.
3.5.8.2 Operand/NOEUD_CENTER/GROUP_NO_CENTER
/NOEUD_CENTER
= No
/GROUP_NO_CENTER = grno
These two key words make it possible to define a node pertaining to the axis of the cylinder.
3.5.8.3 Operand
RAYON
RAYON
= R
R is the radius of the cylinder.
3.5.8.4 Operand
ANGL_NAUT
/ANGL_NAUT
= (,)
The nautical angles, defined in degrees, are the angles making it possible to pass from the reference mark
total of definition of the co-ordinates of the nodes to a reference mark whose first vector indicates
direction of the axis of the cylinder.
For the definition of the nautical angles, to see operator AFFE_CARA_ELEM [U4.42.01]
operand ORIENTATION.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
14/18
3.5.8.5 Operand
VECT_NORMALE
/VECT_NORMALE = (X, y, Z)
X y Z are the co-ordinates of a vector directing the axis of the cylinder.
3.5.8.6 Operand
PRECISION
PRECISION
= eps
eps is the tolerance with which one defines the membership of one node in the cylinder clothing.
This tolerance is to be taken with the following direction:
if D indicates the distance from the point running to the axis of the cylinder, it is said that the point running belongs
with the cylinder clothing if:
D - R eps
3.5.9 Operand
OPTION = “PLANE”
This option makes it possible to define a GROUP_NO made up of nodes located on a line (in 2D) or in
a plan (in 3D) except for a precision given.
3.5.9.1 Operand
POINT
/POINT = (X, y),
in 2D
(X, y, Z),
in 3D
X y Z are the punctual coordinates pertaining to the plan (with the straight line).
3.5.9.2 Operand/NOEUD_CENTER/GROUP_NO_CENTER
/NOEUD_CENTER
= No
/GROUP_NO_CENTER = grno
These 2 key words make it possible to define a node pertaining to the plan (with the straight line).
3.5.9.3 Operand
ANGL_NAUT
/ANGL_NAUT
=
, in 2D
(,), in 3D
The nautical angles, defined in degrees, are the angles making it possible to pass from the reference mark
total of definition of the co-ordinates of the nodes to a reference mark whose first vector is
orthogonal in the plan “medium” of the tape.
For the definition of the nautical angles, to see operator AFFE_CARA_ELEM [U4.42.01]
operand ORIENTATION.
3.5.9.4 Operand
VECT_NORMALE
/VECT_NORMALE = (X, y),
in 2D
(X,
y,
Z), in 3D
X y and Z are the components of a vector perpendicular to the plan (with the straight line).
3.5.9.5 Operand
PRECISION
PRECISION
= eps
eps is the tolerance with which one defines the membership of a node in the plan (or with the straight line).
This tolerance is to be taken with the following direction:
if D indicates the distance from the node in the plan (or the straight line), it is said that this node belongs to it
plan (or on this line) if:
D eps
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
15/18
3.5.10 Operand OPTION = “SEGM_DROI_ORDO”
This option is used to order a whole of nodes roughly located on a segment of
straight line AB.
/NOEUD =
lno2,
/
GROUP_NO
=
gno2,
One defines the whole of the nodes which one wants to order.
/NOEUD_ORIG =
noA,/NOEUD_EXTR =
noB,
/
GROUP_NO_ORIG
=
gnoA
,
/
GROUP_NO_EXTR
= gnoB,
One defines nodes A and B, origin and end of segment AB.
PRECISION
= prec,
CRITERION =/“RELATIVE”,
/“ABSOLU”,
These two arguments are parapets, they are used to check that the nodes that one
seek to order (lno2 or gno2) are of course segment AB. If the variation of a node with
AB is higher than prec the code stops in fatal error.
If the selected criterion is “RELATIF”, the distance from a node with AB will be divided by the length
AB.
3.5.11 Operand OPTION = “NOEUD_ORDO”
This option is used to create an ordered group_no containing the nodes of a whole of meshs formed
segments (SEG2, SEG3 or SEG4). The whole of these meshs must form a continuous line,
opened having two ends.
GROUP_MA
= gmaAB
Name of the group_ma which one wants to order the nodes.
The meshs of gmaAB must form an open line.
/NOEUD_ORIG =
noA,/NOEUD_EXTR =
noB
,
/
GROUP_NO_ORIG
=
gnoA
,
/
GROUP_NO_EXTR
= gnoB,
The key words make it possible to define nodes A and B, origin and end of line AB.
Node A will be numbered in first, then one is useful oneself of the topology of the meshs of gmaAB for
to number the nodes gradually.
If node A is not provided by the user, the program will choose like node “origin”, the first
node of gmaAB which belongs only to only one mesh segment. The origin is thus arbitrary:
program could just as easily have fallen on the other end.
It is checked that the last numbered node is well B (if this one is given).
3.5.12 Operand OPTION = “TUNNEL”
This option is used to create the formed group_no of the nodes located inside a “tunnel” which one provides
the axis and the radius. The nodes selected will be those whose distance to the axis is lower than the radius.
The axis of the “tunnel” is defined by the linear meshs provided via key words MAILLE_AXE and
GROUP_MA_AXE.
The axis of the tunnel must have a “origin” defined by key words NOEUD_ORIG and GROUP_NO_ORIG.
Key word RAYON is used to define the “radius” of the tunnel.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
16/18
One can limit the tunnel by giving his length by key word LONGUEUR. This length is
measured starting from the origin of the tunnel.
The nodes candidates to belong to the tunnel are those carried by the meshs defined by the words
keys: TOUT=' OUI', GROUP_MA and MAILLE.
3.5.13 Operands GROUP_MA and NOM
/GROUP_MA = lgma
For each group of meshs of the list lgma, one creates a group of nodes formed of
nodes carried by the meshs of this group of meshs.
NOM = lgno
If lgno is provided by the user, this list must be of the same length than lgma. It
are the names which one wants to give to the new groups of nodes.
If lgno is not provided, the groups of nodes will bear the same names as them
groups of meshs which gave them birth.
CRIT_NOEUD
=
/“ALL” [DEFECT]
: all the nodes of each mesh are taken.
/“SOMMET”: one takes only the nodes “node” of the meshs (i.e. them
ends of stop).
/“MILIEU”: one does not take that the nodes “medium” of stop meshs.
/“CENTER”: one takes only the nodes which are neither “node” nor “medium”
i.e. nodes in the center of the facets or the elements
voluminal.
3.5.14 Operand TOUT_GROUP_MA
/TOUT_GROUP_MA = “YES”
This key word with the same significance as the precedent, except that one creates groups of
nodes for all the existing groups of meshs of the grid.
3.5.15 Operand ALARMS = “YES” [DEFECT]/“NOT”
if ALARME = “NON”, the code does not emit alarm; for example when one asks him to create one
GROUP_NO and that this group is empty. The default value of this key word is “OUI”.
3.5.16 Operand INFORMATION
if INFO = 1, one prints in file “MESSAGE”, the number of groups create and for each
group, the name of the group and the number of entities the component.
if INFO = 2, one prints in file “MESSAGE”, the number of groups create and for each
group, the name of the group, the number of entities the component then the list of the entities constituting it or
groups.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
17/18
4 Examples
Example 1 (topological criteria and logics):
That is to say a my grid containing the groups of meshs already:
M1 m2 m3
and groups of nodes:
N1 N2 N3
my = DEFI_GROUP (reuse = my, MAILLAGE = my,
CREA_GROUP_MA = (_F (NAME = NM1,
MAILLE = (MA7, MA9,…)
),
_F
(
NOM
=
NM2, UNION
=
(M1,
NM1)
),
_F
(
NOM
=
Nm3, DIFFE
=
(NM2,
M2)
),),
CREA_GROUP_NO = _F (TOUT_GROUP_MA = “YES”),
)
my = DEFI_GROUP (reuse = my, MAILLAGE = my,
CREA_GROUP_MA = _F (NAME = NM4,
MAILLE = (MA7, MA11, MA13))
CREA_GROUP_NO = (_F (NAME = NN1,
INTERSEC= (NM1, N1)),
_F (
GROUP_MA = NM4)))
After these two calls to command DEFI_GROUP, the grid contains then:
·
groups of meshs:
-
M1, m2, m3 (initial)
-
NM1 = (meshs: MA7, MA9,…)
-
NM2 = M1 “union” NM1
-
Nm3 = NM2 “minus” m2
-
NM4 = (MAILLES: MA7, MA11, MA13)
·
groups of nodes:
-
N1, N2, N3 (initial)
-
M1, m2, m3, NM1, NM2, Nm3: group_no containing the nodes of the group_ma of
same names. These group_no is created by the 1čre command DEFI_GROUP.
-
NN1 = NM1 “intersection” N1
-
NM4 = (nodes of group_ma NM4)
Example 2 (geometrical criteria):
my = DEFI_GROUP (reuse = my, MAILLAGE = my,
CREA_GROUP_MA=
(_F
(NOM = facesup, OPTION = “FACE_NORMALE”,
VECT_NORMALE
=
(0.,
0.,
1.)),
_F (NOM = S01,
OPTION = “SPHERE”,
POINT = (0., 0., 0.), RAYON = 1.),),
CREA_GROUP_NO = (_F (NAME = BO_S01
, OPTION = “ENV_SPHERE”,
POINT= (0., 0., 0.), RAYON=1., PRECISION=0.01),
_F
(
NOM
=
S01_1
, GROUP_MA
= S01),
_F
(
NOM
=
S01_2
, OPTION = “ENV_SPHERE”,
POINT= (0., 0., 0.), RAYON=0.5, PRECISION=0.5),),
)
After DEFI_GROUP the grid my will contain 2 new GROUP_MA and 3 new GROUP_NO:
·
facesup contains the facets whose normal is directed according to OZ (towards Z > 0),
·
S01 contains all the meshs of which one of the nodes belongs to the sphere of radius 1. and
centered out of O (origin of the axes),
·
B0_S01 is the group of the nodes which are in the vicinity of the envelope of the sphere
the preceding one (S01),
·
S01_1 is the group of all the nodes of the meshs of the group of S01 meshs; caution:
certain nodes of this group can be outside the sphere!
·
S01_2 is the group of the nodes included in the S01 sphere: D (M, O) - 0.5 0. 5
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator DEFI_GROUP
Date:
31/01/06
Author (S):
J. Key PELLET
:
U4.22.01-H1 Page:
18/18
Intentionally white left page.
Handbook of Utilization
U4.2- booklet: Grid
HT-62/06/004/A
Outline document