Skip to content

Commit e33a4a0

Browse files
committed
Merge branch 'patch' into ortool__full_release
2 parents c72c628 + b3a34d3 commit e33a4a0

36 files changed

Lines changed: 454 additions & 190 deletions

api/include/SAM_FresnelPhysical.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2655,6 +2655,8 @@ extern "C"
26552655

26562656
SAM_EXPORT double* SAM_FresnelPhysical_Outputs_rec_thermal_eff_aget(SAM_table ptr, int* length, SAM_error *err);
26572657

2658+
SAM_EXPORT double* SAM_FresnelPhysical_Outputs_rec_time_in_startup_aget(SAM_table ptr, int* length, SAM_error *err);
2659+
26582660
SAM_EXPORT double* SAM_FresnelPhysical_Outputs_recirculating_aget(SAM_table ptr, int* length, SAM_error *err);
26592661

26602662
SAM_EXPORT double* SAM_FresnelPhysical_Outputs_rh_aget(SAM_table ptr, int* length, SAM_error *err);

api/include/SAM_FresnelPhysicalIph.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,6 +2713,8 @@ extern "C"
27132713

27142714
SAM_EXPORT double* SAM_FresnelPhysicalIph_Outputs_rec_thermal_eff_aget(SAM_table ptr, int* length, SAM_error *err);
27152715

2716+
SAM_EXPORT double* SAM_FresnelPhysicalIph_Outputs_rec_time_in_startup_aget(SAM_table ptr, int* length, SAM_error *err);
2717+
27162718
SAM_EXPORT double* SAM_FresnelPhysicalIph_Outputs_recirculating_aget(SAM_table ptr, int* length, SAM_error *err);
27172719

27182720
SAM_EXPORT double* SAM_FresnelPhysicalIph_Outputs_rh_aget(SAM_table ptr, int* length, SAM_error *err);

api/include/SAM_TroughPhysical.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3655,6 +3655,8 @@ extern "C"
36553655

36563656
SAM_EXPORT double* SAM_TroughPhysical_Outputs_rec_op_mode_final_aget(SAM_table ptr, int* length, SAM_error *err);
36573657

3658+
SAM_EXPORT double* SAM_TroughPhysical_Outputs_rec_time_in_startup_aget(SAM_table ptr, int* length, SAM_error *err);
3659+
36583660
SAM_EXPORT double* SAM_TroughPhysical_Outputs_recirculating_aget(SAM_table ptr, int* length, SAM_error *err);
36593661

36603662
SAM_EXPORT double SAM_TroughPhysical_Outputs_required_number_of_loops_for_SM1_nget(SAM_table ptr, SAM_error *err);

api/include/SAM_TroughPhysicalIph.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3519,6 +3519,8 @@ extern "C"
35193519

35203520
SAM_EXPORT double* SAM_TroughPhysicalIph_Outputs_qinc_costh_aget(SAM_table ptr, int* length, SAM_error *err);
35213521

3522+
SAM_EXPORT double* SAM_TroughPhysicalIph_Outputs_rec_time_in_startup_aget(SAM_table ptr, int* length, SAM_error *err);
3523+
35223524
SAM_EXPORT double* SAM_TroughPhysicalIph_Outputs_recirculating_aget(SAM_table ptr, int* length, SAM_error *err);
35233525

35243526
SAM_EXPORT double SAM_TroughPhysicalIph_Outputs_required_number_of_loops_for_SM1_nget(SAM_table ptr, SAM_error *err);

api/modules/SAM_FresnelPhysical.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4953,6 +4953,16 @@ SAM_EXPORT double* SAM_FresnelPhysical_Outputs_rec_thermal_eff_aget(SAM_table pt
49534953
return result;
49544954
}
49554955

