magnitude
Synopsis
calculate the magnitude of a vector field
Input Port
Parameters
Output Port
Description
magnitude calculates the magnitude of a vector field.
Input
A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)
Parameters
UIradioBoxLabel. Radio buttons to pick which component to use to calculate the magnitude. This component can contain one-, two-, or three-vector subcomponents. The default is the first (0th) component. If node data labels are present, they are displayed.
Output Port
The output field is a reference to a new object that is the merge of the new Node_Data, plus a reference to the original input mesh. This new Node_Data is a scalar representing the magnitude.
Algorithm
The equation used to compute the magni
tude is:![]()
where a1, a2, and so on are the individual vector subcomponents within the selected component.Example
File
See also related modules