Code_Aster ®
Version
7.4
Titrate:
Macro-command MACR_ECLA_PG


Date:
01/02/05
Author (S):
J. Key PELLET
:
U4.44.14-A Page
: 1/4

Organization (S): EDF-R & D/AMA
Handbook of Utilization
U4.4- booklet: Modeling
Document: U4.44.14

Macro-command MACR_ECLA_PG

1 Goal

To allow a visualization of the fields the points of Gauss without smoothing nor interpolation.
The principle of this command is to burst each element of the model in as many small elements
that it has points of Gauss. Each subelement then carries a constant field by mesh: the value
point of Gauss.

Product a structure of data result and a grid.

Handbook of Utilization
U4.4- booklet: Modeling HT-66/05/004/A

Code_Aster ®
Version
7.4
Titrate:
Macro-command MACR_ECLA_PG


Date:
01/02/05
Author (S):
J. Key PELLET
:
U4.44.14-A Page
: 2/4

2 Syntax


MACR_ECLA_PG
(




# concepts produced by the macro-command:
RESULTAT
=
CO (“resu_2”) *
,
[sd_resultat]




MAILLAGE

=
CO (“my”) *, [grid]

# operands obligatory:
RESU_INIT
=
resu_1, [sd_resultat]
MODELE_INIT
=
model, [model]
NOM_CHAM
=
|
“SIEF_ELGA”,
|
“VARI_ELGA”
,
|
“SIEF_ELGA_DEPL”
,
|
“FLUX_ELGA_TEMP”
,

# optional geometrical parameters:
SHRINK
=
/HS,







[R8]










/0.9, [DEFAUT]




TAILLE_MIN =/MT,







[R8]










/0.,
[DEFAUT]

# Possible Selection of a subset of elements to be visualized:
/TOUT




=
“OUI”
,
[DEFAUT]
/
MAILLE



=
lma
,
[l_maille]
/
GROUP_MA

=
lgma

,
[l_gr_maille]

# Selection of the sequence numbers:

/
TOUT_ORDRE

=
“OUI”
, [DEFAUT]




/
NUME_ORDRE =
l_nuor
,
[l_I]
/
LISTE_ORDRE
=
l_numo
,
[listis]




/
/
INST

=
l_inst
,
[l_R]
/
LIST_INST
=
l_inst
,
[listr8]




| PRECISION =
/prec,
/
1.0E-3,
[DEFAUT]
|
CRITERE
=
/
“RELATIF”,
[DEFAUT]
/
“ABSOLU”
,











)

*
Syntactically, the concepts produced by the command must be obligatorily written:
CO (“xxxx”)
Handbook of Utilization
U4.4- booklet: Modeling HT-66/05/004/A

Code_Aster ®
Version
7.4
Titrate:
Macro-command MACR_ECLA_PG


Date:
01/02/05
Author (S):
J. Key PELLET
:
U4.44.14-A Page
: 3/4

3 Operands

3.1 General

The command transforms SD_resultat (and its subjacent grid) into a news
SD_resultat and a new grid.
The meshs of the initial grid are burst in smaller meshs: 1 mesh by point of Gauss. These
new meshs all are disjoined (i.e they are not connected between them).
The value of a field on a point of Gauss is then assigned to all the nodes of the small mesh which
he is associated.
SD_resultat produced is thus a little particular because the fields (which keep their original name
) are actually fields with the nodes!

Such a structure of data is intended above all for a visualization (after IMPR_RESU). But
one can also consider other postprocessings: POST_RELEVE, PROJ_CHAMP,…

3.2 Operands
RESU_INIT

RESU_INIT: resu_1

Name of the result post-to treat

3.3 Operands
MODELE_INIT

MODELE_INIT: Mo

Name of the model associated with the resu_1 result.

3.4 Operand
NOM_CHAMP

NOM_CHAM:

Reference symbol of (or of) the fields post-to be treated.

Note:

One treats only the fields by elements with the points of integration (standard ELGA)

3.5 Operand
SHRINK

SHRINK = HS

Homothetic factor of reduction allowing to ensure nonthe interpenetration of the meshs.

SHRINK: 0,9
SHRINK: 0,5
Not Gauss

Handbook of Utilization
U4.4- booklet: Modeling HT-66/05/004/A

Code_Aster ®
Version
7.4
Titrate:
Macro-command MACR_ECLA_PG


Date:
01/02/05
Author (S):
J. Key PELLET
:
U4.44.14-A Page
: 4/4

3.6 Operand
TAILLE_MIN

TAILLE_MIN = MT

This makes it possible to fix the minimal size on a side of an element. If this size is not reached, one
proceed to a geometrical transformation (affinity along the too small side). The interest is of
to be able to display results on very stretched elements (like the elements of joint).
By defect, MT is worth 0. : the geometry of the elements is not modified.

3.7 Operand
RESULTAT

RESULT = CO (“RESU_2”)

Name of the SD result defined on the new grid on which the fields will be transferred.

3.8 Operand
MAILLAGE

MAILLAGE = CO (“my”)

my is the name of the grid associated with resu_2. This name is necessary for visualization
(command IMPR_RESU).

3.9 Operands
ALL/GROUP_MA/MESH


/ALL = “YES”,

[DEFAUT]

This key word makes it possible to carry out the operation on all the meshs of the grid.


/GROUP_MA = lgma,

This key word makes it possible to carry out the operation on a list of groups of meshs of the grid.

/
MAILLE
=
lma,

This key word makes it possible to carry out the operation on a list of meshs of the grid.

3.10 Operands
TOUT_ORDRE/NUME_ORDRE/LIST_ORDRE/INST/
LIST_INST/PRECISION/CRITERION

Selection in a structure of data result [U4.71.00].

4 Example
4.1 Visualization of a field of result at the points of Gauss on
some groups of meshs

MACR_ECLA_PG (
RESU_INIT = U2, MODELE= MO, GROUP_MA = (“G1”, “G7”),
NOM_CHAM= (“SIEF_ELGA”, “VARI_ELGA”),
RESULTAT
=
CO (“U2B”),

GRID = CO (“MA2B”),)

IMPR_RESU (FORMAT=' IDEAS', UNITE=38,
RESU
=
_F (
MAILLAGE = MA2B,
RESULTAT = U2B
,),
)


Handbook of Utilization
U4.4- booklet: Modeling HT-66/05/004/A

Outline document