Code_Aster
®
Version
7.4
Titrate:
Operator
DEFI_NAPPE
Date:
27/01/05
Author (S):
COURTEOUS Mr.,
J.P. LEFEBVRE
Key
:
U4.31.03-H
Page
:
1/6
Instruction manual
U4.3- booklet: Function
HT-66/05/004/A
Organization (S):
EDF-R & D/AMA
Instruction manual
U4.3- booklet: Function
Document: U4.31.03
Operator
DEFI_NAPPE
1 Goal
To define a real function of two real variables. This operator allows to define, for example, of
boundary conditions depending on a variable on space and time or two variables on space
or of the data materials (for example of the traction diagrams function of the temperature).
The concept produced by this operator is of type
tablecloth
.
Code_Aster
®
Version
7.4
Titrate:
Operator
DEFI_NAPPE
Date:
27/01/05
Author (S):
COURTEOUS Mr.,
J.P. LEFEBVRE
Key
:
U4.31.03-H
Page
:
2/6
Instruction manual
U4.3- booklet: Function
HT-66/05/004/A
2 Syntax
nf [tablecloth]
= DEFI_NAPPE
(
NOM_PARA
=/
Np
,
[KN]
NOM_RESU
=/
“TOUTRESU”,
[DEFECT]
/
NR
,
[K8]
PARA
=
LP
,
[l_R]
PROL_DROITE
=
/
“CONSTANT”
,
/
“LINEAR”
,
/
“EXCLUDED”
,
[DEFECT]
PROL_GAUCHE
=
/
“CONSTANT”
,
/
“LINEAR”
,
/
“EXCLUDED”
,
[DEFECT]
Interpol
=
|
“FLAX”
, [DEFECT]
|
“LOG”
,
|
“NOT”
,
INFORMATION
=
/
1
,
[DEFECT]
/2,
VERIF
= “GROWING”
,
/
FUNCTION
= lf
[l_fonction]
/
NOM_PARA_FONC
= npf
DEFI_FONCTION
=
_F
(
VALE =
lv
[l_R]
PROL_DROITE
=
/“CONSTANT”
,
/
“LINEAR”
,
/
“EXCLUDED”
,
[DEFECT]
PROL_GAUCHE
=
/“CONSTANT”
,
/
“LINEAR”
,
/
“EXCLUDED”
,
[DEFECT]
Interpol =
|
“FLAX”
, [DEFECT]
|
“LOG”
,
|
“NOT”
,
),
TITRATE
=
Ti,
[l_Kn]
)
Code_Aster
®
Version
7.4
Titrate:
Operator
DEFI_NAPPE
Date:
27/01/05
Author (S):
COURTEOUS Mr.,
J.P. LEFEBVRE
Key
:
U4.31.03-H
Page
:
3/6
Instruction manual
U4.3- booklet: Function
HT-66/05/004/A
3 Operands
3.1 Operand
NOM_PARA
NOM_PARA = Np
Indicate the name of the parameter of the tablecloth (second variable) cf example with [§4.1].
Values currently authorized for
Np
are:
/“TEMP”
/“INST”
/“X”
/“Y”
/“Z”
/“FREQ”
/“SWEATERS”
/“AMOR”
/“THICK”
/“TSEC”
/“HYDR”
/“SECH”
3.2 Operand
NOM_RESU
NOM_RESU = NR
Name of the result, the values of the tablecloth.
In fact, this operand is not useful systematically for checks of coherence, in
execution of the code. These checks of coherence are made by the control
CALC_FONCTION
[U4.32.04].
3.3 Operand
PARA
PARA = LP
List values of the parameter characteristic of the tablecloth:
para1, para2,
… The cardinal of
this list must be equal to the number of functions defined then.
3.4 Operands
PROL_DROITE
and
PROL_GAUCHE
PROL_DROITE and PROL_GAUCHE =
Define the type of prolongation on the right (on the left) of the field of definition of the variable:
“CONSTANT”
for a prolongation with the last (or first) value of the tablecloth,
“LINEAR”
for a prolongation along the first definite segment (
LEFT PROL)
or
last definite segment (
PROL_DROITE
), this prolongation does not hold
not account of a possible interpolation logarithmic curve,
“EXCLUDED”
if the extrapolation of the values apart from the field of definition of
parameter
Np
is prohibited (in this case if a calculation requires a value
function out of the field of definition, the code will stop in error
fatal).
3.5 Operand
Interpol
Interpol
=
Type of interpolation of the function enters the values of the field of definition of the function: one
type for the interpolation of the parameter and for the interpolation of the function. This is obtained in
providing a list of 2 texts among:
Interpol
=
(“FLAX”,
“LOG”)
“FLAX”
:
linear,
“LOG”
:
logarithmic curve,
“NOT”
:
one does not interpolate (and thus the program will stop if for the value is asked
function for a value of the parameter where it was not defined).
Code_Aster
®
Version
7.4
Titrate:
Operator
DEFI_NAPPE
Date:
27/01/05
Author (S):
COURTEOUS Mr.,
J.P. LEFEBVRE
Key
:
U4.31.03-H
Page
:
4/6
Instruction manual
U4.3- booklet: Function
HT-66/05/004/A
Note:
If only one value is specified, it is taken into account at the same time by the interpolation of
parameter and of the function.
INTERPOL = “LOG”
is equivalent to (
“LOG”, “LOG”)
.
3.6 Operand
INFORMATION
INFORMATION
=
Specify the options of impression on the file
message
(unit 6).
1:
no the impression (default option)
2:
impression of the parameters plus the list of the first 10 values of each
function in the order ascending of the the first 10 parameter
3.7 Operand
VERIF
VERIF
=
The operator
DEFI_NAPPE
reorder the values of the parameters
Np
in the ascending order. If
VERIF
is worth
“GROWING”
the operator stops the execution if the values of the parameter
Np
do not have
summer given in this order.
3.8
Definition of the functions of the tablecloth
Two modes of definition of the tablecloth are possible:
·
starting from a list of existing functions [§3.8.1],
·
by directly defining the various functions of the tablecloth [§3.8.2].
3.8.1 Operand
FUNCTION
FUNCTION = lf
List concepts of the type
function
created by controls
DEFI_FONCTION
[U4.31.02],
DEFI_CONSTANTE
[U4.31.01],
CALC_FONC_INTERP
[U4.32.01],…
lf
is the list of the names of concepts of the type
function
corresponding to the values of the parameter.
All the functions of the list must have the same name of variable (that we will call
npf
) and
to have the same name
NR
for name of result.
nf
is a tablecloth of the variable of name
Np
and of the variable of name
npf
and whose value is of name
NR
.
3.8.2 Definition
direct of the functions
3.8.2.1 Operand
NOM_PARA_FONC
NOM_PARA_FONC
= npf
Name of the parameter characteristic of the functions constituting the tablecloth.
Values currently authorized for
npf
are:
/“TEMP”
/“INST”
/“X”
/“Y”
/“Z”
/“EPSI”
/“FREQ”
/“SWEATERS”
/“AMOR”
/“THICK”
/“SAT”/“PGAL”
/“PCAP”
Code_Aster
®
Version
7.4
Titrate:
Operator
DEFI_NAPPE
Date:
27/01/05
Author (S):
COURTEOUS Mr.,
J.P. LEFEBVRE
Key
:
U4.31.03-H
Page
:
5/6
Instruction manual
U4.3- booklet: Function
HT-66/05/004/A
3.8.2.2 Word
key
DEFI_FONCTION
DEFI_FONCTION =
Direct definition of the functions constituting the tablecloth.
3.8.2.3 Operand
VALE
VALE = lv
lv
is the list of value
(X
1
, y
1
,…, X
N
, y
N
)
with in the order:
X
1
, y
1
(the first value of the parameter and the corresponding value of the result),
…
X
N
, y
N
(the last value of the parameter and the corresponding value of the result).
3.8.2.4 Operands
PROL_DROITE
and
PROL_GAUCHE
PROL_DROITE
and
PROL_GAUCHE =
Define the type of prolongation on the right (on the left) of the field of definition of
variable:
“CONSTANT”
for a prolongation with the last (or first) value of
function,
“LINEAR”
for a prolongation along the first definite segment
(
PROL_GAUCHE)
or
last definite segment (
PROL_DROITE
),
“EXCLUDED”
if the extrapolation of the values apart from the field of definition of
parameter
npf
is prohibited (in this case if a calculation requires one
value of the function out of the field of definition, the code will stop in
fatal error).
function
f2
parameter
para2
function
f1
parameter
para1
parameter
Np
function
nf
variable
npf
3.8.2.5 Operand
Interpol
Interpol
=
Type of interpolation of the function enters the values of the field of definition of the function: one
type for the interpolation of the parameter and for the interpolation of the function. This is obtained in
providing a list of texts among:
Interpol
=
(“FLAX”,
“LOG”)
“FLAX”
:
linear,
“LOG”
:
logarithmic curve,
“NOT”
:
one does not interpolate (and thus the program will stop if for the value is asked
function for a value of the parameter where it was not defined).
Code_Aster
®
Version
7.4
Titrate:
Operator
DEFI_NAPPE
Date:
27/01/05
Author (S):
COURTEOUS Mr.,
J.P. LEFEBVRE
Key
:
U4.31.03-H
Page
:
6/6
Instruction manual
U4.3- booklet: Function
HT-66/05/004/A
Note:
If only one value is specified, it is taken into account at the same time by the interpolation of
parameter and of the function.
INTERPOL = “LOG”
is equivalent to (
“LOG”, “LOG”)
.
3.9 Operand
TITRATE
TITRATE = Ti
Titrate attached to the concept produced by this operator [U4.03.01].
4 Examples
4.1
Definition of the tablecloth after definition of the function
FCT2
=
DEFI_FONCTION
(NOM_PARA = “EPSI”, PROL_DROITE = “LINEAR”,
PROL_GAUCHE
=
“LINEAR”,
VALE
=
(1.25E-5,
3.75,
3.75E-5,
7.5,),
)
FCT3
=
DEFI_FONCTION
(NOM_PARA = “EPSI”, PROL_DROITE = “LINEAR”,
PROL_GAUCHE
=
“LINEAR”,
VALE
=
(1.25E-5,
2.50,
3.75E-5,
5.0,),
)
SIG
=
DEFI_NAPPE
(NOM_PARA = “TEMP”, PROL_DROITE = “CONSTANT”,
PROL_GAUCHE
=
“CONSTANT”,
PARA
=
(20.0,
30.0,),
FUNCTION
=
(FCT3,
FCT2,)
,
)
4.2
Direct definition of the tablecloth and the constitutive functions
FCT2 = DEFI_NAPPE
(NOM_PARA = “TEMP”,
PROL_DROITE =
“CONSTANT”,
PROL_GAUCHE
=
“CONSTANT”,
PARA
=
(20.0,
30.0,),
NOM_PARA_FONC
=
“EPSI”,
DEFI_FONCTION
=
(
_F
(PROL_DROITE = “LINEAR”,
PROL_GAUCHE
=
“LINEAR”,
VALE
= (1.25E-5,
3.75,
3.75E-5,
7.5,),
),
_F
(PROL_DROITE = “LINEAR”,
PROL_GAUCHE
=
“LINEAR”,
VALE
= (1.25E-5,
2.5,
3.75E-5,
5.0,),
),
),
)