Skip to content

Commit 969d6e0

Browse files
Merge pull request NREL#293 from softwareengineerprogrammer/main
Documentation fixes/updates - HIP-RA-X, Examples
2 parents d1d05d6 + 034e2db commit 969d6e0

File tree

6 files changed

+69
-38
lines changed

6 files changed

+69
-38
lines changed

README.rst

Lines changed: 62 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -254,94 +254,126 @@ Documentation
254254
Examples
255255
--------
256256

257-
A variety of example input ``.txt`` files and corresponding case report ``.out`` files are available in the `tests/examples directory of the repository <tests/examples>`__:
257+
GEOPHIRES includes a variety of examples demonstrating its features and case studies for different types of geothermal systems.
258+
Starting with an existing GEOPHIRES example that is similar to your intended use/application can be an easier approach to using GEOPHIRES than constructing your own inputs from scratch.
259+
260+
Example input ``.txt`` files and corresponding case report ``.out`` files are available in the `tests/examples directory <tests/examples>`__ of the repository.
261+
Example-specific web interface deeplinks are listed in the Link column.
258262

259263

260264
.. list-table::
261-
:widths: 50 40 10
265+
:widths: 50 40 5 5
262266
:header-rows: 1
263267

264268
* - Example
265269
- Input file
266270
- Case report file
271+
- Link
267272
* - Example 1
268273
- `example1.txt <tests/examples/example1.txt>`__
269-
- `example1.out <tests/examples/example1.out>`__
274+
- `.out <tests/examples/example1.out>`__
275+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example1>`__
270276
* - Example 1 with Addons
271277
- `example1_addons.txt <tests/examples/example1_addons.txt>`__
272-
- `example1_addons.out <tests/examples/example1_addons.out>`__
278+
- `.out <tests/examples/example1_addons.out>`__
279+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example1_addons>`__
273280
* - Example 2
274281
- `example2.txt <tests/examples/example2.txt>`__
275-
- `example2.out <tests/examples/example2.out>`__
282+
- `.out <tests/examples/example2.out>`__
283+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example2>`__
276284
* - Example 3
277285
- `example3.txt <tests/examples/example3.txt>`__
278-
- `example3.out <tests/examples/example3.out>`__
286+
- `.out <tests/examples/example3.out>`__
287+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example3>`__
279288
* - Example 4
280289
- `example4.txt <tests/examples/example4.txt>`__
281-
- `example4.out <tests/examples/example4.out>`__
290+
- `.out <tests/examples/example4.out>`__
291+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example4>`__
282292
* - Example 5
283293
- `example5.txt <tests/examples/example5.txt>`__
284-
- `example5.out <tests/examples/example5.out>`__
294+
- `.out <tests/examples/example5.out>`__
295+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example5>`__
285296
* - Example 8
286297
- `example8.txt <tests/examples/example8.txt>`__
287-
- `example8.out <tests/examples/example8.out>`__
298+
- `.out <tests/examples/example8.out>`__
299+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example8>`__
288300
* - Example 9
289301
- `example9.txt <tests/examples/example9.txt>`__
290-
- `example9.out <tests/examples/example9.out>`__
302+
- `.out <tests/examples/example9.out>`__
303+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example9>`__
291304
* - Example 10: Heat Pump
292305
- `example10_HP.txt <tests/examples/example10_HP.txt>`__
293-
- `example10_HP.out <tests/examples/example10_HP.out>`__
306+
- `.out <tests/examples/example10_HP.out>`__
307+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example10_HP>`__
294308
* - Example 11: Absorption Chiller
295309
- `example11_AC.txt <tests/examples/example11_AC.txt>`__
296-
- `example11_AC.out <tests/examples/example11_AC.out>`__
310+
- `.out <tests/examples/example11_AC.out>`__
311+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example11_AC>`__
297312
* - Example 12: District Heating
298313
- `example12_DH.txt <tests/examples/example12_DH.txt>`__
299-
- `example12_DH.out <tests/examples/example12_DH.out>`__
314+
- `.out <tests/examples/example12_DH.out>`__
315+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example12_DH>`__
300316
* - Example 13
301317
- `example13.txt <tests/examples/example13.txt>`__
302-
- `example13.out <tests/examples/example13.out>`__
318+
- `.out <tests/examples/example13.out>`__
319+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example13>`__
303320
* - AGS: Coaxial sCO2: Heat (Beckers et. al 2023)
304321
- `Beckers_et_al_2023_Tabulated_Database_Coaxial_sCO2_heat.txt <tests/examples/Beckers_et_al_2023_Tabulated_Database_Coaxial_sCO2_heat.txt>`__
305-
- `Beckers_et_al_2023_Tabulated_Database_Coaxial_sCO2_heat.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Coaxial_sCO2_heat.out>`__
322+
- `.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Coaxial_sCO2_heat.out>`__
323+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=Beckers_et_al_2023_Tabulated_Database_Coaxial_sCO2_heat>`__
306324
* - AGS: Coaxial Water: Heat (Beckers et. al 2023)
307325
- `Beckers_et_al_2023_Tabulated_Database_Coaxial_water_heat.txt <tests/examples/Beckers_et_al_2023_Tabulated_Database_Coaxial_water_heat.txt>`__
308-
- `Beckers_et_al_2023_Tabulated_Database_Coaxial_water_heat.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Coaxial_water_heat.out>`__
326+
- `.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Coaxial_water_heat.out>`__
327+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=Beckers_et_al_2023_Tabulated_Database_Coaxial_water_heat>`__
309328
* - AGS: Uloop sCO2: Electricity (Beckers et. al 2023)
310329
- `Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_elec.txt <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_elec.txt>`__
311-
- `Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_elec.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_elec.out>`__
330+
- `.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_elec.out>`__
331+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_elec>`__
312332
* - AGS: Uloop sCO2: Heat (Beckers et. al 2023)
313333
- `Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_heat.txt <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_heat.txt>`__
314-
- `Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_heat.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_heat.out>`__
334+
- `.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_heat.out>`__
335+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_heat>`__
315336
* - AGS: Uloop Water: Electricity (Beckers et. al 2023)
316337
- `Beckers_et_al_2023_Tabulated_Database_Uloop_water_elec.txt <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_water_elec.txt>`__
317-
- `Beckers_et_al_2023_Tabulated_Database_Uloop_water_elec.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_water_elec.out>`__
338+
- `.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_water_elec.out>`__
339+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=Beckers_et_al_2023_Tabulated_Database_Uloop_water_elec>`__
318340
* - CLGS: Uloop Water: Heat (Beckers et. al 2023)
319341
- `Beckers_et_al_2023_Tabulated_Database_Uloop_water_heat.txt <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_water_heat.txt>`__
320-
- `Beckers_et_al_2023_Tabulated_Database_Uloop_water_heat.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_water_heat.out>`__
342+
- `.out <tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_water_heat.out>`__
343+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=Beckers_et_al_2023_Tabulated_Database_Uloop_water_heat>`__
321344
* - SUTRA Example 1
322345
- `SUTRAExample1.txt <tests/examples/SUTRAExample1.txt>`__
323-
- `SUTRAExample1.out <tests/examples/SUTRAExample1.out>`__
346+
- `.out <tests/examples/SUTRAExample1.out>`__
347+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=SUTRAExample1>`__
324348
* - Multiple Gradients
325349
- `example_multiple_gradients.txt <tests/examples/example_multiple_gradients.txt>`__
326-
- `example_multiple_gradients.out <tests/examples/example_multiple_gradients.out>`__
327-
* - Fervo Energy Whitepaper (Norbeck J.H. and Latimer T.M. 2023.)
350+
- `.out <tests/examples/example_multiple_gradients.out>`__
351+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example_multiple_gradients>`__
352+
* - Fervo Project Red (Norbeck J.H. and Latimer T.M. 2023.)
328353
- `Fervo_Norbeck_Latimer_2023.txt <tests/examples/Fervo_Norbeck_Latimer_2023.txt>`__
329-
- `Fervo_Norbeck_Latimer_2023.out <tests/examples/Fervo_Norbeck_Latimer_2023.out>`__
354+
- `.out <tests/examples/Fervo_Norbeck_Latimer_2023.out>`__
355+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=Fervo_Norbeck_Latimer_2023>`__
356+
* - Fervo Project Cape
357+
- `Fervo_Project_Cape.txt <tests/examples/Fervo_Project_Cape.txt>`__
358+
- `.out <tests/examples/Fervo_Project_Cape.out>`__
359+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=Fervo_Project_Cape>`__
330360
* - Superhot Rock (SHR) Example 1
331361
- `example_SHR-1.txt <tests/examples/example_SHR-1.txt>`__
332-
- `example_SHR-1.out <tests/examples/example_SHR-1.out>`__
362+
- `.out <tests/examples/example_SHR-1.out>`__
363+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example_SHR-1>`__
333364
* - Superhot Rock (SHR) Example 2
334365
- `example_SHR-2.txt <tests/examples/example_SHR-2.txt>`__
335-
- `example_SHR-2.out <tests/examples/example_SHR-2.out>`__
366+
- `.out <tests/examples/example_SHR-2.out>`__
367+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example_SHR-2>`__
336368
* - SBT High Temperature
337369
- `example_SBT_Hi_T.txt <tests/examples/example_SBT_Hi_T.txt>`__
338-
- `example_SBT_Hi_T.out <tests/examples/example_SBT_Hi_T.out>`__
370+
- `.out <tests/examples/example_SBT_Hi_T.out>`__
371+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example_SBT_Hi_T>`__
339372
* - SBT Low Temperature
340373
- `example_SBT_Lo_T.txt <tests/examples/example_SBT_Lo_T.txt>`__
341-
- `example_SBT_Lo_T.out <tests/examples/example_SBT_Lo_T.out>`__
342-
374+
- `.out <tests/examples/example_SBT_Lo_T.out>`__
375+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example_SBT_Lo_T>`__
343376

