Skip to content

Commit

Permalink
Make requested changes in #1950
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Dec 8, 2024
1 parent 530ca05 commit add7531
Show file tree
Hide file tree
Showing 19 changed files with 129 additions and 226 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"nMod": 8,
"p_start": 0.021,
"rec_htf_vol": 1,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"theta_dep": 10,
"theta_stow": 170,
"washes_per_year": 120,
Expand Down Expand Up @@ -376,6 +374,8 @@
"disp_timeout": 5,
"is_dispatch": 0,
"pb_fixed_par": 0.0055,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"weekday_schedule": [
[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],
[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],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"nMod": 8,
"p_start": 0.021,
"rec_htf_vol": 1,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"theta_dep": 10,
"theta_stow": 170,
"washes_per_year": 120,
Expand Down Expand Up @@ -376,6 +374,8 @@
"disp_timeout": 5,
"is_dispatch": 0,
"pb_fixed_par": 0.0055,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"weekday_schedule": [
[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],
[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],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"nMod": 8,
"p_start": 0.021,
"rec_htf_vol": 1,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"theta_dep": 10,
"theta_stow": 170,
"washes_per_year": 120,
Expand Down Expand Up @@ -374,6 +372,8 @@
"disp_timeout": 5,
"is_dispatch": 0,
"pb_fixed_par": 0.0055,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"weekday_schedule": [
[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],
[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],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"nMod": 8,
"p_start": 0.021,
"rec_htf_vol": 1,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"theta_dep": 10,
"theta_stow": 170,
"washes_per_year": 120,
Expand Down Expand Up @@ -376,6 +374,8 @@
"disp_timeout": 5,
"is_dispatch": 0,
"pb_fixed_par": 0.0055,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"weekday_schedule": [
[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],
[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],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"nMod": 8,
"p_start": 0.021,
"rec_htf_vol": 1,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"theta_dep": 10,
"theta_stow": 170,
"washes_per_year": 120,
Expand Down Expand Up @@ -376,6 +374,8 @@
"disp_timeout": 5,
"is_dispatch": 0,
"pb_fixed_par": 0.0055,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"weekday_schedule": [
[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],
[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],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"defaults": {
"SystemControl": {
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"time_start": 0,
"time_stop": 3.1536e+07
},
Expand Down Expand Up @@ -272,8 +274,6 @@
"northsouth_field_sep": 20,
"offset_xpan_hdr": 1,
"p_start": 0.021,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"sf_hdr_diams": [
[-1.000000]
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"defaults": {
"SystemControl": {
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"time_start": 0,
"time_stop": 3.1536e+07
},
Expand Down Expand Up @@ -272,8 +274,6 @@
"northsouth_field_sep": 20,
"offset_xpan_hdr": 1,
"p_start": 0.021,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"sf_hdr_diams": [
[-1.000000]
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"defaults": {
"SystemControl": {
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"time_start": 0,
"time_stop": 3.1536e+07
},
Expand Down Expand Up @@ -272,8 +274,6 @@
"northsouth_field_sep": 20,
"offset_xpan_hdr": 1,
"p_start": 0.021,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"sf_hdr_diams": [
[-1.000000]
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"defaults": {
"SystemControl": {
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"time_start": 0,
"time_stop": 3.1536e+07
},
Expand Down Expand Up @@ -272,8 +274,6 @@
"northsouth_field_sep": 20,
"offset_xpan_hdr": 1,
"p_start": 0.021,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"sf_hdr_diams": [
[-1.000000]
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"defaults": {
"SystemControl": {
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"time_start": 0,
"time_stop": 3.1536e+07
},
Expand Down Expand Up @@ -272,8 +274,6 @@
"northsouth_field_sep": 20,
"offset_xpan_hdr": 1,
"p_start": 0.021,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"sf_hdr_diams": [
[-1.000000]
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"defaults": {
"SystemControl": {
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"time_start": 0,
"time_stop": 3.1536e+07
},
Expand Down Expand Up @@ -272,8 +274,6 @@
"northsouth_field_sep": 20,
"offset_xpan_hdr": 1,
"p_start": 0.021,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"sf_hdr_diams": [
[-1.000000]
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"defaults": {
"SystemControl": {
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"time_start": 0,
"time_stop": 3.1536e+07
},
Expand Down Expand Up @@ -272,8 +274,6 @@
"northsouth_field_sep": 20,
"offset_xpan_hdr": 1,
"p_start": 0.021,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"sf_hdr_diams": [
[-1.000000]
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"defaults": {
"SystemControl": {
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"time_start": 0,
"time_stop": 3.1536e+07
},
Expand Down Expand Up @@ -272,8 +274,6 @@
"northsouth_field_sep": 20,
"offset_xpan_hdr": 1,
"p_start": 0.021,
"rec_qf_delay": 0.25,
"rec_su_delay": 0.2,
"sf_hdr_diams": [
[-1.000000]
],
Expand Down
40 changes: 20 additions & 20 deletions api/include/SAM_FresnelPhysical.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,22 +318,6 @@ extern "C"
*/
SAM_EXPORT void SAM_FresnelPhysical_SolarField_rec_htf_vol_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set rec_qf_delay: Energy-based receiver startup delay (fraction of rated thermal power) [-]
* options: None
* constraints: None
* required if: *
*/
SAM_EXPORT void SAM_FresnelPhysical_SolarField_rec_qf_delay_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set rec_su_delay: Fixed startup delay time for the receiver [hr]
* options: None
* constraints: None
* required if: *
*/
SAM_EXPORT void SAM_FresnelPhysical_SolarField_rec_su_delay_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set theta_dep: deploy angle [deg]
* options: None
Expand Down Expand Up @@ -1313,6 +1297,22 @@ extern "C"
*/
SAM_EXPORT void SAM_FresnelPhysical_SysControl_pb_fixed_par_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set rec_qf_delay: Energy-based receiver startup delay (fraction of rated thermal power) [-]
* options: None
* constraints: None
* required if: *
*/
SAM_EXPORT void SAM_FresnelPhysical_SysControl_rec_qf_delay_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set rec_su_delay: Fixed startup delay time for the receiver [hr]
* options: None
* constraints: None
* required if: *
*/
SAM_EXPORT void SAM_FresnelPhysical_SysControl_rec_su_delay_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set weekday_schedule: 12x24 Time of Use Values for week days
* options: None
Expand Down Expand Up @@ -1865,10 +1865,6 @@ extern "C"

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

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

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

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

SAM_EXPORT double SAM_FresnelPhysical_SolarField_theta_stow_nget(SAM_table ptr, SAM_error *err);
Expand Down Expand Up @@ -2140,6 +2136,10 @@ extern "C"

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

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

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

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

SAM_EXPORT double* SAM_FresnelPhysical_SysControl_weekend_schedule_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err);
Expand Down
40 changes: 20 additions & 20 deletions api/include/SAM_TroughPhysical.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,22 @@ extern "C"
*/
SAM_EXPORT void SAM_TroughPhysical_SystemControl_rec_op_mode_initial_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set rec_qf_delay: Energy-based receiver startup delay (fraction of rated thermal power) [-]
* options: None
* constraints: None
* required if: *
*/
SAM_EXPORT void SAM_TroughPhysical_SystemControl_rec_qf_delay_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set rec_su_delay: Fixed startup delay time for the receiver [hr]
* options: None
* constraints: None
* required if: *
*/
SAM_EXPORT void SAM_TroughPhysical_SystemControl_rec_su_delay_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set sim_type: 1 (default): timeseries, 2: design only
* options: None
Expand Down Expand Up @@ -1009,22 +1025,6 @@ extern "C"
*/
SAM_EXPORT void SAM_TroughPhysical_SolarField_p_start_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set rec_qf_delay: Energy-based receiver startup delay (fraction of rated thermal power) [-]
* options: None
* constraints: None
* required if: *
*/
SAM_EXPORT void SAM_TroughPhysical_SolarField_rec_qf_delay_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set rec_su_delay: Fixed startup delay time for the receiver [hr]
* options: None
* constraints: None
* required if: *
*/
SAM_EXPORT void SAM_TroughPhysical_SolarField_rec_su_delay_nset(SAM_table ptr, double number, SAM_error *err);

/**
* Set sf_hdr_diams: Custom header diameters [m]
* options: None
Expand Down Expand Up @@ -2532,6 +2532,10 @@ extern "C"

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

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

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

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

SAM_EXPORT double SAM_TroughPhysical_SystemControl_time_start_nget(SAM_table ptr, SAM_error *err);
Expand Down Expand Up @@ -2744,10 +2748,6 @@ extern "C"

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

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

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

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

SAM_EXPORT double* SAM_TroughPhysical_SolarField_sf_hdr_lengths_mget(SAM_table ptr, int* nrows, int* ncols, SAM_error *err);
Expand Down
Loading

0 comments on commit add7531

Please sign in to comment.