Perforation Interval: make properties scriptable from Python.

This commit is contained in:
Kristian Bendiksen
2023-10-06 09:52:53 +02:00
committed by Magne Sjaastad
parent 445672cbb2
commit db77ea5762
5 changed files with 28 additions and 9 deletions

View File

@@ -32,3 +32,16 @@ coord = [1054.28, 250, -50]
target = geometry.append_well_target(coord)
well_path.append_perforation_interval(3300, 3350, 0.2, 0.76)
# Update skin factor of the perforation
perforation_coll = well_path.completions().perforations()
perforation = perforation_coll.perforations()[0]
new_skin_factor = 0.9
print(
"Changing perforation skin factor from {} to {}.".format(
perforation.skin_factor, new_skin_factor
)
)
perforation.skin_factor = new_skin_factor
perforation.update()