Array data interpolation during run time
Previous Top Next

Array data interpolation during run time

During model execution, the array data is linearly interpolated for each computation time step in transient runs and interpolated for steady state runs as defined in the Solve>Steady State and Solve>Transient dialog boxes.  During transient runs, the time used is the time plus half the computing time step.  Performing the interpolation at the time plus half the computing time step ensures that the correct amount of energy is applied to the model.

Cyclic data

Time dependent data can be cyclic.  If so, only one cycle of data is entered.  During execution, the program will assume that the last time entered is the period of the cycle and will begin the next cycle.  The cycle of this period will continue for the entire run independent on the run duration.  Periodic data must start at a time of zero.  If the array data starts at a time other than zero, the Y value will be used up to the first entered time.

Temperature difference dependent

If the data set is temperature difference dependent, the absolute value of the temperature difference between the nodes at either side of the element is determined.  This temperature difference is used in the interpolation.  A common use for this option is in the case of natural convection.  In this case, the heat transfer coefficient off a surface is a nonlinear function of the temperature difference between the fluid and the surface.  The property table for heat transfer coefficient would then reference an array data set which includes this nonlinear relationship.  The heat transfer coefficient can be calculated and tabulated for different temperature differences. During model execution, the heat transfer coefficient would continually be updated depending upon the difference between the fluid and surface temperatures.

Beyond the scope of the data

If the dependent variable during run time goes beyond the data supplied then the last value entered is used.  If the dependent variable during run time goes below the data supplied then the first value entered is used.

Infinite resistances

If interpolation of array data returns a value which will give an infinite resistance as would a zero thermal conductivity, the user is notified and given the opportunity to abort the run.  If the run is not aborted, then the value in the property table is used and the interpolated value is ignored from then on.