Skip to content

Commit

Permalink
Merge pull request #881 from ie3-institute/df/#880-tempCheck
Browse files Browse the repository at this point in the history
Harmonised both methods that check the inner temperature of thermal house
  • Loading branch information
sebastian-peter authored Aug 13, 2024
2 parents 24100a7 + fd605ab commit f6f248d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Rewrote ThermalHouseTest from groovy to scala [#646](https://github.com/ie3-institute/simona/issues/646)
- Updated dependabot reviewers [#888](https://github.com/ie3-institute/simona/issues/888)
- Merged `HpModelTestData` with `HpTestData` to `HpInputTestData` [#872](https://github.com/ie3-institute/simona/issues/872)
- Harmonised both methods that check the inner temperature of thermal house against the boundaries [#880](https://github.com/ie3-institute/simona/issues/880)

### Fixed
- Removed a repeated line in the documentation of vn_simona config [#658](https://github.com/ie3-institute/simona/issues/658)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@ final case class ThermalHouse(
* true, if inner temperature is too high
*/
def isInnerTemperatureTooHigh(
innerTemperature: Temperature
innerTemperature: Temperature,
boundaryTemperature: Temperature = upperBoundaryTemperature,
): Boolean =
innerTemperature > Kelvin(
upperBoundaryTemperature.toKelvinScale - temperatureTolerance.toKelvinScale
boundaryTemperature.toKelvinScale - temperatureTolerance.toKelvinScale
)

/** Check if inner temperature is lower than preferred minimum temperature
Expand Down

0 comments on commit f6f248d

Please sign in to comment.