B-Spline Fitting Method (CURVE)

Returns a B-spline or a user-written curve created by a CURVE data element.

Format

CURVE (Independent Variable, Derivative Order, Direction, Curve Name)

Arguments

 
Independent Variable
Real variable that represents the independent variable at which the curve will be evaluated (function).
If the curve is a B-spline, the Independent Variable must be in the range: - 1 Independent Variable 1. If the curve is user-written (computed by a CURSUB), the Independent Variable must be in the range: Min_Parameter Independent Variable Max_Parameter where Min_Parameter and Max_Parameter are specified on the CURVE data element.
Derivative Order
Order of the derivative that you want returned from the curve.
The legal values are:
0 - returns the curve coordinate value
1 - returns the first derivative
2 - returns the second derivative
Direction
Direction in which you want the curve evaluated.
The legal values are:
1 - returns the x coordinate or derivative
2 - returns the y coordinate or derivative
3 - returns the z coordinate or derivative
Curve Name
Name of the curve to reference (curve object).

Example

The following function returns the x direction evaluated value of curve_1 at point TIME, where TIME is the current simulation time:
CURVE(TIME, 0, 1, curve_1)