From 13c45e75c88a56c59cad4a962f8c89129004d8a2 Mon Sep 17 00:00:00 2001 From: tyneises Date: Sat, 14 Oct 2023 23:07:26 -0500 Subject: [PATCH] add default pumping power if not reported from rec component --- ssc/cmod_tcsmolten_salt.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ssc/cmod_tcsmolten_salt.cpp b/ssc/cmod_tcsmolten_salt.cpp index 585582e08..193149ac7 100644 --- a/ssc/cmod_tcsmolten_salt.cpp +++ b/ssc/cmod_tcsmolten_salt.cpp @@ -60,6 +60,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "csp_system_costs.h" #include +#include +#include static var_info _cm_vtab_tcsmolten_salt[] = { @@ -2477,7 +2479,12 @@ class cm_tcsmolten_salt : 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); - double plant_net_capacity_calc = W_dot_cycle_des - W_dot_col_tracking_des - W_dot_rec_pump_des - + double W_dot_rec_pump_des_for_cap_calc = W_dot_rec_pump_des; + if (!std::isfinite(W_dot_rec_pump_des_for_cap_calc)) { + W_dot_rec_pump_des_for_cap_calc = 0.02 * W_dot_cycle_des; + } + + double plant_net_capacity_calc = W_dot_cycle_des - W_dot_col_tracking_des - W_dot_rec_pump_des_for_cap_calc - W_dot_pc_pump_des - W_dot_pc_cooling_des - W_dot_bop_design - W_dot_fixed_parasitic_design; //[MWe]