General Commands

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

Note: Consider a box (Box2) that is completely enclosed in a bigger box (Box1), so that no faces of Box2 are touching any faces of Box1.

If you explicitly subtract Box2 from Box1, any calculation on the surface (faces) of Box1 will use the 6 exterior faces and the 6 interior faces. Any calculation on the volume of Box1 will use the difference in volume between Box1 and Box2.

If you do not explicitly subtract Box2 from Box1, the inner box is only implicitly subtracted. Any calculation on the surface of Box1 in this case will use only the 6 exterior faces of Box1. Any calculation on the volume of Box1 will use the entire volume without subtracting the volume of Box2.

* (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. 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 C at 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 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 filtered numeric, points that are filtered out by the domain will not be written out.

Related Topics 

Using the Fields Calculator

Export Command

Steps for Calculating the Complex Vector Electric Field