diff --git a/GrpcInterface/Python/rips/PythonExamples/import_fractures_on_well.py b/GrpcInterface/Python/rips/PythonExamples/import_fractures_on_well.py index a172e8871c..4a6ae3fa3d 100644 --- a/GrpcInterface/Python/rips/PythonExamples/import_fractures_on_well.py +++ b/GrpcInterface/Python/rips/PythonExamples/import_fractures_on_well.py @@ -41,13 +41,25 @@ for measured_depth in measured_depths: eclipse_case=case, ) -# Update the orientation of the fracture -# Call update() to propagate changes from the Python object back to ResInsight +# Update the orientation of the fracture. All fracture parameters are displayed, most with default values. fracture_template.orientation = "Azimuth" fracture_template.azimuth_angle = 60.0 -fracture_template.user_defined_perforation_length = True +fracture_template.beta_factor_type = "UserDefinedBetaFactor" fracture_template.conductivity_type = "InfiniteConductivity" +fracture_template.effective_permeability = 0 +fracture_template.fracture_width = 0.01 +fracture_template.fracture_width_type = "FractureWidth" +fracture_template.gas_viscosity = 0.02 +fracture_template.height_scale_factor = 1 +fracture_template.inertial_coefficient = 0.00608324 +fracture_template.non_darcy_flow_type = "None" fracture_template.perforation_length = 12.3 +fracture_template.permeability_type = "FractureConductivity" +fracture_template.relative_gas_density = 0.8 +fracture_template.relative_permeability = 1 +fracture_template.user_defined_d_factor = 1 +fracture_template.user_defined_perforation_length = True +fracture_template.width_scale_factor = 1 fracture_template.update() # Scale the template diff --git a/GrpcInterface/Python/rips/PythonExamples/modeled_well_path.py b/GrpcInterface/Python/rips/PythonExamples/modeled_well_path.py index d385d63639..f1cdc1a9e2 100644 --- a/GrpcInterface/Python/rips/PythonExamples/modeled_well_path.py +++ b/GrpcInterface/Python/rips/PythonExamples/modeled_well_path.py @@ -55,6 +55,18 @@ completions_settings.group_name_for_export = "msj" completions_settings.well_type_for_export = "GAS" completions_settings.update() # Commit updates back to ResInsight +# Optionally update the MSW settings +msw_settings = well_path.msw_settings() +msw_settings.custom_values_for_lateral = False +msw_settings.enforce_max_segment_length = False +msw_settings.liner_diameter = 0.152 +msw_settings.max_segment_length = 200 +msw_settings.pressure_drop = "HF-" +msw_settings.reference_md_type = "GridEntryPoint" +msw_settings.roughness_factor = 1e-05 +msw_settings.user_defined_reference_md = 0 +msw_settings.update() + # export completions cases = resinsight.project.cases()