Code_Aster ®
Version
8.2
Titrate:
Operator CREA_TABLE


Date:
22/02/06
Author (S):
Key COURTEOUS Mr.
:
U4.33.02-B1 Page:
1/4

Organization (S): EDF-R & D/AMA

Handbook of Utilization
U4.3- booklet: Function
Document: U4.33.02

Operator CREA_TABLE

1 Goal

To create a table.

This command makes it possible to create a table starting from a function or lists of real numbers.
count created has two parameters at least and as many lines as the user wishes it.

The lists used to generate the table must have the same number of terms, or it is necessary
to indicate the numbers of the lines which one wishes to fill.

The function making it possible to fill the cells of the table is tabulée, which means that it is not
known that in certain points. It will have to be as a preliminary defined in the command file with
assistance of command DEFI_FONCTION.

The concept created by this operator is of type counts or its derived types (tabl_…).
Handbook of Utilization
U4.3- booklet: Function HT-62/06/004/A

Code_Aster ®
Version
8.2
Titrate:
Operator CREA_TABLE


Date:
22/02/06
Author (S):
Key COURTEOUS Mr.
:
U4.33.02-B1 Page:
2/4

2 Syntax
Tb [*] = CREA_TABLE (


/FONCTION = _F (


FONCTION
=
fct
[function]






PARA = (npx, npy)





[l_K16]




),

/
LISTE
= (
_F (





/LISTE_I = Li [l_I]






/LISTE_R = Lr [l_R]






/LISTE_K = lk [l_K]







TYPE_K =/`K8 `[DEFECT]

/
“K16”


/
“K24”






NUME_LIGN
=
/
lind,
[l_I]










/
(1,2,3,…)
[DEFAUT]





PARA = npx [K16]




)



TYPE_TABLE
=
/
“TABLE”,
[DEFAUT]







/
“TABL_ ****”,



TITER
= tit, [kN]

)

[*] is the type indicated by TYPE_TABLE.
Handbook of Utilization
U4.3- booklet: Function HT-62/06/004/A

Code_Aster ®
Version
8.2
Titrate:
Operator CREA_TABLE


Date:
22/02/06
Author (S):
Key COURTEOUS Mr.
:
U4.33.02-B1 Page:
3/4

3 Word
key
FONCTION

3.1 Operand
FONCTION

The table is created starting from a function. The first column of the table contains the X-coordinates of
function and the second values of the function to the corresponding X-coordinates.

3.6 Operand
PARA

Names of the parameters of the table. This key word is optional: the names of the parameters are then
identical to the NOM_PARA and NOM_RESU of the function. If it is indicated, its cardinal must be equal to
2: name of parameter for the column associated with the X-coordinates, name of parameter for the column
associated the ordinates.

4 Word
key
LISTE

This key word must be provided at least 2 times: each occurrence makes it possible to define a column of
count.

The lists do not have necessarily the same cardinal, one uses key word NUME_LIGN to indicate
which lines must be filled.

4.1 Operand
LISTE_R

A column is created in the table starting from a list of reality.

4.2 Operand
LISTE_I

A column is created in the table starting from a list of entireties.

3.5 Operand
LISTE_K

A column is created in the table starting from a list of character strings.

4.3 Operand
TYPE_K

Length of the character strings for case LISTE_K.

4.4 Operand
NUME_LIGN

When the lists do not have all the same cardinal or to build a table with holes, one uses
this key word to specify which lines are filled.

4.5 Operand
PARA

Name of the parameter of the table associated with the provided list.

Handbook of Utilization
U4.3- booklet: Function HT-62/06/004/A

Code_Aster ®
Version
8.2
Titrate:
Operator CREA_TABLE


Date:
22/02/06
Author (S):
Key COURTEOUS Mr.
:
U4.33.02-B1 Page:
4/4

5 Examples

5.1
Creation of a table starting from a function

FCT=DEFI_FONCTION (NOM_PARA=' X',
VALE= (0.0, 5.0, 4.0, 17.5)) ;

T_FCT=CREA_TABLE (FONCTION=_F (FONCTION=FCT));

IMPR_TABLE (TABLE=T_FCT);

The impression of the table created is as follows:

X TOUTRESU
0.00000E+00 5.00000E+00
4.00000E+00 1.75000E+01

5.2
Creation of a table starting from three lists, heterogeneous types

T_LST=CREA_TABLE (LISTE= (
_F (LISTE_R= (0.0, 4.0), PARA=' X'),
_F (LISTE_R = (5.0, 17.5), PARA=' Y'),);
_F (LISTE_I = (6.7), PARA=' K')

IMPR_TABLE (TABLE=T_LST);

The impression of the table created is as follows:

X Y K
0.00000E+00 5.00000E+00 6
4.00000E+00 1.75000E+01 7

5.3
Creation of a table with holes

TAB=CREA_TABLE (
LISTE= (
_F (
PARA=' NUME_ORDRE',
LISTE_I= (8,15,156,67),
),
_F (
PARA=' VAR',
LISTE_R= (2., 15., 18),
NUME_LIGN= (1,3,4),
),
_F (
PARA=' COMMENT',
LISTE_K= (“VALUE”,),
TYPE_K=' K24',
NUME_LIGNE=1,
),
),

The impression of the table created is as follows:

NUME_ORDRE

VAR
COMMENT
8 2.00000E+00
VALEUR
15 ­



-
156 1.50000E+01
-
67 1.80000E+01
-
Handbook of Utilization
U4.3- booklet: Function HT-62/06/004/A

Outline document