Skip to content

Commit 3ee6382

Browse files
Skip rendering revenue & cashflow profile for now (pending unit fix)
1 parent bd5a5f0 commit 3ee6382

File tree

3 files changed

+186
-73
lines changed

3 files changed

+186
-73
lines changed

geophires/geophires-request.json

Lines changed: 139 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@
6767
"Gradients": {
6868
"description": "Geothermal gradients",
6969
"type": "number",
70-
"units": "degC/km",
70+
"units": "degC/m",
7171
"category": "Reservoir"
7272
},
7373
"Gradient 1": {
7474
"description": "Geothermal gradient 1 in rock segment 1",
7575
"type": "number",
76-
"units": "degC/km",
76+
"units": "degC/m",
7777
"category": "Reservoir"
7878
},
7979
"Gradient 2": {
@@ -227,7 +227,7 @@
227227
"category": "Reservoir"
228228
},
229229
"Cylindrical Reservoir Output Depth": {
230-
"description": "Depth of the outflow end of a cyclindrical reservoir",
230+
"description": "Depth of the outflow end of a cylindrical reservoir",
231231
"type": "number",
232232
"units": "kilometer",
233233
"category": "Reservoir"
@@ -431,7 +431,7 @@
431431
"category": "Surface Plant"
432432
},
433433
"Power Plant Type": {
434-
"description": "Specify the type of power plant in case of electricity generation. 1: Subcritical ORC, 2: Supercritical ORC, 3: Single-flash, 4: Double-flash",
434+
"description": "Specify the type of physical plant. 1: Subcritical ORC, 2: Supercritical ORC, 3: Single-flash, 4: Double-flash, 5: Absorption Chiller, 6: Heat Pump 7: District Heating, 8: Reservoir Thermal Energy Storage",
435435
"type": "integer",
436436
"units": null,
437437
"category": "Surface Plant"
@@ -506,73 +506,7 @@
506506
"description": "Number of years spent in construction (assumes whole years, no fractions)",
507507
"type": "integer",
508508
"units": null,
509-
"category": "Surface Plant"
510-
},
511-
"Absorption Chiller COP": {
512-
"description": "Specify the coefficient of performance (COP) of the absorption chiller",
513-
"type": "number",
514-
"units": "",
515-
"category": "Surface Plant"
516-
},
517-
"Heat Pump COP": {
518-
"description": "Specify the coefficient of performance (COP) of the heat pump",
519-
"type": "number",
520-
"units": "",
521-
"category": "Surface Plant"
522-
},
523-
"District Heating Demand Option": {
524-
"description": "Select the method to provide the district heating demand to GEOPHIRES",
525-
"type": "integer",
526-
"units": null,
527-
"category": "Surface Plant"
528-
},
529-
"District Heating Demand File Name": {
530-
"description": "Provide district heating demand in csv file in MW or MWh per day (if district heating demand option is set to 1)",
531-
"type": "string",
532-
"units": null,
533-
"category": "Surface Plant"
534-
},
535-
"District Heating Demand Data Time Resolution": {
536-
"description": "Provide time interval for thermal demand data: 1 = hourly (data provided as MW = MWh' 2 = daily (data provided as MWh/day) (if district heating demand option is set to 1)",
537-
"type": "integer",
538-
"units": null,
539-
"category": "Surface Plant"
540-
},
541-
"District Heating Demand Data Column Number": {
542-
"description": "Select the column number of the hourly or daily data in the district heating demand csv file (if district heating demand option is set to 1)",
543-
"type": "integer",
544-
"units": null,
545-
"category": "Surface Plant"
546-
},
547-
"Temperature File Name": {
548-
"description": "Provide filename of tempeature file with hourly temperature to calculate district heating demand (if district heating demand option is set to 2)",
549-
"type": "string",
550-
"units": null,
551-
"category": "Surface Plant"
552-
},
553-
"Temperature Data Column Number": {
554-
"description": "Select the column number of the hourly temperature data in the temperature csv file (if district heating demand option is set to 2)",
555-
"type": "integer",
556-
"units": null,
557-
"category": "Surface Plant"
558-
},
559-
"Number of Housing Units": {
560-
"description": "Specify the number of housing units to calculate district heating demand (if district heating demand option is set to 2)",
561-
"type": "number",
562-
"units": null,
563-
"category": "Surface Plant"
564-
},
565-
"Constant Anchor Demand": {
566-
"description": "Specify the constant anchor demand to calculate the district heating demand (if district heating demand option is set to 2)",
567-
"type": "number",
568-
"units": "MW",
569-
"category": "Surface Plant"
570-
},
571-
"US Census Division": {
572-
"description": "Select the U.S. census division to calculate district heating demand (if district heating demand option is set to 2)",
573-
"type": "integer",
574-
"units": null,
575-
"category": "Surface Plant"
509+
"category": "Economics"
576510
},
577511
"Dead-state Pressure": {
578512
"description": "",
@@ -808,8 +742,8 @@
808742
"units": null,
809743
"category": "Economics"
810744
},
811-
"Do CCUS Calculations": {
812-
"description": "Set to true if you want the CCUS economics calculations to be made",
745+
"Do Carbon Price Calculations": {
746+
"description": "Set to true if you want the Carbon Credit economics calculations to be made",
813747
"type": "boolean",
814748
"units": null,
815749
"category": "Economics"
@@ -952,6 +886,66 @@
952886
"units": "USD/kWh",
953887
"category": "Economics"
954888
},
889+
"Starting Cooling Sale Price": {
890+
"description": "",
891+
"type": "number",
892+
"units": "USD/kWh",
893+
"category": "Economics"
894+
},
895+
"Ending Cooling Sale Price": {
896+
"description": "",
897+
"type": "number",
898+
"units": "USD/kWh",
899+
"category": "Economics"
900+
},
901+
"Cooling Escalation Start Year": {
902+
"description": "Number of years after start of project before start of escalation",
903+
"type": "integer",
904+
"units": "yr",
905+
"category": "Economics"
906+
},
907+
"Cooling Escalation Rate Per Year": {
908+
"description": "additional cost per year of price after escalation starts",
909+
"type": "number",
910+
"units": "USD/kWh",
911+
"category": "Economics"
912+
},
913+
"Starting Carbon Credit Value": {
914+
"description": "",
915+
"type": "number",
916+
"units": "USD/lb",
917+
"category": "Economics"
918+
},
919+
"Ending Carbon Credit Value": {
920+
"description": "",
921+
"type": "number",
922+
"units": "USD/lb",
923+
"category": "Economics"
924+
},
925+
"Carbon Escalation Start Year": {
926+
"description": "Number of years after start of project before start of Carbon incentives",
927+
"type": "integer",
928+
"units": "yr",
929+
"category": "Economics"
930+
},
931+
"Carbon Escalation Rate Per Year": {
932+
"description": "additional value per year of price after escalation starts",
933+
"type": "number",
934+
"units": "USD/lb",
935+
"category": "Economics"
936+
},
937+
"Current Grid CO2 production": {
938+
"description": "CO2 intensity of the grid (how much CO2 is produced per kWh of electricity produced (0.93916924 lbs/kWh for Texas ERCOT))",
939+
"type": "number",
940+
"units": "lbs/kWh",
941+
"category": "Economics"
942+
},
943+
"CO2 produced by Natural Gas": {
944+
"description": "CO2 intensity of buring natural gas (how much CO2 is produced per kWh of heat produced (0.407855 lbs/kWh))",
945+
"type": "number",
946+
"units": "lbs/kWh",
947+
"category": "Economics"
948+
},
955949
"Annual License Fees Etc": {
956950
"description": "",
957951
"type": "number",
@@ -988,6 +982,12 @@
988982
"units": "%",
989983
"category": "Economics"
990984
},
985+
"CHP Electrical Plant Cost Allocation Ratio": {
986+
"description": "CHP Electrical Plant Cost Allocation Ratio (cost electrical plant/total CAPEX)",
987+
"type": "number",
988+
"units": "",
989+
"category": "Economics"
990+
},
991991
"Operation & Maintenance Cost of Surface Plant": {
992992
"description": "",
993993
"type": "number",
@@ -1005,6 +1005,72 @@
10051005
"type": "number",
10061006
"units": "USD/kW",
10071007
"category": "Economics"
1008+
},
1009+
"Do CCUS Calculations": {
1010+
"description": "Set to true if you want the CCUS economics calculations to be made",
1011+
"type": "boolean",
1012+
"units": null,
1013+
"category": "Economics"
1014+
},
1015+
"Ending CCUS Credit Value": {
1016+
"description": "",
1017+
"type": "number",
1018+
"units": "USD/lb",
1019+
"category": "Economics"
1020+
},
1021+
"CCUS Escalation Start Year": {
1022+
"description": "Number of years after start of project before start of CCUS incentives",
1023+
"type": "integer",
1024+
"units": "yr",
1025+
"category": "Economics"
1026+
},
1027+
"CCUS Escalation Rate Per Year": {
1028+
"description": "additional value per year of price after escalation starts",
1029+
"type": "number",
1030+
"units": "USD/mt",
1031+
"category": "Economics"
1032+
},
1033+
"Starting CCUS Credit Value": {
1034+
"description": "",
1035+
"type": "number",
1036+
"units": "USD/mt",
1037+
"category": "Economics"
1038+
},
1039+
"AddOn Nickname": {
1040+
"description": "",
1041+
"type": "array",
1042+
"units": null,
1043+
"category": "Economics"
1044+
},
1045+
"AddOn CAPEX": {
1046+
"description": "",
1047+
"type": "array",
1048+
"units": "MUSD",
1049+
"category": "Economics"
1050+
},
1051+
"AddOn OPEX": {
1052+
"description": "",
1053+
"type": "array",
1054+
"units": "MUSD/yr",
1055+
"category": "Economics"
1056+
},
1057+
"AddOn Electricity Gained": {
1058+
"description": "",
1059+
"type": "array",
1060+
"units": "kW/yr",
1061+
"category": "Economics"
1062+
},
1063+
"AddOn Heat Gained": {
1064+
"description": "",
1065+
"type": "array",
1066+
"units": "kW/yr",
1067+
"category": "Economics"
1068+
},
1069+
"AddOn Profit Gained": {
1070+
"description": "",
1071+
"type": "array",
1072+
"units": "MUSD/yr",
1073+
"category": "Economics"
10081074
}
10091075
}
10101076
}

