Skip to content

Commit

Permalink
W/m/K and J/kg/K unit rendering NREL#155
Browse files Browse the repository at this point in the history
  • Loading branch information
softwareengineerprogrammer committed Mar 11, 2024
1 parent 3d3b99f commit 67eb181
Show file tree
Hide file tree
Showing 35 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion src/geophires_x/Outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def PrintOutputs(self, model: Model):

f.write(f" Reservoir density: {model.reserv.rhorock.value:10.2f} " + model.reserv.rhorock.CurrentUnits.value + NL)
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]:
f.write(f" Reservoir thermal conductivity: {model.reserv.krock.value:10.2f} " + model.reserv.krock.CurrentUnits.value + NL)
f.write(f" Reservoir thermal conductivity: {model.reserv.krock.value:10.2f} {model.reserv.krock.CurrentUnits.value}{NL}")
f.write(f" Reservoir heat capacity: {model.reserv.cprock.value:10.2f} " + model.reserv.cprock.CurrentUnits.value + NL)
if model.reserv.resoption.value == ReservoirModel.LINEAR_HEAT_SWEEP or (model.reserv.resoption.value == ReservoirModel.TOUGH2_SIMULATOR and model.reserv.usebuiltintough2model):
f.write(f" Reservoir porosity: {model.reserv.porrock.value*100:10.2f} " + model.reserv.porrock.CurrentUnits.value + NL)
Expand Down
4 changes: 2 additions & 2 deletions src/geophires_x/Units.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class HeatUnit(str, Enum):

class HeatCapacityUnit(str, Enum):
"""Heat Capacity Units"""
JPERKGPERK = "J/kg/kelvin"
JPERKGPERK = "J/kg/K"
KJPERKM3C = "kJ/km**3C"
kJPERKGC = "kJ/kgC"

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

class ThermalConductivityUnit(str, Enum):
"""Thermal Conductivity Units"""
WPERMPERK = "watt/m/kelvin"
WPERMPERK = "W/m/K"


