Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes SAM issue 994 #1041

Merged
merged 19 commits into from May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
d7865b8
Start on saving analysis period with DataMatrixLifetime mData member
sjanzou May 12, 2022
b9e8f4c
Merge remote-tracking branch 'origin/patch' into SAM_994
sjanzou May 13, 2022
4e2784a
fix broken export config on Windows
sjanzou May 13, 2022
9b2e6e4
Updated test results for branch SAM_994 for Github Actions
sjanzou May 14, 2022
93a3f66
Update to handle analysis period in widgets in DataExchange
sjanzou May 14, 2022
5a67e56
Fix saving and loading issue 994
sjanzou May 15, 2022
71f2e04
Update SAM to handle analysis period dependent widget updating
sjanzou May 16, 2022
c05c395
Fix issue 994 and reset when analysis periods changes
sjanzou May 16, 2022
806c4c3
Merge branch 'patch' into SAM_994
sjanzou May 20, 2022
7c1f585
Fix merge conflicts after Github merge
sjanzou May 20, 2022
acc7f2c
Remove all 'AnalysisPeriod' property settings from callbacks
sjanzou May 20, 2022
56b9912
Update DataLifetimeMatrix widget for changed analysis period
sjanzou May 20, 2022
34fbb1d
Message box for merchant plant analysis period change
cpaulgilman May 20, 2022
96fc59b
Merge branch 'patch' into SAM_994
sjanzou May 21, 2022
123f467
Work on handling multiple analysis period changes per 1041
sjanzou May 21, 2022
b75deeb
Rewrite analysis period changing to handle at variable level
sjanzou May 22, 2022
5244c24
Add analysis period old value for case dependent updates of analysis …
sjanzou May 23, 2022
39a1b22
Merge remote-tracking branch 'origin/patch' into SAM_994
sjanzou May 24, 2022
747a4ab
Updates to go with ssc pull request 822
sjanzou May 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Expand Up @@ -10,12 +10,12 @@
"BatterySystem": {
"batt_ac_dc_efficiency": 96,
"batt_ac_or_dc": 1,
"batt_computed_bank_capacity": 4000,
"batt_computed_bank_capacity": 20000,
"batt_computed_series": 139,
"batt_computed_strings": 2498,
"batt_current_charge_max": 1998.4,
"batt_computed_strings": 12490,
"batt_current_charge_max": 19984,
"batt_current_choice": 0,
"batt_current_discharge_max": 1998.4,
"batt_current_discharge_max": 19984,
"batt_dc_ac_efficiency": 96,
"batt_dc_dc_efficiency": 99,
"batt_inverter_efficiency_cutoff": 90,
Expand All @@ -24,16 +24,16 @@
"batt_losses_charging": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000],
"batt_losses_discharging": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000],
"batt_losses_idle": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000],
"batt_mass": 39603.9,
"batt_mass": 198020,
"batt_meter_position": 1,
"batt_power_charge_max_kwac": 1041.67,
"batt_power_charge_max_kwdc": 999.999,
"batt_power_discharge_max_kwac": 959.999,
"batt_power_discharge_max_kwdc": 999.999,
"batt_power_charge_max_kwac": 10416.7,
"batt_power_charge_max_kwdc": 9999.99,
"batt_power_discharge_max_kwac": 9599.99,
"batt_power_discharge_max_kwdc": 9999.99,
"batt_replacement_capacity": 50,
"batt_replacement_option": 1,
"batt_replacement_schedule_percent": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000],
"batt_surface_area": 89.0141,
"batt_surface_area": 1500,
"en_batt": 1,
"en_standalone_batt": 0
},
Expand All @@ -42,15 +42,15 @@
"Load": {
},
"BatteryCell": {
"LeadAcid_q10_computed": 7434.05,
"LeadAcid_q20_computed": 7993.6,
"LeadAcid_qn_computed": 4796.16,
"LeadAcid_q10_computed": 37170.2,
"LeadAcid_q20_computed": 39968,
"LeadAcid_qn_computed": 23980.8,
"LeadAcid_tn": 1,
"batt_C_rate": 0.2,
"batt_Cp": 1500,
"batt_Qexp": 2.584,
"batt_Qfull": 3.2,
"batt_Qfull_flow": 7993.6,
"batt_Qfull_flow": 39968,
"batt_Qnom": 3.126,
"batt_Vcut": 2.772,
"batt_Vexp": 3.53,
Expand Down
Expand Up @@ -33,7 +33,7 @@
"batt_replacement_capacity": 50,
"batt_replacement_option": 1,
"batt_replacement_schedule_percent": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000],
"batt_surface_area": 1364.25,
"batt_surface_area": 18000,
"en_batt": 1,
"en_standalone_batt": 1
},
Expand Down Expand Up @@ -219324,7 +219324,7 @@
"ur_nm_yearend_sell_rate": 0,
"ur_ts_buy_rate": [0.000000],
"ur_ts_sell_rate": [0.000000],
"ur_yearzero_usage_peaks": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000]
"ur_yearzero_usage_peaks": [234.676000, 173.422000, 172.007000, 191.434000, 198.295000, 236.469000, 274.231000, 260.336000, 226.751000, 185.123000, 156.200000, 184.050000]
},
"GridLimits": {
"enable_interconnection_limit": 0,
Expand Down
Expand Up @@ -10,12 +10,12 @@
"BatterySystem": {
"batt_ac_dc_efficiency": 96,
"batt_ac_or_dc": 1,
"batt_computed_bank_capacity": 4000,
"batt_computed_bank_capacity": 240000,
"batt_computed_series": 139,
"batt_computed_strings": 2498,
"batt_current_charge_max": 1998.4,
"batt_computed_strings": 149880,
"batt_current_charge_max": 119904,
"batt_current_choice": 1,
"batt_current_discharge_max": 1998.4,
"batt_current_discharge_max": 119904,
"batt_dc_ac_efficiency": 96,
"batt_dc_dc_efficiency": 99,
"batt_inverter_efficiency_cutoff": 90,
Expand All @@ -24,16 +24,16 @@
"batt_losses_charging": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000],
"batt_losses_discharging": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000],
"batt_losses_idle": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000],
"batt_mass": 39603.9,
"batt_mass": 2.37624e+06,
"batt_meter_position": 1,
"batt_power_charge_max_kwac": 1041.67,
"batt_power_charge_max_kwdc": 999.999,
"batt_power_discharge_max_kwac": 959.999,
"batt_power_discharge_max_kwdc": 999.999,
"batt_power_charge_max_kwac": 62500,
"batt_power_charge_max_kwdc": 60000,
"batt_power_discharge_max_kwac": 57600,
"batt_power_discharge_max_kwdc": 60000,
"batt_replacement_capacity": 50,
"batt_replacement_option": 1,
"batt_replacement_schedule_percent": [0.000000],
"batt_surface_area": 89.0141,
"batt_surface_area": 18000,
"en_batt": 1,
"en_standalone_batt": 1
},
Expand All @@ -42,15 +42,15 @@
"Load": {
},
"BatteryCell": {
"LeadAcid_q10_computed": 7434.05,
"LeadAcid_q20_computed": 7993.6,
"LeadAcid_qn_computed": 4796.16,
"LeadAcid_q10_computed": 446043,
"LeadAcid_q20_computed": 479616,
"LeadAcid_qn_computed": 287770,
"LeadAcid_tn": 1,
"batt_C_rate": 0.2,
"batt_Cp": 1500,
"batt_Qexp": 2.584,
"batt_Qfull": 3.2,
"batt_Qfull_flow": 7993.6,
"batt_Qfull_flow": 479616,
"batt_Qnom": 3.126,
"batt_Vcut": 2.772,
"batt_Vexp": 3.53,
Expand Down Expand Up @@ -322,7 +322,7 @@
"ur_nm_yearend_sell_rate": 0,
"ur_ts_buy_rate": [0.000000],
"ur_ts_sell_rate": [0.000000],
"ur_yearzero_usage_peaks": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000]
"ur_yearzero_usage_peaks": [234.676000, 173.422000, 172.007000, 191.434000, 198.295000, 236.469000, 274.231000, 260.336000, 226.751000, 185.123000, 156.200000, 184.050000]
},
"GridLimits": {
"enable_interconnection_limit": 0,
Expand Down
Expand Up @@ -14,7 +14,7 @@
"real_discount_rate": 6.4,
"salvage_percentage": 0,
"state_tax_rate": [7.000000],
"system_capacity": 498.72
"system_capacity": 499.96
},
"SystemCosts": {
"om_capacity": [16.000000],
Expand All @@ -23,7 +23,7 @@
"om_fixed_escal": 0,
"om_production": [0.000000],
"om_production_escal": 0,
"total_installed_cost": 857424
"total_installed_cost": 859557
},
"LandLease": {
},
Expand Down
Expand Up @@ -25,7 +25,7 @@
"om_fixed_escal": 0,
"om_production": [0.000000],
"om_production_escal": 0,
"total_installed_cost": 10886
"total_installed_cost": 17417.6
},
"LandLease": {
},
Expand Down
Expand Up @@ -48,7 +48,7 @@
"total_installed_cost": 2.05529e+06
},
"LandLease": {
"land_area": 6.50277,
"land_area": 18.7859,
"om_land_lease": [0.000000],
"om_land_lease_escal": 0
},
Expand Down
Expand Up @@ -7,7 +7,7 @@
"heat_rate": 10,
"spec_mode": 0,
"system_capacity": 20000,
"user_capacity_factor": 43.6
"user_capacity_factor": 20
},
"Lifetime": {
"analysis_period": 25,
Expand Down
Expand Up @@ -7,7 +7,7 @@
"heat_rate": 10,
"spec_mode": 0,
"system_capacity": 20000,
"user_capacity_factor": 43.6
"user_capacity_factor": 20
},
"Lifetime": {
"analysis_period": 25,
Expand Down
Expand Up @@ -7,7 +7,7 @@
"heat_rate": 10,
"spec_mode": 0,
"system_capacity": 100000,
"user_capacity_factor": 100
"user_capacity_factor": 90
},
"Lifetime": {
"analysis_period": 25,
Expand Down
Expand Up @@ -26,16 +26,16 @@
"module_temp_coeff": -0.15
},
"InverterCECDatabase": {
"inv_snl_c0": -5.94331e-08,
"inv_snl_c1": 4.3e-05,
"inv_snl_c2": 0.001046,
"inv_snl_c3": 0.000357,
"inv_snl_paco": 333000,
"inv_snl_pdco": 342459,
"inv_snl_pnt": 99.9,
"inv_snl_pso": 1161.53,
"inv_snl_vdcmax": 960,
"inv_snl_vdco": 740
"inv_snl_c0": -1.40704e-08,
"inv_snl_c1": 6.34566e-06,
"inv_snl_c2": 0.00155414,
"inv_snl_c3": -0.000271668,
"inv_snl_paco": 753200,
"inv_snl_pdco": 777216,
"inv_snl_pnt": 122.55,
"inv_snl_pso": 3714.14,
"inv_snl_vdcmax": 820,
"inv_snl_vdco": 615
},
"HCPVArray": {
"array_ac_wiring_loss": 0.99,
Expand All @@ -45,7 +45,7 @@
"array_enable_azalt_sf": 0,
"array_modules_per_tracker": 150,
"array_monthly_soiling": [0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000],
"array_num_inverters": 4,
"array_num_inverters": 2,
"array_num_trackers": 20,
"array_rlim_az_max": 310,
"array_rlim_az_min": 50,
Expand Down
Expand Up @@ -26,16 +26,16 @@
"module_temp_coeff": -0.15
},
"InverterCECDatabase": {
"inv_snl_c0": -5.94331e-08,
"inv_snl_c1": 4.3e-05,
"inv_snl_c2": 0.001046,
"inv_snl_c3": 0.000357,
"inv_snl_paco": 333000,
"inv_snl_pdco": 342459,
"inv_snl_pnt": 99.9,
"inv_snl_pso": 1161.53,
"inv_snl_vdcmax": 960,
"inv_snl_vdco": 740
"inv_snl_c0": -1.40704e-08,
"inv_snl_c1": 6.34566e-06,
"inv_snl_c2": 0.00155414,
"inv_snl_c3": -0.000271668,
"inv_snl_paco": 753200,
"inv_snl_pdco": 777216,
"inv_snl_pnt": 122.55,
"inv_snl_pso": 3714.14,
"inv_snl_vdcmax": 820,
"inv_snl_vdco": 615
},
"HCPVArray": {
"array_ac_wiring_loss": 0.99,
Expand All @@ -45,7 +45,7 @@
"array_enable_azalt_sf": 0,
"array_modules_per_tracker": 150,
"array_monthly_soiling": [0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000, 0.950000],
"array_num_inverters": 4,
"array_num_inverters": 2,
"array_num_trackers": 20,
"array_rlim_az_max": 310,
"array_rlim_az_min": 50,
Expand Down
Expand Up @@ -39,7 +39,7 @@
"reserves_interest": 1.25,
"salvage_percentage": 0,
"state_tax_rate": [7.000000],
"system_capacity": 498.72,
"system_capacity": 499.96,
"term_int_rate": 4,
"term_tenor": 18
},
Expand All @@ -50,7 +50,7 @@
"om_fixed_escal": 0,
"om_production": [0.000000],
"om_production_escal": 0,
"total_installed_cost": 857424
"total_installed_cost": 859557
},
"LandLease": {
},
Expand Down Expand Up @@ -233,7 +233,7 @@
},
"SystemOutput": {
"degradation": [0.000000],
"system_capacity": 498.72
"system_capacity": 499.96
},
"Moratorium": {
"loan_moratorium": 0
Expand Down Expand Up @@ -283,7 +283,7 @@
"system_use_lifetime_output": 1
},
"ConstructionFinancing": {
"construction_financing_cost": 16076.7
"construction_financing_cost": 16116.7
},
"BatterySystem": {
"en_batt": 0
Expand Down
Expand Up @@ -283,7 +283,7 @@
"system_use_lifetime_output": 0
},
"ConstructionFinancing": {
"construction_financing_cost": 18567.9
"construction_financing_cost": 17407.4
},
"BatterySystem": {
},
Expand Down
Expand Up @@ -3,7 +3,7 @@
"FinancialParameters": {
"analysis_period": 25,
"batt_salvage_percentage": 0,
"construction_financing_cost": 3.6457e+06,
"construction_financing_cost": 3.75339e+06,
"cost_debt_closing": 450000,
"cost_debt_fee": 2.75,
"cost_other_financing": 0,
Expand Down Expand Up @@ -52,7 +52,7 @@
"om_opt_fuel_2_usage": 0,
"om_production": [4.000000],
"om_production_escal": 0,
"total_installed_cost": 1.82285e+08
"total_installed_cost": 2.00181e+08
},
"LandLease": {
},
Expand Down
Expand Up @@ -3,7 +3,7 @@
"FinancialParameters": {
"analysis_period": 25,
"batt_salvage_percentage": 0,
"construction_financing_cost": 1.87263e+07,
"construction_financing_cost": 1.68537e+07,
"cost_debt_closing": 450000,
"cost_debt_fee": 2.75,
"cost_other_financing": 0,
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"LandLease": {
"land_area": 347.641,
"om_land_lease": [100.000000],
"om_land_lease": [0.000000],
"om_land_lease_escal": 0
},
"TaxCreditIncentives": {
Expand Down
Expand Up @@ -3,7 +3,7 @@
"FinancialParameters": {
"analysis_period": 25,
"batt_salvage_percentage": 0,
"construction_financing_cost": 2.67044e+07,
"construction_financing_cost": 2.4034e+07,
"cost_debt_closing": 450000,
"cost_debt_fee": 2.75,
"cost_other_financing": 0,
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"LandLease": {
"land_area": 910.358,
"om_land_lease": [100.000000],
"om_land_lease": [0.000000],
"om_land_lease_escal": 0
},
"TaxCreditIncentives": {
Expand Down