From 44c88d77a3e89b3445f6bb46a9590b05f65ace82 Mon Sep 17 00:00:00 2001 From: tyneises Date: Fri, 29 Sep 2023 16:31:53 -0500 Subject: [PATCH] make nameplate units consistent in mslf --- ssc/cmod_fresnel_physical.cpp | 4 ++-- ssc/cmod_fresnel_physical_iph.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ssc/cmod_fresnel_physical.cpp b/ssc/cmod_fresnel_physical.cpp index db9ca3ecb..d19f1513f 100644 --- a/ssc/cmod_fresnel_physical.cpp +++ b/ssc/cmod_fresnel_physical.cpp @@ -1566,7 +1566,7 @@ class cm_fresnel_physical : public compute_module csp_solver.get_design_parameters(W_dot_bop_design, W_dot_fixed_parasitic_design); double gross_net_conversion_des = as_number("gross_net_conversion_factor"); - nameplate = W_dot_cycle_des * gross_net_conversion_des; + nameplate = W_dot_cycle_des * gross_net_conversion_des; //[MWe] // Assign { @@ -1974,7 +1974,7 @@ class cm_fresnel_physical : public compute_module double kWh_per_kW = 0.0; if (nameplate > 0.0) - kWh_per_kW = ae / nameplate; + kWh_per_kW = ae / (nameplate*1.E3); // convert nameplate to kW 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); diff --git a/ssc/cmod_fresnel_physical_iph.cpp b/ssc/cmod_fresnel_physical_iph.cpp index 182f4fe22..95127df10 100644 --- a/ssc/cmod_fresnel_physical_iph.cpp +++ b/ssc/cmod_fresnel_physical_iph.cpp @@ -1231,7 +1231,7 @@ class cm_fresnel_physical_iph : public compute_module double W_dot_bop_design, W_dot_fixed_parasitic_design; //[MWe] csp_solver.get_design_parameters(W_dot_bop_design, W_dot_fixed_parasitic_design); - nameplate = q_dot_pc_des * 1.E3; // [kWt] + nameplate = q_dot_pc_des; // [MWt] // Assign { @@ -1510,7 +1510,7 @@ class cm_fresnel_physical_iph : public compute_module ssc_number_t ae = as_number("annual_energy"); //[kWt-hr] - double kWh_per_kW = ae / nameplate; + double kWh_per_kW = ae / (nameplate*1.E3); // convert nameplate to kW assign("capacity_factor", (ssc_number_t)(kWh_per_kW / 8760. * 100.)); assign("kwh_per_kw", (ssc_number_t)kWh_per_kW);