Repository navigation
Feat/fix boiler high tempfix: remove ValueError check for high outside temp in boiler simulation (#145) - #204
Open
sunnykumarabc01-dev wants to merge 3 commits into
Conversation
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #145
Fixes Boiler Fails with High Outside Air Temp #145
Context & Discussion Analysis
During hot weather conditions (such as Oct 6, 2024), the boiler simulation previously crashed due to strict checks when the outdoor air temperature exceeded the hot water temperature. Based on repository discussions, three architectural approaches were evaluated:
Option 1: Remove assertion/error and allow negative dissipation (Recommended & Implemented)
outside_temp > water_temp, accurately modeling net heat gain from the environment (ambient pre-heating).Option 2: Clamp to zero (Clamp to Zero)
0.0ifoutside_temp > water_temp.Option 3: Make it configurable (
allow_ambient_heatingboolean)We chose Option 1 because it aligns with true thermodynamic principles and cleanly resolves the simulation crash without bloated configuration flags.
Summary of Changes:
ValueErrorcheck incompute_thermal_dissipation_rateinsidesmart_control/simulator/boiler.pywhenoutside_temp > water_temp.boiler_test.pyand verified that all 36 unit tests pass successfully.Acknowledgements