344-
An interactive table of examples is available at `gtp.scientificwebservices.com/geophires <https://gtp.scientificwebservices.com/geophires>`__, under the Examples tab.
345377

346378
Parameters
347379
----------

src/geophires_x/Units.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class CostPerDistanceUnit(str, Enum):
215215

216216
class PressureUnit(str, Enum):
217217
"""Pressure Units"""
218-
MPASCAL = "mPa"
218+
MPASCAL = "MPa"
219219
KPASCAL = "kPa"
220220
PASCAL = "Pa"
221221
BAR = "bar"

src/geophires_x_schema_generator/hip-ra-x-request.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,16 @@
143143
"maximum": 15.0
144144
},
145145
"Reservoir Pressure": {
146-
"description": "pressure of the of reservoir (in mPa). Calculated assuming hydrostatic pressure and reservoir depth & water density if no value given",
146+
"description": "pressure of the of reservoir (in MPa). Calculated assuming hydrostatic pressure and reservoir depth & water density if no value given",
147147
"type": "number",
148-
"units": "mPa",
148+
"units": "MPa",
149149
"category": null,
150150
"default": -1.0,
151151
"minimum": 0.0,
152152
"maximum": 10000.0
153153
},
154154
"Recoverable Heat from Rock": {
155-
"description": "percent of fluid that is recoverable from the reservoir (0.75 = 75%)",
155+
"description": "percent of heat that is recoverable from the rock (0.75 = 75%)",
156156
"type": "number",
157157
"units": "",
158158
"category": null,

src/hip_ra_x/hip_ra_x.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter:
324324
Required=False,
325325
Provided=False,
326326
ErrMessage='calculate assuming hydrostatic pressure and the reservoir depth & water density',
327-
ToolTipText='pressure of the of reservoir (in mPa). Calculated assuming hydrostatic pressure and '
327+
ToolTipText='pressure of the of reservoir (in MPa). Calculated assuming hydrostatic pressure and '
328328
'reservoir depth & water density if no value given',
329329
)
330330
)
@@ -339,7 +339,7 @@ def parameter_dict_entry(param: Parameter) -> Parameter:
339339
CurrentUnits=PercentUnit.TENTH,
340340
Required=False,
341341
ErrMessage='assume 0.75 (75%) of fluid from the reservoir is recoverable',
342-
ToolTipText='percent of fluid that is recoverable from the reservoir (0.75 = 75%)',
342+
ToolTipText='percent of heat that is recoverable from the rock (0.75 = 75%)',
343343
)
344344
)
345345
self.html_output_file: Parameter = parameter_dict_entry(

tests/examples/Fervo_Project_Cape.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Fervo Project Cape
22
# Presented at NREL GEOPHIRES workshop 2024-07-18
3-
# https://gtp.scientificwebservices.com/geophires/?shared-geophires-result-id=2bfa1f9f-d50b-476e-a05f-90e7f6a84ac1
43

54
Reservoir Model, 1
65
Reservoir Volume Option, 1

tests/hip_ra_x_tests/examples/HIP-RA-X_example1.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Recoverable Heat from Rock: 0.75
1818

1919
***SUMMARY OF RESULTS***
20-
Reservoir Pressure: 76.82 mPa
20+
Reservoir Pressure: 76.82 MPa
2121
Reservoir Depth: 7.83 kilometer
2222
Reservoir Volume (reservoir): 13.75 km**3
2323
Reservoir Volume (rock): 12.38 km**3

0 commit comments

Comments
 (0)