Files
ResInsight/GrpcInterface/Python/rips/PythonExamples/case_grid_group.py

24 lines
662 B
Python
Raw Normal View History

import os
import rips
2021-01-26 20:48:01 +01:00
resinsight = rips.Instance.find()
2019-09-19 14:10:52 +02:00
case_paths = []
2021-01-26 20:48:01 +01:00
case_paths.append(
"C:/Users/lindk/source/repos/ResInsight/TestModels/Case_with_10_timesteps/Real0/BRUGGE_0000.EGRID"
)
case_paths.append(
"C:/Users/lindk/source/repos/ResInsight/TestModels/Case_with_10_timesteps/Real10/BRUGGE_0010.EGRID"
)
for case_path in case_paths:
2021-01-26 20:48:01 +01:00
assert os.path.exists(
case_path
), "You need to set valid case paths for this script to work"
2019-09-19 14:10:52 +02:00
case_group = resinsight.project.create_grid_case_group(case_paths=case_paths)
case_group.compute_statistics()
2019-09-19 14:10:52 +02:00
view = case_group.views()[0]
2023-02-05 09:31:22 +01:00
view.apply_cell_result("DYNAMIC_NATIVE", "PRESSURE_DEV")