29.4.20 Calculating vector magnitudes

Use the vectorMagnitude function to perform a square root of the sum of the squares operation on at most three previously saved X–Y data objects (each object is a collection of ordered pairs) to produce a new X–Y data object. This function is essentially identical to the srss function (see Taking the square root of the sum of the squares of two or more X–Y data objects, Section 29.4.18) except that the operation can be performed on at most three data objects. You can use this function to plot the total magnitude of a vector by calculating the square root of the sums of the squares of the three vector components.

The new X–Y data object has as its X-coordinates all X-coordinates of the first data object and any additional X-coordinates needed for alignment of the remaining objects. ABAQUS/CAE computes additional X–Y data pairs by interpolation and extrapolation. The new data object has as its Y-coordinates the square root of the sum of the squares of all input X–Y data object Y-coordinates at matching X-coordinates. The arguments to this function are commutative.

Figure 29–16 illustrates the type of X–Y plot that can be produced using the vectorMagnitude function.

Figure 29–16 X–Y plot produced using the vectorMagnitude function.

To calculate vector magnitudes:

  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 vectorMagnitude(X,X,X).

    The vectorMagnitude function appears in the expression window.

  3. From the XY Data choices, click the names of three X–Y data objects 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 names appear, separated by commas, within the vectorMagnitude 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.


For information on related topics, click any of the following items: