Run-Time Functions > Functions: A - M > Cubic Fitting Method (CUBSPL)

www.kxcad.net Home > CAE Index > MSC Software Index > Adams MD R2 Index


Your Ad Here

Cubic Fitting Method (CUBSPL)
Returns either a derivative of a curve or an interpolated value from a curve or surface. The curve is fit exactly through a set of discrete data points using a standard cubic spline fitting method.
Format
CUBSPL (First Independent Variable, Second Independent Variable, Spline Name, Derivative Order)
Arguments
 
(Required) The name of the existing data element spline modeling entity that defines the set of discrete data points to be used for the interpolation.
Note: Derivative Order may not be specified when interpolating on a surface; that is, when the Second Independent Variable 0.
list2+
A spline, spline_1, is defined with discrete data as shown in the following table. The data is then used to generate the interpolation function using the Cubic spline fitting method. Since the spline defines a curve rather than a surface, the Second Independent Variable must be set to 0.
The following example returns the interpolated value of the spline of displacement over time, to define a motion function:
Motion = CUBSPL(TIME, 0, spline_1)
 
Spline Defined Based on Tabular Data
Learn more about spline functions.
 
Your Ad Here