ResInsight offers a built-in property calculator for grid parameters. The Grid Property Calculator enables arithmetic expressions to be parsed and calculated for visualization purposes.
More details on mathematical operations are described in Calculator Expressions
Invoke the the Grid Property Calculator by pressing the calculator icon in the menu bar or by right-clicking Cell Result in Project Tree.
As shown, the Grid Property Calculator is invoked by right-clicking Cell Result in Project Tree. As seen below, the Grid Property Calculator is per default prefilled with the simple summation Calculation_1 := x + y. This simple summation suffices for exemplifying its use. However, you may change name of the calculation and add additional variables and arithmetic operators in the Expression field.
If statements are also supported with the following syntax
NEW_TRANX := if((TRANX < 0.01), 0.01, TRANX)
The next step is to define the variables x and y. An easy way to define each variable is to drag and drop properties from Data Sources. See screenshot below for drag and drop of SOIL from Data Sources to the row of variable x in Grid Property Calculator (emphasized in red). Continue with drag and drop of SGAS to define y.
Finally, press Calculate to perform the actual calculation.
The calculated result is accessable via Property Editor as Type Generated Result Property.