From 6ebdb5de3c21aa06244bc5e8721690a77d6a842a Mon Sep 17 00:00:00 2001 From: tyneises Date: Thu, 2 Jan 2025 14:00:02 -0600 Subject: [PATCH] normalize hx output difference decrease nodes in example cmod --- ssc/cmod_csp_heatsink.cpp | 4 ++-- tcs/heat_exchangers.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ssc/cmod_csp_heatsink.cpp b/ssc/cmod_csp_heatsink.cpp index a9bbe3f09..b9e187253 100644 --- a/ssc/cmod_csp_heatsink.cpp +++ b/ssc/cmod_csp_heatsink.cpp @@ -38,7 +38,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. static var_info _cm_vtab_csp_heatsink[] = { /* VARTYPE DATATYPE NAME LABEL UNITS META GROUP REQUIRED_IF CONSTRAINTS UI_HINTS*/ // Inputs - { SSC_INPUT, SSC_NUMBER, "t_step", "Timestep duration", "s", "", "system", "*", "", "" }, + { SSC_INPUT, SSC_NUMBER, "t_step", "Timestep duration", "s", "", "system", "", "", "" }, var_info_invalid }; @@ -77,7 +77,7 @@ class cm_csp_heatsink : public compute_module // Initialize C_HX_htf_to_steam m_hx; int hot_fl = 21; // HTF fl id - int N_sub_hx = 500; + int N_sub_hx = 50; NS_HX_counterflow_eqs::E_UA_target_type od_target_type = NS_HX_counterflow_eqs::E_UA_target_type::E_constant_UA; m_hx.initialize(hot_fl, N_sub_hx, od_target_type); diff --git a/tcs/heat_exchangers.cpp b/tcs/heat_exchangers.cpp index 694ce6499..00ba14403 100644 --- a/tcs/heat_exchangers.cpp +++ b/tcs/heat_exchangers.cpp @@ -3258,7 +3258,7 @@ int C_HX_htf_to_steam::C_MEQ__target_cold_PH_out::operator()(double m_dot_c /*kg m_tol, m_q_dot, m_h_c_out, m_h_h_out); - *diff_h_c_out = (m_h_c_out - m_h_c_out_target) / 200; //[kJ/kg] + *diff_h_c_out = (m_h_c_out - m_h_c_out_target) / m_h_c_out_target; //[kJ/kg] return 0; }