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.
|
/ (Divide) |
||
Adds the quantities in the top two registers of the calculator.
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).
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.
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.
Changes the sign of the quantity in the top register.
Takes the absolute value of the quantity in the top register.
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.
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:
- A is the real part of the complex number.
- B is the imaginary part of the complex number.
- M is its magnitude, which is equal to
. - f is its phase, which is equal to
.
The Complex commands includes a drop-down menu that let you do the following:
|
Real |
Takes the real part of the complex quantity (A). |
|
Imag |
Takes the imaginary part of the complex quantity (B). |
|
CmplxMag |
Takes the magnitude of the complex quantity (M). Due to interpolation issues, the sequence of calculations may cause a loss of accuracy. It is best to define the points , separately obtain the value of the real part, then the imaginary part, and use those values to calculate the magnitude and and phase. For the sequence for using the Fields Calculator to obtain the real and imaginary parts, see the procedure here. |
|
CmplxPhase |
Takes the phase of the complex quantity(f). |
|
Conj |
Takes the complex conjugate of the quantity in the top register. If a complex number is given by C = A + jB, its complex conjugate is given by C* = A - jB. |
|
AtPhase |
Lets you specify the phase angle, q, at which an field quantity is evaluated. These quantities can be represented in the form
where
Entering the phase angle lets you compute the real part of the field's magnitude at different points in its cycle. |
|
CmplxReal |
Converts the real scalar of the top register to the real part of a complex number. |
|
CmplxImag |
Converts the real scalar of the top register to the imaginary part of a complex number. |
|
CmplxPeak |
Calculates the peak value of a given complex vector. Intuitively, this calculates the maximum magnitude of the equivalent real vector in a waveform. |
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:
- Load the field quantity into the top register, and perform any necessary operations on it.
- Load the volume using the Geometry command.
- 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.
.