Skip to content

Commit

Permalink
fixing MSLF tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qualand committed Nov 15, 2024
1 parent 06502cf commit cb77d61
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ssc/cmod_etes_electric_resistance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ class cm_etes_electric_resistance : public compute_module
as_double("tes_init_hot_htf_percent"),
as_double("pb_pump_coef"),
false, //[-] False: Field HTF always goes to TES. PC HTF always comes from TES. ETES should not simultaneously operate heater and cycle
1.0,
1.0, // Packed volume fraction
1.85, //[m/s]
false // for now, to get 'tanks_in_parallel' to work
);
Expand Down
4 changes: 2 additions & 2 deletions ssc/cmod_etes_ptes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ class cm_etes_ptes : public compute_module
as_double("tes_init_hot_htf_percent"),
0.0, //[kW/kg/s] No htf pump losses in direct TES
false, //[-] False: Field HTF always goes to TES. PC HTF always comes from TES. ETES should not simultaneously operate heater and cycle
1.0, //[-]
1.0, //[-] packed volume fraction
1.85, //[m/s]
false // for now, to get 'tanks_in_parallel' to work
);
Expand Down Expand Up @@ -722,7 +722,7 @@ class cm_etes_ptes : public compute_module
100.0 - as_double("tes_init_hot_htf_percent"), //[-] Cold storage is charged when cold tank is full
0.0, //[kW/kg/s] No htf pump losses in direct TES
false, //[-] False: Field HTF always goes to TES. PC HTF always comes from TES. ETES should not simultaneously operate heater and cycle
1.0, //[-]
1.0, //[-] packed volume fraction
1.85, //[m/s]
false // for now, to get 'tanks_in_parallel' to work
));
Expand Down
1 change: 1 addition & 0 deletions ssc/cmod_fresnel_physical.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@ class cm_fresnel_physical : public compute_module
as_double("init_hot_htf_percent"),
as_double("pb_pump_coef"),
as_boolean("tanks_in_parallel"),
1.0, // packed volume fraction
V_tes_des,
false,
as_double("tes_pump_coef")
Expand Down
1 change: 1 addition & 0 deletions ssc/cmod_fresnel_physical_iph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ class cm_fresnel_physical_iph : public compute_module
as_double("init_hot_htf_percent"),
as_double("pb_pump_coef"),
as_boolean("tanks_in_parallel"),
1.0, // packed volume fraction
V_tes_des,
false,
as_double("tes_pump_coef")
Expand Down
3 changes: 2 additions & 1 deletion ssc/cmod_mspt_iph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,8 @@ class cm_mspt_iph : public compute_module
as_double("h_tank_min"),
as_double("tes_init_hot_htf_percent"),
as_double("pb_pump_coef"),
as_boolean("tanks_in_parallel"), //[-]
as_boolean("tanks_in_parallel"), //[-]
1.0, // Packed volume fraction
1.85, //[m/s]
false // for now, to get 'tanks_in_parallel' to work
);
Expand Down
2 changes: 1 addition & 1 deletion ssc/cmod_tcsmolten_salt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1843,7 +1843,7 @@ class cm_tcsmolten_salt : public compute_module
as_double("tes_init_hot_htf_percent"),
as_double("pb_pump_coef"),
as_boolean("tanks_in_parallel"), //[-]
1.0, //[-]
1.0, //[-] packed volume fraction
1.85, //[m/s]
false // for now, to get 'tanks_in_parallel' to work
);
Expand Down
1 change: 0 additions & 1 deletion tcs/csp_solver_two_tank_tes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,6 @@ void C_csp_two_tank_tes::init(const C_csp_tes::S_csp_tes_init_inputs init_inputs
double rho_cold_des = mc_store_htfProps.dens(T_tes_cold_des, 1.0);
double rho_hot = mc_store_htfProps.dens(m_T_tank_hot_ini, 1.0);
double rho_cold = mc_store_htfProps.dens(m_T_tank_cold_ini, 1.0);
//TODO (Bill): volume fraction needs to be used here
double m_hot_ini = m_f_V_hot_ini * 0.01 * m_mass_total_active + V_inactive * rho_hot_des * tes_packed_vol_frac; // Updating initial storage charge calculation to avoid variation in total mass with specified initial T
double m_cold_ini = (1.0 - m_f_V_hot_ini * 0.01) * m_mass_total_active + V_inactive * rho_cold_des * tes_packed_vol_frac;
double V_hot_ini = m_hot_ini / (rho_hot * tes_packed_vol_frac);
Expand Down

0 comments on commit cb77d61

Please sign in to comment.