Data Spline
Overview
A spline creates a continuous function from a set of data points. Splines are useful when you have test data or manufacturer specifications that specify the value of a function at several points. The spline can define a curve (two-dimensional, x, y) or a surface (three-dimensional, x, y, z).
You can use splines to create nonlinear functions for motions, forces, or other elements that use functions. In the case of a motion, the points define the displacement, velocity, or acceleration as a function of time, displacement, velocity, or another Adams quantity.
The Adams data spline element contains the x, y or x, y, z data points that you want to interpolate. To use the spline element, you must write a function expression that includes Adams spline functions (such as AKISPL or CUBSPL). The functions interpolate the discrete data.
Creating a Data Spline
From the Elements palette, select the Data Spline tool from the Data Elements tool group.

The Data Spline Properties dialog appears:

Data Spline Properties
The Data Spline properties are described in the table below.
|
Feature |
Description |
|
Spline Type |
Select curve type for the spline:
|
| Linear Extrapolation | Select to extend the curve created from the spline values by estimating the values that follow the specified spline values |
|
Interpolation |
Select the curve fitting method for the Spline statement:
It is important to note this setting is for visualization purposes only. Any function expression that references a Data Spline must be preceded by either the AKISPL or CUBSPL statement. |
|
Number of Points |
Set the number of points used to display a curve. This only changes the display of the curve, making it smoother or coarser. It does not change the number of data points in the curve. When importing data this value will default to 10x the number of points in the table. |
| Chart View |
For 3D Splines only:
|
| Import Data | Import data from a .csv file to populate the Data Spline table. |
| Export Data | Export data to a .csv file from the Data Spline table. |
|
Units |
Set the Unit Quantities for the X,Y, Z values for the Spline. The values shall update if the system units are updated. Set to No Units for no units associativity. |
|
Spline Curves |
Select to view the curve that Adams Modeler generates from the data points. |
|
Memory Curves |
Select to retain the original curve while editing the data points. |
|
Slope Curves |
Select to view the slope (derivative) of a curve. |
|
Symbols |
Select to view the data points for the spline. |
|
Extrapolation Tails |
Select to view the effect of linear extrapolation |
|
Clear Chart |
Clears the current chart |
Editing a Data Spline
You may edit an existing data spline in the model by accessing it from the Model Browser.
From the Model Tab, you may either double click on the object in the tree or right mouse button and select Properties.
2D Data Splines
2D Data Splines are displayed both as data table of X and Y values and a 2D Chart.
- To Add a data point to the spline, select the row and press the Plus (+) button. A new row will be inserted after the selected row.
- To Remove a data point from the spline, select the row and press the Minus (-) button.

3D Data Splines
3D Data Splines are displayed both as data table of X, Y, Z values and a 3D Chart. For every Z Value added, a corresponding column of Y values will be added.
- To Add a data point to the spline, select the row and press the Plus (+) button. A new row will be inserted after the selected row.
- To Remove a data point from the spline, select the row and press the Minus (-) button.
A second set of Add and Remove buttons are available for Z Values.
Viewing 3D Data Splines as a 2D Chart
To view the 3D Data Spline as a series of 2D curves, set the Chart View option to 2D. To differentiate each curve, turn on the Legend for the Chart.

Viewing 3D Data Splines as a 3D Chart
To view the 3D Data Spline as a 3D surface, set the Chart View option to 3D. To rotate the view, hold the LMB and move the mouse.

Importing and Exporting Data Splines
Data Splines can be imported and exported in comma separated values (.csv) format.
- To import a .csv file as a Data Spline, select the Import File button.
- To export the Data Spline as a .csv file, select the Export File button.
Example Files
Example Data Spline files in .csv format are included with the application. They can be used as reference to understand the file format including headers with unit specification.
To access these files go to the installation directory for Adams Modeler and then navigate to:
<installation_directory>\apex\mod\adams\Documentation\Examples\Data Spline\
- Log in to post comments
