mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
17 lines
417 B
Python
17 lines
417 B
Python
import sys
|
|
import os
|
|
sys.path.insert(1, os.path.join(sys.path[0], '../api'))
|
|
import ResInsight
|
|
|
|
resInsight = ResInsight.Instance.find()
|
|
|
|
totalCellCount = resInsight.gridInfo.cellCount(caseId=0).reservoir_cell_count
|
|
|
|
values = []
|
|
for i in range(0, totalCellCount):
|
|
values.append(i % 2 * 0.75);
|
|
|
|
print("Applying values to full grid")
|
|
resInsight.properties.setGridResults(values, 0, 'DYNAMIC_NATIVE', 'SOIL', 0)
|
|
|