Index

User Defined Function

Ver: 0   DESCRIPTION Material parameters or boundary condition parameters can be defined as a function of fields.

The user can define his own functional dependence via a 'User defined function' that will be interpreted by the CLIPS package. An interpreted function does not require any re-compilation nor re-link of the code and allows for maximum flexibility.

Each User Defined Function has the form f(X1,X2, ...) where Xi's are fields of the global system (temperature, pressure, coordinates, a species, ...) or f(S) where S is the evolution variable.

 
OPTIONS
 
  -2 
Modify function name 
sets the name of the function. This name must be identical to the name of the CLIPS function. This name will be used by the solver to identify the User Defined Function in the CLIPS file.
-1
Modify nb. of fields 
Sets the number of fields n that participate in the evaluation of the function F(X1,...,Xn)
0
Upper level menu
Accepts current settings
i
Change field Xi
Allows for the selection of field Xi
NOTES If the UDF is going to work only with the evolution parameter S, then its name should be of the form UDFid, where id is an integer between 1 and 1000. If the UDF is going to work with fields, you can name it anything you want.


SEE ALSO