Code_Aster
®
Version
8.2
Titrate:
Procedure IMPR_RESU (FORMAT “MED”)
Date:
22/02/06
Author (S):
COURTEOUS Mr.,
C. DURAND
Key
:
U7.05.21-D1
Page:
1/4
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
Organization (S):
EDF-R & D/AMA
Instruction manual
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
order
IMPR_RESU
[U4.91.01] concerning this format of exit only.
One can write with the choice in a file with format MED:
·
a mesh,
·
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,
the aforementioned must have the same elements of reference to ensure coherence.
MED (Modeling and Data exchanges) 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 mesh 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 control
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.
Code_Aster
®
Version
8.2
Titrate:
Procedure IMPR_RESU (FORMAT “MED”)
Date:
22/02/06
Author (S):
COURTEOUS Mr.,
C. DURAND
Key
:
U7.05.21-D1
Page:
3/4
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
3 Operands
FORMAT and UNIT
3.1 Operand
FORMAT
The operand
FORMAT
allows to specify the format of the file where to write the result.
The format '
MED
'means with the procedure
IMPR_RESU
that the result must be written in a file with
format MED.
3.2 Operand
UNIT
Defines in which unit one writes the file med. By defect, UNIT = 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
MESH
If the result is a mesh (operand
mesh
[U4.91.01]), 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
RESULT
The operand
RESULT
allows to print in a file
MED
, of the fields contained in a concept
result
. With the format
MED
, one can print only fields with the nodes indicated by the key word
NOM_CHAM
.
One writes in the file '
MESSAGE
'following information:
·
operand '
RESULT
',
·
operand 'NAME
_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].
Code_Aster
®
Version
8.2
Titrate:
Procedure IMPR_RESU (FORMAT “MED”)
Date:
22/02/06
Author (S):
COURTEOUS Mr.,
C. DURAND
Key
:
U7.05.21-D1
Page:
4/4
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
6 Example
IMPR_RESU =
(
FORMAT
=
'
MED
',
RESU
=
_F
(
RESULT
=
REMEZERO,
NOM_CHAM
=
'
ERRE_ELGA_NORE
',
NUM_ORDRE
=
3,
)
)
Execution of the control
IMPR_RESU
the following display in the file will cause
'
MESSAGE
':
RESULT
:
REMEZERO
FIELD
:
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 (mesh or field) written in a file with format MED by the control
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 Lobster); but if one reads again
the file with another computer code coherence is not ensured, this last not having
necessarily same elements of reference.