Skip to content

Commit 83529d6

Browse files
authored
Merge branch 'NREL:main' into main
2 parents bab3d1d + 969d6e0 commit 83529d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+4731
-229
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.5.2
2+
current_version = 3.5.4
33
commit = True
44
tag = True
55

.cookiecutterrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ default_context:
5454
sphinx_doctest: "no"
5555
sphinx_theme: "sphinx-py3doc-enhanced-theme"
5656
test_matrix_separate_coverage: "no"
57-
version: 3.5.2
57+
version: 3.5.4
5858
version_manager: "bump2version"
5959
website: "https://github.com/NREL"
6060
year_from: "2023"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ requirements.txt
1313
.DS_Store
1414
*.lock
1515
*.json
16+
all_messages_conf.log
1617

1718
# C extensions
1819
*.so
@@ -81,6 +82,8 @@ docs/reference/geophires-request.json
8182
docs/reference/parameters.rst
8283
docs/geophires-request.json
8384
docs/parameters.rst
85+
docs/hip-ra-x-request.json
86+
docs/hip_ra_x_parameters.rst
8487
_site/
8588
/docs/geophires_x.rstx
8689
/docs/temperature.txt

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ GEOPHIRES-X (2023-2024)
1212

1313
Milestone version for case studies, SHR temperatures, and other changes since 3.0.
1414

15+
3.5.3: SBT Reservoir Model (Slender Body Theory)
16+
1517
3.4
1618
^^^
1719

CONTRIBUTING.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,28 @@ Once a version bump is merged into the main repository with a Pull Request, tags
286286
287287
(venv) ➜ python-geophires-x git:(main) git push origin --tags
288288
289+
290+
Documentation Updates
291+
---------------------
292+
293+
If a change includes new classes with parameters that should be included in documentation,
294+
add them to `get_parameter_sources in geophires_x_schema_generator <https://github.com/NREL/GEOPHIRES-X/blob/1f47d6207c4d1458b949ac2cc470b453951d27ac/src/geophires_x_schema_generator/__init__.py#L48-L75>`__.
295+
Then run `geophires_x_schema_generator/main.py <https://github.com/NREL/GEOPHIRES-X/blob/main/src/geophires_x_schema_generator/main.py>`__
296+
and commit the updated json schema files to source - `example <https://github.com/NREL/GEOPHIRES-X/pull/285/files#diff-3d85ef79807fc6c25a758a698fd3a7095750bd27ea52341700e1dad94885b5f6>`__.
297+
298+
``geophires_x_schema_generator/main.py`` should also be run if new parameters are added to existing classes or changes are made to existing parameters.
299+
300+
New classes may also be added to the appropriate module file in ``docs/reference``, i.e. `geophires_x.rst <https://github.com/NREL/GEOPHIRES-X/blob/8cf4ee9a2cc917f037ff06554c40698ef2591614/docs/reference/geophires_x.rst#L16-L15>`__
301+
302+
Schema Files
303+
------------
304+
305+
GEOPHIRES & HIP-RA schema files generated by ``geophires_x_schema_generator`` are in an `OpenAPI Specification <https://swagger.io/docs/specification/about/>`__-compatible format.
306+
These schema files can be used to build your own API or UI for GEOPHIRES.
307+
308+
* `geophires-request.json <https://github.com/NREL/GEOPHIRES-X/blob/main/src/geophires_x_schema_generator/geophires-request.json>`__
309+
* `hip-ra-x-request.json <https://github.com/NREL/GEOPHIRES-X/blob/main/src/geophires_x_schema_generator/hip-ra-x-request.json>`__
310+
289311
Tips
290312
----
291313

README.rst

Lines changed: 77 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ Free software: `MIT license <LICENSE>`__
5151
:alt: Supported implementations
5252
:target: https://pypi.org/project/geophires-x
5353

54-
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.5.2.svg
54+
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.5.4.svg
5555
:alt: Commits since latest release
56-
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.5.2...main
56+
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.5.4...main
5757

5858
.. |docs| image:: https://readthedocs.org/projects/GEOPHIRES-X/badge/?style=flat
5959
:target: https://nrel.github.io/GEOPHIRES-X
@@ -254,88 +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>`__
336-
366+
- `.out <tests/examples/example_SHR-2.out>`__
367+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example_SHR-2>`__
368+
* - SBT High Temperature
369+
- `example_SBT_Hi_T.txt <tests/examples/example_SBT_Hi_T.txt>`__
370+
- `.out <tests/examples/example_SBT_Hi_T.out>`__
371+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example_SBT_Hi_T>`__
372+
* - SBT Low Temperature
373+
- `example_SBT_Lo_T.txt <tests/examples/example_SBT_Lo_T.txt>`__
374+
- `.out <tests/examples/example_SBT_Lo_T.out>`__
375+
- `link <https://gtp.scientificwebservices.com/geophires?geophires-example-id=example_SBT_Lo_T>`__
337376

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

340378
Parameters
341379
----------
@@ -349,6 +387,15 @@ Extending GEOPHIRES-X
349387

350388
- `Extension example: SUTRA <https://github.com/NREL/GEOPHIRES-X/commit/984cb4da1505667adb2c45cb1297cab6550774bd#diff-5b1ea85ce061b9a1137a46c48d2d293126224d677d3ab38d9b2f4dcfc4e1674e>`__
351389

390+
391+
HIP-RA: Heat in Place - Resource Assessment
392+
-------------------------------------------
393+
394+
* `HIP-RA-X README <src/hip_ra_x/README.md>`__
395+
* `HIP-RA-X Parameters Reference <https://softwareengineerprogrammer.github.io/GEOPHIRES-X/hip_ra_x_parameters.html>`__
396+
397+
.. TODO switch over to https://nrel.github.io/GEOPHIRES-X/hip_ra_x_parameters.html once merged
398+
352399
Monte Carlo
353400
-----------
354401

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
year = '2024'
1919
author = 'NREL'
2020
copyright = f'{year}, {author}'
21-
version = release = '3.5.2'
21+
version = release = '3.5.4'
2222

2323
pygments_style = 'trac'
2424
templates_path = ['./templates']

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Contents
88
overview
99
parameters
1010
How-to-extend-GEOPHIRES-X
11+
hip_ra_x_parameters
1112
Monte-Carlo-User-Guide
1213
.. reference/index
1314

docs/reference/geophires_x.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ geophires_x
2323
.. automodule:: geophires_x.CylindricalReservoir
2424
:members:
2525

26+
.. automodule:: geophires_x.SBTReservoir
27+
:members:
28+
2629
.. automodule:: geophires_x.SUTRAReservoir
2730
:members:
2831

@@ -33,6 +36,9 @@ geophires_x
3336
.. automodule:: geophires_x.AGSWellBores
3437
:members:
3538

39+
.. automodule:: geophires_x.SBTWellBores
40+
:members:
41+
3642
.. automodule:: geophires_x.SUTRAWellBores
3743
:members:
3844

@@ -52,6 +58,9 @@ geophires_x
5258
.. automodule:: geophires_x.AGSEconomics
5359
:members:
5460

61+
.. automodule:: geophires_x.SBTEconomics
62+
:members:
63+
5564
.. automodule:: geophires_x.SUTRAEconomics
5665
:members:
5766

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def read(*names, **kwargs):
1313

1414
setup(
1515
name='geophires-x',
16-
version='3.5.2',
16+
version='3.5.4',
1717
license='MIT',
1818
description='GEOPHIRES is a free and open-source geothermal techno-economic simulator.',
1919
long_description='{}\n{}'.format(

0 commit comments

Comments
 (0)