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

Fix determination of qDotIntoGrid in HpModel.calcState() in case heatStorage should feed the thermal grid #1165

Open
danielfeismann opened this issue Feb 11, 2025 · 0 comments · May be fixed by #1166
Assignees
Labels
bug Something isn't working

Comments

@danielfeismann
Copy link
Member

danielfeismann commented Feb 11, 2025

https://github.com/ie3-institute/simona/blob/dev/src/main/scala/edu/ie3/simona/model/participant/HpModel.scala#L236

lastStateStorageQDot == zeroKW && (demandWrapper.houseDemand.hasRequiredDemand || demandWrapper.heatStorageDemand.hasRequiredDemand)

The second part of the OR condition does not really make sense, instead we should check if the storage isn't empty.

currentEnergyOfThermalStorage > zeroKWh && demandWrapper.houseDemand.hasAdditionalDemand

@danielfeismann danielfeismann added the bug Something isn't working label Feb 11, 2025
@danielfeismann danielfeismann self-assigned this Feb 11, 2025
@danielfeismann danielfeismann changed the title Fix determination of qDotIntoGrid in HpModell.calcState() in case heatStorage should feed the thermal grid Fix determination of qDotIntoGrid in HpModel.calcState() in case heatStorage should feed the thermal grid Feb 11, 2025
danielfeismann added a commit that referenced this issue Feb 17, 2025
danielfeismann added a commit that referenced this issue Feb 17, 2025
danielfeismann added a commit that referenced this issue Feb 18, 2025
danielfeismann added a commit that referenced this issue Feb 18, 2025
danielfeismann added a commit that referenced this issue Feb 19, 2025
danielfeismann added a commit that referenced this issue Feb 19, 2025
danielfeismann added a commit that referenced this issue Feb 19, 2025
…toGrid' into df/#1165-determination-of-qDotIntoGrid

# Conflicts:
#	CHANGELOG.md
danielfeismann added a commit that referenced this issue Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant