Update examples for 2024.12.2

This commit is contained in:
Magne Sjaastad 2025-01-13 10:54:00 +01:00
parent da69c1f049
commit ecd006decb
2 changed files with 27 additions and 3 deletions

View File

@ -41,13 +41,25 @@ for measured_depth in measured_depths:
eclipse_case=case, eclipse_case=case,
) )
# Update the orientation of the fracture # Update the orientation of the fracture. All fracture parameters are displayed, most with default values.
# Call update() to propagate changes from the Python object back to ResInsight
fracture_template.orientation = "Azimuth" fracture_template.orientation = "Azimuth"
fracture_template.azimuth_angle = 60.0 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.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.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() fracture_template.update()
# Scale the template # Scale the template

View File

@ -55,6 +55,18 @@ completions_settings.group_name_for_export = "msj"
completions_settings.well_type_for_export = "GAS" completions_settings.well_type_for_export = "GAS"
completions_settings.update() # Commit updates back to ResInsight 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 # export completions
cases = resinsight.project.cases() cases = resinsight.project.cases()