4956+
SAM_EXPORT double* SAM_FresnelPhysical_Outputs_rec_time_in_startup_aget(SAM_table ptr, int* length, SAM_error *err){
4957+
double* result = nullptr;
4958+
translateExceptions(err, [&]{
4959+
result = ssc_data_get_array(ptr, "rec_time_in_startup", length);
4960+
if (!result)
4961+
make_access_error("SAM_FresnelPhysical", "rec_time_in_startup");
4962+
});
4963+
return result;
4964+
}
4965+
49564966
SAM_EXPORT double* SAM_FresnelPhysical_Outputs_recirculating_aget(SAM_table ptr, int* length, SAM_error *err){
49574967
double* result = nullptr;
49584968
translateExceptions(err, [&]{

api/modules/SAM_FresnelPhysicalIph.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5077,6 +5077,16 @@ SAM_EXPORT double* SAM_FresnelPhysicalIph_Outputs_rec_thermal_eff_aget(SAM_table
50775077
return result;
50785078
}
50795079

5080+
SAM_EXPORT double* SAM_FresnelPhysicalIph_Outputs_rec_time_in_startup_aget(SAM_table ptr, int* length, SAM_error *err){
5081+
double* result = nullptr;
5082+
translateExceptions(err, [&]{
5083+
result = ssc_data_get_array(ptr, "rec_time_in_startup", length);
5084+
if (!result)
5085+
make_access_error("SAM_FresnelPhysicalIph", "rec_time_in_startup");
5086+
});
5087+
return result;
5088+
}
5089+
50805090
SAM_EXPORT double* SAM_FresnelPhysicalIph_Outputs_recirculating_aget(SAM_table ptr, int* length, SAM_error *err){
50815091
double* result = nullptr;
50825092
translateExceptions(err, [&]{

api/modules/SAM_TroughPhysical.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6898,6 +6898,16 @@ SAM_EXPORT double* SAM_TroughPhysical_Outputs_rec_op_mode_final_aget(SAM_table p
68986898
return result;
68996899
}
69006900

6901+
SAM_EXPORT double* SAM_TroughPhysical_Outputs_rec_time_in_startup_aget(SAM_table ptr, int* length, SAM_error *err){
6902+
double* result = nullptr;
6903+
translateExceptions(err, [&]{
6904+
result = ssc_data_get_array(ptr, "rec_time_in_startup", length);
6905+
if (!result)
6906+
make_access_error("SAM_TroughPhysical", "rec_time_in_startup");
6907+
});
6908+
return result;
6909+
}
6910+
69016911
SAM_EXPORT double* SAM_TroughPhysical_Outputs_recirculating_aget(SAM_table ptr, int* length, SAM_error *err){
69026912
double* result = nullptr;
69036913
translateExceptions(err, [&]{

api/modules/SAM_TroughPhysicalIph.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6630,6 +6630,16 @@ SAM_EXPORT double* SAM_TroughPhysicalIph_Outputs_qinc_costh_aget(SAM_table ptr,
66306630
return result;
66316631
}
66326632

6633+
SAM_EXPORT double* SAM_TroughPhysicalIph_Outputs_rec_time_in_startup_aget(SAM_table ptr, int* length, SAM_error *err){
6634+
double* result = nullptr;
6635+
translateExceptions(err, [&]{
6636+
result = ssc_data_get_array(ptr, "rec_time_in_startup", length);
6637+
if (!result)
6638+
make_access_error("SAM_TroughPhysicalIph", "rec_time_in_startup");
6639+
});
6640+
return result;
6641+
}
6642+
66336643
SAM_EXPORT double* SAM_TroughPhysicalIph_Outputs_recirculating_aget(SAM_table ptr, int* length, SAM_error *err){
66346644
double* result = nullptr;
66356645
translateExceptions(err, [&]{

deploy/runtime/macros/Flat Plate PV/Append Snow Data.lk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ if( mod(weatherLength, 8760) != 0){
128128
// Load snow data
129129

130130
if( sf_unit == 'cm' ) conversion = 1.0;
131-
if( sf_unit == 'inch' ) conversion = 2.54;
131+
if( sf_unit == 'in' ) conversion = 2.54;
132132
if( sf_unit == 'mm' ) conversion = 0.1;
133133
if( sf_unit == 'feet' ) conversion = 30.48;
134134
if( sf_unit == 'meters' ) conversion = 100.0;

deploy/runtime/macros/PV Battery/Append Snow Data.lk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ if( mod(weatherLength, 8760) != 0){
128128
// Load snow data
129129

130130
if( sf_unit == 'cm' ) conversion = 1.0;
131-
if( sf_unit == 'inch' ) conversion = 2.54;
131+
if( sf_unit == 'in' ) conversion = 2.54;
132132
if( sf_unit == 'mm' ) conversion = 0.1;
133133
if( sf_unit == 'feet' ) conversion = 30.48;
134134
if( sf_unit == 'meters' ) conversion = 100.0;

0 commit comments

Comments
 (0)