Skip to content

Commit 7ed5550

Browse files
committed
Merge branch 'develop' into sam-1426-parse-lat-lon
2 parents d12763d + 2cd4935 commit 7ed5550

13 files changed

Lines changed: 64 additions & 10 deletions

api/api_autogen/library/defaults/Pvsamv1_PhotovoltaicWindBatteryHybridHostDeveloper.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"calculate_rack_shading": 0,
2828
"dcoptimizer_loss": 0,
2929
"en_snow_model": 0,
30+
"snow_array": [0.000000],
3031
"subarray1_dcwiring_loss": 2,
3132
"subarray1_diodeconn_loss": 0.5,
3233
"subarray1_electrical_mismatch": 0,

api/api_autogen/library/defaults/Pvsamv1_PhotovoltaicWindBatteryHybridSingleOwner.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"calculate_rack_shading": 0,
2828
"dcoptimizer_loss": 0,
2929
"en_snow_model": 0,
30+
"snow_array": [0.000000],
3031
"subarray1_dcwiring_loss": 2,
3132
"subarray1_diodeconn_loss": 0.5,
3233
"subarray1_electrical_mismatch": 0,

api/api_autogen/library/defaults/TcsmoltenSalt_MSPTAllEquityPartnershipFlip.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9813,6 +9813,7 @@
98139813
[1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000]
98149814
],
98159815
"dispatch_tod_factors": [1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000],
9816+
"is_timestep_load_fractions": 0,
98169817
"ppa_multiplier_model": 0
98179818
},
98189819
"FinancialSolutionMode": {

api/api_autogen/library/defaults/TcsmoltenSalt_MSPTLeveragedPartnershipFlip.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9813,6 +9813,7 @@
98139813
[1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000]
98149814
],
98159815
"dispatch_tod_factors": [1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000],
9816+
"is_timestep_load_fractions": 0,
98169817
"ppa_multiplier_model": 0
98179818
},
98189819
"FinancialSolutionMode": {

api/api_autogen/library/defaults/TcsmoltenSalt_MSPTMerchantPlant.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9783,6 +9783,7 @@
97839783
"ud_m_dot_water_cool_des": 0
97849784
},
97859785
"TimeOfDeliveryFactors": {
9786+
"is_timestep_load_fractions": 0
97869787
},
97879788
"FinancialSolutionMode": {
97889789
},

api/api_autogen/library/defaults/TcsmoltenSalt_MSPTNone.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9783,6 +9783,7 @@
97839783
"ud_m_dot_water_cool_des": 0
97849784
},
97859785
"TimeOfDeliveryFactors": {
9786+
"is_timestep_load_fractions": 0
97869787
},
97879788
"FinancialSolutionMode": {
97889789
},

api/api_autogen/library/defaults/TcsmoltenSalt_MSPTSaleLeaseback.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9813,6 +9813,7 @@
98139813
[1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000]
98149814
],
98159815
"dispatch_tod_factors": [1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000],
9816+
"is_timestep_load_fractions": 0,
98169817
"ppa_multiplier_model": 0
98179818
},
98189819
"FinancialSolutionMode": {

api/api_autogen/library/defaults/TcsmoltenSalt_MSPTSingleOwner.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9813,6 +9813,7 @@
98139813
[1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000]
98149814
],
98159815
"dispatch_tod_factors": [1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000],
9816+
"is_timestep_load_fractions": 0,
98169817
"ppa_multiplier_model": 0
98179818
},
98189819
"FinancialSolutionMode": {

api/include/SAM_TcsmoltenSalt.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,14 @@ extern "C"
22722272
*/
22732273
SAM_EXPORT void SAM_TcsmoltenSalt_TimeOfDeliveryFactors_dispatch_tod_factors_aset(SAM_table ptr, double* arr, int length, SAM_error *err);
22742274

2275+
/**
2276+
* Set is_timestep_load_fractions: Use turbine load fraction for each timestep instead of block dispatch?
2277+
* options: None
2278+
* constraints: None
2279+
* required if: ?=0
2280+
*/
2281+
SAM_EXPORT void SAM_TcsmoltenSalt_TimeOfDeliveryFactors_is_timestep_load_fractions_nset(SAM_table ptr, double number, SAM_error *err);
2282+
22752283
/**
22762284
* Set ppa_multiplier_model: PPA multiplier model 0: dispatch factors dispatch_factorX, 1: hourly multipliers dispatch_factors_ts [0/1]
22772285
* options: 0=diurnal,1=timestep
@@ -3252,6 +3260,8 @@ extern "C"
32523260

32533261
SAM_EXPORT double* SAM_TcsmoltenSalt_TimeOfDeliveryFactors_dispatch_tod_factors_aget(SAM_table ptr, int* length, SAM_error *err);
32543262

3263+
SAM_EXPORT double SAM_TcsmoltenSalt_TimeOfDeliveryFactors_is_timestep_load_fractions_nget(SAM_table ptr, SAM_error *err);
3264+
32553265
SAM_EXPORT double SAM_TcsmoltenSalt_TimeOfDeliveryFactors_ppa_multiplier_model_nget(SAM_table ptr, SAM_error *err);
32563266

32573267

api/modules/SAM_TcsmoltenSalt.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,12 @@ SAM_EXPORT void SAM_TcsmoltenSalt_TimeOfDeliveryFactors_dispatch_tod_factors_ase
16461646
});
16471647
}
16481648

1649+
SAM_EXPORT void SAM_TcsmoltenSalt_TimeOfDeliveryFactors_is_timestep_load_fractions_nset(SAM_table ptr, double number, SAM_error *err){
1650+
translateExceptions(err, [&]{
1651+
ssc_data_set_number(ptr, "is_timestep_load_fractions", number);
1652+
});
1653+
}
1654+
16491655
SAM_EXPORT void SAM_TcsmoltenSalt_TimeOfDeliveryFactors_ppa_multiplier_model_nset(SAM_table ptr, double number, SAM_error *err){
16501656
translateExceptions(err, [&]{
16511657
ssc_data_set_number(ptr, "ppa_multiplier_model", number);
@@ -4376,6 +4382,15 @@ SAM_EXPORT double* SAM_TcsmoltenSalt_TimeOfDeliveryFactors_dispatch_tod_factors_
43764382
return result;
43774383
}
43784384

4385+
SAM_EXPORT double SAM_TcsmoltenSalt_TimeOfDeliveryFactors_is_timestep_load_fractions_nget(SAM_table ptr, SAM_error *err){
4386+
double result;
4387+
translateExceptions(err, [&]{
4388+
if (!ssc_data_get_number(ptr, "is_timestep_load_fractions", &result))
4389+
make_access_error("SAM_TcsmoltenSalt", "is_timestep_load_fractions");
4390+
});
4391+
return result;
4392+
}
4393+
43794394
SAM_EXPORT double SAM_TcsmoltenSalt_TimeOfDeliveryFactors_ppa_multiplier_model_nget(SAM_table ptr, SAM_error *err){
43804395
double result;
43814396
translateExceptions(err, [&]{

0 commit comments

Comments
 (0)