Code_Aster ®
Version
7.4
Titrate:
Operator LIRE_INTE_SPEC


Date:
04/02/05
Author (S):
S. CAMBIER. G. JACQUART Key
:
U4.36.01-G Page
: 1/6

Organization (S): EDF-R & D/AMA, EDF-Pôle Industrie/CNPE of Tricastin

Handbook of Utilization
U4.3- booklet: Function
U4.36.01 document

Operator LIRE_INTE_SPEC

1 Goal

To see on an external file of the complex functions to create a matrix interspectrale.

The file user is coded in ASCII.
The functions read are of fonction_C type.
The produced concept is of tabl_intsp type.

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

Code_Aster ®
Version
7.4
Titrate:
Operator LIRE_INTE_SPEC


Date:
04/02/05
Author (S):
S. CAMBIER. G. JACQUART Key
:
U4.36.01-G Page
: 2/6

2 Syntax
int [tabl_intsp] = LIRE_INTE_SPEC



(
UNITE
=
/
U
[I]




FORMAT
=
/
“REEL_IMAG”







/
“MODULE_PHASE”
[DEFAUT]




TITER
=




NOM_PARA
=
/
“DX”
/
“DY”
/
“DZ”
/
“DRX”
/
“DRY”
/
“DRZ”
/
“TEMP”
/
“INST”














/“X”














/“Y”














/“Z”
/
“EPSI”
/
“FREQ”
/
“PULS”
/
“AMOR”
/
“ABSC”




NOM_RESU
=
nomren
[KN]




PROL_DROITE
=
/
“CONSTANT” [DEFECT]







/
“LINEAIRE”










/
“EXCLU”




PROL_GAUCHE
=
/
“CONSTANT”






/
“LINEAIRE”


/
“EXCLUDED” [DEFECT]




Interpol
=
I “NOT”














I “LOG”














I “FLAX”
[DEFAUT]




INFORMATION =/1 [DEFECT]














/2



);

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

Code_Aster ®
Version
7.4
Titrate:
Operator LIRE_INTE_SPEC


Date:
04/02/05
Author (S):
S. CAMBIER. G. JACQUART Key
:
U4.36.01-G Page
: 3/6

3 Operands

3.1 Operand
UNITE

UNITE = U

Logical number of unit of the external file on which the reading is made.

3.2 Operand
FORMAT

The format of reading of the complex function defines:

·
“MODULE_PHASE” by defect,
·
Real left “REEL_IMAG” and imaginary part.

3.3 Operand
NOM_PARA

The name of the parameter of the function (X-coordinate) defines “FREQ” DEFAUT

3.4 Operand
NOM_RESU

The name of the result of the function defines (ordered)

3.5 Operands
PROL_DROITE/PROL_GAUCHE

PROL_DROITE
=

The prolongation of the function on the right field of definition of the variable defines.

PROL_GAUCHE
=

The prolongation of the function on the left field of definition of the variable defines:

·
“CONSTANT”

·
“LINEAIRE”
for a prolongation along the first definite segment
(PROL_GAUCHE) or of the last definite segment
(PROL_DROITE).
·
“EXCLU”
if the extrapolation of the values apart from the field of definition of
parameter is prohibited.

3.6 Operand
Interpol

Interpol
=

·
“LOG” interpolation logarithmic curve between two values of the field of definition.
·
“LIN” linear interpolation between two values of the field of definition.

3.7 Operand
INFO

INFO
=

Specify the options of impression on file MESSAGE.

1
impression of the attributes of the functions: a number of points of definition, names of
parameter and of the result, as well as options of prolongation and checking
2
like 1 plus the list of the first 10 values of each function in the order
crescent of the parameter
Handbook of Utilization
U4.3- booklet: Function
HT-66/05/004/A

Code_Aster ®
Version
7.4
Titrate:
Operator LIRE_INTE_SPEC


