2019-08-19 13:46:14 +02:00
|
|
|
######################################################################
|
|
|
|
|
# This script sets values for SOIL for all grid cells in the first case in the project
|
|
|
|
|
######################################################################
|
2019-06-03 21:11:27 +02:00
|
|
|
import rips
|
2019-05-22 20:23:49 +02:00
|
|
|
|
2019-06-03 21:11:27 +02:00
|
|
|
resInsight = rips.Instance.find()
|
2019-05-22 20:23:49 +02:00
|
|
|
|
2019-06-03 14:33:16 +02:00
|
|
|
case = resInsight.project.case(id=0)
|
|
|
|
|
totalCellCount = case.cellCount().reservoir_cell_count
|
2019-05-22 20:23:49 +02:00
|
|
|
|
|
|
|
|
values = []
|
|
|
|
|
for i in range(0, totalCellCount):
|
|
|
|
|
values.append(i % 2 * 0.75);
|
|
|
|
|
|
|
|
|
|
print("Applying values to full grid")
|
2019-06-03 14:33:16 +02:00
|
|
|
case.properties.setGridProperty(values, 'DYNAMIC_NATIVE', 'SOIL', 0)
|
2019-05-22 20:23:49 +02:00
|
|
|
|