#6232 Add example for creating a fracture model from python

This commit is contained in:
Kristian Bendiksen 2020-08-07 16:06:31 +02:00
parent a79b794eab
commit ef36bbd04a

View File

@ -0,0 +1,14 @@
# Load ResInsight Processing Server Client Library
import rips
# Connect to ResInsight instance
resinsight = rips.Instance.find()
# Example code
project = resinsight.project
# Find a well
well_path = project.well_path_by_name("Well-1")
print("well path:", well_path)
fracture_model_collection = project.descendants(rips.FractureModelCollection)[0]
measured_depth = 4100.0
fracture_model = fracture_model_collection.new_fracture_model(well_path=well_path, measured_depth=measured_depth)