General Commands

The General Column contains calculator operations which can be performed on many different data types (e.g., vector, scalar, complex). With the exception of the Complex menu, all are distinct functions. Most are self-explanatory, with the exception of Smooth which performs some data “smoothing” or statistical averaging on the top stack entry.

Use these Fields Calculator commands to perform operations on both vector and scalar quantities.



+ (Add)

Adds the quantities in the top two registers of the calculator.

- (Subtract)

Subtracts the quantity in the top register from the quantity in the second register. The two registers must hold the same type of quantity (both scalar or both vector). You cannot subtract a scalar from a vector (or vice versa).

* (Multiply)

Multiplies the quantity in the top register by the quantity in the second register. One of the two registers must contain a scalar value; the other register can be either a scalar or a vector.

/ (Divide)

Divides the quantity in the second register by the quantity in the top register. The second register must contain a scalar value; the top register can be either a scalar or a vector.

Neg

Changes the sign of the quantity in the top register.

Abs

Takes the absolute value of the quantity in the top register.

Smooth

Smooths the quantity in the top register. Because of the numerical solution technique used, field values are not always continuous across the boundaries of the individual elements that make up the finite-element mesh. Smoothing makes the values continuous by taking a weighted average from all of a node's neighboring elements. The weights are based on angles, so elements with larger angles provide larger contributions. In general, use smoothing before plotting a quantity.

Complex

These commands perform operations on a complex quantity in the top register. Complex quantities are indicated by a Cat the beginning of the register label. They can be represented in terms of real and imaginary components, or in terms of magnitude and phase:

where:

The Complex commands includes a drop-down menu that let you do the following:



Domain

This limits a calculation to the volume you specify. The domain filter works for scalars, vectors, complex scalars and complex vectors. This operation requires the top two entries of the stack to be a volume geometry and a numeric field quantity. To do this:

  1. Load the field quantity into the top register, and perform any necessary operations on it.
  2. Load the volume using the Geometry command.
  3. Click Domain.

The Domain command is often used to limit a calculation or plot to the intersection of a surface and an object or group of objects. If you export a domain filterednumeric, points that are filtered out by the domain will not be written out.