OPM / ResInsight

3D viewer and post processing of reservoir models
http://resinsight.org/
GNU General Public License v3.0
175 stars 92 forks source link

Octave script: Error for model with radial grid (global/local) #9992

Open hhgs opened 1 year ago

hhgs commented 1 year ago

Error message

13:26:35 Process starting error: Could not find the requested data in ResInsight error: called from KvKh at line 15 column 4 13:26:37 Process finished

octave script:

KX = riGetActiveCellProperty("PERMX"); KZ = riGetActiveCellProperty("PERMZ");

Calculate Kv/Kh ratio

KvKh=KZ./KX;

riSetActiveCellProperty(KvKh,"KvKh");

magnesj commented 1 year ago

On one test case, the result PERMZ was not present, but PERMR was available.

Tested on two cases, seems to work as expected.