Skip to content

Commit

Permalink
define outputs required downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
tyneises committed Dec 20, 2023
1 parent 9d76d0c commit 74c063c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ssc/cmod_trough_physical.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ static var_info _cm_vtab_trough_physical[] = {
{ SSC_INPUT, SSC_NUMBER, "gross_net_conversion_factor", "Estimated gross to net conversion factor", "", "", "system", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "water_usage_per_wash", "Water usage per wash", "L/m2_aper", "", "system", "*", "", "" },
{ SSC_INPUT, SSC_NUMBER, "washing_frequency", "Mirror washing frequency", "-/year", "", "system", "*", "", "" },
//{ SSC_INPUT, SSC_NUMBER, "system_capacity", "Nameplate capacity", "kW", "", "system", "*", "", "" },

// Newly added
{ SSC_INPUT, SSC_NUMBER, "calc_design_pipe_vals", "Calculate temps and pressures at design conditions for runners and headers", "none", "", "solar_field", "*", "", "" },
Expand Down Expand Up @@ -353,6 +352,12 @@ static var_info _cm_vtab_trough_physical[] = {
// OUTPUTS
// *************************************************************************************************

// System capacity required by downstream financial model
{ SSC_OUTPUT, SSC_NUMBER, "system_capacity", "System capacity", "kWe", "", "System Costs", "*", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "cp_system_nameplate", "System capacity for capacity payments", "MWe", "", "System Costs", "*", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "cp_battery_nameplate", "Battery nameplate", "MWe", "", "System Costs", "*", "", "" },


// Design Point Outputs
{ SSC_OUTPUT, SSC_NUMBER, "q_dot_cycle_des", "Cycle thermal power at design", "MWt", "", "Power Cycle", "*", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "nameplate", "Nameplate capacity", "MWe", "", "System Design Calc","*", "", "" },
Expand Down Expand Up @@ -2165,6 +2170,9 @@ class cm_trough_physical : public compute_module
double nameplate = system_capacity; //[kWe]
if (nameplate > 0.0)
kWh_per_kW = ae / nameplate;
assign("system_capacity", system_capacity);
assign("cp_system_nameplate", system_capacity * 1.E-3); //[MWe]
assign("cp_battery_nameplate", 0.0); //[MWe]

assign("capacity_factor", (ssc_number_t)(kWh_per_kW / ((double)n_steps_fixed / (double)steps_per_hour)*100.));
assign("kwh_per_kw", (ssc_number_t)kWh_per_kW);
Expand Down

0 comments on commit 74c063c

Please sign in to comment.