Skip to content

Commit

Permalink
Latest api updates from develop, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Dec 5, 2024
1 parent d9915b4 commit 1495a99
Show file tree
Hide file tree
Showing 35 changed files with 752 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@
"reflectivity": 0.935
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"Storage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@
"reflectivity": 0.935
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"Storage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@
"reflectivity": 0.935
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"Storage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@
"reflectivity": 0.935
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"Storage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@
[545.000000, 1.000000, 52.105300, 1.082840, 1.086210, 1.000000, 1.000000],
[545.000000, 1.000000, 55.000000, 1.074640, 1.086210, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"Storage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@
[545.000000, 1.000000, 52.105300, 1.082840, 1.086210, 1.000000, 1.000000],
[545.000000, 1.000000, 55.000000, 1.074640, 1.086210, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"Storage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@
[545.000000, 1.000000, 52.105300, 1.082840, 1.086210, 1.000000, 1.000000],
[545.000000, 1.000000, 55.000000, 1.074640, 1.086210, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"Storage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@
[545.000000, 1.000000, 52.105300, 1.082840, 1.086210, 1.000000, 1.000000],
[545.000000, 1.000000, 55.000000, 1.074640, 1.086210, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"Storage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@
[545.000000, 1.000000, 52.105300, 1.082840, 1.086210, 1.000000, 1.000000],
[545.000000, 1.000000, 55.000000, 1.074640, 1.086210, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"Storage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9533,6 +9533,14 @@
"u_tank": 0.4
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"TimeOfDeliveryFactors": {
Expand Down
8 changes: 8 additions & 0 deletions api/api_autogen/library/defaults/MsptIph_MSPTIPHNone.json
Original file line number Diff line number Diff line change
Expand Up @@ -9533,6 +9533,14 @@
"u_tank": 0.4
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"TimeOfDeliveryFactors": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9533,6 +9533,14 @@
"u_tank": 0.4
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"TimeOfDeliveryFactors": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@
"wind_stow_speed": 25
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"ParallelHeater": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@
"wind_stow_speed": 25
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"ParallelHeater": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@
"wind_stow_speed": 25
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"ParallelHeater": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@
"wind_stow_speed": 25
},
"HeatSink": {
"hs_phys_N_sub": 100,
"hs_phys_P_steam_hot_des": 4.762,
"hs_phys_Q_steam_hot_des": 0.75,
"hs_phys_T_steam_cold_des": 120,
"hs_phys_f_mdot_steam_max": 1.5,
"hs_phys_f_mdot_steam_min": 0.2,
"hs_phys_tol": 0.01,
"hs_type": 0,
"pb_pump_coef": 0.55
},
"ParallelHeater": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@
[410.000000, 1.000000, 52.105300, 1.193630, 1.193880, 1.000000, 1.000000],
[410.000000, 1.000000, 55.000000, 1.181830, 1.193880, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"TES": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@
[295.000000, 0.700000, 50.000000, 0.417358, 0.630000, 1.000000, 1.000000],
[295.000000, 0.700000, 55.000000, 0.369147, 0.616000, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"TES": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@
[410.000000, 1.000000, 52.105300, 1.193630, 1.193880, 1.000000, 1.000000],
[410.000000, 1.000000, 55.000000, 1.181830, 1.193880, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"TES": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@
[410.000000, 1.000000, 52.105300, 1.193630, 1.193880, 1.000000, 1.000000],
[410.000000, 1.000000, 55.000000, 1.181830, 1.193880, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"TES": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@
[410.000000, 1.000000, 52.105300, 1.193630, 1.193880, 1.000000, 1.000000],
[410.000000, 1.000000, 55.000000, 1.181830, 1.193880, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"TES": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@
[410.000000, 1.000000, 52.105300, 1.193630, 1.193880, 1.000000, 1.000000],
[410.000000, 1.000000, 55.000000, 1.181830, 1.193880, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"TES": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@
[410.000000, 1.000000, 52.105300, 1.193630, 1.193880, 1.000000, 1.000000],
[410.000000, 1.000000, 55.000000, 1.181830, 1.193880, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"TES": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@
[410.000000, 1.000000, 52.105300, 1.193630, 1.193880, 1.000000, 1.000000],
[410.000000, 1.000000, 55.000000, 1.181830, 1.193880, 1.000000, 1.000000]
],
"ud_is_sco2_regr": 0,
"ud_m_dot_water_cool_des": 0
},
"TES": {
Expand Down
10 changes: 10 additions & 0 deletions api/include/SAM_FresnelPhysical.h
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,14 @@ extern "C"
*/
SAM_EXPORT void SAM_FresnelPhysical_UserDefinedPC_ud_ind_od_mset(SAM_table ptr, double* mat, int nrows, int ncols, SAM_error *err);

/**
* Set ud_is_sco2_regr: 0: (default) simple max htf mass flow correction; 1: sco2 heuristic regression; 2: no correction
* options: None
* constraints: None
* required if: ?=0
*/
SAM_EXPORT void SAM_FresnelPhysical_UserDefinedPC_ud_is_sco2_regr_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set ud_m_dot_water_cool_des: Mass flow rate of water required at user-defined power cycle design point [kg/s]
* options: None
Expand Down Expand Up @@ -2027,6 +2035,8 @@ extern "C"

SAM_EXPORT double* SAM_FresnelPhysical_UserDefinedPC_ud_ind_od_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err);

SAM_EXPORT double SAM_FresnelPhysical_UserDefinedPC_ud_is_sco2_regr_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_FresnelPhysical_UserDefinedPC_ud_m_dot_water_cool_des_nget(SAM_table ptr, SAM_error *err);


Expand Down
80 changes: 80 additions & 0 deletions api/include/SAM_FresnelPhysicalIph.h
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,70 @@ extern "C"
// HeatSink parameters
//

/**
* Set hs_phys_N_sub: Number physical heat sink HX nodes
* options: None
* constraints: None
* required if: hs_type=1
*/
SAM_EXPORT void SAM_FresnelPhysicalIph_HeatSink_hs_phys_N_sub_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set hs_phys_P_steam_hot_des: Steam outlet (and inlet) pressure for physical heat sink [bar]
* options: None
* constraints: None
* required if: hs_type=1
*/
SAM_EXPORT void SAM_FresnelPhysicalIph_HeatSink_hs_phys_P_steam_hot_des_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set hs_phys_Q_steam_hot_des: Steam outlet quality for physical heat sink
* options: None
* constraints: None
* required if: hs_type=1
*/
SAM_EXPORT void SAM_FresnelPhysicalIph_HeatSink_hs_phys_Q_steam_hot_des_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set hs_phys_T_steam_cold_des: Steam inlet temperature for physical heat sink [C]
* options: None
* constraints: None
* required if: hs_type=1
*/
SAM_EXPORT void SAM_FresnelPhysicalIph_HeatSink_hs_phys_T_steam_cold_des_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set hs_phys_f_mdot_steam_max: Max steam mdot fraction for physical heat sink
* options: None
* constraints: None
* required if: hs_type=1
*/
SAM_EXPORT void SAM_FresnelPhysicalIph_HeatSink_hs_phys_f_mdot_steam_max_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set hs_phys_f_mdot_steam_min: Min steam mdot fraction for physical heat sink
* options: None
* constraints: None
* required if: hs_type=1
*/
SAM_EXPORT void SAM_FresnelPhysicalIph_HeatSink_hs_phys_f_mdot_steam_min_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set hs_phys_tol: Physical heat sink solve tolerance
* options: None
* constraints: None
* required if: hs_type=1
*/
SAM_EXPORT void SAM_FresnelPhysicalIph_HeatSink_hs_phys_tol_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set hs_type: 0: ideal model, 1: physical steam model
* options: None
* constraints: None
* required if: ?=0
*/
SAM_EXPORT void SAM_FresnelPhysicalIph_HeatSink_hs_type_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set pb_pump_coef: Pumping power to move 1kg of HTF through PB loop [kW/kg]
* options: None
Expand Down Expand Up @@ -2008,6 +2072,22 @@ extern "C"
* HeatSink Getters
*/

SAM_EXPORT double SAM_FresnelPhysicalIph_HeatSink_hs_phys_N_sub_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_FresnelPhysicalIph_HeatSink_hs_phys_P_steam_hot_des_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_FresnelPhysicalIph_HeatSink_hs_phys_Q_steam_hot_des_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_FresnelPhysicalIph_HeatSink_hs_phys_T_steam_cold_des_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_FresnelPhysicalIph_HeatSink_hs_phys_f_mdot_steam_max_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_FresnelPhysicalIph_HeatSink_hs_phys_f_mdot_steam_min_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_FresnelPhysicalIph_HeatSink_hs_phys_tol_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_FresnelPhysicalIph_HeatSink_hs_type_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_FresnelPhysicalIph_HeatSink_pb_pump_coef_nget(SAM_table ptr, SAM_error *err);


Expand Down
Loading

0 comments on commit 1495a99

Please sign in to comment.