Search the documentation
Enter at least 2 characters
Enter at least 2 characters
![]() |
CAE Fidesys 9.0 Documentation |
Compute new attribute arrays as function of existing arrays.
The Calculator filter computes a new data array or new point coordinates as a function of existing scalar or vector arrays. If point-centered arrays are used in the computation of a new data array, the resulting array will also be point-centered. Similarly, computations using cell-centered arrays will produce a new cell-centered array. If the function is computing point coordinates, the result of the function must be a three-component vector.
The Calculator interface operates similarly to a scientific calculator. In creating the function to evaluate, the standard order of operations applies. Each of the calculator functions is described below. Unless otherwise noted, enclose the operand in parentheses using the ( and ) buttons.
The operands are described below. The digits 0 - 9 and the decimal point are used to enter constant scalar values. iHat, jHat, and kHat are vector constants representing unit vectors in the X, Y, and Z directions, respectively. The scalars menu lists the names of the scalar arrays and the components of the vector arrays of either the point-centered or cell-centered data. The vectors menu lists the names of the point-centered or cell-centered vector arrays. The function will be computed for each point (or cell) using the scalar or vector value of the array at that point (or cell). The filter operates on any type of data set, but the input data set must have at least one scalar or vector array. The arrays can be either point-centered or cell-centered. The Calculator filter's output is of the same data set type as the input.
The output array type can be specified as an advanced option with the default being of a vtkDoubleArray.
| Property | Description | Default(s) | Restrictions |
|---|---|---|---|
| Input | This property specifies the input dataset (vtkDataSet, vtkTable or vtkGraph) to the Calculator filter. The scalar and vector variables may be chosen from this dataset's arrays. | Accepts input of following types:
The dataset must contain a field array () |
|
| AttributeType | This property determines on which types of field data the computation is to be performed on. | 0 | The value must be field array name. |
| CoordinateResults | The value of this property determines whether the results of this computation should be used as point coordinates or as a new array. | 0 | Accepts boolean values (0 or 1). |
| ResultNormals | Set whether to output results as point/cell normals. Outputting as normals is only valid with vector results. Point or cell normals are selected using AttributeMode. | 0 | Accepts boolean values (0 or 1). |
| ResultTCoords | Set whether to output results as point/cell texture coordinates. Point or cell texture coordinates are selected using AttributeMode. 2-component texture coordinates cannot be generated at this time. | 0 | Accepts boolean values (0 or 1). |
| ResultArrayName | This property contains the name for the output array containing the result of this computation. | Result | |
| Function | This property contains the equation for computing the new array. | ||
| Replace Invalid Results | This property determines whether invalid values in the computation will be replaced with a specific value. (See the ReplacementValue property.) | 1 | Accepts boolean values (0 or 1). |
| ReplacementValue | If invalid values in the computation are to be replaced with another value, this property contains that value. | 0.0 | |
| Result Array Type | This property determines what array type to output. The default is a vtkDoubleArray. | 11 | The value(s) is an enumeration of the following:
|