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
Mechanical department and Digital Models
Index:
With
Dissemination:
Users - Developers
EDF
Direction of the Studies and Search
Electricity of France
Project Codes of Mechanics
Copyright EDF/DER 1997
Data-processing manual of Description
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]
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
Data-processing manual of Description
D4.02 booklet:
Index A
1
Structures of data
listr8
and
listis
in “2 words”
The structure of data
listr8
a list of realities contains.
The structure of data
listis
a list of entireties contains.
2
Tree structure
Listr8
(K19)
:: =
record
“.BINT”
:
S
V
R8
“.LPAS”
:
S
V
R8
“.NBPA”
:
S
V
I
“.VALE”
:
S
V
R8
$VIDE
:
TITRATE
LISTIS
(K19)
:: =
record
“.BINT”
:
S
V
I
“.LPAS”
:
S
V
I
“.NBPA”
:
S
V
I
“.VALE”
:
S
V
I
$VIDE
:
TITRATE
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 the objects
“.BINT”
“.LPAS”
and
“.VALE”
who contain entireties in the place of realities.
The structure can seem intricate to store a list of realities. The 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 pitch” per pieces. In this case, some
algorithms use this concept of constant pitch.
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.
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
Data-processing manual of Description
D4.02 booklet:
Index A
If the list can be represented graphically by:
has
0
has
1
1
has
2
1
has
6
3
3
has
7
2
2
2
has
3
has
4
has
5
“.VALE”
:
S
V
R8
dim =
8
v (1)
=
has
0
v (2)
=
has
1
…
v (8)
=
has
7
“.BINT”
:
S
V
R8
dim =
4
v (1)
=
has
0
v (2)
=
has
2
v (3)
=
has
5
v (4)
=
has
7
This object contains the ends of the areas where the pitch is constant.
“.LPAS”
:
S
V
R8
dim =
3
v (1)
=
1
value of the 1
Er
not
v (2)
=
2
value of the 2
ème
not
v (3)
=
3
value of the 3
ème
not
“.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
BEGINNING
();
%
listr8
=
DEFI_LIST_REEL
(
TITRATE
:
“this is a listr8”
BEGINNING
:
1.
INTERVAL
:
(JUSQU_A:5. NOT:2.)
INTERVAL
:
(JUSQU_A:7. NUMBERS:2)
);
%
listis
=
DEFI_LIST_ENTI
(
TITRATE
:
“this is a listis”
VALE
:
(1,3,5,6,7)
);
%
IMPR_CO
(CO:(listr8, listis)
ATTRIBUTE:“NOT”
BASE:“G” IMPR:1);
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
Data-processing manual of Description
D4.02 booklet:
Index A
END ();
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
Data-processing manual of Description
D4.02 booklet:
Index A
4.2
Contents of the objects
====> IMPR_CO OF THE STRUCTURE OF DATA: LISTR8????????????????
ATTRIBUTE: 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????????????????
ATTRIBUTE: 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