Skip to content

Commit 8a8ea53

Browse files
committed
Minor changes to comments and .gitignore
1 parent 33b8cf5 commit 8a8ea53

File tree

12 files changed

+27
-28
lines changed

12 files changed

+27
-28
lines changed

src/geophires_monte_carlo/MC_GeoPHIRES3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def main(command_line_args=None):
342342
# get the values off the command line
343343
parser = argparse.ArgumentParser()
344344
parser.add_argument('Code_File', help='Code File')
345-
parser.add_argument('Input_file', help='Input file')
345+
parser.add_argument('Input_file', help='Inputs file')
346346
parser.add_argument('MC_Settings_file', help='MC Settings file')
347347
parser.add_argument('MC_OUTPUT_FILE', help='Output file', nargs='?')
348348

@@ -448,7 +448,7 @@ def main(command_line_args=None):
448448
if '-9999.0' not in line and len(s) > 1:
449449
line = line.strip()
450450
if len(line) > 10:
451-
line, sep, tail = line.partition(', (') # strip off the Input Variable Values
451+
line, sep, tail = line.partition(', (') # strip off the Inputs Variable Values
452452
line = line.replace('(', '').replace(')', '') # strip off the ()
453453
results.append([float(y) for y in line.split(',')])
454454
else:

src/geophires_x/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ Examples\Test2.json
135135
/temperature.txt
136136
all_messages_conf.log
137137

138-
Doublet.dat
139-
Doublet.out
138+
Doublet_default.dat
139+
140140
FOFT_A3Q23.csv
141141
FOFT_A3Q28.csv
142142
GENER

src/geophires_x/CylindricalReservoir.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, model: Model):
4242
super().__init__(model) # initialize the parent parameters and variables
4343

