cell_data_math

image\cell_data_math_mod.jpg

General Module Function

The cell_data_math module (only in EVS PRO and MVS) is used to perform mathematical operations on cell data fields. Up to four data fields can be input to cell field math. Mathematical expressions can involve any or all of these input fields.

Module Input Ports

cell_data_math has eight input ports.

There are four identical input ports that can accept any type of mesh, but the meshes must have the same cell types, the same number of nodes, and the same number of cells (i.e., they must have identical geometries). At least one input port must be used and up to four can be used. The first port is closest to the left and the ports are numbered sequentially in ascending order to the right.

Cell data passed to ports one, two, three and four are referred to as Acx, Bcx, Ccx and Dcx (where x refers to the number of the data component) in the appropriate mathematical expression.

NOTE: MVS users also get Ax, Ay, Az which are the coordinates of the cell center.  These can use this to affect the resultant cell data component and when MVS is run, the user interface adjusts accordingly (automatically). Also note that unlike field_math, you cannot affect the coordinates of the output.only the cell data.

Coordinate data passed to ports one, two, three and four are referred to as Ax, Bx, Cx and Dx (y, or z) in the appropriate mathematical expression. For example if you want to refer to X coordinate of the first input you would use Ax in the expression, if you want to refer to Z coordinate of the second input you should use Bz in the expression.

For example if you want to refer to third cell data component of the first input you would use Ac2 (numbers start at zero) in the expression, if you want to refer to first cell data component of the second input you should use Bn0 in the expression.

There are also four identical input ports that accept floating point numbers (variables). None of these are required to be used, but up to four can be used. The first of these ports is the fifth from the left and the ports are numbered sequentially in ascending order to the right. These variables are referred to as f1, f2, f3 and f4 in your mathematical expressions.

Module Output Ports

Cell_data_math has six output ports. The first four output port (from the left) pass the four variables so they can be shared with other modules. The next port is the output mesh containing revised cell data that are a result of the computation. The last (red) output port is renderable version of the output mesh.

image\cell_data_math_panel.jpg

Module Control Panel

The control panel for cell_data_math is shown in the figure above. The Data type-in box is used for inputting mathematical expressions. The result of this expression will added to the input field as a data component. The name and units of that component can be entered in the fields below the Data box. The treat as log processed toggle should be selected if the newly created data component is in log space.

An example of an equation to blend the values of (interpolate between) two different fields having cell data with a logarithmic distributions as f1 ranges from 1 to 0.0 is:

log10(pow(10,Ac0)*f1+pow(10,Bc0)*(1.0-f1))

You can also use

interplog(Ac0, Bc0,f1)

To perform interpolation between non-log processed data use:

Ac0 * f1 + Bc0 * (1.0-f1) OR interp(Ac0, Bc0,f1)

Mathematical Operators

Related Modules

 -> coordinate_math