Code_Aster ®
Version
8.2
Titrate:
Procedure IMPR_RESU (FORMAT “MED”)
Date:
22/02/06
Author (S):
COURTEOUS Mr., C. Key DURAND
:
U7.05.21-D1 Page:
1/4
Organization (S): EDF-R & D/AMA
Handbook of Utilization
U7.0- booklet: Data exchanges
Document: U7.05.21
Procedure IMPR_RESU (FORMAT “MED”)
1 Goal
To write the result of a calculation in a file with format MED. One describes the whole of the key words of
only order IMPR_RESU [U4.91.01] concerning this format of output.
One can write with the choice in a file with format MED:
·
a grid,
·
fields with the nodes,
·
fields with the elements.
In this version of Code_Aster, one does not write the definition of the elements of reference in
file MED. If one thus reads again fields by elements at the points of Gauss with another software,
this one must have the same elements of reference to ensure coherence.
MED (Modélisation and Echanges de Données) is a neutral format of data developed by EDF
R & D and the ECA for the data exchanges between computer codes. The data which one can
to exchange according to this format are the grids and the fields of results to the constant nodes and by
elements. Files MED are binary and portable files (being pressed on the library
HDF5, Hierarchical Dated Format). The writing of results in a file MED allows any other code
of calculation, interfaced with MED, of reading the results produced by Code_Aster via the command
IMPR_RESU.
Version 2.2.3 of MED is used as well in reading as in writing of files MED for the version
8.2 of Aster.
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Procedure IMPR_RESU (FORMAT “MED”)
Date:
22/02/06
Author (S):
COURTEOUS Mr., C. Key DURAND
:
U7.05.21-D1 Page:
2/4
2 Syntax
IMPR_RESU
(
# Syntax of procedure IMPR_RESU to format “MED”
UNITE = links,
FORMAT
=
/
“MED”,
RESU = _F
(
|
MAILLAGE
=
my, [grid]
|
/RESULTAT = resu,
# Extraction of a field of size of resu
/
NOM_CHAM
=
l_nomsymb, [l_K16]
/
NUME_ORDRE =
lordre, [l_I]
/
NUME_MODE
=
lmode,
[l_I]
/
NOEUD_CMP
=
lnoecmp,
[l_K16]
/
NOM_CAS =
ncas,
[l_K16]
/
ANGL =
langl,
[l_K16]
//
FREQ =
lfreq,
[l_R]
/
INST =
linst,
[l_R]
| PRECISION
=
/
prec, [R]
/
1.0D-3,
[DEFAUT]
| CRITERE =/
“RELATIF”,
[DEFAUT]
/
“ABSOLU”,
/
CHAM_GD =
chgd,
[Co]
)
);
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Procedure IMPR_RESU (FORMAT “MED”)
Date:
22/02/06
Author (S):
COURTEOUS Mr., C. Key DURAND
:
U7.05.21-D1 Page:
3/4
3 Operands
FORMAT and UNITE
3.1 Operand
FORMAT
Operand FORMAT makes it possible to specify the format of the file where to write the result.
Format “MED” means with procedure IMPR_RESU that the result must be written in a file with
format MED.
3.2 Operand
UNITE
Defines in which unit one writes the file med. By defect, UNITE = 80 and corresponds to the unit by
defect of the rmed type in astk.
4 Word
key
RESU
This key word factor makes it possible to specify the results to print and the format according to which one wants them
to print.
5 Operands
5.1 Operand
MAILLAGE
If the result is a grid (operand grid [U4.91.01]), the data deferred in the file
result with format MED are:
·
the list of the nodes
number, name, coordinated,
·
the list of the meshs
number, name, type, name of the nodes,
·
the list of the groups of nodes
number, name, a number of nodes, names of the nodes,
·
the list of the groups of meshs
number, name, a number of meshs, names of the meshs.
Note:
In a file MED, there is partition of the nodes and the meshs according to the groups. One
partition corresponds to a family MED. In a file MED, the groups are distributed with
center of the families: families of nodes and families of elements are thus found there.
5.2 Operand
RESULTAT
Operand RESULTAT makes it possible to print in a file MED, fields contained in a concept
result. With format MED, one can print only fields with the nodes indicated by the key word
NOM_CHAM.
One writes in file “MESSAGE” following information:
·
operand “RESULTAT”,
·
operand “NOM_CHAM”,
·
operand “NUME_ORDRE”,
·
name of the field stored in file MED: concatenation of the three preceding ones
operands.
5.3 Operands
NOM_CHAM/NUME_ORDRE/NUME_MODE/NOEUD_CMP/
NOM_CAS/ENG/FREQ/INST/PRECISION/CRITERION/FILE
Cf document [U4.91.01].
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Procedure IMPR_RESU (FORMAT “MED”)
Date:
22/02/06
Author (S):
COURTEOUS Mr., C. Key DURAND
:
U7.05.21-D1 Page:
4/4
6 Example
IMPR_RESU =
(
FORMAT
=
“MED”,
RESU
=
_F
(
RESULTAT
=
REMEZERO,
NOM_CHAM
=
“ERRE_ELGA_NORE”,
NUM_ORDRE
=
3,
)
)
The execution of command IMPR_RESU will cause the following display in the file
“MESSAGE”:
RESULTAT
:
REMEZERO
CHAMP
:
ERRE_ELGA_NORE
NUME_ORDRE
: 3
==> NAME MED: REMEZEROERRE_ELGA_NORE___________3
7
Interest of the writing of a result in a file with the format
MED
MED is a format of file for the data exchanges between codes. Any computer code
having an interface MED is able to exchange information with any other code
having this same interface.
In fact a result (grid or field) written in a file with format MED by the command
IMPR_RESU can be read by any computer code having an interface of reading MED.
Fields by element at the points of Gauss:
Library MED 2.2 has the concept of element of reference, necessary to knowledge
complete of a field defines in the points of Gauss (the element of reference provides the position and the weight
of each point of Gauss). IMPR_RESU does not print yet this information in file MED.
This does not pose a problem when one reads again the file with Code_Aster (or Homard); but if one reads again
the file with another computer code coherence is not ensured, this last not having
necessarily same elements of reference.
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A
Outline document