Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
1/14
Organization (S): EDF-R & D/AMA, CS IF
Handbook of Utilization
U4.2- booklet: Grid
Document: U4.23.02
Operator CREA_MAILLAGE
1 Goal
To create a structure of data of the grid type starting from another grid. New grid
contains all information of the old grid (if they still exist): nodes, meshs,
groups of nodes and groups of meshs. The new grid is created starting from a grid
existing while duplicating, while destroying, while transforming or while bursting,…, of the meshs.
Product a structure of data grid.
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
2/14
2 Syntax
ma_2 (grid) =
CREA_MAILLAGE
(
MAILLAGE
= ma_1,
[grid]
/ | CREA_GROUP_MA
= _F (
NOM= named,
[K8]
| MAILLE
=
lmail,
[l_maille]
| GROUP_MA
=
lgma,
[l_group_ma]
| ALL = “YES”,
PREF_MAILLE
=
pre_ma, [kN]
PREF_NUME
= ind
,
[I]
),
| CREA_MAILLE = _F (
| MAILLE
=
lmail,
[l_maille]
| GROUP_MA
=
lgma,
[l_group_ma]
| ALL = “YES”,
PREF_MAILLE
=
pre_ma, [kN]
PREF_NUME
= ind
,
[I]
),
| DETR_GROUP_MA
= _F (
GROUP_MA
=
lgma,
[l_group_ma]
NB_MAILLE
=/
0,
[DEFAUT]
/
nbmail, [I]
),
| MODI_MAILLE = _F (
|
ALL = “YES”,
| GROUP_MA
=
lgma,
[l_group_ma]
| MAILLE
=
lmail,
[l_maille]
/
OPTION
=
/
“TRIA6_7”,
/
“QUAD8_9”,
/
“SEG3_4”,
/
“QUAD_TRIA3”,
PREF_NOEUD =/“NS”,
[DEFAUT]
/pre_nd, [kN]
PREF_NUME
=/ind, [I]
/1,
[DEFAUT]
/
OPTION
=
“QUAD_TRIA3”,
PREF_MAILLE =/“MS”,
[DEFAUT]
/pre_ma, [kN]
PREF_NUME
=/ind, [I]
/1,
[DEFAUT]
),
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
3/14
| REPERE
= _F (
TABLE
=
, [tabl_cara_geom]
NOM_ORIG =/“CDG”,
[DEFAUT]
/“TORSION”,
NOM_ROTA =/“INERTIA”, [DEFECT]
GROUP_MA = gma
,
[group_ma]
),
| CREA_POI1
= _F (
| ALL = “YES”,
| GROUP_MA
=
lgma,
[l_group_ma]
| MAILLE
=
lmail,
[l_maille]
| GROUP_NO
=
lno, [l_group_no]
| NOEUD
=
lnoeud, [l_noeud]
NOM_GROUP_MA
= nom_ma
, [group_ma]
),
/LINE_QUAD
=
_F (
|
ALL = “YES”,
| GROUP_MA
=
lgma,
[l_group_ma]
| MAILLE
=
lmail,
[l_maille]
PREF_NOEUD =/
“NS”,
[DEFAUT]
/
pre_nd,
[KN]
PREF_NUME
=/
ind, [I]
/
1,
[DEFAUT]
),
/QUAD_LINE
=
_F (
|
ALL = “YES”,
| GROUP_MA
=
lgma,
[l_group_ma]
| MAILLE
=
lmail,
[l_maille]
),
/COQU_VOLU
=
_F (
NOM=
named, [TXM]
GROUP_MA
=
gma,
[group_ma]
EPAIS
=
ep,
[R8]
PREF_MAILLE =/
“Ms”,
[DEFAUT]
/
pre_ma,
[KN]
PREF_NOEUD =/
“NS”,
[DEFAUT]
/
pre_nd,
[KN]
PREF_NUME
=/
ind,
[I]
/
1,
[DEFAUT]
/
PLAN =/“SUP”,
[TXM]
/“INF”,
/
PLAN =
“MOY”,
TRANSLATION =/“SUP”,
[TXM]
/“INF”,
[DEFAUT]
),
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
4/14
/CREA_FISS
=
_F (
NOM=
nogma,
[TXM]
GROUP_NO_1
=
gno1,
[group_no]
GROUP_NO_2
=
gno2,
[group_no]
PREF_MAILLE = pre_ma, [kN]
PREF_NUME
=/
ind,
[I]
/
1,
[DEFAUT]
),
/ECLA_PG =
_F (...)
#
used by [U4.44.14]
INFO =/1,
[DEFAUT]
/2,
TITER
=
tit, [TXM]
)
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
5/14
3 Operands
3.1 Operand
MAILLAGE
MAILLAGE = ma_1
ma_1 is the name of the initial grid which one wants to reproduce before “enriching it” by news
meshs or nodes, or “to impoverish it”.
Note:
Key word MAILLAGE is obligatory except for the use of key word ECLA_PG.
3.2 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 made up
new meshs, being based themselves on existing nodes.
To duplicate several groups of meshs, one will repeat the key word factor CREA_GROUP_MA.
Contrary to the command DEFI_GROUP [U4.22.01] for which the concept grid
always preserve the same number of meshs and nodes, here the number of meshs of new
grid is increased (the number of nodes remains identical because the new meshs rest
on already existing nodes).
This can facilitate the creation of new loci to be able to apply
modelings different on the same group from meshs.
3.2.1 Operand
NOM
NOM = named
One gives here the name (without “quotes”) of the new group of meshs which will be created.
3.2.2 Operands
NET/GROUP_MA/ALL
| MAILLE
=
lmail,
| GROUP_MA
=
lgma,
| TOUT =
“OUI”,
The whole of the meshs stipulated by the user with these three key words will be duplicated and them
new meshs will be gathered in a group of meshs bearing the name stipulated by the word
key NOM. If the whole of the meshs to be duplicated contains meshs in double, they are
eliminated.
3.2.3 Operands
PREF_MAILLE/PREF_NUME
PREF_MAILLE = pre_ma
This variable text makes it possible to define the name of the new meshs. One obtains the name of
new mesh while adding in front of its old name, the text specified under the key word
PREF_MAILLE. If this new name has a length higher than eight characters, one
stop in fatal error with an error message.
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
6/14
PREF_NUME
=/ind
If an entirety ind is given under key word PREF_NUME, the number of the new meshs is
built by concaténant the text capital letter given under key word PREF_MAILLE and an entirety
obtained by incrementing ind of 1 with each creation of new meshs.
Note:
The user must be careful in the choice of his prefix to prevent that the meshs
news has the same name as old meshs. This collision of names is
detected by the command and conduit with a program stop.
3.3 Word
key
CREA_MAILLE
| CREA_MAILLE
An occurrence of this key word factor makes it possible to define new meshs while duplicating
already existing meshs. For the use of the key words, one returns in the paragraph [§3.2]. Only
difference, the meshs created are not gathered in a named group of meshs.
3.4 Word
key
CREA_POI1
| CREA_POI1
An occurrence of this key word factor makes it possible to define meshs of the type “POI1” (mesh in one
only node) starting from nodes or groups of nodes, or nodes of meshs or group of
meshs.
3.4.1 Operands
ALL/GROUP_MA/MESH/GROUP_NO/NODE
| ALL = “YES”,
| GROUP_MA
= lgma,
| MAILLE
= lmail,
| GROUP_NO
= lno,
| NOEUD
= lnoeud,
All the nodes which belong to entities stipulated by the user with these five key words,
generate a mesh of the type POI1. The mesh created will have the same name as the node which
support.
3.4.2 Operand
NOM_GROUP_MA
NOM_GROUP_MA = nom_ma
All meshs POI1 thus created can be gathered in the same group of meshs
named nom_ma.
3.5 Word
key
DETR_GROUP_MA
| DETR_GROUP_MA
An occurrence of this key word factor makes it possible to destroy groups of meshs, the meshs
contained in these groups are not they not destroyed.
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
7/14
3.5.1 Operand
GROUP_MA
/GROUP_MA = lgma
The groups of meshs stipulated in the list lgma are destroyed.
3.5.2 Operand
NB_MAILLE
NB_MAILLE =/nb_mail,
/0,
All the groups of meshs having a number of meshs lower or equal to nb_mail are
destroyed.
3.6 Word
key
MODI_MAILLE
|
MODI_MAILLE
An occurrence of this key word factor makes it possible to transform:
· respectively the meshs segment with three nodes, triangle with six nodes and quadrangle with
eight nodes in segment with four nodes, triangle with seven nodes and quadrangle with nine
nodes. Additional nodes are consequently added in the grid. For
the triangles and the quadrangles, each additional node is obtained like
geometrical barycentre of the nodes nodes of the mesh considered.
For the segments, the nodes mediums are placed at the third and the two-third of the segment,
curvature of the element being respected.
· the meshs quadrangles in meshs triangles with three nodes.
3.6.1 Operand
TOUT
|
ALL = “YES”
One applies the transformation to all the meshs of the grid.
3.6.2 Operand
MAILLE
|
MAILLE = lmail
This key word makes it possible to define a list of meshs setting up the group of meshs which will be
transforms.
3.6.3 Operand
GROUP_MA
|
GROUP_MA = lgma
The meshs of the groups of meshs given in the list lgma are transformed.
3.6.4 Operand
OPTION
OPTION =/“SEG3_4”
“TRIA6_7”
“QUAD8_9”
“QUAD_TRIA3”
This key word indicates the transformation to be carried out:
· transformation of the segments with three nodes into segments with four nodes (usable by
example for modeling “TUYAU” of AFFE_MODELE [U4.41.01],
· transformation of the triangles with six nodes into triangles with seven nodes,
· transformation of the quadrangles with eight nodes into quadrangles with nine nodes,
· transformation of the quadrangles into triangles with 3 nodes:
transformation of meshs of the type QUAD4 into two meshs of the type TRIA3
transformation of meshs of the type QUAD8 into six meshs of the type TRIA3
transformation of meshs of the type QUAD9 into six meshs of the type TRIA3
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
8/14
3.6.5 Operands
PREF_NOEUD/PREF_MAILLE/PREF_NUME
PREF_NOEUD
=
/pre_nd,
“NS”,
This variable text makes it possible to define the name of the new nodes. One obtains the name of new
node while adding in front of its old name, the text specified under key word PREF_NOEUD. In
case where this new name has a length higher than eight characters, one stops in fatal error
with an error message.
PREF_MAILLE = pre_ma
This variable text makes it possible to define the name of the new meshs. One obtains the name of
new mesh while adding in front of its old name, the text specified under the key word
PREF_MAILLE. If this new name has a length higher than eight characters, one
stop in fatal error with an error message.
PREF_NUME =/ind,
/1,
If an entirety ind is given under key word PREF_NUME, the number of the new nodes
(new meshs) is built by concaténant the text capital letter given under the key word
PREF_NOEUD (PREF_MAILLE) and an entirety obtained by incrementing ind of 1 with each creation
new nodes (news meshs).
Note:
The user must be careful in the choice of his prefix to prevent that the new ones
nodes (news meshs) have the same name as old nodes (news meshs).
This collision of names is detected by the command and conduit with a program stop.
An automatic procedure of cutting of the meshs quadrangles in triangles can generate
a kind of “polarization” of the grid: from a given grid QUAD, all them
diagonals are found directed in the same direction.
3.6.6 Checking
The meshs modified by the transformation must be of the same type as that stipulated under the key word
OPTION.
3.7 Word
key
REPERE
| REPERE
An occurrence of this key word factor makes it possible to define a new grid from the old one
grid by carrying out a change of reference mark.
This functionality is used in particular in macro-command MACR_CARA_POUTRE
[U4.42.02] for the calculation of the constant of warping.
3.7.1 Operands
COUNT/NOM_ORIG/NOM_ROTA/GROUP_MA
TABLE =
One gives here the name of the table of concept “geometrical characteristics” which contains in
private individual, co-ordinates of the center of inertia and the center of torsion, angles nautical
defining the principal reference mark of inertia,… This table can be obtained by the command
POST_ELEM with the key words factors CARA_GEOM or CARA_POUTRE [U4.81.22].
NOM_ORIG
=/“CDG”,
“TORSION”,
The center of the new reference mark is indicated: the center of gravity or the center of torsion.
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
9/14
NOM_ROTA
=/“INERTIE”,
The direction of the new reference mark is indicated. Only one solution is possible: the directions are
those of the principal reference mark of inertia.
GROUP_MA
=
gma
If NOM_ORIG = “CDG”, one can indicate the name of the group of meshs whose center of gravity
will be the origin of the new reference mark. If one does not use GROUP_MA, the center of gravity of the unit
MODELE will be the origin of the new reference mark.
If NOM_ORIG = “TORSION”, key word GROUP_MA is inoperative.
3.8 Key word
LINE_QUAD
/LINE_QUAD
This functionality makes it possible to create a quadratic grid starting from a linear grid, one can
to apply it only to part of the grid (attention in this case with the connection of the linear zones and
quadratic).
The groups of meshs are preserved, the groups of nodes also, as at the time of refinement
of grid the nodes created are not introduced into the groups of nodes.
3.8.1 Operands
NET/GROUP_MA/ALL
| MAILLE
=
lmail,
| GROUP_MA
=
lgma,
| TOUT =
“OUI”,
The whole of the meshs stipulated by the user with these three key words will be transformed into
quadratic meshs.
3.8.2 Operands
PRE_NOEUD/PREF_NUME
As for MODI_MAILLE.
3.9 Key word
QUAD_LINE
/QUAD_LINE
This functionality makes it possible to create a linear grid starting from a quadratic grid, one can
to apply it only to part of the grid (attention in this case with the connection of the linear zones and
quadratic).
The groups of meshs are preserved, the groups of nodes also, as at the time of refinement
of grid the nodes created are not introduced into the groups of nodes.
3.9.1 Operands
NET/GROUP_MA/ALL
| MAILLE
=
lmail,
| GROUP_MA
=
lgma,
| TOUT =
“OUI”,
The whole of the meshs stipulated by the user with these three key words will be transformed into
linear meshs.
3.10 Key word
COQU_VOLU
/COQU_VOLU
From the data of a group of surface meshs (QUAD, TRIA3), one builds the grid
voluminal (HEXA8, PENTA6) by extrusion according to the normal of the elements (in a node, one
takes the average of the normals of the convergent elements). Only one layer of elements is
create.
The operation applies only to linear grids; if one wishes to create a grid
quadratic, it is enough to use CREA_MAILLAGE/LINE_QUAD then.
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
10/14
3.10.1 Operands NAME
NOM
= named,
Name of the group of meshs made up of the voluminal meshs create at the time of this operation.
3.10.2 Operands GROUP_MA
GROUP_MA =
lgma,
Groups of meshs constituting the surface grid to extrude.
3.10.3 THICK operands
EPAIS =
ep,
Thickness of the layer of elements created (thickness of the hull).
3.10.4 Operands PLAN
PLAN =/“SUP”,
/
“INF”,
/
“MOY”,
It is specified here that surface made up of lgma will be the plan SUPérieur, INFérieur or MOYen of
the hull.
3.10.5 Operands TRANSLATION
TRANSLATION =/“SUP”,
/
“INF”,
If PLAN=' MOY', one specifies if initial surface made up of lgma is relocated in
skin SUPérieure or INFérieure.
3.10.6 Operands PRE_MAILLE/PRE_NOEUD/PREF_NUME
As for MODI_MAILLE.
3.11 Word
key
CREA_FISS
/
CREA_FISS
=
_F (
NOM=
nogma,
[TXM]
GROUP_NO_1
=
gno1,
[group_no]
GROUP_NO_2
=
gno2,
[group_no]
PREF_MAILLE = pre_ma, [kN]
PREF_NUME
=/
ind,
[I]
/
1,
[DEFAUT]
),
3.12 Key word
CREA_FISS
Allows to create a fissure with elements of joint (Doc. [R3.06.09]) or elements with
discontinuity (Doc. [R7.02.12]) along a line defined by two groups of nodes laid out in
glance. The two groups of node must have the same number of nodes and to be as a preliminary
ordered (to use CREA_GROUP_NO, option=' NOEUD_ORDO') so that their classification
same side “starts” (see figure).
One will be able, then to affect a modeling of the type “joint” on these new meshs QUAD4 (see
for example “PLAN_JOINT”).
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
11/14
The meshs created will bear a name formed starting from the prefix pre_ma followed by a number.
For example, if PREF_MAILE=' FS' and PREF_NUME=7, the meshs create will be called: FS7, FS8,…
One will create also a new GROUP_MA (called nogma) containing the whole of meshs QUAD4
created.
3.12.1 Operand NAME
Name of the group of meshs made up of the voluminal meshs created at the time of this operation.
3.12.2 Operands GROUP_NO_1/GROUP_NO_2
Groups of node constituting the lips of the fissure. The group of node GROUP_NO_1 carries them
local nodes 1 and 2 (the first node of the group to a local classification equalizes to 1), it
GROUP_NO_2 carries the local nodes 3 and 4 (the first node of the group to a local classification
equalize to 4). Attention it is necessary to choose these groups of nodes according to the geometry of such kind
that the local classification of the elements is carried out in the trigonometrical direction:
Feel
Feel
2
3
1
scheduling
4
scheduling
2
3
2 1
3 4
1
3
4
2
3 4
2 1
4
3
2 1
4
1
NOOK
OK
3.12.3 Operands PREF_MAILLE/PREF_NUME
Usual significances.
3.13 Word
key
ECLA_PG
/ECLA_PG
This key word factor was not used directly. It is used by command MACR_ECLA_PG
[U4.44.14].
3.14 Operand
INFO
INFO = inf
Specify the information printed in the file message (1: no impression, 2: details on
a number of meshs create, modified…).
3.15 Operand
TITER
TITER = tit
Allows to specify a title.
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
12/14
4 Examples
4.1
Duplication of meshs
That is to say ma_1 a grid containing the meshs already:
M1 m2 m3
and groups it meshs:
hull: M1 m2
Each mesh is based on the following nodes:
M1: N1 N2 N3
M2: N3 N4 N5
M3: N4 N5 N6
MA_2 = CREA_MAILLAGE (GRID = MA_1,
CREA_MAILLE
=
_F (
MAILLE
=
“M3”,
PREF_MAILLE
=
“NEW”,
),
CREA_GROUP_MA
=
_F (
NOM =
ground,
GROUP_MA
=
“hull”,
PREF_MAILLE
=
“A”,
PREF_NUME
=
100,
),
)
After call to command CREA_MAILLAGE, the new grid contains then:
·
groups of meshs:
-
hull (initial)
-
ground = (meshs: A100 A101)
·
the meshs are based on the following nodes:
-
M1: N1 N2 N3
-
M2: N3 N4 N5
-
M3: N4 N5 N6
-
NEWM3: N4 N5 N6
-
A100: N1 N2 N3
-
A101: N3 N4 N5
4.2
Transformation of triangles with 6 nodes into triangles with 7 nodes
MA_2 = CREA_MAILLAGE (GRID = MA_1,
MODI_MAILLE
=
_F (
GROUP_MA = “triangle”,
OPTION
=
“TRIA6_7”,
PREF_NOEUD
=
“NMI”,
PREF_NUME
=
10,
),
)
Let us suppose that in ma_1 the GROUP_MA triangle is composed of two M1 meshs, m2 having them
following nodes:
M1: N1 N2 N3 N4 N5 N6
M2: N1 N2 N7 N4 N8 N9
In the grid ma_2, the two meshs M1, m2 will have the following nodes:
M1: N1 N2 N3 N4 N5 N6 NMI10
M2: N1 N2 N7 N4 N8 N9 NMI11
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
13/14
4.3
Transformation of quadrangles with 4 nodes into triangles with 3 nodes
This example results from test SSLV04E:
The geometry accounting for 1/4 of a disc, be with a grid in quadrangle, one wishes that 1/8 of the disc
that is to say with a grid in triangle.
my = CREA_MAILLAGE (MAILLAGE = m0,
MODI_MAILLE
=
_F (
GROUP_MA = “S2”,
OPTION
=
“QUAD_TRIA3”,
PREF_MAILLE
=
“Ms”,
PREF_NUME
=
1,
),
)
4.4 Bursting of the initial grid to visualize a field of result
at the points of Gauss
ma2 = CREA_MAILLAGE
(MAILLAGE
=m,
ECLA_PG= _F (MODELE= Mo,
SHRINK= 0.90,),
u2b= CREA_RESU
(
TYPE_RESU=
“evol_noli”,
ECLA_PG=
_F (
MODELE_INIT= Mo,
RESU_INIT= u2,
MAILLAGE=
ma2,
NOM_CHAM=
(“SIEF_ELGA”,
“VARI_ELGA”),
),
)
IMPR_RESU (RESU = _F (GRID = MA2,
RESULTAT
=
u2b
,),
)
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator CREA_MAILLAGE
Date:
31/01/06
Author (S):
J. PELLET, L. VIVAN Key
:
U4.23.02-F1 Page:
14/14
Intentionally white left page.
Handbook of Utilization
U4.2- booklet: Grid HT-62/06/004/A
Outline document