Code_Aster
®
Version
7.4
Titrate:
Operator
DEFI_LIST_ENTI
Date:
20/12/04
Author (S):
COURTEOUS Mr., J. PELLET, L. VIVAN
Key
:
U4.34.02-H
Page
:
1/4
Instruction manual
U4.3- booklet: Function
HT-66/04/004/A
Organization (S):
EDF-R & D/AMA, CS IF
Instruction manual
U4.3- booklet: Function
Document: U4.34.02
Procedure
DEFI_LIST_ENTI
1 Goal
To create a list of strictly increasing entireties.
The list can be given “in extenso” by the user, or, it can be formed from under
lists defined in “constant pitch”.
Product a structure of data of the listis type.
Code_Aster
®
Version
7.4
Titrate:
Operator
DEFI_LIST_ENTI
Date:
20/12/04
Author (S):
COURTEOUS Mr., J. PELLET, L. VIVAN
Key
:
U4.34.02-H
Page
:
2/4
Instruction manual
U4.3- booklet: Function
HT-66/04/004/A
2 Syntax
Li [listis] = DEFI_LIST_ENTI
(/
VALE =
read,
[l_I]
/
BEGINNING
=
deb.
,
[I]
INTERVALLE= (_F (
JUSQU_A =
yew
,
[I]
/A NUMBER
= in
, [I]
/
NOT
=
ipas,
[I]
),),
INFORMATION
=/
1
,
[DEFECT]
/2,
TITRATE
= title
,
[l_Kn]
)
Code_Aster
®
Version
7.4
Titrate:
Operator
DEFI_LIST_ENTI
Date:
20/12/04
Author (S):
COURTEOUS Mr., J. PELLET, L. VIVAN
Key
:
U4.34.02-H
Page
:
3/4
Instruction manual
U4.3- booklet: Function
HT-66/04/004/A
3 Operands
3.1 Operand
VALE
VALE = read
List entireties which will form the structure of data
listis
result, one can provide does not import
which list Python.
3.2 Operand
BEGINNING
BEGINNING
=
deb.
: first entirety of the list to be built.
3.3 Word
key
INTERVAL
INTERVAL
Key word factor whose each occurrence makes it possible to define an interval at constant pitch.
3.3.1 Operand
JUSQU_A
JUSQU_A = yew
yew
is the whole end of the interval to be cut out with a constant pitch.
3.3.2 Operand
NOT
/NOT
= ipas
No interval division.
3.3.3 Operand
NUMBERS
/
NUMBERS = in
Numbers of pitches which one wants in the interval.
3.4 Operand
INFORMATION
INFORMATION = I
Indicate the level of impression of the results of the operator:
1
: no impression,
2
: impression of the list of entireties created.
3.5 Operand
TITRATE
TITRATE = title
Titrate attached to the concept produced by this operator [U4.03.01].
Code_Aster
®
Version
7.4
Titrate:
Operator
DEFI_LIST_ENTI
Date:
20/12/04
Author (S):
COURTEOUS Mr., J. PELLET, L. VIVAN
Key
:
U4.34.02-H
Page
:
4/4
Instruction manual
U4.3- booklet: Function
HT-66/04/004/A
4 Remarks
·
it is checked that the list is increasing,
·
caution: the structure of data of the listis type cannot be used behind a key word
awaiting a l_I (continuation of entireties written between brackets).
5 Examples
To build the list of entireties to constant pitch:
1
4
7
10
13
16
listi = DEFI_LIST_ENTI
(BEGINNING = 1,
INTERVAL
=
(_F
(JUSQU_A
=
16,
NOT
=
3
),),
)
To build the list of entireties with two values different from the pitch:
1
2
3
4
10
15
5
listi = DEFI_LIST_ENTI
(BEGINNING =
1,
INTERVAL
=
(_F
(JUSQU_A
=
5,
NOT
=
1,
),
_F (JUSQU_A
=
15,
NOT
=
5,
),)
)
or
listi = DEFI_LIST_ENTI
(BEGINNING =
1,
INTERVAL
=
(_F
(JUSQU_A
=
5,
NUMBERS
=
4,
),
_F (JUSQU_A
=
15,
NUMBERS
=
2,
),),
)
or, from object does not import lists Python:
listi = DEFI_LIST_ENTI (VALE = arranges (10),)