Skip to content

Commit 67eb181

Browse files
W/m/K and J/kg/K unit rendering NREL#155
1 parent 3d3b99f commit 67eb181

35 files changed

+60
-60
lines changed

src/geophires_x/Outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def PrintOutputs(self, model: Model):
292292

293293
f.write(f" Reservoir density: {model.reserv.rhorock.value:10.2f} " + model.reserv.rhorock.CurrentUnits.value + NL)
294294
if model.wellbores.rameyoptionprod.value or model.reserv.resoption.value in [ReservoirModel.MULTIPLE_PARALLEL_FRACTURES, ReservoirModel.LINEAR_HEAT_SWEEP, ReservoirModel.SINGLE_FRACTURE, ReservoirModel.TOUGH2_SIMULATOR]:
295-
f.write(f" Reservoir thermal conductivity: {model.reserv.krock.value:10.2f} " + model.reserv.krock.CurrentUnits.value + NL)
295+
f.write(f" Reservoir thermal conductivity: {model.reserv.krock.value:10.2f} {model.reserv.krock.CurrentUnits.value}{NL}")
296296
f.write(f" Reservoir heat capacity: {model.reserv.cprock.value:10.2f} " + model.reserv.cprock.CurrentUnits.value + NL)
297297
if model.reserv.resoption.value == ReservoirModel.LINEAR_HEAT_SWEEP or (model.reserv.resoption.value == ReservoirModel.TOUGH2_SIMULATOR and model.reserv.usebuiltintough2model):
298298
f.write(f" Reservoir porosity: {model.reserv.porrock.value*100:10.2f} " + model.reserv.porrock.CurrentUnits.value + NL)

src/geophires_x/Units.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class HeatUnit(str, Enum):
231231

232232
class HeatCapacityUnit(str, Enum):
233233
"""Heat Capacity Units"""
234-
JPERKGPERK = "J/kg/kelvin"
234+
JPERKGPERK = "J/kg/K"
235235
KJPERKM3C = "kJ/km**3C"
236236
kJPERKGC = "kJ/kgC"
237237

@@ -248,7 +248,7 @@ class EnthalpyUnit(str, Enum):
248248

249249
class ThermalConductivityUnit(str, Enum):
250250
"""Thermal Conductivity Units"""
251-
WPERMPERK = "watt/m/kelvin"
251+
WPERMPERK = "W/m/K"
252252

253253

254254
class TimeUnit(str, Enum):

