Code_Aster ®
Version
7.4
Titrate:
Operator LIRE_MAILLAGE (FORMAT “MED”)


Date:
15/02/05
Author (S):
COURTEOUS Mr., C. Key DURAND
:
U7.01.21-C Page
: 1/4

Organization (S): EDF-R & D/AMA

Handbook of Utilization
U7.0- booklet: Data exchanges
Document: U7.01.21

Operator LIRE_MAILLAGE (FORMAT “MED”)

1 Goal

To see a grid in a file with format MED. The key words are extracted from the command
LIRE_MAILLAGE [U4.21.01]. As well as in a file with format “ASTER”, reading of one
grid in a file with format MED, makes it possible to constitute a concept of the grid type.

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: fields with the nodes, fields
by element. Files MED are binary and portable files (being pressed on the library
HDF, Hierarchical Dated Format). The reading of a file MED by LIRE_MAILLAGE, allows
to recover a grid produced by any other code able to create a file MED.

Version 2.2 of MED is used as well in reading as in writing of files MED for version 7.4
of Aster. However, team MED ensures the upward compatibility between the versions of MED.

One can convert a file med 2.1 into med 2.2 with the utility med_import provided with med 2.2.
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-66/05/004/A

Code_Aster ®
Version
7.4
Titrate:
Operator LIRE_MAILLAGE (FORMAT “MED”)


Date:
15/02/05
Author (S):
COURTEOUS Mr., C. Key DURAND
:
U7.01.21-C Page
: 2/4

2 Syntax


my [grid] = LIRE_MAILLAGE





(
UNITE =/20,
[DEFAUT]











/I,





[I]







FORMAT
=/“MED”,








NOM_MED =
nomamd, [TXM]






INFO_MED
=
/
1,
[DEFAUT]











/2,







INFO =
/
1,
[DEFAUT]











/2,





)

Handbook of Utilization
U7.0- booklet: Data exchanges
HT-66/05/004/A

Code_Aster ®
Version
7.4
Titrate:
Operator LIRE_MAILLAGE (FORMAT “MED”)


Date:
15/02/05
Author (S):
COURTEOUS Mr., C. Key DURAND
:
U7.01.21-C Page
: 3/4

3 Operands


3.1 Operand
UNITE

UNITE = I

Logical number of unit of the file grid to the format med. The default value is 20 which is
used for the Aster format.

Caution:

astk positions to 21 the number associated with a file with grid MED (standard mmed). It is necessary
to take care of coherence.

3.2 Operand
FORMAT

FORMAT
=/“MED”

Operand FORMAT makes it possible to specify the format of the file to reading. Format “MED” means with
procedure LIRE_MAILLAGE which the grid with reading is in a file with format MED.

As well as for a file with format ASTER, the data read 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 meshs are thus found there. At the time of
the reading of a file MED, the lists of the groups of nodes and meshs are made up with
the flight by decomposition of the families.

3.3 Operand
NOM_MED

NOM_MED = nomamd

A file MED can contain several grids. Each grid is located by its name. For
to see a grid in particular, it is necessary to provide its name in argument of this key word NOM_MED. In
the absence of key word, the first grid found in the file will be read. It is the solution
comfortable when it is known that the file contains only one grid.

3.4 Operand
INFO_MED

INFO_MED
=
/
1
[DEFAUT]





/2

Level of impression in file “MESSAGE”. This operand supplements operand INFO of
order LIRE_MAILLAGE and provides information specific to format MED.

INFO_MED: 1
no impression
INFO_MED: 2
impression in file “MESSAGE”:

correspondence enters the families of file MED and the groups of nodes and meshs.

Note:

It frequently happens that the name of the grid printed by the library med comprises one
nonASCII character what can corrupt the diagnosis displayed by the follow-up of the jobs of astk
(diagnosis “?”).
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-66/05/004/A

Code_Aster ®
Version
7.4
Titrate:
Operator LIRE_MAILLAGE (FORMAT “MED”)


Date:
15/02/05
Author (S):
COURTEOUS Mr., C. Key DURAND
:
U7.01.21-C Page
: 4/4

3.5 Operand
INFO

Level of impression.

If: INFO: 2:

-
titrate grid,
-
a number of nodes,
-
numbers total meshs,
-
a number of meshs of each type,
-
a number of groups of nodes, names of the groups,
-
a number of groups of meshs, names of the groups,
-
impression of all the elements of each list:

list nodes
number, name, coordinated,
list meshs
number, name, type, name of the nodes,
list groups of nodes
number, name, a number of nodes, names of the nodes,
list groups of meshs
number, name, a number of meshs, names of the meshs.

4 Example

GRID = LIRE_MAILLAGE
(
FORMAT
=
“MED”,
UNITE
=
21,
NOM_MED =
“MAILLAGE_COMMUN”,
INFO_MED
=
2
)

5
Which is the interest of 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.

The reading of a file MED by LIRE_MAILLAGE makes it possible to recover a grid produced by one
another code interfaced with MED. This format of data is in particular used for the exchanges of
files of grids and results between ASTER and the tool of refinement of grid HOMARD.

One can find documentation on the format of data MED on the site code-aster.org,
Produit page.
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-66/05/004/A

Outline document