Skip to content

Commit

Permalink
export_config updates with all patch 1 changes merged
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Feb 20, 2022
1 parent 75072a3 commit ed26dcf
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
"subarray1_azimuth": 180,
"subarray1_backtrack": 0,
"subarray1_gcr": 0.3,
"subarray1_modules_per_string": 12,
"subarray1_modules_per_string": 13,
"subarray1_monthly_tilt": [40.000000, 40.000000, 40.000000, 20.000000, 20.000000, 20.000000, 20.000000, 20.000000, 20.000000, 40.000000, 40.000000, 40.000000],
"subarray1_mppt_input": 1,
"subarray1_nstrings": 134,
"subarray1_nstrings": 124,
"subarray1_rotlim": 45,
"subarray1_slope_azm": 0,
"subarray1_slope_tilt": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
"subarray1_azimuth": 180,
"subarray1_backtrack": 0,
"subarray1_gcr": 0.3,
"subarray1_modules_per_string": 12,
"subarray1_modules_per_string": 13,
"subarray1_monthly_tilt": [40.000000, 40.000000, 40.000000, 20.000000, 20.000000, 20.000000, 20.000000, 20.000000, 20.000000, 40.000000, 40.000000, 40.000000],
"subarray1_mppt_input": 1,
"subarray1_nstrings": 134,
"subarray1_nstrings": 124,
"subarray1_rotlim": 45,
"subarray1_slope_azm": 0,
"subarray1_slope_tilt": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
"subarray1_azimuth": 180,
"subarray1_backtrack": 0,
"subarray1_gcr": 0.3,
"subarray1_modules_per_string": 12,
"subarray1_modules_per_string": 13,
"subarray1_monthly_tilt": [40.000000, 40.000000, 40.000000, 20.000000, 20.000000, 20.000000, 20.000000, 20.000000, 20.000000, 40.000000, 40.000000, 40.000000],
"subarray1_mppt_input": 1,
"subarray1_nstrings": 134,
"subarray1_nstrings": 124,
"subarray1_rotlim": 45,
"subarray1_slope_azm": 0,
"subarray1_slope_tilt": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
"subarray1_azimuth": 180,
"subarray1_backtrack": 0,
"subarray1_gcr": 0.3,
"subarray1_modules_per_string": 12,
"subarray1_modules_per_string": 13,
"subarray1_monthly_tilt": [40.000000, 40.000000, 40.000000, 20.000000, 20.000000, 20.000000, 20.000000, 20.000000, 20.000000, 40.000000, 40.000000, 40.000000],
"subarray1_mppt_input": 1,
"subarray1_nstrings": 134,
"subarray1_nstrings": 124,
"subarray1_rotlim": 45,
"subarray1_slope_azm": 0,
"subarray1_slope_tilt": 0,
Expand Down
10 changes: 10 additions & 0 deletions api/include/SAM_BatteryStateful.h
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,14 @@ extern "C"
*/
SAM_EXPORT void SAM_BatteryStateful_StateCell_temp_avg_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set temp_dt: Temperature cumulated for current day [K]
* options: NMC Life Model
* constraints: None
* required if: None
*/
SAM_EXPORT void SAM_BatteryStateful_StateCell_temp_dt_nset(SAM_table ptr, double number, SAM_error *err);


/**
* Controls Getters
Expand Down Expand Up @@ -1235,6 +1243,8 @@ extern "C"

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

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


/**
* Outputs Getters
Expand Down
17 changes: 17 additions & 0 deletions api/modules/SAM_BatteryStateful.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,12 @@ SAM_EXPORT void SAM_BatteryStateful_StateCell_temp_avg_nset(SAM_table ptr, doubl
});
}

SAM_EXPORT void SAM_BatteryStateful_StateCell_temp_dt_nset(SAM_table ptr, double number, SAM_error *err){
translateExceptions(err, [&]{
ssc_data_set_number(ptr, "temp_dt", number);
});
}

SAM_EXPORT double SAM_BatteryStateful_Controls_control_mode_nget(SAM_table ptr, SAM_error *err){
double result;
translateExceptions(err, [&]{
Expand Down Expand Up @@ -1999,3 +2005,14 @@ SAM_EXPORT double SAM_BatteryStateful_StateCell_temp_avg_nget(SAM_table ptr, SAM



SAM_EXPORT double SAM_BatteryStateful_StateCell_temp_dt_nget(SAM_table ptr, SAM_error *err){
double result;
translateExceptions(err, [&]{
if (!ssc_data_get_number(ptr, "temp_dt", &result))
make_access_error("SAM_BatteryStateful", "temp_dt");
});
return result;
}



0 comments on commit ed26dcf

Please sign in to comment.