Date:
04/02/05
Author (S):
S. CAMBIER. G. JACQUART Key
:
U4.36.01-G Page
: 4/6

For example:

·
PROL_DROITE = “CONSTANT”, PROL_GAUCHE = “CONSTANT”

y
x1
x2
xn-1
xn
X

·
PROL_DROITE = “LINEAR”, PROL_GAUCHE = “EXCLUDED”

y
x1
x2
xn-1
xn
X

4
Phase of checking

Checking of the number of values read by functions.

Checking of the number of functions read.

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

Code_Aster ®
Version
7.4
Titrate:
Operator LIRE_INTE_SPEC


Date:
04/02/05
Author (S):
S. CAMBIER. G. JACQUART Key
:
U4.36.01-G Page
: 5/6

5 Remarks
of use

In addition to the produced concept of tabl_intsp type, the operator creates concepts of the fonction_C type
associated the defined functions, of the matrix interspectrale. These functions are accessible to
the user using command RECU_FONCTION [U4.32.03] or by printing them with
IMPR_TABL [U4.91.03]. They will be printed with format MODULE_PHASE.

The names of the parameter and result of the functions have as a default value “FREQ” and “DSP”.

5.1
Syntax of the file

The information read on the file is made up of three parts:

·
a key word of head of imposed chapter: INTERSPECTRE.
·
the key word DIM, dimension of the matrix.
·
“subfiles defining “complex functions. Each subfile starts with
key word FONCTION_C and ends in FINSF.
·
the file ends obligatorily in FIN.

5.2 Descriptor
5.2.1 Key word describing caractérisques matrix

DIM = dim

Entirety makes it possible to define the dimension of the matrix.

Note:

The sign “=” is obligatory.

5.2.2 Key word describing a fonction_C

Notice preliminary:

“, the number of functions to be defined is equal to:
N = (dim * (dim+1))/2, since the matrix considered is “HERMITIENNE”.

N functions are defined by their indices I and J in the matrix. Only the triangular part
higher of the matrix is defined, (indices (1,1); (1,2); (2,2); (1,3); … (N, N)).

FONCTION_C

I = whole

index line of the function in the matrix.

J = whole

index column of the function in the matrix.

NB_POIN = whole number of points of the FONCTION

VALEUR =

3 * real NB_POIN must be present. The reading of the values is carried out
line
with
line.

On each line are defined in the following order:

·
the value of the parameter, the real part of the result, the imaginary part of the result
(FORMAT = “REEL_IMAG”),
or

·
the value of the parameter, the module of the result, the phase of the result
(FORMAT = “MODULE_PHASE”),

Note:

For format MODULE_PHASE, the phase is given in degree.
Handbook of Utilization
U4.3- booklet: Function
HT-66/05/004/A

Code_Aster ®
Version
7.4
Titrate:
Operator LIRE_INTE_SPEC


Date:
04/02/05
Author (S):
S. CAMBIER. G. JACQUART Key
:
U4.36.01-G Page
: 6/6

6 Example

Example of syntax of file user:

INTERSPECTRE
DIM = 2
FONCTION_C
I = 1
J = 1
NB_POIN = 4
VALEUR =
0. 10.
0.1
10. 10. 0.1
10.01 0.
0.
100. 0.
0.

FINSF
FONCTION_C
I = 1
J = 2
NB_POIN = 4
VALEUR =
0. 2. 0.5
10. 2. 0.5
10.01 0.
0.
100. 0.
0.

FINSF
FONCTION_C
I = 2
J = 2
NB_POIN =4
VALEUR =
0. 20.
0.1
10. 20. 0.1
10.01 0.
0.
100. 0.
0.

FINSF
FIN

Example of syntax of the command:

AUTOSPC=LIRE_INTE_SPEC (
UNITE=19,
FORMAT=' MODULE_PHASE',
PROL_DROITE=' EXCLU',
PROL_GAUCHE=' EXCLU',
INTERPOL=' LIN'
)

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

Outline document