Skip to content

Commit ef076fd

Browse files
Merge pull request #25 from softwareengineerprogrammer/fervo-case-study-3
Fervo case study 3
2 parents c255e7e + 33ec658 commit ef076fd

27 files changed

+1749
-1795
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ requirements.txt
1111
*~
1212
*.bak
1313
.DS_Store
14-
.lock
14+
*.lock
15+
*.json
1516

1617
# C extensions
1718
*.so
Binary file not shown.

References/fervo_energy_white_paper.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

References/fervo_references.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* [fervo_energy_white_paper.pdf](https://github.com/NREL/GEOPHIRES-X/blob/703c967b0b1fe9f6d619b1e786686ba07fb0fe59/References/fervo_energy_white_paper.pdf)
2+
* [fervo_drilling costs.pdf](https://github.com/softwareengineerprogrammer/GEOPHIRES-X/blob/62ecc37385cc89dcac36a3684c258e454bcc0241/References/fervo_drilling%20costs.pdf)

src/geophires_x/SurfacePlant.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def __init__(self, model: Model):
342342
"Plant Outlet Pressure",
343343
DefaultValue=100.0,
344344
Min=0.01,
345-
Max=10000.0,
345+
Max=15000.0,
346346
UnitType=Units.PRESSURE,
347347
PreferredUnits=PressureUnit.KPASCAL,
348348
CurrentUnits=PressureUnit.KPASCAL,
@@ -576,16 +576,16 @@ def read_parameters(self, model:Model) -> None:
576576
model.wellbores.impedancemodelallowed.value = False
577577
self.setinjectionpressurefixed = True
578578
elif ParameterToModify.Name == 'Plant Outlet Pressure':
579-
if ParameterToModify.value < 0 or ParameterToModify.value > 10000:
579+
if ParameterToModify.value < self.plant_outlet_pressure.Min or ParameterToModify.value > self.plant_outlet_pressure.Max:
580580
if self.setinjectionpressurefixed:
581581
ParameterToModify.value = 100
582-
msg = (f'Provided plant outlet pressure outside of range 0-10000. GEOPHIRES will '
582+
msg = (f'Provided plant outlet pressure outside of range defined valid range. GEOPHIRES will '
583583
f'assume default plant outlet pressure ({ParameterToModify.value} kPa)')
584584
print(f'Warning: {msg}')
585585
model.logger.warning(msg)
586586
else:
587587
self.usebuiltinoutletplantcorrelation.value = True
588-
msg = ('Provided plant outlet pressure outside of range 0-10000 kPa. '
588+
msg = ('Provided plant outlet pressure outside of defined valid range. '
589589
'GEOPHIRES will calculate plant outlet pressure based on production '
590590
'wellhead pressure and surface equipment pressure drop of 10 psi')
591591
print(f'Warning: {msg}')

src/geophires_x/WellBores.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,14 +1193,16 @@ def Calculate(self, model: Model) -> None:
11931193
# If you choose to subclass this master class, you can also choose to override this method (or not),
11941194
# and if you do, do it before or after you call you own version of this method. If you do, you can also
11951195
# choose to call this method from you class, which can effectively run the calculations of the superclass,
1196-
# making all thr values available to your methods. but you had better have set all the parameters!
1196+
# making all the values available to your methods. but you had better have set all the parameters!
11971197

11981198
# calculate the reservoir pressure as a function of time
1199-
self.production_reservoir_pressure.value = get_hydrostatic_pressure_kPa(model.reserv.Trock.value, model.reserv.Tsurf.value,
1199+
if self.usebuiltinhydrostaticpressurecorrelation:
1200+
self.production_reservoir_pressure.value = get_hydrostatic_pressure_kPa(model.reserv.Trock.value, model.reserv.Tsurf.value,
12001201
model.reserv.depth.quantity().to('m').magnitude,
12011202
model.reserv.averagegradient.value,
1202-
model.reserv.lithostatic_pressure()) if self.usebuiltinhydrostaticpressurecorrelation else self.Phydrostatic.quantity().to(
1203-
self.production_reservoir_pressure.CurrentUnits).magnitude
1203+
model.reserv.hydrostatic_pressure())
1204+
else:
1205+
self.production_reservoir_pressure.value = self.Phydrostatic.quantity().to(self.production_reservoir_pressure.CurrentUnits).magnitude
12041206

12051207
self.production_reservoir_pressure.value = ReservoirPressurePredictor(model.surfaceplant.plant_lifetime.value,
12061208
model.economics.timestepsperyear.value,

0 commit comments

Comments
 (0)