Skip to content

Commit b2477a8

Browse files
add SBT units and update ranges of existing parameters
1 parent 1b0ba27 commit b2477a8

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

src/geophires_x/Reservoir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self, model: Model):
5050
self.resoption = self.ParameterDict[self.resoption.Name] = intParameter(
5151
"Reservoir Model",
5252
DefaultValue=ReservoirModel.ANNUAL_PERCENTAGE.int_value,
53-
AllowableRange=[0, 1, 2, 3, 4, 5, 6, 7],
53+
AllowableRange=[0, 1, 2, 3, 4, 5, 6, 7, 8],
5454
ValuesEnum=ReservoirModel,
5555
Required=True,
5656
ErrMessage="run default reservoir model (Thermal Drawdown Percentage Model)",

src/geophires_x/Units.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Units(IntEnum):
1919
NONE = auto()
2020
CHOICE = auto()
2121
LENGTH = auto()
22+
ANGLE = auto()
2223
AREA = auto()
2324
VOLUME = auto()
2425
MASS = auto()
@@ -60,6 +61,13 @@ class Units(IntEnum):
6061
POWERPERUNITVOLUME = auto()
6162
DECAY_RATE=auto()
6263
INFLATION_RATE=auto()
64+
DYNAMIC_VISCOSITY = auto()
65+
66+
67+
class AngleUnit(str, Enum):
68+
"""Temperature Units"""
69+
DEGREES = "degrees"
70+
RADIANS = "radians"
6371

6472

6573
class TemperatureUnit(str, Enum):
@@ -351,3 +359,8 @@ class Decay_RateUnit(str,Enum):
351359
class Inflation_RateUnit(str,Enum):
352360
"""Decay rate Units"""
353361
KPASCALPERYEAR = "kPa/yr"
362+
363+
364+
class Dynamic_ViscosityUnit(str,Enum):
365+
"""Decay rate Units"""
366+
PASCALSEC = "PaSec"

src/geophires_x/WellBores.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ def __init__(self, model: Model):
889889
self.Configuration = self.ParameterDict[self.Configuration.Name] = intParameter(
890890
"Closed-loop Configuration",
891891
DefaultValue=Configuration.VERTICAL.int_value,
892-
AllowableRange=[1, 2, 3, 4],
892+
AllowableRange=[1, 2, 3, 4, 5],
893893
ValuesEnum=Configuration,
894894
UnitType=Units.NONE,
895895
Required=True,
@@ -900,7 +900,7 @@ def __init__(self, model: Model):
900900
self.Configuration = self.ParameterDict[self.Configuration.Name] = intParameter(
901901
"Well Geometry Configuration",
902902
DefaultValue=Configuration.VERTICAL.int_value,
903-
AllowableRange=[1, 2, 3, 4],
903+
AllowableRange=[1, 2, 3, 4, 5],
904904
ValuesEnum=Configuration,
905905
UnitType=Units.NONE,
906906
Required=True,

0 commit comments

Comments
 (0)