Use the fit function to operate on a previously savedX–Y data object (a collection of ordered pairs) to produce a new X–Y data object. The new X–Y data object contains points that are spaced at regular intervals along the curve that best fits the previously saved X–Y data object. The fit function provides two algorithms for curve fitting: a linear least squares fit and a spline interpolation.
Figure 1 and Figure 2 show examples of X–Y plots produced using the fit function using each curve fitting algorithm.
Locate the Operate on XY Data dialog box.
From the main menu bar, selectToolsXY DataCreate. Click Operate on XY data in the dialog box that appears; then click Continue. The Operate on XY Data dialog box appears.
From the Operators listed, click fit(X).
The fit function appears in the expression window with the linear least squares fit option selected by default.
From the XY Data choices, click the name of the X–Y data object on which to operate and click Add to Expression. You can choose from all X–Y data objects previously saved within this session (listed alphabetically in the XY Data field).
The X–Y data object name appears within the fit function parentheses in the expression window.
To continue to build your expression, position the cursor in the expression window and type in or select the functions, operators, and X–Y data you want to include. You can customize the fit function itself by including the following changes to its options:
If you want to perform a spline interpolation, set the typeOfFit option to SPLINE_INTERPOLATION.
If you want to specify a custom number of points to be created for the new X–Y data object, append numFitPoints=number. By default, Abaqus/CAE uses 2 points to define a linear least squares fit and 100 points to define a spline interpolation.
To evaluate and display your expression, click Plot Expression.
To save your new X–Y data object, click Save As and then provide a name in the dialog box that appears.
Saving your data object makes it available for future operations within this session and for inclusion in X–Y plots containing multiple data objects.
When you are finished, click Cancel to close the dialog box.