You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `oldvalue()` to load simple battery inputs because those inputs are not in new detailed config.
Add message to variables that are copied from old simple battery inputs.
Set battery size units to AC to be consistent with simple battery.
Replace `batt_bank_duration` with `batt_bank_size_ui` (note confusing widget `batt_bank_duration` was hidden under `batt_bank_size_UI`in UI)
Revise message text.
message('We converted PVWatts to run in the GUI in lifetime mode by default.', 'warning');
64
-
old_degradation = value('degradation');
65
-
66
-
value('dc_degradation', old_degradation, 'Update degradation from AC to DC degradation');
63
+
message('PVWatts now runs in lifetime mode so that time series outputs are over the analysis period instead of one year.');
64
+
message('PVWatts degradation is now modeled as DC degradation instead of AC degradation. DC degradation is an annual reduction in the DC output of the array instead of AC output of the system.', 'warning');
65
+
old_degradation = oldvalue('degradation');
66
+
67
+
value('dc_degradation', old_degradation, 'New DC degradation on DC Degradation page set to old AC degradation value from AC Degradation page.');
67
68
}
68
69
if (cfg.tech == 'PVWatts Battery') {
69
-
message('Converting simple battery to detailed battery for configurations paired with PVWatts.', 'warning');
message('PVWatts Battery configurations now use the detailed battery inputs to allow for modeling a full range of battery applications instead of only behind-the-meter applications with limited dispatch options.', 'warning');
message("DEBUG old_dispatch: " + old_dispatch + " chem: " + old_chem, 'error'); // TO DO delete
77
+
message("DEBUG old_kwh: " + old_kwh + " old_kw: " + old_kw, 'error'); // TO DO delete
89
78
79
+
// inputs from simple battery inputs on old PVWatts-Battery System Design page with explanation of where to find inputs
80
+
value('batt_bank_power', old_kw, 'Desired bank power (kWac) on Battery Cell and System page set to old battery power (kWac).');
81
+
value('batt_bank_size_ui', old_kwh, 'Desired bank capacity (kWhac) on Battery Cell and System page capacity set to old battery capacity kWhac).');
82
+
if (old_chem == 0) {
83
+
// Lead Acid
84
+
value('batt_type', 0, 'New battery type on Battery Cell and System page set to Lead Acid: Flooded from old battery chemistry Lead Acid.');
85
+
}
86
+
else {
87
+
// Li-ion NMC
88
+
value('batt_type', 8, 'New battery type on Battery Cell and System page set to Lithium-ion: NMC/Graphite from old battery chemistry Lithium Ion.' );
89
+
}
90
90
if (old_dispatch == 0 || old_dispatch == 1) {
91
-
value('batt_dispatch_choice_ui', 0);
91
+
value('batt_dispatch_choice_ui', 0, 'Dispatch option on Battery Dispatch page set to Peak Shaving from old Peak Shaving (look ahead) or Peak shaving (look behind) option.');
value('batt_dispatch_choice_ui', old_dispatch, 'Dispatch option on Battery Dispatch page set to Input Battery Power Targets from old Custom Dispatch option.');
99
103
value('batt_dispatch_choice', old_dispatch);
100
-
101
104
}
102
-
if (old_chem == 0) {
103
-
// Lead Acid
104
-
value('batt_type', 0);
105
+
106
+
value('batt_duration_choice', 0); // sizing choice to kWh (not hours of storage)
107
+
value('batt_bank_size_dc_ac', 1); // set sizing units to AC to be consistent with simple battery
0 commit comments