Skip to content

Commit 7fc21d9

Browse files
minor comment/formatting cleanup in WellBores.py
1 parent 01d7fa4 commit 7fc21d9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/geophires_x/WellBores.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,20 +631,23 @@ def InjPressureDropAndPumpingPowerUsingIndexes(
631631

632632
if productionwellpumping:
633633
# Excess pressure covers non-condensable gas pressure and net positive suction head for the pump
634-
Pexcess_kPa = 344.7 # = 50 psi
634+
Pexcess_kPa = 344.7 # = 50 psi
635635

636636
# Minimum production pump inlet pressure and minimum wellhead pressure
637637
if Trock_degC < 373.9:
638638
Pminimum_kPa = vapor_pressure_water_kPa(Trock_degC) + Pexcess_kPa
639-
else: #above the critical water temperature, vapor no longer occurs and vapor pressure can no longer be calculated. A "dummy" vapor pressure can be assumed as the fluid phase no longer impacts the pump depth.
640-
Pminimum_kPa = 100 #setting artificially to 1 bar = 100 kPa
639+
else:
640+
# Above the critical water temperature, vapor no longer occurs and vapor pressure can no longer be
641+
# calculated. A "dummy" vapor pressure can be assumed as the fluid phase no longer impacts the pump depth.
642+
Pminimum_kPa = 100 # setting artificially to 1 bar = 100 kPa
641643
if usebuiltinppwellheadcorrelation:
642644
Pprodwellhead = Pminimum_kPa # production wellhead pressure [kPa]
643645
else:
644646
Pprodwellhead = ppwellhead
645647
if Pprodwellhead < Pminimum_kPa:
646648
Pprodwellhead = Pminimum_kPa
647-
msg = (f'Provided production wellhead pressure ({Pprodwellhead:.2f} kPa) under minimum pressure ({Pminimum_kPa:.2f} kPa). '
649+
msg = (f'Provided production wellhead pressure ({Pprodwellhead:.2f} kPa) under minimum pressure '
650+
f'({Pminimum_kPa:.2f} kPa). '
648651
f'GEOPHIRES will assume minimum wellhead pressure.')
649652
print(f'Warning: {msg}')
650653
model.logger.warning(msg)

0 commit comments

Comments
 (0)