Model ElementClass NameSpline DescriptionSplines are piecewise polynomial functions that possess a user controlled degree of smoothness. In mathematics, they are often used for fitting and interpolating measured data. Reference_Spline defines a spline with two or three independent variables, i.e. the data can be a curve or a surface. Attribute Summary
UsageMotionSolve provides four different ways for defining splines. |
|||||||||||||||||||||||||||||||
#1: Spline for X-Y data Spline (x=list, y=list, optional_attributes)
#2: Spline for X-Y-Z data Spline (x=list, y=list, optional_attributes)
#3: Spline data read from a file by a compiled user subroutine Spline (file=string, function=userString, routine=string, optional_attributes)
#4: Spline data read from a file by a Python function Spline (file=string, function=userString, routine=functionPointer, optional_attributes) |
|||||||||||||||||||||||||||||||
Attribute Description |
|||||||||||||||||||||||||||||||
Spline for X-Y data |
|||||||||||||||||||||||||||||||
x |
List of numeric values Specifies the list of the X values of the spline. The x attribute is mandatory Requirements:
|
||||||||||||||||||||||||||||||
y |
List of numeric values Specifies the list of the Y values of the spline. The y attribute is mandatory. Requirements:
|
||||||||||||||||||||||||||||||
Spline for X-Y-Z data |
|||||||||||||||||||||||||||||||
x |
List of numeric values Specifies the list of the X values of the spline. The x attribute is mandatory Requirements:
|
||||||||||||||||||||||||||||||
z |
List of numeric values Specifies the list of the Z values of the spline. The z attribute is optional. |
||||||||||||||||||||||||||||||
y |
List of numeric values Specifies the list of the Y values of the spline. The y attribute is mandatory. Requirements:
|
||||||||||||||||||||||||||||||
Spline data read from a file by a compiled user subroutine |
|||||||||||||||||||||||||||||||
file |
String Specifies the path and name of the file containing the spline data. Use only when the data is contained in an external file. The file attribute is mandatory. |
||||||||||||||||||||||||||||||
function |
String The list of parameters that are passed from the data file to the user-defined subroutine. The function attribute is mandatory |
||||||||||||||||||||||||||||||
routine |
String Specifies an alternative name for the user subroutine. The name consists of two pieces of information, separated by “∷”. The first is the pathname to the shared library containing the function that computes the response of the user-defined Surface. The second is the name of the function in the shared library that does the computation. An example is: routine=”/staff/Altair/engine.dll∷mySplineRead”
The attribute routine is optional. When not specified, routine defaults to Spline_Read. The attribute routine is optional. |
||||||||||||||||||||||||||||||
block |
String Specifies the block name containing the spline data. A single file may contain several blocks of data. This parameter is optional. Use only when the data is contained in an external file with many blocks of data. The block attribute is optional. |
||||||||||||||||||||||||||||||
Spline data read from a file by a Python function |
|||||||||||||||||||||||||||||||
file |
String Specifies the path and name of the file containing the spline data. Use only when the data is contained in an external file. The file attribute is mandatory. |
||||||||||||||||||||||||||||||
function |
String The list of parameters that are passed from the data file to the user-defined subroutine. The function attribute is mandatory |
||||||||||||||||||||||||||||||
routine |
Pointer to a callable function in Python An example is: routine=my_Spline_Read
The attribute routine is optional. When not specified, routine defaults to Spline_Read. |
||||||||||||||||||||||||||||||
block |
String Specifies the block name containing the spline data. A single file may contain several blocks of data. This parameter is optional. Use only when the data is contained in an external file with many blocks of data. The block attribute is optional. |
||||||||||||||||||||||||||||||
Optional Attributes – Available to all description methods |
|||||||||||||||||||||||||||||||
id |
Integer Specifies the element identification number. This number must be unique among all the Spline objects in the model. This attribute is optional. MotionSolve will automatically create an ID when one is not specified. Range of values: id > 0 |
||||||||||||||||||||||||||||||
label |
String Specifies the name of the Spline object. This attribute is optional. When not specified, MotionSolve will create a label for you. |
||||||||||||||||||||||||||||||
linear_extrapolate |
Boolean A logical flag that specifies how MotionSolve is to deal with the situation when the independent coordinate falls out of the range of data provided. Select either True or False.
This attribute is optional. When not specified, MotionSolve will set linear_extrapolate = True |
||||||||||||||||||||||||||||||
Comments
|
|||||||||||||||||||||||||||||||
Example
|