Skip to content

Commit 532bae5

Browse files
authored
Update cst_ssc.jl
checking thermal units
1 parent e0e52e5 commit 532bae5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/core/cst_ssc.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,16 @@ function run_ssc(case_data::Dict)
199199
### Retrieve results
200200
### SSC output names for the thermal production and electrical consumption profiles, thermal power rating and solar multiple
201201
outputs_dict = Dict(
202-
"mst" => ["Q_thermal","P_tower_pump",0.0,"q_pb_design","solarm"], # locked in [W]
202+
"mst" => ["Q_thermal","P_tower_pump",0.0,"q_pb_design","solarm"], # Q_thermal = [MWt] (confirmed 1/14/2025)
203203
"lf" => ["q_dot_to_heat_sink","W_dot_heat_sink_pump","W_dot_parasitic_tot","q_pb_design",1.0], # locked in [W]
204204
"ptc" => ["q_dot_htf_sf_out","P_loss",0.0,"q_pb_design",3.0], # locked in [MWt]
205205
"swh_flatplate" => ["Q_useful","P_pump",0.0,"system_capacity",1.0], # kW, kW, kW
206206
"swh_evactube" => ["Q_useful","P_pump",0.0,"system_capacity",1.0] # kW, kW, kW
207207
)
208208
thermal_conversion_factor = Dict(
209-
"mst" => 1, # locked in [W]
210-
"lf" => 1, # locked in [W]
211-
"ptc" => 1, # locked in [MWt]
209+
"mst" => 1,
210+
"lf" => 1,
211+
"ptc" => 1,
212212
"swh_flatplate" => 1,
213213
"swh_evactube" => 1
214214
)
@@ -259,6 +259,7 @@ function run_ssc(case_data::Dict)
259259
#c_response = @ccall hdl.ssc_data_get_number(data::Ptr{Cvoid}, k::Cstring, len_ref::Ptr{Cvoid})::Ptr{Float64}
260260
# print(c_response)
261261
if model == "ptc"
262+
262263
thermal_production_norm = normalize_response(thermal_production, case_data)
263264
else
264265
thermal_production_norm = thermal_production .* tcf ./ rated_power

0 commit comments

Comments
 (0)