4444
self.InputDepth = self.ParameterDict[self.InputDepth.Name] = floatParameter(
45-
"Cylindrical Reservoir Input Depth",
45+
"Cylindrical Reservoir Inputs Depth",
4646
DefaultValue=3.0,
4747
Min=0.1,
4848
Max=15,
@@ -182,7 +182,7 @@ def read_parameters(self, model: Model) -> None:
182182
# Just handle special cases for this class - the call to super set all the values,
183183
# including the value unique to this class.
184184

185-
if ParameterToModify.Name == 'Cylindrical Reservoir Input Depth':
185+
if ParameterToModify.Name == 'Cylindrical Reservoir Inputs Depth':
186186
if 'Cylindrical Reservoir Output Depth' not in model.InputParameters:
187187
# If input depth is set and not output, assume output is the same as input
188188
self.OutputDepth.value = self.InputDepth.value

src/geophires_x/GeoPHIRESUtils.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def density_water_kg_per_m3(Twater_degC: float, pressure: Optional[PlainQuantity
252252
return CP.PropsSI('D', 'T', celsius_to_kelvin(Twater_degC), 'Q', 0, 'Water')
253253

254254
except (NotImplementedError, ValueError) as e:
255-
raise ValueError(f'Input temperature & pressure ({Twater_degC}, {pressure}) '
255+
raise ValueError(f'Inputs temperature & pressure ({Twater_degC}, {pressure}) '
256256
f'are out of range or otherwise could not be used to calculate water density.') from e
257257

258258

@@ -298,7 +298,7 @@ def viscosity_water_Pa_sec(
298298
return CP.PropsSI('V', 'T', celsius_to_kelvin(Twater_degC), 'Q', 0, 'Water')
299299

300300
except (NotImplementedError, ValueError) as e:
301-
raise ValueError(f'Input temperature & pressure ({Twater_degC}, {pressure}) '
301+
raise ValueError(f'Inputs temperature & pressure ({Twater_degC}, {pressure}) '
302302
f'are out of range or otherwise could not be used to calculate water viscosity.') from e
303303

304304

@@ -334,7 +334,7 @@ def heat_capacity_water_J_per_kg_per_K(
334334
return CP.PropsSI('C', 'T', celsius_to_kelvin(Twater_degC), 'Q', 0, 'Water')
335335

336336
except (NotImplementedError, ValueError) as e:
337-
raise ValueError(f'Input temperature & pressure ({Twater_degC}, {pressure}) '
337+
raise ValueError(f'Inputs temperature & pressure ({Twater_degC}, {pressure}) '
338338
f'are out of range or otherwise could not be used to calculate heat capacity of water.') from e
339339

340340

@@ -384,16 +384,16 @@ def vapor_pressure_water_kPa(temperature_degC: float) -> float:
384384
"""
385385

386386
if not isinstance(temperature_degC, (int, float)):
387-
raise ValueError(f'Input temperature ({temperature_degC}) must be a number')
387+
raise ValueError(f'Inputs temperature ({temperature_degC}) must be a number')
388388
if temperature_degC < 0:
389-
raise ValueError(f'Input temperature ({temperature_degC}C) must be greater than or equal to 0')
389+
raise ValueError(f'Inputs temperature ({temperature_degC}C) must be greater than or equal to 0')
390390

391391
try:
392392
return (quantity(CP.PropsSI('P', 'T', celsius_to_kelvin(temperature_degC), 'Q', 0, 'Water'), 'Pa')
393393
.to('kPa').magnitude)
394394

395395
except (NotImplementedError, ValueError) as e:
396-
raise ValueError(f'Input temperature ({temperature_degC}C) is out of range or otherwise not implemented') from e
396+
raise ValueError(f'Inputs temperature ({temperature_degC}C) is out of range or otherwise not implemented') from e
397397

398398

399399
@lru_cache
@@ -414,7 +414,7 @@ def entropy_water_kJ_per_kg_per_K(temperature_degC: float, pressure: Optional[Pl
414414
try:
415415
temperature_degC = float(temperature_degC)
416416
except ValueError:
417-
raise TypeError(f'Input temperature ({temperature_degC}) must be a float')
417+
raise TypeError(f'Inputs temperature ({temperature_degC}) must be a float')
418418

419419
try:
420420
if pressure is not None:
@@ -423,7 +423,7 @@ def entropy_water_kJ_per_kg_per_K(temperature_degC: float, pressure: Optional[Pl
423423
else:
424424
return CP.PropsSI('S', 'T', celsius_to_kelvin(temperature_degC), 'Q', 0, 'Water') * 1e-3
425425
except (NotImplementedError, ValueError) as e:
426-
raise ValueError(f'Input temperature {temperature_degC} is out of range or otherwise not implemented') from e
426+
raise ValueError(f'Inputs temperature {temperature_degC} is out of range or otherwise not implemented') from e
427427

428428

429429
@lru_cache
@@ -444,7 +444,7 @@ def enthalpy_water_kJ_per_kg(temperature_degC: float, pressure: Optional[PlainQu
444444
try:
445445
temperature_degC = float(temperature_degC)
446446
except ValueError:
447-
raise TypeError(f'Input temperature ({temperature_degC}) must be a float')
447+
raise TypeError(f'Inputs temperature ({temperature_degC}) must be a float')
448448

449449
try:
450450
if pressure is not None:
@@ -454,7 +454,7 @@ def enthalpy_water_kJ_per_kg(temperature_degC: float, pressure: Optional[PlainQu
454454
return CP.PropsSI('H', 'T', celsius_to_kelvin(temperature_degC), 'Q', 0, 'Water') * 1e-3
455455

456456
except (NotImplementedError, ValueError) as e:
457-
raise ValueError(f'Input temperature {temperature_degC} is out of range or otherwise not implemented') from e
457+
raise ValueError(f'Inputs temperature {temperature_degC} is out of range or otherwise not implemented') from e
458458

459459

460460
@lru_cache
@@ -471,7 +471,7 @@ def UtilEff_func(temperature_degC: float) -> float:
471471
"""
472472

473473
if not isinstance(temperature_degC, (int, float)):
474-
raise ValueError(f'Input temperature ({temperature_degC}) must be a number')
474+
raise ValueError(f'Inputs temperature ({temperature_degC}) must be a number')
475475

476476
if temperature_degC < _T[0] or temperature_degC > _T[-1]:
477477
raise ValueError(f'Temperature ({temperature_degC}) must be within the range of {_T[0]} to {_T[-1]} degrees C.')
@@ -502,7 +502,7 @@ def read_input_file(return_dict_1, logger=None, input_file_name=None):
502502

503503
# read input data (except input from optional filenames)
504504
if input_file_name is None:
505-
logger.warning('Input file name not provided, checking sys.argv')
505+
logger.warning('Inputs file name not provided, checking sys.argv')
506506
if len(sys.argv) > 1:
507507
input_file_name = sys.argv[1]
508508
logger.warning(f'Using input file from sys.argv: {input_file_name}')

src/geophires_x/OptionList.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class GeophiresInputEnum(str, Enum):
77
"""
8-
Input enums have a name, integer input value, and string value
8+
Inputs enums have a name, integer input value, and string value
99
1010
TODO implement from_int/from_input_string here instead of child classes
1111
"""

src/geophires_x/Reservoir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def __init__(self, model: Model):
289289
self.fracnumb = self.ParameterDict[self.fracnumb.Name] = intParameter(
290290
"Number of Fractures",
291291
DefaultValue=10,
292-
AllowableRange=list(range(1, 150, 1)),
292+
AllowableRange=list(range(1, 99999, 1)),
293293
UnitType=Units.NONE,
294294
ErrMessage="assume default number of fractures (10)",
295295
ToolTipText="Number of identical parallel fractures in EGS fracture-based reservoir model."

src/geophires_x/SBTReservoir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def Calculate_Coaxial(self, model):
388388
# SBT v2 for co-axial heat exchanger with high-temperature capability
389389
# last update: January 14th, 2024
390390

391-
# 1. Input
391+
# 1. Inputs
392392
# Generally, the user should only make changes to this section
393393

394394
fluid = 1 # Heat transfer fluid selection: 1 = H2O; 2 = CO2

src/geophires_x/SurfacePlantAGS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def __init__(self, model: Model):
129129
ErrMessage="assume default Dead-state pressure (1e5 Pa)"
130130
)
131131

132-
# Input data for electricity generation with CO2
132+
# Inputs data for electricity generation with CO2
133133
self.Turbine_isentropic_efficiency = self.ParameterDict[
134134
self.Turbine_isentropic_efficiency.Name] = floatParameter(
135135
"Isentropic Efficiency for CO2 Turbine",

src/geophires_x/SurfacePlantAbsorptionChiller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, model: Model):
3636
self.MyClass = self.__class__.__name__
3737
self.MyPath = __file__
3838

39-
# Input parameters absorption chiller
39+
# Inputs parameters absorption chiller
4040
self.absorption_chiller_cop = self.ParameterDict[self.absorption_chiller_cop.Name] = floatParameter(
4141
"Absorption Chiller COP",
4242
value=0.7,

src/geophires_x/WellBores.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,6 @@ def get_hydrostatic_pressure_kPa(
443443
https://workingincaes.inl.gov/SiteAssets/CAES%20Files/FORGE/inl_ext-16-38751%20GETEM%20User%20Manual%20Final.pdf
444444
"""
445445
CP = 4.64E-7
446-
#CP = 9.51E-2
447446
CT = 9E-4 / (30.796 * Trock_degC ** (-0.552))
448447
return 0 + 1. / CP * (math.exp(
449448
density_water_kg_per_m3(Tsurf_degC, pressure=lithostatic_pressure) * 9.81 * CP / 1000 * (
@@ -1011,7 +1010,7 @@ def __init__(self, model: Model):
10111010
ToolTipText='; '.join([f'{it.int_value}: {it.value}' for it in WorkingFluid])
10121011
)
10131012

1014-
# Input data for subsurface condition
1013+
# Inputs data for subsurface condition
10151014
self.Nonvertical_length = self.ParameterDict[self.Nonvertical_length.Name] = floatParameter(
10161015
"Nonvertical Length per Multilateral Section",
10171016
DefaultValue=1000.0,

0 commit comments

Comments
 (0)