mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make scriptability a CAF-feature
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Load ResInsight Processing Server Client Library
|
||||
import rips
|
||||
|
||||
# Connect to ResInsight instance
|
||||
resinsight = rips.Instance.find()
|
||||
|
||||
# Get the project
|
||||
project = resinsight.project
|
||||
|
||||
# Find all the well bore stability plots in the project
|
||||
wbsplots = project.descendants(rips.WellBoreStabilityPlot)
|
||||
|
||||
# Chose a sensible output folder
|
||||
dirname = "C:/temp"
|
||||
|
||||
# Loop through all Well Bore Stability plots
|
||||
for wbsplot in wbsplots:
|
||||
# Set depth type a parameter and export snapshot
|
||||
wbsplot.depth_type = "TRUE_VERTICAL_DEPTH_RKB"
|
||||
|
||||
# Example of setting parameters for existing plots
|
||||
params = wbsplot.parameters()
|
||||
params.user_poisson_ratio = 0.654321
|
||||
params.update()
|
||||
wbsplot.update()
|
||||
wbsplot.export_snapshot(export_folder=dirname)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user