Skip to content

Commit

Permalink
adding packed volume fraction and tes total mass
Browse files Browse the repository at this point in the history
  • Loading branch information
qualand committed Dec 12, 2023
1 parent a66a317 commit d044bb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ssc/cmod_trough_physical.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,7 @@ class cm_trough_physical : public compute_module
as_double("init_hot_htf_percent"),
as_double("pb_pump_coef"),
as_boolean("tanks_in_parallel"),
1.0, // [-] tes packed volume fraction
as_double("V_tes_des"),
as_boolean("calc_design_pipe_vals"),
as_double("tes_pump_coef"),
Expand Down Expand Up @@ -1663,10 +1664,10 @@ class cm_trough_physical : public compute_module
{
double V_tes_htf_avail_calc /*m3*/, V_tes_htf_total_calc /*m3*/,
d_tank_calc /*m*/, q_dot_loss_tes_des_calc /*MWt*/, dens_store_htf_at_T_ave_calc /*kg/m3*/,
Q_tes_des_calc /*MWt-hr*/;
Q_tes_des_calc /*MWt-hr*/, tes_total_mass /*kg*/;

storage.get_design_parameters(V_tes_htf_avail_calc, V_tes_htf_total_calc,
d_tank_calc, q_dot_loss_tes_des_calc, dens_store_htf_at_T_ave_calc, Q_tes_des_calc);
d_tank_calc, q_dot_loss_tes_des_calc, dens_store_htf_at_T_ave_calc, Q_tes_des_calc, tes_total_mass);

double vol_min = V_tes_htf_total_calc * (storage.m_h_tank_min / storage.m_h_tank);
double V_tank_hot_ini = (as_double("h_tank_min") / as_double("h_tank")) * V_tes_htf_total_calc; // m3
Expand Down
5 changes: 3 additions & 2 deletions ssc/cmod_trough_physical_iph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ class cm_trough_physical_iph : public compute_module
as_double("init_hot_htf_percent"),
as_double("pb_pump_coef"),
as_boolean("tanks_in_parallel"),
1.0, // [-] tes packed volume fraction
as_double("V_tes_des"),
as_boolean("calc_design_pipe_vals"),
as_double("tes_pump_coef"),
Expand Down Expand Up @@ -1503,10 +1504,10 @@ class cm_trough_physical_iph : public compute_module
{
double V_tes_htf_avail_calc /*m3*/, V_tes_htf_total_calc /*m3*/,
d_tank_calc /*m*/, q_dot_loss_tes_des_calc /*MWt*/, dens_store_htf_at_T_ave_calc /*kg/m3*/,
Q_tes_des_calc /*MWt-hr*/;
Q_tes_des_calc /*MWt-hr*/, tes_total_mass /*kg*/;

storage.get_design_parameters(V_tes_htf_avail_calc, V_tes_htf_total_calc,
d_tank_calc, q_dot_loss_tes_des_calc, dens_store_htf_at_T_ave_calc, Q_tes_des_calc);
d_tank_calc, q_dot_loss_tes_des_calc, dens_store_htf_at_T_ave_calc, Q_tes_des_calc, tes_total_mass);

double vol_min = V_tes_htf_total_calc * (storage.m_h_tank_min / storage.m_h_tank);
double V_tank_hot_ini = (as_double("h_tank_min") / as_double("h_tank")) * V_tes_htf_total_calc; // m3
Expand Down

0 comments on commit d044bb4

Please sign in to comment.