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

13 lines
381 B
Python
Raw Normal View History

# Load ResInsight Processing Server Client Library
import rips
2021-01-26 20:48:01 +01:00
# Connect to ResInsight instance
resinsight = rips.Instance.find()
# Example code
print("ResInsight version: " + resinsight.version_string())
case = resinsight.project.case(case_id=0)
2021-01-26 20:48:01 +01:00
case.replace(
new_grid_file="C:/Users/lindkvis/Projects/ResInsight/TestModels/Case_with_10_timesteps/Real0/BRUGGE_0000.EGRID"
)