mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
* This is so that when we add the folder to the Script Path it will look more sensible to the user.
15 lines
334 B
Python
15 lines
334 B
Python
import rips
|
|
|
|
resInsight = rips.Instance.find()
|
|
|
|
case = resInsight.project.case(id=0)
|
|
totalCellCount = case.cellCount().reservoir_cell_count
|
|
|
|
values = []
|
|
for i in range(0, totalCellCount):
|
|
values.append(i % 2 * 0.75);
|
|
|
|
print("Applying values to full grid")
|
|
case.properties.setGridProperty(values, 'DYNAMIC_NATIVE', 'SOIL', 0)
|
|
|