background image
Code_Aster
®
Version
7.4
Titrate:
Macro-control
MACR_ECLA_PG
Date:
01/02/05
Author (S):
J. PELLET
Key
:
U4.44.14-A
Page
:
1/4
Instruction manual
U4.4- booklet: Modeling HT-66/05/004/A
Organization (S):
EDF-R & D/AMA














Instruction manual
U4.4- booklet: Modeling
Document: U4.44.14



Macro-control MACR_ECLA_PG








1 Goal
To allow a visualization of the fields the points of Gauss without smoothing nor interpolation.
The principle of this control 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 mesh.
background image
Code_Aster
®
Version
7.4
Titrate:
Macro-control
MACR_ECLA_PG
Date:
01/02/05
Author (S):
J. PELLET
Key
:
U4.44.14-A
Page
:
2/4
Instruction manual
U4.4- booklet: Modeling HT-66/05/004/A
2 Syntax
MACR_ECLA_PG
(
# concepts produced by the macro-control:
RESULT
=
CO (“resu_2”) *
,
[sd_resultat]
MESH
=
CO (“my”) *, [mesh]
# 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, [DEFECT]
TAILLE_MIN =
/
MT,
[R8]
/0.,
[DEFECT]
# Possible Selection of a sub-assembly of elements to be visualized:
/
ALL
=
“YES”
,
[DEFECT]
/
NET
=
lma
,
[l_maille]
/
GROUP_MA
=
lgma
,
[l_gr_maille]
# Selection of the sequence numbers:
/
TOUT_ORDRE
=
“YES”
, [DEFECT]
/
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,
[DEFECT]
|
CRITERION
=
/
“RELATIVE”,
[DEFECT]
/
“ABSOLUTE”
,
)


*
Syntactically, the concepts produced by the control must be obligatorily written:
CO (“xxxx”)
background image
Code_Aster
®
Version
7.4
Titrate:
Macro-control
MACR_ECLA_PG
Date:
01/02/05
Author (S):
J. PELLET
Key
:
U4.44.14-A
Page
:
3/4
Instruction manual
U4.4- booklet: Modeling HT-66/05/004/A
3 Operands
3.1 General
The control transforms one
SD_resultat
(and sound
mesh
subjacent) in a news
SD_resultat
and new
mesh
.
The meshs of the initial mesh 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 (afterwards
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 result
resu_1
.
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.
Not Gauss
SHRINK: 0,9
SHRINK: 0,5
background image
Code_Aster
®
Version
7.4
Titrate:
Macro-control
MACR_ECLA_PG
Date:
01/02/05
Author (S):
J. PELLET
Key
:
U4.44.14-A
Page
:
4/4
Instruction manual
U4.4- booklet: Modeling HT-66/05/004/A
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 gasket).
By defect, MT is worth 0. : the geometry of the elements is not modified.
3.7 Operand
RESULT
RESULT =
CO (
'
resu_2
')
Name of the SD result defined on the new mesh on which the fields will be transferred.
3.8 Operand
MESH
MESH = CO (“my”)
my
is the name of the mesh associated with
resu_2
. This name is necessary for visualization
(control
IMPR_RESU
).
3.9 Operands
ALL/GROUP_MA/MESH
/ALL = “YES”,
[DEFECT]
This key word makes it possible to carry out the operation on all the meshs of the mesh.
/GROUP_MA = lgma,
This key word makes it possible to carry out the operation on a list of groups of meshs of the mesh.
/
NET
=
lma,
This key word makes it possible to carry out the operation on a list of meshs of the mesh.
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”),
RESULT
=
CO (“U2B”),
MESH = CO (“MA2B”),)

IMPR_RESU (FORMAT=' IDEAS', UNITE=38,
RESU
=
_F (
MESH = MA2B,
RESULT = U2B
,),
)