Combining two X–Y data objects

Use the combine function to combine two previously saved X–Y data objects (collections of ordered pairs) to produce a new X–Y data object. The new X–Y data object contains data pairs consisting of the Y-coordinate values of the first data object and the Y-coordinate values of the second data object, combined wherever X-coordinate values for the two data objects match. For example,

XYData1=[(1,4),(2,4),(3,4),(4,5),(5,6)]

and

XYData2=[(1,9),(2,8),(3,7),(4,6),(5,4)];

then

combine(XYData1, XYData2)=[(4,9),(4,8),(4,7),(5,6),(6,4)].

See Also
Understanding X–Y data interpolation and extrapolation
Appending two or more X–Y data objects
Using addition on X–Y data objects
Summing two or more X–Y data objects
Using X–Y data operations

Context:

The arguments of this operation are not commutative. If X-coordinate values for the two data objects do not match, Abaqus/CAE computes the missing data points to allow the X–Y data objects to be aligned. For more information on how missing data points are computed, see Understanding X–Y data interpolation and extrapolation.

A typical application of this function would be to combine a data object having X-values of time and Y-values of load with a data object having X-values of time and Y-values of displacement to produce a data object having X-values of displacement and Y-values of load. Another example would be to combine a data object having X-values of time and Y-values of stress with a data object having X-values of time and Y-values of strain to produce a data object having X-values of strain and Y-values of stress, as shown in Figure 1.

Figure 1. X–Y plot of stress versus strain.

  1. Locate the Operate on XY Data dialog box.

    From the main menu bar, select ToolsXY DataCreate. Click Operate on XY data in the dialog box that appears; then click Continue. The Operate on XY Data dialog box appears.

  2. From the Operators listed, click combine(X,X).

    The combine function appears in the expression window.

  3. From the XY Data choices, click the names of the two X–Y data objects to combine in the order you want Abaqus to combine them and click Add to Expression. Choices include all X–Y data objects previously saved within this session, listed alphabetically.

    The X–Y data object names appear, separated by commas, within the combine function parentheses in the expression window.

  4. 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.
  5. To evaluate and display your expression, click Plot Expression.
  6. 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.

  7. When you are finished, click Cancel to close the dialog box.