Code_Aster ®
Version
4
Titrate:
Structures of data listr8 and listis
Date:
28/01/1999
Author (S):
J. PELLET
Key:
D4.02.01
Page: 1/4
Department Mécanique and Modèles Numériques
Index:
With
Diffusion:
Users - Developers
Handbook of Descriptif Informatique
D4.02 booklet:
D4.02.01 document
Structures of data listr8 and listis
Summary:
One describes the structures of data here:
listr8: list realities created by DEFI_LIST_REEL [U4.21.04]
listis: list entireties created by DEFI_LIST_ENTI [U4.21.05]
EDF
Direction of Etudes and Recherches
Electricity of France
Project Code de Mécanique
Copyright EDF/DER 1997
Code_Aster ®
Version
4
Titrate:
Structures of data listr8 and listis
Date:
28/01/1999
Author (S):
J. PELLET
Key:
D4.02.01
Page: 2/4
1
Structures of data listr8 and listis
in “2 words”
The structure of data listr8 contains a list of realities.
The structure of data listis contains a list of entireties.
2
Tree structure
Listr8
(K19)
:: =
record
“.BINT”
:
S
V
R8
“.LPAS”
:
S
V
R8
“.NBPA”
:
S
V
I
“.VALE”
:
S
V
R8
$VIDE
:
TITER
LISTIS
(K19)
:: =
record
“.BINT”
:
S
V
I
“.LPAS”
:
S
V
I
“.NBPA”
:
S
V
I
“.VALE”
:
S
V
I
$VIDE
:
TITER
3
Contents of the objects
We detail the contents of the objects of the structure of data listr8, those of the structure of
data listis are identical in all points to the only difference of objects “.BINT”” .LPAS " and
“.VALE” which contain entireties in the place of realities.
The structure can seem complicated to store a list of realities. Object “.VALE” would be enough. It
indeed the list contains. The structure is conceived to benefit owing to the fact that the numbers of
list can be regularly spaced: list “with constant step” per pieces. In this case, some
algorithms use this concept of constant step.
The description of the list in fact is doubled:
·
“.VALE”: the list of the values contains,
·
“.BINT”,” .LPAS " and “.NBPA”: information equivalent to this list contains.
Handbook of Descriptif Informatique
D4.02 booklet:
Index A
Code_Aster ®
Version
4
Titrate:
Structures of data listr8 and listis
Date:
28/01/1999
Author (S):
J. PELLET
Key:
D4.02.01
Page: 3/4
If the list can be represented graphically by:
1
1
2
2
2
3
3
a0
a1
has
has
has
2
has
3
a4
a5
6
7
“.VALE”
:
S
V
R8
dim =
8
v (1)
=
a0
v (2)
=
a1
…
v (8)
=
a7
“.BINT”
:
S
V
R8
dim =
4
v (1)
=
a0
v (2)
=
a2
v (3)
=
a5
v (4)
=
a7
This object contains the ends of the zones where the step is constant.
“.LPAS”
:
S
V
R8
dim =
3
v (1)
=
1
value of the 1st step
v (2)
=
2
value of the 2nd step
v (3)
=
3
value of the 3rd step
“.NBPA”
:
S
V
I
dim =
3
v (1)
=
2
a number of intervals length 1
v (2)
=
3
a number of intervals length 2
v (3)
=
2
a number of intervals length 3
4
Examples
4.1
Command file
DEBUT
();
%
listr8
=
DEFI_LIST_REEL
(
TITER
:
“this is a listr8”
DEBUT
:
1.
INTERVALLE
:
(JUSQU_A:5. PAS:2.)
INTERVALLE
:
(JUSQU_A:7. NOMBRE:2)
);
%
listis
=
DEFI_LIST_ENTI
(
TITER
:
“this is a listis”
VALE
:
(1,3,5,6,7)
);
%
IMPR_CO
(CO:(listr8, listis)
ATTRIBUT:“NON”
BASE:“G” IMPR:1);
Handbook of Descriptif Informatique
D4.02 booklet:
Index A
Code_Aster ®
Version
4
Titrate:
Structures of data listr8 and listis
Date:
28/01/1999
Author (S):
J. PELLET
Key:
D4.02.01
Page: 4/4
FIN ();
Handbook of Descriptif Informatique
D4.02 booklet:
Index A
Code_Aster ®
Version
4
Titrate:
Structures of data listr8 and listis
Date:
28/01/1999
Author (S):
J. PELLET
Key:
D4.02.01
Page: 5/4
4.2
Contents of the objects
====> IMPR_CO OF THE STRUCTURE OF DATA: LISTR8????????????????
ATTRIBUT: F CONTENTS: T BASE: >G<
A NUMBER Of OBJECTS (OR COLLECTIONS) FIND:5
==================================================================================
======
IMPRESSION OF THE CONTENTS OF THE OBJECTS FIND:
----------------------------------------------------------------------------------
------
SEGMENT IMPRESSION OF VALUES >LISTR8
.BINT
<
1 - 1.00000E+00 5.00000E+00 7.00000E+00
----------------------------------------------------------------------------------
------
SEGMENT IMPRESSION OF VALUES >LISTR8
.LPAS
<
1 - 2.00000E+00 1.00000E+00
----------------------------------------------------------------------------------
------
SEGMENT IMPRESSION OF VALUES >LISTR8
.NBPA
<
1 -
2
2
----------------------------------------------------------------------------------
------
SEGMENT IMPRESSION OF VALUES >LISTR8
.TITR
<
1 - > this is a listr8
<
----------------------------------------------------------------------------------
------
SEGMENT IMPRESSION OF VALUES >LISTR8
.VALE
<
1 - 1.00000E+00 3.00000E+00 5.00000E+00 6.00000E+00 7.00000E+00
====> FINE IMPR_CO OF STRUCTURE OF DATA: LISTR8????????????????
====> IMPR_CO OF THE STRUCTURE OF DATA: LISTIS????????????????
ATTRIBUT: F CONTENTS: T BASE: >G<
A NUMBER Of OBJECTS (OR COLLECTIONS) FIND:5
==================================================================================
======
IMPRESSION OF THE CONTENTS OF THE OBJECTS FIND:
----------------------------------------------------------------------------------
------
SEGMENT IMPRESSION OF VALUES >LISTIS
.BINT
<
1 -
1
3
5
6
7
----------------------------------------------------------------------------------
------
SEGMENT IMPRESSION OF VALUES >LISTIS
.LPAS
<
1 -
2
2
1
1
----------------------------------------------------------------------------------
------
SEGMENT IMPRESSION OF VALUES >LISTIS
.NBPA
<
1 -
1
1
1
1
----------------------------------------------------------------------------------
------
SEGMENT IMPRESSION OF VALUES >LISTIS
.TITR
<
1 - > this is a listis
<
----------------------------------------------------------------------------------
------
SEGMENT IMPRESSION OF VALUES >LISTIS
.VALE
<
1 -
1
3
5
6
7
Handbook of Descriptif Informatique
D4.02 booklet:
Index A