class TimeUnit(str, Enum):
Expand Down
6 changes: 3 additions & 3 deletions src/geophires_x_schema_generator/geophires-request.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"Reservoir Heat Capacity": {
"description": "Constant and uniform reservoir rock heat capacity",
"type": "number",
"units": "J/kg/kelvin",
"units": "J/kg/K",
"category": "Reservoir"
},
"Reservoir Density": {
Expand All @@ -193,7 +193,7 @@
"Reservoir Thermal Conductivity": {
"description": "Constant and uniform reservoir rock thermal conductivity",
"type": "number",
"units": "watt/m/kelvin",
"units": "W/m/K",
"category": "Reservoir"
},
"Reservoir Permeability": {
Expand Down Expand Up @@ -397,7 +397,7 @@
"Water Thermal Conductivity": {
"description": "Water Thermal Conductivity",
"type": "number",
"units": "watt/m/kelvin",
"units": "W/m/K",
"category": "Well Bores"
},
"Nonvertical Wellbore Diameter": {
Expand Down
4 changes: 2 additions & 2 deletions tests/example1_addons.csv
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ RESERVOIR PARAMETERS,Production wellhead pressure,,29774.91,kPa
RESERVOIR PARAMETERS,Productivity Index,,5.0,kg/sec/bar
RESERVOIR PARAMETERS,Injectivity Index,,5.0,kg/sec/bar
RESERVOIR PARAMETERS,Reservoir density,,2700.0,kg/m**3
RESERVOIR PARAMETERS,Reservoir thermal conductivity,,2.7,watt/m/kelvin
RESERVOIR PARAMETERS,Reservoir heat capacity,,1000.0,J/kg/kelvin
RESERVOIR PARAMETERS,Reservoir thermal conductivity,,2.7,W/m/K
RESERVOIR PARAMETERS,Reservoir heat capacity,,1000.0,J/kg/K
RESERVOIR SIMULATION RESULTS,Maximum Production Temperature,,167.2,degC
RESERVOIR SIMULATION RESULTS,Average Production Temperature,,167.0,degC
RESERVOIR SIMULATION RESULTS,Minimum Production Temperature,,165.2,degC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Simulation Metadata
Geothermal Gradient: 0.0600 degC/km
Wellbore Diameter: 8.5000 in
Injection Temperature: 60.0 degC
Thermal Conductivity: 3.00 watt/m/kelvin
Thermal Conductivity: 3.00 W/m/K
### Reservoir Simulation Results ###
Average Production Temperature: 71.2 degC
Average Production Pressure: 209.9 bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Simulation Metadata
Geothermal Gradient: 0.0600 degC/m
Wellbore Diameter: 8.5000 in
Injection Temperature: 60.0 degC
Thermal Conductivity: 3.00 watt/m/kelvin
Thermal Conductivity: 3.00 W/m/K
### Reservoir Simulation Results ###
Average Production Temperature: 105.9 degC
Average Production Pressure: 139.9 bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Simulation Metadata
Geothermal Gradient: 0.0600 degC/m
Wellbore Diameter: 8.5000 in
Injection Temperature: 60.0 degC
Thermal Conductivity: 3.00 watt/m/kelvin
Thermal Conductivity: 3.00 W/m/K
### Reservoir Simulation Results ###
Average Production Temperature: 96.1 degC
Average Production Pressure: 234.2 bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Simulation Metadata
Geothermal Gradient: 0.0600 degC/m
Wellbore Diameter: 8.5000 in
Injection Temperature: 60.0 degC
Thermal Conductivity: 3.00 watt/m/kelvin
Thermal Conductivity: 3.00 W/m/K
### Reservoir Simulation Results ###
Average Production Temperature: 96.1 degC
Average Production Pressure: 234.2 bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Simulation Metadata
Geothermal Gradient: 0.0600 degC/m
Wellbore Diameter: 8.5000 in
Injection Temperature: 60.0 degC
Thermal Conductivity: 3.00 watt/m/kelvin
Thermal Conductivity: 3.00 W/m/K
### Reservoir Simulation Results ###
Average Production Temperature: 107.0 degC
Average Production Pressure: 207.0 bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Simulation Metadata
Geothermal Gradient: 0.0600 degC/m
Wellbore Diameter: 8.5000 in
Injection Temperature: 60.0 degC
Thermal Conductivity: 3.00 watt/m/kelvin
Thermal Conductivity: 3.00 W/m/K
### Reservoir Simulation Results ###
Average Production Temperature: 107.0 degC
Average Production Pressure: 207.0 bar
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/FIXME_example1_outputunits.out
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Simulation Metadata
Productivity Index: 5.00 kg/sec/bar
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir thermal conductivity: 2.70 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 2.70 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/S-DAC-GT.out
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ Simulation Metadata
Plant outlet pressure: 100.00 kPa
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir thermal conductivity: 3.00 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 3.00 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example1.out
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Simulation Metadata
Productivity Index: 5.00 kg/sec/bar
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir thermal conductivity: 2.70 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 2.70 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example10_HP.out
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Simulation Metadata
Productivity Index: 10.00 kg/sec/bar
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 3000.00 kg/m**3
Reservoir thermal conductivity: 3.00 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 3.00 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example11_AC.out
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ Simulation Metadata
Productivity Index: 10.00 kg/sec/bar
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 3000.00 kg/m**3
Reservoir thermal conductivity: 3.00 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 3.00 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
2 changes: 1 addition & 1 deletion tests/examples/example12_DH.out
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Simulation Metadata
Productivity Index: 10.00 kg/sec/bar
Injectivity Index: 10.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
2 changes: 1 addition & 1 deletion tests/examples/example13.out
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Simulation Metadata
Productivity Index: 10.00 kg/sec/bar
Injectivity Index: 10.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example1_addons.out
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ Simulation Metadata
Productivity Index: 5.00 kg/sec/bar
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir thermal conductivity: 2.70 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 2.70 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example2.out
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Simulation Metadata
Reservoir volume: 125000000 m**3
Reservoir impedance: 0.20 GPa.s/m**3
Reservoir density: 3000.00 kg/m**3
Reservoir thermal conductivity: 3.20 watt/m/kelvin
Reservoir heat capacity: 975.00 J/kg/kelvin
Reservoir thermal conductivity: 3.20 W/m/K
Reservoir heat capacity: 975.00 J/kg/K
Reservoir porosity: 10.00


Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example3.out
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ Simulation Metadata
Plant outlet pressure: 100.00 kPa
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 3000.00 kg/m**3
Reservoir thermal conductivity: 3.00 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 3.00 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
2 changes: 1 addition & 1 deletion tests/examples/example4.out
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Simulation Metadata
Productivity Index: 10.00 kg/sec/bar
Injectivity Index: 10.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir heat capacity: 1050.00 J/kg/kelvin
Reservoir heat capacity: 1050.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example5.out
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ Simulation Metadata
Reservoir volume: 1000000000 m**3
Reservoir impedance: 0.05 GPa.s/m**3
Reservoir density: 2700.00 kg/m**3
Reservoir thermal conductivity: 3.00 watt/m/kelvin
Reservoir heat capacity: 1050.00 J/kg/kelvin
Reservoir thermal conductivity: 3.00 W/m/K
Reservoir heat capacity: 1050.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example8.out
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Simulation Metadata
Reservoir volume: 196000000 m**3
Reservoir impedance: 0.05 GPa.s/m**3
Reservoir density: 2730.00 kg/m**3
Reservoir thermal conductivity: 2.83 watt/m/kelvin
Reservoir heat capacity: 825.00 J/kg/kelvin
Reservoir thermal conductivity: 2.83 W/m/K
Reservoir heat capacity: 825.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example9.out
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Simulation Metadata
Reservoir volume: 196000000 m**3
Reservoir impedance: 0.05 GPa.s/m**3
Reservoir density: 2730.00 kg/m**3
Reservoir thermal conductivity: 2.83 watt/m/kelvin
Reservoir heat capacity: 825.00 J/kg/kelvin
Reservoir thermal conductivity: 2.83 W/m/K
Reservoir heat capacity: 825.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example_SHR-1.out
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Simulation Metadata
Plant outlet pressure: 100.00 kPa
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir thermal conductivity: 2.70 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 2.70 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example_SHR-2.out
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Simulation Metadata
Plant outlet pressure: 100.00 kPa
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir thermal conductivity: 2.70 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 2.70 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/examples/example_multiple_gradients.out
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ Simulation Metadata
Productivity Index: 5.00 kg/sec/bar
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir thermal conductivity: 2.70 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 2.70 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/geophires-result_example-1.out
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ Simulation Metadata
Reservoir volume: 125000000 m**3
Reservoir impedance: 0.20 GPa.s/m**3
Reservoir density: 3000.00 kg/m**3
Reservoir thermal conductivity: 3.20 watt/m/kelvin
Reservoir heat capacity: 975.00 J/kg/kelvin
Reservoir thermal conductivity: 3.20 W/m/K
Reservoir heat capacity: 975.00 J/kg/K
Reservoir porosity: 10.00


Expand Down
4 changes: 2 additions & 2 deletions tests/geophires-result_example-2.out
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Simulation Metadata
Productivity Index: 5.00 kg/sec/bar
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 2700.00 kg/m**3
Reservoir thermal conductivity: 2.70 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 2.70 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
4 changes: 2 additions & 2 deletions tests/geophires-result_example-3.csv
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ RESERVOIR PARAMETERS,Reservoir hydrostatic pressure,,100.0,kPa
RESERVOIR PARAMETERS,Plant outlet pressure,,100.0,kPa
RESERVOIR PARAMETERS,Injectivity Index,,5.0,kg/sec/bar
RESERVOIR PARAMETERS,Reservoir density,,3000.0,kg/m**3
RESERVOIR PARAMETERS,Reservoir thermal conductivity,,3.0,watt/m/kelvin
RESERVOIR PARAMETERS,Reservoir heat capacity,,1000.0,J/kg/kelvin
RESERVOIR PARAMETERS,Reservoir thermal conductivity,,3.0,W/m/K
RESERVOIR PARAMETERS,Reservoir heat capacity,,1000.0,J/kg/K
RESERVOIR SIMULATION RESULTS,Maximum Production Temperature,,227.9,degC
RESERVOIR SIMULATION RESULTS,Average Production Temperature,,220.9,degC
RESERVOIR SIMULATION RESULTS,Minimum Production Temperature,,207.4,degC
Expand Down
4 changes: 2 additions & 2 deletions tests/geophires-result_example-3.out
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Simulation Metadata
Plant outlet pressure: 100.00 kPa
Injectivity Index: 5.00 kg/sec/bar
Reservoir density: 3000.00 kg/m**3
Reservoir thermal conductivity: 3.00 watt/m/kelvin
Reservoir heat capacity: 1000.00 J/kg/kelvin
Reservoir thermal conductivity: 3.00 W/m/K
Reservoir heat capacity: 1000.00 J/kg/K


***RESERVOIR SIMULATION RESULTS***
Expand Down
Loading

0 comments on commit 67eb181

Please sign in to comment.