USERF subroutine

The user defined table substitution option allows user code to be substituted for table interpolation within the thermal solver. It cannot be accessed from the preprocessor user interface but must be set up by editing the thermal solver input file or by using an include file. Within the thermal solver input file interpolation relationships are set up with the following thermal solver Card 9 entries:

INTERP Defines the:
  • Elements affected by the interpolation relationship.
  • Number of the table to be used.
TABTYPE Defines the physical quantities of the dependent and independent variables, such as temperature, heat input and conductance.

Setting the last field to USERF causes the table to be replaced by a call to USERF.

DESCRIP A descriptor attached to a table.

For more information, see the Thermal Solver Reference Manual PDF.

Whenever the thermal solver encounters a model parameter that is the dependent variable in a table whose independent variable is type USERF, it sets arguments ITAB, IDEP, CHARA, and call USERF. The routine must interpret these values and return an appropriate value in VDEP.