Skip to content

Commit

Permalink
Update examples for 2024.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Jan 13, 2025
1 parent da69c1f commit ecd006d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,25 @@
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
Expand Down
12 changes: 12 additions & 0 deletions GrpcInterface/Python/rips/PythonExamples/modeled_well_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@
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()

Expand Down

0 comments on commit ecd006d

Please sign in to comment.