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) 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.

Related Topics
Understanding X–Y data interpolation and extrapolation
Taking the square root of an X–Y data object
Normalizing an X–Y data object
Using X–Y data operations

Context:

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 1 illustrates the type of X–Y plot that can be produced using the vectorMagnitude function.

Figure 1. X–Y plot produced using the vectorMagnitude function.

  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.