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