Skip to content

Commit

Permalink
Update cst_ssc.jl
Browse files Browse the repository at this point in the history
checking thermal units
  • Loading branch information
jgifford914 authored Jan 14, 2025
1 parent e0e52e5 commit 532bae5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/cst_ssc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,16 @@ function run_ssc(case_data::Dict)
### Retrieve results
### SSC output names for the thermal production and electrical consumption profiles, thermal power rating and solar multiple
outputs_dict = Dict(
"mst" => ["Q_thermal","P_tower_pump",0.0,"q_pb_design","solarm"], # locked in [W]
"mst" => ["Q_thermal","P_tower_pump",0.0,"q_pb_design","solarm"], # Q_thermal = [MWt] (confirmed 1/14/2025)
"lf" => ["q_dot_to_heat_sink","W_dot_heat_sink_pump","W_dot_parasitic_tot","q_pb_design",1.0], # locked in [W]
"ptc" => ["q_dot_htf_sf_out","P_loss",0.0,"q_pb_design",3.0], # locked in [MWt]
"swh_flatplate" => ["Q_useful","P_pump",0.0,"system_capacity",1.0], # kW, kW, kW
"swh_evactube" => ["Q_useful","P_pump",0.0,"system_capacity",1.0] # kW, kW, kW
)
thermal_conversion_factor = Dict(
"mst" => 1, # locked in [W]
"lf" => 1, # locked in [W]
"ptc" => 1, # locked in [MWt]
"mst" => 1,
"lf" => 1,
"ptc" => 1,
"swh_flatplate" => 1,
"swh_evactube" => 1
)
Expand Down Expand Up @@ -259,6 +259,7 @@ function run_ssc(case_data::Dict)
#c_response = @ccall hdl.ssc_data_get_number(data::Ptr{Cvoid}, k::Cstring, len_ref::Ptr{Cvoid})::Ptr{Float64}
# print(c_response)
if model == "ptc"

thermal_production_norm = normalize_response(thermal_production, case_data)
else
thermal_production_norm = thermal_production .* tcf ./ rated_power
Expand Down

0 comments on commit 532bae5

Please sign in to comment.