src/geophires_x_schema_generator/geophires-request.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
"Reservoir Heat Capacity": {
182182
"description": "Constant and uniform reservoir rock heat capacity",
183183
"type": "number",
184-
"units": "J/kg/kelvin",
184+
"units": "J/kg/K",
185185
"category": "Reservoir"
186186
},
187187
"Reservoir Density": {
@@ -193,7 +193,7 @@
193193
"Reservoir Thermal Conductivity": {
194194
"description": "Constant and uniform reservoir rock thermal conductivity",
195195
"type": "number",
196-
"units": "watt/m/kelvin",
196+
"units": "W/m/K",
197197
"category": "Reservoir"
198198
},
199199
"Reservoir Permeability": {
@@ -397,7 +397,7 @@
397397
"Water Thermal Conductivity": {
398398
"description": "Water Thermal Conductivity",
399399
"type": "number",
400-
"units": "watt/m/kelvin",
400+
"units": "W/m/K",
401401
"category": "Well Bores"
402402
},
403403
"Nonvertical Wellbore Diameter": {

tests/example1_addons.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ RESERVOIR PARAMETERS,Production wellhead pressure,,29774.91,kPa
5959
RESERVOIR PARAMETERS,Productivity Index,,5.0,kg/sec/bar
6060
RESERVOIR PARAMETERS,Injectivity Index,,5.0,kg/sec/bar
6161
RESERVOIR PARAMETERS,Reservoir density,,2700.0,kg/m**3
62-
RESERVOIR PARAMETERS,Reservoir thermal conductivity,,2.7,watt/m/kelvin
63-
RESERVOIR PARAMETERS,Reservoir heat capacity,,1000.0,J/kg/kelvin
62+
RESERVOIR PARAMETERS,Reservoir thermal conductivity,,2.7,W/m/K
63+
RESERVOIR PARAMETERS,Reservoir heat capacity,,1000.0,J/kg/K
6464
RESERVOIR SIMULATION RESULTS,Maximum Production Temperature,,167.2,degC
6565
RESERVOIR SIMULATION RESULTS,Average Production Temperature,,167.0,degC
6666
RESERVOIR SIMULATION RESULTS,Minimum Production Temperature,,165.2,degC

tests/examples/Beckers_et_al_2023_Tabulated_Database_Coaxial_sCO2_heat.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Simulation Metadata
2323
Geothermal Gradient: 0.0600 degC/km
2424
Wellbore Diameter: 8.5000 in
2525
Injection Temperature: 60.0 degC
26-
Thermal Conductivity: 3.00 watt/m/kelvin
26+
Thermal Conductivity: 3.00 W/m/K
2727
### Reservoir Simulation Results ###
2828
Average Production Temperature: 71.2 degC
2929
Average Production Pressure: 209.9 bar

tests/examples/Beckers_et_al_2023_Tabulated_Database_Coaxial_water_heat.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Simulation Metadata
2323
Geothermal Gradient: 0.0600 degC/m
2424
Wellbore Diameter: 8.5000 in
2525
Injection Temperature: 60.0 degC
26-
Thermal Conductivity: 3.00 watt/m/kelvin
26+
Thermal Conductivity: 3.00 W/m/K
2727
### Reservoir Simulation Results ###
2828
Average Production Temperature: 105.9 degC
2929
Average Production Pressure: 139.9 bar

tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_elec.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Simulation Metadata
2323
Geothermal Gradient: 0.0600 degC/m
2424
Wellbore Diameter: 8.5000 in
2525
Injection Temperature: 60.0 degC
26-
Thermal Conductivity: 3.00 watt/m/kelvin
26+
Thermal Conductivity: 3.00 W/m/K
2727
### Reservoir Simulation Results ###
2828
Average Production Temperature: 96.1 degC
2929
Average Production Pressure: 234.2 bar

tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_sCO2_heat.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Simulation Metadata
2323
Geothermal Gradient: 0.0600 degC/m
2424
Wellbore Diameter: 8.5000 in
2525
Injection Temperature: 60.0 degC
26-
Thermal Conductivity: 3.00 watt/m/kelvin
26+
Thermal Conductivity: 3.00 W/m/K
2727
### Reservoir Simulation Results ###
2828
Average Production Temperature: 96.1 degC
2929
Average Production Pressure: 234.2 bar

tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_water_elec.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Simulation Metadata
2323
Geothermal Gradient: 0.0600 degC/m
2424
Wellbore Diameter: 8.5000 in
2525
Injection Temperature: 60.0 degC
26-
Thermal Conductivity: 3.00 watt/m/kelvin
26+
Thermal Conductivity: 3.00 W/m/K
2727
### Reservoir Simulation Results ###
2828
Average Production Temperature: 107.0 degC
2929
Average Production Pressure: 207.0 bar

tests/examples/Beckers_et_al_2023_Tabulated_Database_Uloop_water_heat.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Simulation Metadata
2323
Geothermal Gradient: 0.0600 degC/m
2424
Wellbore Diameter: 8.5000 in
2525
Injection Temperature: 60.0 degC
26-
Thermal Conductivity: 3.00 watt/m/kelvin
26+
Thermal Conductivity: 3.00 W/m/K
2727
### Reservoir Simulation Results ###
2828
Average Production Temperature: 107.0 degC
2929
Average Production Pressure: 207.0 bar

0 commit comments

Comments
 (0)