Skip to content

Commit 07e7eaa

Browse files
Merge pull request NREL#157 from softwareengineerprogrammer/main
Output unit standardization, remove redundant value declarations
2 parents 41793df + dc7ee91 commit 07e7eaa

Some content is hidden

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

53 files changed

+70
-211
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.4.20
2+
current_version = 3.4.21
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.4.20
57+
version: 3.4.21
5858
version_manager: "bump2version"
5959
website: "https://github.com/NREL"
6060
year_from: "2023"

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Free software: `MIT license <LICENSE>`__
4747
:alt: Supported implementations
4848
:target: https://pypi.org/project/geophires-x
4949

50-
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.4.20.svg
50+
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.4.21.svg
5151
:alt: Commits since latest release
52-
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.4.20...main
52+
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.4.21...main
5353

5454
.. |docs| image:: https://readthedocs.org/projects/GEOPHIRES-X/badge/?style=flat
5555
:target: https://nrel.github.io/GEOPHIRES-X

docs/conf.py

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

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

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.4.20',
16+
version='3.4.21',
1717
license='MIT',
1818
description='GEOPHIRES is a free and open-source geothermal techno-economic simulator.',
1919
long_description='{}\n{}'.format(

src/geophires_x/AGSEconomics.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def __init__(self, model: Model):
5353

5454
self.O_and_M_cost_plant = self.ParameterDict[self.O_and_M_cost_plant.Name] = floatParameter(
5555
"Operation & Maintenance Cost of Surface Plant",
56-
value=0.015,
5756
DefaultValue=0.015,
5857
Min=0.0,
5958
Max=0.2,
@@ -66,7 +65,6 @@ def __init__(self, model: Model):
6665
self.Direct_use_heat_cost_per_kWth = self.ParameterDict[
6766
self.Direct_use_heat_cost_per_kWth.Name] = floatParameter(
6867
"Capital Cost for Surface Plant for Direct-use System",
69-
value=100.0,
7068
DefaultValue=100.0,
7169
Min=0.0,
7270
Max=10000.0,
@@ -77,7 +75,7 @@ def __init__(self, model: Model):
7775
ErrMessage="assume default Capital cost for surface plant for direct-use system (100 $/kWth)"
7876
)
7977
self.Power_plant_cost_per_kWe = self.ParameterDict[self.Power_plant_cost_per_kWe.Name] = floatParameter(
80-
"Capital Cost for Power Plant for Electricity Generation", value=3000.0,
78+
"Capital Cost for Power Plant for Electricity Generation",
8179
DefaultValue=3000.0,
8280
Min=0.0,
8381
Max=10000.0,

src/geophires_x/AGSWellBores.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ def __init__(self, model: Model):
517517

518518
self.Fluid = self.ParameterDict[self.Fluid.Name] = intParameter(
519519
"Heat Transfer Fluid",
520-
value=WorkingFluid.WATER,
521520
DefaultValue=WorkingFluid.WATER,
522521
AllowableRange=[1, 2],
523522
UnitType=Units.NONE,
@@ -526,7 +525,6 @@ def __init__(self, model: Model):
526525
)
527526
self.Configuration = self.ParameterDict[self.Configuration.Name] = intParameter(
528527
"Closed-loop Configuration",
529-
value=Configuration.COAXIAL,
530528
DefaultValue=Configuration.COAXIAL,
531529
AllowableRange=[1, 2],
532530
UnitType=Units.NONE,
@@ -537,7 +535,6 @@ def __init__(self, model: Model):
537535
# Input data for subsurface condition
538536
self.Nonvertical_length = self.ParameterDict[self.Nonvertical_length.Name] = floatParameter(
539537
"Total Nonvertical Length",
540-
value=1000.0,
541538
DefaultValue=1000.0,
542539
Min=1000.0,
543540
Max=20000.0,
@@ -550,7 +547,6 @@ def __init__(self, model: Model):
550547

551548
self.WaterThermalConductivity = self.ParameterDict[self.WaterThermalConductivity.Name] = floatParameter(
552549
"Water Thermal Conductivity",
553-
value=0.6,
554550
DefaultValue=0.6,
555551
Min=0.0,
556552
Max=100.0,
@@ -563,7 +559,6 @@ def __init__(self, model: Model):
563559

564560
self.nonverticalwellborediameter = self.ParameterDict[self.nonverticalwellborediameter.Name] = floatParameter(
565561
"Nonvertical Wellbore Diameter",
566-
value=0.156,
567562
DefaultValue=0.156,
568563
Min=0.01,
569564
Max=100.0,
@@ -575,7 +570,6 @@ def __init__(self, model: Model):
575570
)
576571
self.numnonverticalsections = self.ParameterDict[self.numnonverticalsections.Name] = intParameter(
577572
"Number of Multilateral Sections",
578-
value=1,
579573
DefaultValue=1,
580574
AllowableRange=list(range(0, 101, 1)),
581575
UnitType=Units.NONE,
@@ -584,7 +578,6 @@ def __init__(self, model: Model):
584578
)
585579
self.time_operation = self.ParameterDict[self.time_operation.Name] = floatParameter(
586580
"Closed Loop Calculation Start Year",
587-
value=0.01,
588581
DefaultValue=0.01,
589582
Min=0.01,
590583
Max=100.0,
@@ -596,7 +589,6 @@ def __init__(self, model: Model):
596589
)
597590
self.NonverticalsCased = self.ParameterDict[self.NonverticalsCased.Name] = boolParameter(
598591
"Multilaterals Cased",
599-
value=False,
600592
DefaultValue=False,
601593
Required=False,
602594
Provided=False,

src/geophires_x/CylindricalReservoir.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def __init__(self, model: Model):
4343

4444
self.InputDepth = self.ParameterDict[self.InputDepth.Name] = floatParameter(
4545
"Cylindrical Reservoir Input Depth",
46-
value=3.0,
4746
DefaultValue=3.0,
4847
Min=0.1,
4948
Max=15,
@@ -57,7 +56,6 @@ def __init__(self, model: Model):
5756

5857
self.OutputDepth = self.ParameterDict[self.OutputDepth.Name] = floatParameter(
5958
"Cylindrical Reservoir Output Depth",
60-
value=self.InputDepth.value,
6159
DefaultValue=self.InputDepth.value,
6260
Min=0.1,
6361
Max=15,
@@ -70,7 +68,6 @@ def __init__(self, model: Model):
7068
)
7169
self.Length = self.ParameterDict[self.Length.Name] = floatParameter(
7270
"Cylindrical Reservoir Length",
73-
value=4.0,
7471
DefaultValue=4.0,
7572
Min=0.1,
7673
Max=10.0,
@@ -83,7 +80,6 @@ def __init__(self, model: Model):
8380
)
8481
self.RadiusOfEffect = self.ParameterDict[self.RadiusOfEffect.Name] = floatParameter(
8582
"Cylindrical Reservoir Radius of Effect",
86-
value=30.0,
8783
DefaultValue=30.0,
8884
Min=0,
8985
Max=1000.0,
@@ -96,7 +92,6 @@ def __init__(self, model: Model):
9692
)
9793
self.RadiusOfEffectFactor = self.ParameterDict[self.RadiusOfEffectFactor.Name] = floatParameter(
9894
"Cylindrical Reservoir Radius of Effect Factor",
99-
value=1.0,
10095
DefaultValue=1.0,
10196
Min=0.0,
10297
Max=10.0,
@@ -114,7 +109,6 @@ def __init__(self, model: Model):
114109
# internal values required for calculations
115110
self.depth = self.ParameterDict[self.depth.Name] = floatParameter(
116111
"Drilled length",
117-
value=0.0,
118112
DefaultValue=0.0,
119113
Min=0.0,
120114
Max=150,
@@ -127,7 +121,6 @@ def __init__(self, model: Model):
127121
)
128122
self.waterloss = self.ParameterDict[self.waterloss.Name] = floatParameter(
129123
"Water Loss Fraction",
130-
value=0.0,
131124
DefaultValue=0.0,
132125
Min=0.0,
133126
Max=0.99,

0 commit comments

Comments
 (0)