Skip to content

Commit

Permalink
some clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
atpham88 committed Jan 22, 2025
1 parent 031612d commit b098d3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/core/ghp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,6 @@ function setup_installed_cost_curve!(d::Dict, ghp::GHP, response::Dict)
# the initial slope is based on the heat pump size (e.g. $/ton) of the cost curve for
# building a rebate-based cost curve if there are less-than big_number maximum incentives
ghp.tech_sizes_for_cost_curve = [0.0, big_number]

# Set sizing factor = 1 if user inputs their own GHP size
if haskey(d, "GHP") && haskey(d["GHP"],"max_ton")
ghp.heatpump_capacity_sizing_factor_on_peak_load = 1.0
end

if ghp.heat_pump_configuration == "WSHP"
# Use this with the cost curve to determine absolute cost
Expand Down
7 changes: 2 additions & 5 deletions src/core/scenario.jl
Original file line number Diff line number Diff line change
Expand Up @@ -640,13 +640,10 @@ function Scenario(d::Dict; flex_hvac_from_json=false)
end
elseif d["GHP"]["load_served_by_ghp"] == "nonpeak"
@info "GHP serves all thermal load below thermal peak load"
heating_load_mmbtu = ghpghx_inputs["heating_thermal_load_mmbtu_per_hr"]
heating_load_mmbtu = ghpghx_inputs["heating_thermal_load_mmbtu_per_hr"]
#ghpghx_inputs["heating_thermal_load_mmbtu_per_hr"][ghpghx_inputs["heating_thermal_load_mmbtu_per_hr"] .>= d["GHP"]["max_ton"]*12000/1000000] .= d["GHP"]["max_ton"]*12000/1000000
heating_load_mmbtu[heating_load_mmbtu .>=d["GHP"]["max_ton"]*12000/1000000] .= d["GHP"]["max_ton"]*12000/1000000
ghpghx_inputs["heating_thermal_load_mmbtu_per_hr"] = heating_load_mmbtu
open("/Users/apham/Documents/Projects/REopt_Projects/FY25/GHP Development/Test_Model_Presized_GHP/data/nonpeak_thermal_load.json","w") do f
JSON.print(f, ghpghx_inputs)
end
ghpghx_inputs["heating_thermal_load_mmbtu_per_hr"] = heating_load_mmbtu
end
end
results, inputs_params = GhpGhx.ghp_model(ghpghx_inputs)
Expand Down
5 changes: 5 additions & 0 deletions src/results/ghp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,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")
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"]

Expand Down

0 comments on commit b098d3b

Please sign in to comment.