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
Instruction manual
U4.3- booklet: Function
HT-66/05/004/A
Organization (S):
EDF-R & D/AMA, EDF-Pole Industry/CNPE of Tricastin
Instruction manual
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.
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
Instruction manual
U4.3- booklet: Function
HT-66/05/004/A
3 Operands
3.1 Operand
UNIT
UNIT = 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,
·
“REEL_IMAG”
real part and imaginary part.
3.3 Operand
NOM_PARA
Defines the name of the parameter of the function (X-coordinate)
“FREQ” DEFECT
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”
·
“LINEAR”
for a prolongation along the first definite segment
(
PROL_GAUCHE
) or of the last definite segment
(
PROL_DROITE
).
·
“EXCLUDED”
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.
·
“FLAX”
linear interpolation between two values of the field of definition.
3.7 Operand
INFORMATION
INFORMATION
=
Specify the options of impression on the 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
more the list of the first 10 values of each function in the order
crescent of the parameter
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
Instruction manual
U4.3- booklet: Function
HT-66/05/004/A
5 Remarks
of use
In addition to the produced concept of type
tabl_intsp
, the operator creates concepts of the type
fonction_C
associated the defined functions, of the matrix interspectrale. These functions are accessible to
the user using the control
RECU_FONCTION
[U4.32.03] or by printing them with
IMPR_TABL
[U4.91.03]. They will be printed with the 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
END
.
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 one
fonction_C
Notice preliminary:
“, the number of functions to be defined is equal to:
N = (
dim
* (
dim
+1))/2, since the matrix considered is
“SQUARE”
.
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 =
entirety
index line of the function in the matrix.
J =
entirety
index column of the function in the matrix.
NB_POIN =
entirety
a number of points of
FUNCTION
VALUE =
3 *
NB_POIN
realities 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 the format
MODULE_PHASE
, the phase is given in degree.
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
Instruction manual
U4.3- booklet: Function
HT-66/05/004/A
6 Example
Example of syntax of file user:
INTERSPECTRE
DIM = 2
FONCTION_C
I = 1
J = 1
NB_POIN = 4
VALUE =
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
VALUE =
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
VALUE =
0. 20.
0.1
10. 20. 0.1
10.01 0.
0.
100. 0.
0.
FINSF
END
Example of syntax of the control:
AUTOSPC=LIRE_INTE_SPEC (
UNITE=19,
FORMAT=' MODULE_PHASE',
PROL_DROITE=' EXCLU',
PROL_GAUCHE=' EXCLU',
INTERPOL=' LIN'
)