Calculate sum of mobile oil for a set of cells defined by a filter for an ensemble of grid models #10913
magnesj
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Import an ensemble of grid models with identical IJK into a Grid Case Group.
Create a view on one of the source grid models, and create a cell filter.
Open the Grid Property Calculator using the toolbar button
Create an expression for mobile oil
MOBILE_OIL := if(((SOIL-SOWCR) < 0.00), 0.00, PORV*(SOIL-SOWCR))
Define the source data for the input to this expression using drag and drop from Calculator Data or by pressing the
Edit
buttonIf you have a large grid with many time steps, select the time steps to evaluate for
![image](https://private-user-images.githubusercontent.com/1793152/288367496-972cd572-d1d4-44dc-920c-41aee78a7b9d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNTA3NjUsIm5iZiI6MTcyNjE1MDQ2NSwicGF0aCI6Ii8xNzkzMTUyLzI4ODM2NzQ5Ni05NzJjZDU3Mi1kMWQ0LTQ0ZGMtOTIwYy00MWFlZTc4YTdiOWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MTJUMTQxNDI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWIxNTcyMjI2ZDJkMmNkN2QwMzIyNDkxOTkwZmZhMzM2NGMwYzUxNWI3ZDY3NmM5YjAzNWZmOGIwYzZhYjI4OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.7WGkxFEvsPPIB__4JLkInDL92mm3-u33JkXM6iozQEs)
Click Calculate to evaluate the calculation. The result can be selected as a Generated result property for visualization in the 3D view.
Create an expression to sum values for all visible cells
SUM_MOBILE_OIL := sum(MOBILE_OIL)
Use the result from the previous calculation as input to the variable, useMOBILE_OIL
from the Generated category.Click Calculate.
Activate the calculation for all cases in the ensemble by toggling
Apply to All Cases
.Select Cell Filter, and use 0 for non-visible cells.
Select the time steps to do calculations for.
The individual values for each realization and time step is displayed as text in Messages. The statistics for each time step is displayed at the bottom.
Beta Was this translation helpful? Give feedback.
All reactions