-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add battery O&M and self-discharge #354
Open
lixiangk1
wants to merge
19
commits into
develop
Choose a base branch
from
battery_om
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5b04b56
Add per kW and per kWh installed capacity based battery O&M
lixiangk1 8627a8d
Add O&M financials to ElectricStorage results
lixiangk1 564365f
Add battery self discharge, defaulted to zero
lixiangk1 ae61517
Merge branch 'develop' into battery_om
lixiangk1 3e1a3d6
Merge branch 'develop' into battery_om
lixiangk1 5542a5d
Merge branch 'develop' into battery_om
lixiangk1 c2f3c5d
Add battery self-discharge to MPC model
lixiangk1 37e3083
Enable BESS O&M for multiple sites
lixiangk1 9ee741e
Add code comments and tests for battery O&M and self-discharge; updat…
lixiangk1 e2a0cac
Update code comments
lixiangk1 66e848a
Merge branch 'develop' into battery_om
adfarth 53014bc
Merge branch 'develop' into battery_om
lixiangk1 14f3ced
Update storage self-discharge input from daily to per timestep
lixiangk1 a79ae20
Merge branch 'develop' into battery_om
lixiangk1 5eea67e
Add capacity-based self-discharge, update tests
lixiangk1 3a577e4
Merge branch 'develop' into battery_om
lixiangk1 1ff7a31
Update thermal decay variables to match electric storage self-discharge
lixiangk1 d42ae3a
Merge branch 'develop' into battery_om
lixiangk1 78793c0
Remove extra minus sign
lixiangk1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lixiangk1 could you add a little explanatory text here for this input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Did you mean add notes in the code to better define this term or just explain it in the pull request?
The input is a loss term for battery self-discharge, entered as a daily fraction for how much of the stored kWh is leaked from the battery (e.g., 3% of the the kWh stored in the battery is self-discharged per day). This is then modeled as a per timestep loss term where eg. 0.03/24/timesteps_per_hour * dvStoredEnergy is subtracted from dvStoredEnergy at every timestep.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean adding a comment "# explanation" in the code here so that it appears in the REopt.jl documentation (https://nrel.github.io/REopt.jl/dev/reopt/inputs/#ElectricStorage). We haven't really done this for ElectricStorage inputs but for all of the other techs we've been including some help text around the inputs. If you could do the same for the O&M costs that would be great! Maybe with a note about not double-counting replacement and O&M costs.