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

Organization (S): EDF-R & D/AMA
Handbook of Utilization
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 tablecloth type.
Handbook of Utilization
U4.3- booklet: Function
HT-66/05/004/A

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

2 Syntax

nf [tablecloth]
= DEFI_NAPPE


(
NOM_PARA
=/
Np
,
[KN]



NOM_RESU
=/
“TOUTRESU”,
[DEFAUT]
/
NR
,
[K8]




PARA
=
LP
,
[l_R]



PROL_DROITE
=
/
“CONSTANT”
,
/
“LINEAIRE”
,
/
“EXCLU”
,
[DEFAUT]



PROL_GAUCHE
=
/
“CONSTANT”
,
/
“LINEAIRE”
,
/
“EXCLU”
,
[DEFAUT]



Interpol
= | “LIN”
, [DEFAUT]










| “LOG”
,










| “NON”
,



INFO
=
/
1
,
[DEFAUT]










/2,



VERIF
= “CROISSANT”
,



/FONCTION
= lf
[l_fonction]



/
NOM_PARA_FONC = npf





DEFI_FONCTION =






_F (
VALE =
lv
[l_R]








PROL_DROITE
=
/“CONSTANT”
,
/
“LINEAIRE”
,
/
“EXCLU”
,
[DEFAUT]








PROL_GAUCHE
=
/“CONSTANT”
,
/
“LINEAIRE”
,
/
“EXCLU”
,
[DEFAUT]








Interpol = | “LIN”
, [DEFAUT]













| “LOG”
,













| “NON”
,







),



TITER
=
Ti,
[l_Kn]


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

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

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].

The values currently authorized for Np are:

/“TEMP”
/“INST”


/“X”
/“Y”
/“Z”

/“FREQ”
/“PULS”
/“AMOR”
/“EPAIS”
/“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 command
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,
“LINEAIRE”
for a prolongation along the first definite segment (PROL GAUCHE)
or of the last definite segment (PROL_DROITE), this prolongation does not hold
not account of a possible interpolation logarithmic curve,
“EXCLU”
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
=
(“LIN”,
“LOG”)
“LIN”: linear,
“LOG”: logarithmic curve,
“NON”: 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).
Handbook of Utilization
U4.3- booklet: Function
HT-66/05/004/A

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

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
INFO

INFO
=

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
=

Operator DEFI_NAPPE reorders the values of the parameters Np in the ascending order. If
VERIF is worth “CROISSANT” 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
FONCTION

FONCTION = lf

List concepts of the function type created by commands 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 function type 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 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.

The values currently authorized for npf are:

/“TEMP”
/“INST”


/“X”
/“Y”
/“Z”
/“EPSI”
/“FREQ”
/“PULS”
/“AMOR”
/“EPAIS”
/“SAT”/“PGAL”
/“PCAP”

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

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

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 (x1, y1,…, xn, yn) with in the order:
X
(the first value of the parameter and the corresponding value of the result),
1, y1

X
(the last value of the parameter and the corresponding value of the result).
N, yn

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,
“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 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 nf
parameter Np
function f2
parameter para2
function f1
parameter para1
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
=
(“LIN”,
“LOG”)
“LIN”: linear,
“LOG”: logarithmic curve,
“NON”: 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).
Handbook of Utilization
U4.3- booklet: Function
HT-66/05/004/A

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

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
TITER

TITER = 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
=
“LINEAIRE”,
VALE
=
(1.25E-5,

3.75,

3.75E-5,

7.5,),
)

FCT3
=
DEFI_FONCTION


(NOM_PARA = “EPSI”, PROL_DROITE = “LINEAR”,
PROL_GAUCHE
=
“LINEAIRE”,
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,),
FONCTION
=

(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
=
“LINEAIRE”,


VALE
= (1.25E-5,
3.75,
3.75E-5,
7.5,),














),










_F (PROL_DROITE = “LINEAR”,


PROL_GAUCHE
=

“LINEAIRE”,


VALE
= (1.25E-5,
2.5,
3.75E-5,
5.0,),















),
),






)


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

Outline document