geophires/geophires-ui.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function resetGenerationProfileGraphs() {
2727

2828
const CCUS_PROFILE_KEY = 'CCUS PROFILE'
2929
const EXTENDED_ECONOMICS_PROFILE_KEY = 'EXTENDED ECONOMIC PROFILE'
30+
const REVENUE_AND_CASHFLOW_PROFILE_KEY = 'REVENUE & CASHFLOW PROFILE'
3031
const POWER_PROFILE_KEY = 'POWER GENERATION PROFILE'
3132
const EXTRACTION_PROFILE_KEY = 'HEAT AND/OR ELECTRICITY EXTRACTION AND GENERATION PROFILE'
3233

@@ -95,6 +96,8 @@ function renderGenerationProfileGraphs(resultsData) {
9596
setVisible(extractionProfileChartElt, false)
9697
}
9798

99+
renderRevenueAndCashflowProfile(resultsData)
100+
98101
let extendedEconomicsProfileChartElt = document.getElementById('extended-economics-profile-chart')
99102
if(EXTENDED_ECONOMICS_PROFILE_KEY in resultsData) {
100103
setVisible(extendedEconomicsProfileChartElt, true)
@@ -167,6 +170,47 @@ function renderGenerationProfileGraphs(resultsData) {
167170
}
168171
}
169172

173+
function renderRevenueAndCashflowProfile(resultsData) {
174+
// FIXME TODO WIP
175+
console.debug('Skipping revenue & cashflow profile render until units are fixed')
176+
return
177+
178+
let profileChartElt = document.getElementById('revenue-and-cashflow-profile-chart')
179+
if(REVENUE_AND_CASHFLOW_PROFILE_KEY in resultsData) {
180+
setVisible(profileChartElt, true)
181+
let profile = resultsData[REVENUE_AND_CASHFLOW_PROFILE_KEY]
182+
let chart = new google.visualization.LineChart(
183+
profileChartElt
184+
);
185+
186+
chart.draw(
187+
google.visualization.arrayToDataTable(profile),
188+
{
189+
title: REVENUE_AND_CASHFLOW_PROFILE_KEY,
190+
curveType: 'function',
191+
legend: {position: 'bottom'},
192+
hAxis: {
193+
title: 'Year'
194+
},
195+
series: {
196+
// Gives each series an axis name that matches the Y-axis below.
197+
0: {targetAxisIndex: 1}, // LCOE
198+
3: {targetAxisIndex: 1}, // LCOH
199+
6: {targetAxisIndex: 1}, // LCOC
200+
},
201+
vAxes: {
202+
// Adds titles to each axis.
203+
0: {title: 'MUSD; MUSD/yr'},
204+
1: {title: 'cents/kWh'}
205+
},
206+
}
207+
);
208+
} else {
209+
setVisible(profileChartElt, false)
210+
}
211+
212+
}
213+
170214
function submitForm(oFormElement) {
171215
let parsed_params = JSON.parse(oFormElement.querySelector('textarea[name="geophires_input_parameters"]').value)
172216

@@ -199,6 +243,7 @@ function submitForm(oFormElement) {
199243
let resultsDisplayData = Object.assign({}, resultsData)
200244
delete resultsDisplayData[POWER_PROFILE_KEY]
201245
delete resultsDisplayData[EXTRACTION_PROFILE_KEY]
246+
delete resultsDisplayData[REVENUE_AND_CASHFLOW_PROFILE_KEY]
202247
delete resultsDisplayData[EXTENDED_ECONOMICS_PROFILE_KEY]
203248
delete resultsDisplayData[CCUS_PROFILE_KEY]
204249

geophires/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ <h3>
176176
<div id="heat-electricity-extraction-generation-profile-chart"
177177
style="width: 100%; height: 250px"></div>
178178
<br/>
179+
<div id="revenue-and-cashflow-profile-chart"
180+
style="width: 100%; height: 250px"></div>
179181
<div id="extended-economics-profile-chart"
180182
style="width: 100%; height: 250px"></div>
181183
<div id="ccus-profile-chart"

0 commit comments

Comments
 (0)