Skip to content

Commit 4dfa59c

Browse files
authored
Merge pull request #676 from NREL/cst-all-inputs
Add CST and HighTempThermalStorage to all/superset inputs test
2 parents 01d3948 + b378615 commit 4dfa59c

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Classify the change according to the following categories:
2626
##### Removed
2727
### Patches
2828

29+
## Develop
30+
### Added
31+
- Added `CST` and `HighTempThermalStorage` to all/superset inputs test.
32+
2933
## v3.16.1
3034
### Patches
3135
##### Changed

reoptjl/test/posts/all_inputs_test.json

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"Site": {
5050
"latitude": 38.96345294964369,
5151
"longitude": -77.38406208630109,
52-
"land_acres": null,
52+
"land_acres": 1.0e5,
5353
"roof_squarefeet": null,
5454
"CO2_emissions_reduction_min_fraction": null,
5555
"CO2_emissions_reduction_max_fraction": null,
@@ -404,5 +404,33 @@
404404
"avoided_capex_by_ashp_present_value": 0,
405405
"back_up_temp_threshold_degF": -10.0,
406406
"force_dispatch": false
407+
},
408+
"CST": {
409+
"min_kw": 20.0,
410+
"max_kw": 20.0,
411+
"installed_cost_per_kw": 2200.0,
412+
"om_cost_per_kw": 33.0,
413+
"om_cost_per_kwh": 0.0,
414+
"acres_per_kw": 0.000939,
415+
"macrs_option_years": 0,
416+
"macrs_bonus_fraction": 0.0,
417+
"can_supply_steam_turbine": true,
418+
"can_serve_process_heat": true,
419+
"can_serve_dhw": true,
420+
"can_serve_space_heating": true,
421+
"can_waste_heat": true,
422+
"charge_storage_only": false
423+
},
424+
"HighTempThermalStorage": {
425+
"min_kwh": 50.0,
426+
"max_kwh": 50.0,
427+
"installed_cost_per_kwh": 86.0,
428+
"macrs_option_years": 5,
429+
"macrs_bonus_fraction": 1.0,
430+
"can_serve_space_heating": false,
431+
"can_serve_dhw": false,
432+
"can_serve_process_heat": true,
433+
"num_charge_hours": 4.0,
434+
"num_discharge_hours": 10.0
407435
}
408436
}

reoptjl/test/test_job_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def test_superset_input_fields(self):
266266
resp = self.api_client.get(f'/v3/job/{run_uuid}/results')
267267
r = json.loads(resp.content)
268268
results = r["outputs"]
269-
self.assertAlmostEqual(results["Financial"]["npv"], -326156.69, delta=0.01*results["Financial"]["lcc"])
269+
self.assertAlmostEqual(results["Financial"]["npv"], -378466.47, delta=0.01*results["Financial"]["lcc"])
270270
assert(resp.status_code==200)
271271
self.assertIn("ElectricHeater", list(results.keys()))
272272
self.assertIn("ASHPSpaceHeater", list(results.keys()))

0 commit comments

Comments
 (0)