Functions and Formulas: Code - Aster, Salome-Meca Course Material
Functions and Formulas: Code - Aster, Salome-Meca Course Material
FONCTION :
tabulated (discrete) function depending on one parameter
NAPPE :
tabulated (discrete) function depending on two
parameters
FORMULE :
continuum mathematic formula depending on several
parameters
Function
...
y2
y1
y0
Parameter
x0 x1 x2 x3 x4 x5 ...
R or C
EXCLU
By default, a function
EXCLU cannot be evaluated
outside its domain of
definition
Parameter
x0 x1 x2 x3 x4 x5 ...
JUSQUA=5.,NOMBRE=2 JUSQUA=11.,PAS=2.
DEBUT=1.
PAS=2. PAS=2. PAS=2.
0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.
ListR = DEFI_LIST_REEL(VALE=(1.,3.,5.,7.,9.,11.))
ListR = DEFI_LIST_REEL(VALE=range(1.,13.,2.))
nappe=DEFI_NAPPE(NOM_PARA='AMOR',
PARA=(0.01,0.02,), Function of function :
FONCTION=(DF1,DF2,)
PROL_DROITE='CONSTANT', Previous defined
PROL_GAUCHE='CONSTANT') functions
nappe=DEFI_NAPPE(NOM_PARA='PULS',
PARA=(0.01, 0.03,),
NOM_PARA_FONC='INST', Function of function :
DEFI_FONCTION=( Redefining functions
_F(VALE = (3.,1.,4.,2.,5.,3.,)), in DEFI_NAPPE
_F(VALE = (3.,3.,4.,4.,5.,5.,))))
SI = FORMULE(NOM_PARA = 'INST',
VALE = '''sin(INST)''')
DEPI = 2.*pi
PAS0 = DEPI/200.
LI1 = DEFI_LIST_REEL(DEBUT = 0,INTERVALLE=_F(JUSQU_A=DEPI,
PAS=PAS0),)
SI1 = CALC_FONC_INTERP(FONCTION = SI,
LIST_PARA = LI1,
PROL_GAUCHE ='EXCLU',
PROL_DROITE ='CONSTANT')