Skip to content

Fix battery self-discharge implementation - #165

Open
stuenergy wants to merge 1 commit into
OnSSET:masterfrom
stuenergy:fix-battery-self-discharge
Open

Fix battery self-discharge implementation#165
stuenergy wants to merge 1 commit into
OnSSET:masterfrom
stuenergy:fix-battery-self-discharge

Conversation

@stuenergy

Copy link
Copy Markdown

This PR fixes the battery self-discharge implementation in hour_simulation (for both "hybrids.py" and "hybrids_wind.py").

Previously, the self-discharge was added to battery_use, but the battery state of charge (soc) was not updated because the line
soc - 0.0002 * soc
had no effect.

This changes the implementation to:
soc -= 0.0002 * soc
so that battery self-discharge is correctly applied to the state of charge.

This issue was discussed and confirmed by @AndreasSahlberg on the OnSSET discussion forum on May, 6th.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant