2020-09-23 10:02:18 +02:00
|
|
|
# Load ResInsight Processing Server Client Library
|
|
|
|
|
import rips
|
2021-01-26 20:48:01 +01:00
|
|
|
|
2020-09-23 10:02:18 +02:00
|
|
|
# Connect to ResInsight instance
|
|
|
|
|
resinsight = rips.Instance.find()
|
|
|
|
|
# Example code
|
|
|
|
|
print("ResInsight version: " + resinsight.version_string())
|
|
|
|
|
|
|
|
|
|
case = resinsight.project.case(case_id=0)
|
2026-09-16 18:00:40 +02:00
|
|
|
case.replace_grid(
|
2021-01-26 20:48:01 +01:00
|
|
|
new_grid_file="C:/Users/lindkvis/Projects/ResInsight/TestModels/Case_with_10_timesteps/Real0/BRUGGE_0000.EGRID"
|
|
|
|
|
)
|
2026-09-16 18:00:40 +02:00
|
|
|
|
|
|
|
|
# The project is reloaded, so retrieve the case object again
|
|
|
|
|
case = resinsight.project.case(case_id=0)
|
|
|
|
|
print("New case name: " + case.name)
|