-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sam 1869 battery adjust losses (#1241)
* Add a few required variables. Need to make a lot of decisions to use these * Implement adjust losses within the capacity model. Not yet fully hooked up to cmod battery * mid-stream updates for power losses * First cut change of definition for powerflow AC losses to match new convention (PV only applies to PV when AC connected * Add adjust losses to batt stateful, clean up cmod batt to fix seh exception (still doesn't relay losses properly * Test updates for new capacity and availability loss conventions * First cut at availability losses testing. Revealed that DC battery still has a problem with a giant resistor that doesn't exist * Add automated and manual dispatch tests, add current restriction to availability losses * Pass data through all compute modules to losses and powerflow code * Add fallback code if batt_adjust is not defined * Refactor max power and current to be functions instead of calculating in each individual location * Fix typo in manual dispatch power vs current * Run adjustment code based on which variables are actually available * Improved error handling for battery adjust losses * Pass analysis period to haf setup function * Use correct nyears to account for system lifetime mode == 0 * Add output for total performance adjustment loss at a given timestep * Make ssc variable labels consistent with UI forms, help, and the losses page * bring cmod battery in line with name chage
- Loading branch information
Showing
33 changed files
with
992 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.