Files
ResInsight/ApplicationCode/GrpcInterface/Python/rips/PythonExamples/SetGridProperties.py
Gaute Lindkvist 824ec5cef6 Python: Rename example directory to PythonExamples
* This is so that when we add the folder to the Script Path it will look more sensible to the user.
2019-08-19 08:46:09 +02:00

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)