2019-08-19 13:46:14 +02:00
|
|
|
######################################################################
|
|
|
|
|
# This script applies a flow diagnostics cell result to the first view in the project
|
|
|
|
|
######################################################################
|
|
|
|
|
|
2019-07-31 09:53:15 +02:00
|
|
|
# Load ResInsight Processing Server Client Library
|
|
|
|
|
import rips
|
2021-01-26 20:48:01 +01:00
|
|
|
|
2019-07-31 09:53:15 +02:00
|
|
|
# Connect to ResInsight instance
|
2019-09-19 13:25:04 +02:00
|
|
|
resinsight = rips.Instance.find()
|
2019-07-31 09:53:15 +02:00
|
|
|
|
2019-11-21 08:13:15 +01:00
|
|
|
view = resinsight.project.view(view_id=1)
|
2021-01-26 20:48:01 +01:00
|
|
|
# view.apply_flow_diagnostics_cell_result(result_variable='Fraction',
|
2019-09-19 15:14:01 +02:00
|
|
|
# selection_mode='FLOW_TR_INJ_AND_PROD')
|
2021-01-26 20:48:01 +01:00
|
|
|
|
2019-07-31 09:53:15 +02:00
|
|
|
# Example of setting individual wells. Commented out because well names are case specific.
|
2021-01-26 20:48:01 +01:00
|
|
|
view.apply_flow_diagnostics_cell_result(
|
|
|
|
|
result_variable="Fraction",
|
|
|
|
|
selection_mode="FLOW_TR_BY_SELECTION",
|
|
|
|
|
injectors=["C-1H", "C-2H", "F-2H"],
|
|
|
|
|
producers=["B-1AH", "B-3H", "D-1H"],
|
|
|
|
|
)
|