Skip to content

Commit

Permalink
changed tank to bin for TES
Browse files Browse the repository at this point in the history
-updated max iteration count for receiver design point
  • Loading branch information
qualand committed Dec 18, 2023
1 parent 3c85f6e commit 0bf6c7f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions ssc/cmod_csp_tower_particle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,16 @@ static var_info _cm_vtab_csp_tower_particle[] = {

// TES parameters - general
{ SSC_INPUT, SSC_NUMBER, "tes_init_hot_htf_percent", "Initial fraction of available volume that is hot", "%", "", "Thermal Storage", "", /*not required because replacing deprecated var and checked in cmod*/ "", ""},
{ SSC_INPUT, SSC_NUMBER, "h_tank", "Total height of tank (height of HTF when tank is full)", "m", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "cold_tank_max_heat", "Rated heater capacity for cold tank heating", "MW", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "u_tank", "Loss coefficient from the tank", "W/m2-K", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "tank_pairs", "Number of equivalent tank pairs", "", "", "Thermal Storage", "*", "INTEGER", ""},
{ SSC_INPUT, SSC_NUMBER, "cold_tank_Thtr", "Minimum allowable cold tank HTF temperature", "C", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "h_tank", "Total height of bin (height of HTF when bin is full)", "m", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "cold_tank_max_heat", "Rated heater capacity for cold bin heating", "MW", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "u_tank", "Loss coefficient from the bin", "W/m2-K", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "tank_pairs", "Number of equivalent bin pairs", "", "", "Thermal Storage", "*", "INTEGER", ""},
{ SSC_INPUT, SSC_NUMBER, "cold_tank_Thtr", "Minimum allowable cold bin HTF temperature", "C", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "packed_vol_frac", "Packed volume fraction", "-", "", "Thermal Storage", "*", "", ""},
// TES parameters - 2 tank
{ SSC_INPUT, SSC_NUMBER, "h_tank_min", "Minimum allowable HTF height in storage tank", "m", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "hot_tank_Thtr", "Minimum allowable hot tank HTF temperature", "C", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "hot_tank_max_heat", "Rated heater capacity for hot tank heating", "MW", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "h_tank_min", "Minimum allowable HTF height in storage bin", "m", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "hot_tank_Thtr", "Minimum allowable hot bin HTF temperature", "C", "", "Thermal Storage", "*", "", ""},
{ SSC_INPUT, SSC_NUMBER, "hot_tank_max_heat", "Rated heater capacity for hot bin heating", "MW", "", "Thermal Storage", "*", "", ""},

// Power Cycle Inputs
{ SSC_INPUT, SSC_NUMBER, "pc_config", "PC configuration 0=Steam Rankine (224), 1=user defined", "", "", "Power Cycle", "?=0", "INTEGER", ""},
Expand Down Expand Up @@ -463,7 +463,7 @@ static var_info _cm_vtab_csp_tower_particle[] = {
{ SSC_OUTPUT, SSC_NUMBER, "Q_tes_des", "TES design capacity", "MWt-hr", "", "TES Design Calc", "*", "", ""},
{ SSC_OUTPUT, SSC_NUMBER, "V_tes_htf_avail_des", "TES volume of HTF available for heat transfer", "m3", "", "TES Design Calc", "*", "", ""},
{ SSC_OUTPUT, SSC_NUMBER, "V_tes_htf_total_des", "TES total HTF volume", "m3", "", "TES Design Calc", "*", "", ""},
{ SSC_OUTPUT, SSC_NUMBER, "d_tank_tes", "TES tank diameter", "m", "", "TES Design Calc", "*", "", ""},
{ SSC_OUTPUT, SSC_NUMBER, "d_tank_tes", "TES bin diameter", "m", "", "TES Design Calc", "*", "", ""},
{ SSC_OUTPUT, SSC_NUMBER, "q_dot_loss_tes_des", "TES thermal loss at design", "MWt", "", "TES Design Calc", "*", "", ""},
{ SSC_OUTPUT, SSC_NUMBER, "tshours_rec", "TES duration at receiver design output", "hr", "", "TES Design Calc", "*", "", ""},
{ SSC_OUTPUT, SSC_NUMBER, "tshours_heater", "TES duration at heater design output", "hr", "", "TES Design Calc", "*", "", ""},
Expand Down Expand Up @@ -592,8 +592,8 @@ static var_info _cm_vtab_csp_tower_particle[] = {
{ SSC_OUTPUT, SSC_ARRAY, "q_heater", "TES freeze protection power", "MWe", "", "", "sim_type=1", "", ""},
{ SSC_OUTPUT, SSC_ARRAY, "T_tes_hot", "TES hot temperature", "C", "", "", "sim_type=1", "", ""},
{ SSC_OUTPUT, SSC_ARRAY, "T_tes_cold", "TES cold temperature", "C", "", "", "sim_type=1", "", ""},
{ SSC_OUTPUT, SSC_ARRAY, "mass_tes_cold", "TES cold tank mass (end)", "kg", "", "", "sim_type=1", "", ""},
{ SSC_OUTPUT, SSC_ARRAY, "mass_tes_hot", "TES hot tank mass (end)", "kg", "", "", "sim_type=1", "", ""},
{ SSC_OUTPUT, SSC_ARRAY, "mass_tes_cold", "TES cold mass (end)", "kg", "", "", "sim_type=1", "", ""},
{ SSC_OUTPUT, SSC_ARRAY, "mass_tes_hot", "TES hot mass (end)", "kg", "", "", "sim_type=1", "", ""},
{ SSC_OUTPUT, SSC_ARRAY, "q_dc_tes", "TES discharge thermal power", "MWt", "", "", "sim_type=1", "", ""},
{ SSC_OUTPUT, SSC_ARRAY, "q_ch_tes", "TES charge thermal power", "MWt", "", "", "sim_type=1", "", ""},
{ SSC_OUTPUT, SSC_ARRAY, "e_ch_tes", "TES charge state", "MWht", "", "", "sim_type=1", "", ""},
Expand Down
2 changes: 1 addition & 1 deletion tcs/csp_solver_falling_particle_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ void C_falling_particle_receiver::design_point_steady_state(double v_wind_10, do
q_dot_inc_avg = m_q_rec_des / 0.85 / m_curtain_area; // Initial guess for average incident solar flux on curtain [W/m2]
tol = 1e-6;

for (int j = 0; j < 20; j++)
for (int j = 0; j < 40; j++)
{
soln_des.q_dot_inc.resize_fill(m_n_y, m_n_x, q_dot_inc_avg);
solve_for_mass_flow(soln_des);
Expand Down

0 comments on commit 0bf6c7f

Please sign in to comment.