Code_Aster
®
Version
7.4
Titrate:
Operator LIRE_MAILLAGE (FORMAT “MED”)
Date:
15/02/05
Author (S):
COURTEOUS Mr., C. DURAND
Key
:
U7.01.21-C
Page
:
1/4
Instruction manual
U7.0- booklet: Data exchanges
HT-66/05/004/A
Organization (S):
EDF-R & D/AMA
Instruction manual
U7.0- booklet: Data exchanges
Document: U7.01.21
Operator LIRE_MAILLAGE (FORMAT “MED”)
1 Goal
To see a mesh in a file with format MED. The key words are extracted from the control
LIRE_MAILLAGE
[U4.21.01]. As well as in a file with the format “ASTER”, reading of one
mesh in a file with format MED, makes it possible to constitute a concept of the type
mesh
.
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: fields with the nodes, fields
by element. Files MED are binary and portable files (being pressed on the library
HDF, Hierarchical Dated Format). Reading of a file MED by
LIRE_MAILLAGE
, allows
to recover a mesh 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.
Code_Aster
®
Version
7.4
Titrate:
Operator LIRE_MAILLAGE (FORMAT “MED”)
Date:
15/02/05
Author (S):
COURTEOUS Mr., C. DURAND
Key
:
U7.01.21-C
Page
:
2/4
Instruction manual
U7.0- booklet: Data exchanges
HT-66/05/004/A
2 Syntax
my [mesh] = LIRE_MAILLAGE
(
UNIT =/20,
[DEFECT]
/I,
[I]
FORMAT
=/“MED”,
NOM_MED =
nomamd, [TXM]
INFO_MED
=
/
1,
[DEFECT]
/2,
INFORMATION =
/
1,
[DEFECT]
/2,
)
Code_Aster
®
Version
7.4
Titrate:
Operator LIRE_MAILLAGE (FORMAT “MED”)
Date:
15/02/05
Author (S):
COURTEOUS Mr., C. DURAND
Key
:
U7.01.21-C
Page
:
3/4
Instruction manual
U7.0- booklet: Data exchanges
HT-66/05/004/A
3 Operands
3.1 Operand
UNIT
UNIT
= I
Logical number of unit of the file mesh to the format med. The default value is 20 which is
used for the format Aster.
Caution:
astk positions to 21 the number associated with a file with mesh MED (standard mmed). It is necessary
to take care of coherence.
3.2 Operand
FORMAT
FORMAT
=/
'
MED
'
The operand
FORMAT
allows to specify the format of the file to reading. The format '
MED
'means with
procedure
LIRE_MAILLAGE
that the mesh with reading is in a file with format MED.
As well as for a file with the 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 mesh. Each mesh is identified by its name. For
to see a mesh 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 mesh found in the file will be read. It is the solution
comfortable when it is known that the file contains only one mesh.
3.4 Operand
INFO_MED
INFO_MED
=
/
1
[DEFECT]
/2
Level of impression in the file “MESSAGE”. This operand supplements the operand INFORMATION of
order LIRE_MAILLAGE and provides information specific to format MED.
INFO_MED: 1
no impression
INFO_MED: 2
impression in the 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 mesh 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 “?”).
Code_Aster
®
Version
7.4
Titrate:
Operator LIRE_MAILLAGE (FORMAT “MED”)
Date:
15/02/05
Author (S):
COURTEOUS Mr., C. DURAND
Key
:
U7.01.21-C
Page
:
4/4
Instruction manual
U7.0- booklet: Data exchanges
HT-66/05/004/A
3.5 Operand
INFORMATION
Level of impression.
If: INFORMATION: 2:
-
titrate mesh,
-
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
MESH = LIRE_MAILLAGE
(
FORMAT
=
'
MED
',
UNIT
=
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.
Reading of a file MED by
LIRE_MAILLAGE
allows to recover a mesh produced by one
another code interfaced with MED. This format of data is in particular used for the exchanges of
files of mesh and results between ASTER and the tool of refinement of mesh LOBSTER.
One can find documentation on the format of data MED on the site code-aster.org,
produced page.