Skip to content

Commit

Permalink
normalize hx output difference
Browse files Browse the repository at this point in the history
decrease nodes in example cmod
  • Loading branch information
tyneises committed Jan 2, 2025
1 parent 9db25bd commit 6ebdb5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ssc/cmod_csp_heatsink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tcs/heat_exchangers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6ebdb5d

Please sign in to comment.