background image
Code_Aster
®
Version
7.4
Titrate:
Operator
LIRE_TABLE
Date:
07/01/05
Author (S):
C. DURAND
Key
:
U7.02.03-B
Page
:
1/4
Instruction manual
U7.0- booklet: Data exchanges
HT-66/05/004/A
Organization (S):
EDF-R & D/AMA















Instruction manual
U7.0- booklet: Data exchanges
Document:U7.02.03



Operator
LIRE_TABLE








1 Goal
To see a file containing a table.
This control only makes it possible to read a table written in a file under the format ASTER.
This file can come from a IMPR_TABLE to the format ASTER or perhaps a modified unspecified file
so as to give him the characteristics obligatory of the format ASTER.
Product a concept of the type counts.
background image
Code_Aster
®
Version
7.4
Titrate:
Operator
LIRE_TABLE
Date:
07/01/05
Author (S):
C. DURAND
Key
:
U7.02.03-B
Page
:
2/4
Instruction manual
U7.0- booklet: Data exchanges
HT-66/05/004/A
2 Syntax

Tb [table] = LIRE_TABLE
(

UNIT = ific
,
[I]

FORMAT = “ASTER”,
[DEFECT]

NUME_TABLE
=/1,
[DEFECT]
/
nume
,
[I]

TYPE_TABLE =/“TABLE”
,
[DEFECT]
/“TABL_POST_RELE”
,
[K]
/“TABL_POST_ALEA”
,
/“TABL_POST_USUR”
,
/“TABL_CARA_GEOM”
,

SEPARATOR = sep,
[K]


TITRATE
=
titrate,
[l_K]
)
background image
Code_Aster
®
Version
7.4
Titrate:
Operator
LIRE_TABLE
Date:
07/01/05
Author (S):
C. DURAND
Key
:
U7.02.03-B
Page
:
3/4
Instruction manual
U7.0- booklet: Data exchanges
HT-66/05/004/A
3 Operands
3.1 Operand
UNIT
Logical number of unit of the file containing the tables with reading.
3.2 Operand
FORMAT
Name of the format under which the table of the file was written. Only the format
ASTER
is authorized. These
characteristics are illustrated by the following table:
# DEBUT_TABLE
# TITRATES aster 6.03.01 concept S1_G of the type
# TITRATES TABL_POST_RELE
ENTITLE PATH SEGMENT
RESU NOM_CHAM
INST
SIXX
K8
K16 I
K8 K16
R
R
TOTAL
CHEM1
1 SIG SIGM_ELNO_DEPL 0.00000E+00 ­ 1.48981E+07
TOTAL
CHEM1
- SIG
-
1.00000E+00 ­ 2.48981E+07
TOTAL
CHEM1
2 SIG SIGM_ELNO_DEPL 1.00000E+00 ­ 3.48981E+07
# FIN_TABLE
Any table with the format
ASTER
begin with key word # DEBUT_TABLE and ends in # FIN_TABLE.
In fact the limitations make it possible to know where the reading starts and where it stops.
# DEBUT_TABLE is then followed by lines of titles which are obligatorily preceded by the word
key # TITRATES.
Follow then a line containing all the names of the parameters, then a line containing all them
types of these parameters. These types belong obligatorily to the following list: K8, K16, K24,
K32, K80, I, R.
The following lines give the value of all the parameters.
Among the values one can find (-), who means that there is no value for this parameter.
3.3 Operand
NUME_TABLE
It is possible to read a table among several in a file. The number of the ième table is indicated
with reading. By defect, the first table with the format
ASTER
will be read.
3.4 Operand
TYPE_TABLE
This key word makes it possible to typify the table, for the controls using this information.
The default value is
“TABLE”
.
3.5 Operand
SEPARATOR
Several consecutive separators count only for one. One needs a separator before the first
column and after the last.
3.6 Operand
TITRATE
Titrate attached to the concept produced by this operand [U4.03.01].
This title is added to the title already present in the table read.
background image
Code_Aster
®
Version
7.4
Titrate:
Operator
LIRE_TABLE
Date:
07/01/05
Author (S):
C. DURAND
Key
:
U7.02.03-B
Page
:
4/4
Instruction manual
U7.0- booklet: Data exchanges
HT-66/05/004/A
4 Examples
The controls which follow are extracted from case-test ZZZZ128B.
4.1
Creation of a table to the format “ASTER” with IMPR_TABLE
In this example, one writes to several tables with the format “ASTER” in a file.
TT=POST_RELEVE_T (ACTION=_F (ENTITLES = “RESU_U2”,
NODE = (“B”, “It, “Of, “E”, “F”,),
RESULT = U2,
NOM_CHAM = “DEPL”,
TOUT_ORDRE = “YES”,
TOUT_CMP = “YES”,
OPERATION = “EXTRACTION”))

IMPR_TABLE (UNITE=37,
TABLE=TT,
FORMAT=' ASTER')

IMPR_TABLE (UNITE=37,
TABLE=TT,
FORMAT=' ASTER',
NOM_PARA= (“NODE”, “INST”, “ABSC_CURV”,
“DX”, “DY”, “DZ”, “DRX”,)
)
4.2
Reading of tables to the format “ASTER” with LIRE_TABLE
TT2=LIRE_TABLE (UNITE=37,
FORMAT=' ASTER',
NUME_TABLE=1,
SEPARATEUR=' ',
TYPE_TABLE=' TABL_POST_USUR',
TITER=' VALIDATION OF LIRE_TABLE',)
TT_RED=LIRE_TABLE (UNITE=37,
FORMAT=' ASTER',
NUME_TABLE=2,
SEPARATEUR=' ',
TYPE_TABLE=' TABL_POST_RELE',
TITER=' VALIDATION OF LIRE_TABLE',
)