cell_computation
The cell_computation module is used to perform mathematical operations on cell data in fields. Unlike node_compuation, it cannot affect coordinates.
Though data values can't be used to affect coordinates (x, y, or z), the cell center (average of nodes) coordinates can be used to affect data values.
Up to two fields can be input to cell_computation. Mathematical expressions can involve one or both of the input fields.
Cell data input to each of the ports is scalar.
If a data field contains more than one data component, you may select from any of them.
Module Input Ports
- Input Field 1[Field] Accepts a data field.
- Input Field 2[Field / minor] Accepts a data field.
- Input Value N1 [Number / minor] Accepts a number to be used in the field computations.
- Input Value N2 [Number / minor] Accepts a number to be used in the field computations.
- Input Value N3 [Number / minor] Accepts a number to be used in the field computations.
- Input Value N4 [Number / minor] Accepts a number to be used in the field computations.
Module Output Ports
- Output Field [Field] Outputs the subsetted field as faces.
- Output Value N1 [Number / minor] Outputs a number used in the field computations.
- Output Value N2 [Number / minor] Outputs a number used in the field computations.
- Output Value N3 [Number / minor] Outputs a number used in the field computations.
- Output Value N4 [Number / minor] Outputs a number used in the field computations.
- Output Object [Renderable]: Outputs to the viewer.
Each cell data component from Input Field 1 is assigned as a variable to be used in the script. For example:
- An0 : First input data component
- An1 : Second input data component
- An2 : Third input data component
- An* : Nth input data component
The min and max of these components are also added as variables :
- Min_An0 : Minimum of An0 data
- Max_An0 : Maximum of An0 data
- Min_An* : Minimum of An* data
For Input Field 2 the variable names change to:
- Bn0 : First input data component
- Bn1 : Second input data component
- Bn2 : Third input data component
- Bn* : Nth input data component