-
Notifications
You must be signed in to change notification settings - Fork 47
Allow presized ghp/ghx #466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 49 commits
215805c
4105abf
58896fc
5fc72e1
c7087c9
a34571e
9c79798
2abbf90
137bc76
ef4af55
fa6f434
56a5734
1c6d461
031612d
b098d3b
c2edf0f
656d23d
4358ddf
2b8e97c
dc8c936
d217757
ac450d3
2b34f33
e5d03c0
12246fe
3f9e0e3
41c7e4a
0c3b4bf
d109c4d
d02e798
b422da1
c59934d
1650b0f
95f7fe0
659c4a1
58c7b1b
5189abc
4187614
7e74136
9cf8d3d
20427ed
3b1631a
0ea61a3
a941b46
0847ebe
333a7f9
775b332
1ec37cd
a5f81c9
04599da
c7f845b
0128d78
b0bf8ad
918730f
0ae17d9
0f54181
2636ecc
fa243c3
209b525
94a517f
b33a13d
dabaff8
943e3de
3d85690
7b594b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,9 @@ GHP results: | |
| - `thermal_to_space_heating_load_series_mmbtu_per_hour` | ||
| - `thermal_to_dhw_load_series_mmbtu_per_hour` | ||
| - `thermal_to_load_series_ton` | ||
| - `annual_thermal_production_mmbtu` # GHP's heating thermal power production in a year [MMBtu] | ||
| - `annual_thermal_production_tonhour` # GHP's cooling thermal power production in a year [ton] | ||
|
|
||
| """ | ||
|
|
||
| function add_ghp_results(m::JuMP.AbstractModel, p::REoptInputs, d::Dict; _n="") | ||
|
|
@@ -25,6 +28,11 @@ function add_ghp_results(m::JuMP.AbstractModel, p::REoptInputs, d::Dict; _n="") | |
| # r["size_heat_pump_ton"] = 0.0 | ||
| # r["size_wwhp_heating_pump_ton"] = 0.0 | ||
| # r["size_wwhp_cooling_pump_ton"] = 0.0 | ||
|
|
||
| # Set sizing factor = 1 if user inputs their own GHP size | ||
| if haskey(d, "GHP") && haskey(d["GHP"],"max_ton") | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Bill-Becker this doesn't seem to do what I thought it did. If I remove setting
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nvm I figured it out but decided to not restrict the sizing factor with pressed GHP instead. |
||
| p.s.ghp_option_list[ghp_option_chosen].heatpump_capacity_sizing_factor_on_peak_load = 1.0 | ||
| end | ||
| if ghp_option_chosen >= 1 | ||
| r["ghpghx_chosen_outputs"] = p.s.ghp_option_list[ghp_option_chosen].ghpghx_response["outputs"] | ||
|
|
||
|
|
@@ -42,13 +50,22 @@ function add_ghp_results(m::JuMP.AbstractModel, p::REoptInputs, d::Dict; _n="") | |
| r["space_heating_thermal_load_reduction_with_ghp_mmbtu_per_hour"] = round.(value.(HeatingThermalReductionWithGHP) ./ KWH_PER_MMBTU, digits=3) | ||
| @expression(m, CoolingThermalReductionWithGHP[ts in p.time_steps], | ||
| sum(p.cooling_thermal_load_reduction_with_ghp_kw[g,ts] * m[Symbol("binGHP"*_n)][g] for g in p.ghp_options)) | ||
|
|
||
| @expression(m, HeatingThermalLoadServedWithGHP[ts in p.time_steps], | ||
| sum(p.ghp_heating_thermal_load_served_kw[g,ts] * m[Symbol("binGHP"*_n)][g] for g in p.ghp_options)) | ||
| @expression(m, CoolingThermalLoadServedWithGHP[ts in p.time_steps], | ||
| sum(p.ghp_cooling_thermal_load_served_kw[g,ts] * m[Symbol("binGHP"*_n)][g] for g in p.ghp_options)) | ||
|
|
||
| r["cooling_thermal_load_reduction_with_ghp_ton"] = round.(value.(CoolingThermalReductionWithGHP) ./ KWH_THERMAL_PER_TONHOUR, digits=3) | ||
| r["ghx_residual_value_present_value"] = value(m[:ResidualGHXCapCost]) | ||
| r["avoided_capex_by_ghp_present_value"] = value(m[:AvoidedCapexByGHP]) | ||
| r["thermal_to_space_heating_load_series_mmbtu_per_hour"] = d["HeatingLoad"]["space_heating_thermal_load_series_mmbtu_per_hour"] .- r["space_heating_thermal_load_reduction_with_ghp_mmbtu_per_hour"] | ||
| r["thermal_to_load_series_ton"] = d["CoolingLoad"]["load_series_ton"] .- r["cooling_thermal_load_reduction_with_ghp_ton"] | ||
| r["thermal_to_space_heating_load_series_mmbtu_per_hour"] = round.(value.(HeatingThermalLoadServedWithGHP) ./ KWH_PER_MMBTU, digits=3) | ||
| r["thermal_to_load_series_ton"] = round.(value.(CoolingThermalLoadServedWithGHP) ./ KWH_THERMAL_PER_TONHOUR, digits=3) | ||
| r["annual_thermal_production_mmbtu"] = sum(r["thermal_to_space_heating_load_series_mmbtu_per_hour"]) | ||
| r["annual_thermal_production_tonhour"] = sum(r["thermal_to_load_series_ton"]) | ||
| if p.s.ghp_option_list[ghp_option_chosen].can_serve_dhw | ||
| r["thermal_to_dhw_load_series_mmbtu_per_hour"] = d["HeatingLoad"]["dhw_thermal_load_series_mmbtu_per_hour"] | ||
| r["annual_thermal_production_mmbtu"] = r["annual_thermal_production_mmbtu"] + sum(r["thermal_to_dhw_load_series_mmbtu_per_hour"]) | ||
| else | ||
| r["thermal_to_dhw_load_series_mmbtu_per_hour"] = zeros(length(p.time_steps)) | ||
| end | ||
|
|
@@ -60,6 +77,8 @@ function add_ghp_results(m::JuMP.AbstractModel, p::REoptInputs, d::Dict; _n="") | |
| r["thermal_to_space_heating_load_series_mmbtu_per_hour"] = zeros(length(p.time_steps)) | ||
| r["thermal_to_load_series_ton"] = zeros(length(p.time_steps)) | ||
| r["thermal_to_dhw_load_series_mmbtu_per_hour"] = zeros(length(p.time_steps)) | ||
| r["annual_thermal_production_mmbtu"] = 0.0 | ||
| r["annual_thermal_production_tonhour"] = 0.0 | ||
| end | ||
| d["GHP"] = r | ||
| nothing | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.