Code_Aster ®
Version
7.4
Titrate:
Operator DEFI_LIST_REEL


Date:
20/12/04
Author (S):
COURTEOUS Mr., J. Key PELLET
:
U4.34.01-H Page
: 1/4

Organization (S): EDF-R & D/AMA
Handbook of Utilization
U4.3- booklet: Function
Document: U4.34.01

Operators DEFI_LIST_REEL

1 Goal

To create a strictly increasing list of realities.

The list can be given “in extenso” by the user, or, it can be formed from under
lists defined in “constant step”.

Product a structure of data of the listr8 type.
Handbook of Utilization
U4.3- booklet: Function
HT-66/04/004/A

Code_Aster ®
Version
7.4
Titrate:
Operator DEFI_LIST_REEL


Date:
20/12/04
Author (S):
COURTEOUS Mr., J. Key PELLET
:
U4.34.01-H Page
: 2/4

2 Syntax

Lr
[listr8] = DEFI_LIST_REEL


(/
VALE= lr8
,
[l_R]





/

DEBUT=
debu,
[R]







INTERVALLE= (_F (JUSQU_A
=
r1,
[R]














/NOMBRE
= n1,
[I]

/
PAS
=
r2,
[R]
),),




INFO
=
/
1
,
[DEFAUT]









/2,





TITER
= title
,
[l_Kn]


)

Handbook of Utilization
U4.3- booklet: Function
HT-66/04/004/A

Code_Aster ®
Version
7.4
Titrate:
Operator DEFI_LIST_REEL


Date:
20/12/04
Author (S):
COURTEOUS Mr., J. Key PELLET
:
U4.34.01-H Page
: 3/4

3 Operands

3.1 Operand
VALE

VALE = lr8

List realities which will form the structure of data listr8 result.
This list can be built starting from a Python list.

3.2 Operand
DEBUT

DEBUT
=

It is the first reality of the list of realities which one wants to build.

3.3 Operand
INTERVALLE

INTERVALLE
=


JUSQU_A
=
r1

It is the end of the interval which one will cut out with a constant step.


/NOMBRE
= n1

It is the number of steps which one wants in the interval which ends in r1.

/
PAS
=
r2

It is the step of division interval.

3.4 Operand
INFO

INFO
=
I

Indicate the level of impression of the results of the operator.

1: no impression,
2: impression of the list of realities created

3.5 Operand
TITER

TITER
= title

Titrate that the user wants to give to his list realities.

4 Remarks

·
when key word PAS is used it may be that the number of calculated step is not rigorously
entirety. One “will then adapt” the last interval to fall down exactly on the end value
(JUSQU_A). If for that, one modifies the step value of more than 1/1000 one emits an alarm,
·
caution: this command produces a structure of data listr8 which can only be used
in the commands awaiting such structures of data and not in those which wait
lists of realities (notation: l_R).
Handbook of Utilization
U4.3- booklet: Function
HT-66/04/004/A

Code_Aster ®
Version
7.4
Titrate:
Operator DEFI_LIST_REEL


Date:
20/12/04
Author (S):
COURTEOUS Mr., J. Key PELLET
:
U4.34.01-H Page
: 4/4

5 Examples

Example 1:

Let us imagine that one wants to create the list:

1. 3. 5. 10. 15. 20. 25. 26. 27. 28.

who is such as the step is: 2.
from 1.
to 5.










5. of 5.
to 25.










1. of 25.

to 28.

One can write:

Lr = DEFI_LIST_REEL (DEBUT

= 1.,







INTERVALLE
= (_F (JUSQU_A= 5. , NOMBRE= 2,),
_F
(JUSQU_A=
25.,
NOMBRE=
4,
),
_F
(JUSQU_A=
28.,
PAS=
1.,),),







)

Example 2:

To create the list: 1.
3.
12.
13.

One can write:

Lr = DEFI_LIST_REEL (VALE = (1., 3., 12., 13.),)

Example 3:

One can build a Python list in this manner.

Lr = DEFI_LIST_REEL (VALE = [sqrt (I) for I in arranges (5)],)

Handbook of Utilization
U4.3- booklet: Function
HT-66/04/004/A

Outline document