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

Introducing energy demand for warm water heating #865

Draft
wants to merge 354 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
354 commits
Select commit Hold shift + click to select a range
18356c3
adapt tests of ThermalGridWith...
danielfeismann Aug 14, 2024
fc93131
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Aug 14, 2024
30adf0f
one more adapt tests of ThermalGridWith
danielfeismann Aug 14, 2024
321c1d6
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Aug 15, 2024
54a64d4
set storedEnergy at startingState of DomesticHotWaterStorage to full
danielfeismann Aug 15, 2024
df13f75
adapt tests to full DomesticHotWaterStorage in startingState
danielfeismann Aug 15, 2024
757683f
fix tests after full DomesticHotWaterStorage in startingState
danielfeismann Aug 15, 2024
c6e79c7
rollback unnecessary change in HpModelSpec
danielfeismann Aug 16, 2024
fd31d9c
Revert "rollback unnecessary change in HpModelSpec"
danielfeismann Aug 16, 2024
532f00d
adapt energyDemand calculation of domestic hot water storage
danielfeismann Aug 16, 2024
7b63ecb
removal of unused method
danielfeismann Aug 16, 2024
efb73b4
adapt tests to domestic hot water storage
danielfeismann Aug 16, 2024
15e8f63
fmt
danielfeismann Aug 16, 2024
cdfc915
fmt
danielfeismann Aug 16, 2024
907a063
Revert "fmt"
danielfeismann Aug 16, 2024
7d1e400
fmt
danielfeismann Aug 16, 2024
3f51f34
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Aug 16, 2024
0e5ab19
fix tests of ThermalGridWithHouseOnlySpec
danielfeismann Aug 16, 2024
3103427
harmonise variables
danielfeismann Aug 16, 2024
82fda3d
fmt
danielfeismann Aug 19, 2024
26b3c74
fix edge case of energyDemandWater
danielfeismann Aug 19, 2024
bf7560d
concise version of enrgyDemandDomesticHotWater
danielfeismann Aug 19, 2024
b48e805
fix test solely heat up the house for ThermalGridWithHouseOnlySpec
danielfeismann Aug 19, 2024
10a78b1
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Aug 19, 2024
9860856
enhancing tests of thermalGridWith... to check as well the tick after…
danielfeismann Aug 19, 2024
a11f4a3
correct name of variable
danielfeismann Aug 19, 2024
62df4db
Merge branch 'dev' into df/#856-tap-water
danielfeismann Aug 19, 2024
bd2d3f8
fix HpAgentModelCalculationSpec
danielfeismann Aug 20, 2024
e770997
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Aug 20, 2024
0d2e353
Merge branch 'refs/heads/dev' into df/#878-thermalGridIT
danielfeismann Aug 20, 2024
031ebb8
add lastAmbientTemperature to energyDemandAndUpdateState
danielfeismann Aug 20, 2024
d44fc85
change thermalDemands to boolean and introduce hp isRunning to therma…
danielfeismann Aug 20, 2024
bca8fa3
missing thermalDemand changes and refactor logic for handling infeed …
danielfeismann Aug 20, 2024
bac1375
provide lastAmbientTemperature to determineState
danielfeismann Aug 20, 2024
db0aa48
provide lastAmbientTemperature as well to tests
danielfeismann Aug 20, 2024
7812aeb
fmt
danielfeismann Aug 20, 2024
0c36ce5
update ThermalGridIT to last changes
danielfeismann Aug 20, 2024
c584f84
Merge branch 'refs/heads/df/#878-thermalGridIT' into df/#856-tap-water
danielfeismann Aug 20, 2024
be1b45a
fix conflicts after merging
danielfeismann Aug 20, 2024
188418f
rollback unnecessary change
danielfeismann Aug 21, 2024
3405e78
adapt EmAgentIT
danielfeismann Aug 21, 2024
6c9e988
Merge branch 'refs/heads/dev' into df/#827_fix_hp_storage_refill
danielfeismann Aug 21, 2024
9da307e
remove unneccessary imports
danielfeismann Aug 21, 2024
feefb09
Merge remote-tracking branch 'refs/remotes/origin/df/#729-additional-…
danielfeismann Aug 21, 2024
49bb285
cherrypick EmAgentIT from ThermalGridIT pull request
danielfeismann Aug 21, 2024
a6b5031
start fixing determineFlexOptions
danielfeismann Aug 21, 2024
bd92823
start adapting HpModelSpec
danielfeismann Aug 21, 2024
fe7f1b2
Merge remote-tracking branch 'refs/remotes/origin/df/#729-additional-…
danielfeismann Aug 21, 2024
95d4907
fix merge conflict
danielfeismann Aug 21, 2024
c1891a0
remove storage min lvl in HpInputTestData
danielfeismann Aug 21, 2024
0886111
move operation conditions of hp into operatesInNextState and adapt Hp…
danielfeismann Aug 21, 2024
441dfdb
adapt condition for hasAdditionalDemand
danielfeismann Aug 21, 2024
8ee3b77
refactor ThermalEnergyDemand
danielfeismann Aug 21, 2024
ced3b55
fmt
danielfeismann Aug 21, 2024
b07c1f8
Revert "adapt condition for hasAdditionalDemand"
danielfeismann Aug 21, 2024
3696479
Merge remote-tracking branch 'refs/remotes/origin/df/#917-Refactor-Th…
danielfeismann Aug 21, 2024
8321411
remove broken test
danielfeismann Aug 21, 2024
3ed4fed
remove demand of heat storage from condtion for checking when hp can …
danielfeismann Aug 21, 2024
a4895ae
fix HpModelSpec
danielfeismann Aug 21, 2024
1f829e6
codacy
danielfeismann Aug 21, 2024
6dd24a7
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Aug 22, 2024
d2c433b
Merge branch 'refs/heads/dev' into df/#878-thermalGridIT
danielfeismann Aug 22, 2024
25de224
Merge remote-tracking branch 'refs/remotes/origin/df/#827_fix_hp_stor…
danielfeismann Aug 22, 2024
882d8fb
adaptions after merging thermal storage refill PR
danielfeismann Aug 22, 2024
7455b80
Merge branch 'refs/heads/df/#878-thermalGridIT' into df/#856-tap-water
danielfeismann Aug 22, 2024
38f84e4
adaptions after merging thermal storage refill PR
danielfeismann Aug 22, 2024
ebdc0dc
fmt
danielfeismann Aug 22, 2024
d03ad49
adapt HpModel and HpModelSpec to domestic hot water storage
danielfeismann Aug 22, 2024
606893f
format and code quality
danielfeismann Aug 22, 2024
8466c48
fmt
danielfeismann Aug 23, 2024
744154c
add domesticHotWaterStorageInput to HpInputTestData
danielfeismann Aug 23, 2024
07e5825
Merge branch 'refs/heads/dev' into df/#878-thermalGridIT
danielfeismann Aug 24, 2024
baabf85
Merge remote-tracking branch 'refs/remotes/origin/df/#926-Fix-determi…
danielfeismann Aug 24, 2024
7659750
Merge remote-tracking branch 'refs/remotes/origin/df/#924-ThermalStor…
danielfeismann Aug 24, 2024
0b1868d
Merge remote-tracking branch 'refs/remotes/origin/df/#922-Fix-activat…
danielfeismann Aug 24, 2024
e2d7133
Merge remote-tracking branch 'refs/remotes/origin/df/#928-Refactor-Th…
danielfeismann Aug 24, 2024
64a67ec
Refactoring of ThermalGrid.handleInfeed to fix thermal storage rechar…
danielfeismann Aug 24, 2024
1d17e18
small changes and fmt
danielfeismann Aug 24, 2024
d815763
fmt
danielfeismann Aug 24, 2024
80b88af
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Aug 26, 2024
bcc486e
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Aug 26, 2024
4ba4dff
remove type specs for testCases table
danielfeismann Aug 26, 2024
395ce15
refactor handleInfeed
danielfeismann Aug 26, 2024
748d8f3
scalaDoc, fmt, renamings etc
danielfeismann Aug 26, 2024
d467581
refactor determineMostRecentThreshold
danielfeismann Aug 26, 2024
52f4342
fix handleInfeedStorage
danielfeismann Aug 26, 2024
f120f54
fmt
danielfeismann Aug 26, 2024
a9c267e
remove redundant headOption
danielfeismann Aug 26, 2024
2f35b84
fix tests ThermalGridWith..
danielfeismann Aug 26, 2024
4d35214
adapt test since the conditions doesnt realy make sense
danielfeismann Aug 26, 2024
d6b2b3a
harmonise InputTestData
danielfeismann Aug 26, 2024
9d69563
enrich thermalResults by results of domestic hot water storage
danielfeismann Aug 26, 2024
6e72130
fmt
danielfeismann Aug 26, 2024
9a287f6
change to thermalDemands in tests
danielfeismann Aug 27, 2024
9538580
change to thermalDemands in HpModel and coresponting refactoring in T…
danielfeismann Aug 27, 2024
88a7b8e
format and coding styles
danielfeismann Aug 27, 2024
a14178e
updating ThermalGridIT to include domestic hot water storage first part
danielfeismann Aug 27, 2024
0062712
typo
danielfeismann Aug 28, 2024
a38f814
refactor discharging power of domestic hot water storage to match pre…
danielfeismann Aug 28, 2024
91873b9
fmt
danielfeismann Aug 28, 2024
5ebc65d
Merge branch 'dev' into df/#878-thermalGridIT
danielfeismann Aug 29, 2024
6c5477a
fixing merge conflicts
danielfeismann Aug 29, 2024
bbe4c0a
remove changelog entry that is no longer valid
danielfeismann Aug 29, 2024
5e5b5c1
Merge branch 'refs/heads/dev' into df/#878-thermalGridIT
danielfeismann Aug 29, 2024
d5c0195
Merge remote-tracking branch 'origin/df/#878-thermalGridIT' into df/#…
danielfeismann Aug 29, 2024
cb34618
Merge branch 'refs/heads/dev' into df/#930-refactor-handleInfeed
danielfeismann Aug 29, 2024
6ae74f2
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Aug 29, 2024
994b7cc
fmt
danielfeismann Aug 29, 2024
18ff9b2
fixing some tests
danielfeismann Aug 29, 2024
9ce13f9
Merge branch 'refs/heads/dev' into df/#930-refactor-handleInfeed
danielfeismann Aug 29, 2024
0333902
Merge branch 'refs/heads/dev' into df/#878-thermalGridIT
danielfeismann Aug 29, 2024
a329610
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Aug 29, 2024
6559093
fixing more tests
danielfeismann Aug 29, 2024
10f9fba
fix calcuation of energy demand for hot water for the hours between t…
danielfeismann Aug 30, 2024
e2e2b9b
fix threshold calculation of domestic hot water storage
danielfeismann Aug 30, 2024
9aba960
use wildcard for unneccessary vals
danielfeismann Aug 30, 2024
d1e50c9
fixing tests
danielfeismann Aug 30, 2024
c0c2042
updating parts of ThermalGridIT
danielfeismann Aug 30, 2024
547534c
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Sep 13, 2024
7f46a28
update ThermalGridIT till tick 45000
danielfeismann Sep 13, 2024
5ab69b6
update rtd
danielfeismann Sep 15, 2024
7f2945c
declare demand for recharing domestic hot water storage below 20 perc…
danielfeismann Sep 16, 2024
e33796b
fix qDot for domestic hot water storage
danielfeismann Sep 16, 2024
221e389
fix ThermalGridIT
danielfeismann Sep 16, 2024
1573bcc
Merge branch 'refs/heads/dev' into df/#930-refactor-handleInfeed
danielfeismann Sep 16, 2024
abd820d
adapt comments
danielfeismann Sep 16, 2024
f8ac1ff
comments for remaining ticks in ThermalGridIT
danielfeismann Sep 17, 2024
199f7b9
fmt
danielfeismann Sep 17, 2024
eca2902
fix some tests
danielfeismann Sep 17, 2024
f915164
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Sep 17, 2024
e2b7cd1
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Sep 17, 2024
6b30a5d
fmt
danielfeismann Sep 17, 2024
355d765
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Sep 17, 2024
77fba08
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Sep 17, 2024
df2153a
adapt EmAgentIT
danielfeismann Sep 17, 2024
c1e37ee
Merge branch 'refs/heads/dev' into df/#930-refactor-handleInfeed
danielfeismann Sep 17, 2024
9c1334a
rollback change to fallback to latest weatherData
danielfeismann Sep 19, 2024
a45a7b1
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Sep 19, 2024
3df14e4
rollback change to fallback to latest weatherData
danielfeismann Sep 19, 2024
ae87f53
Merge branch 'refs/heads/dev' into df/#878-thermalGridIT
danielfeismann Sep 19, 2024
1d1355e
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Sep 26, 2024
350e904
Merge branch 'refs/heads/dev' into df/#878-thermalGridIT
danielfeismann Sep 26, 2024
47e4052
Merge branch 'refs/heads/dev' into df/#930-refactor-handleInfeed
danielfeismann Sep 26, 2024
e9a590f
Merge branch 'refs/heads/dev' into df/#878-thermalGridIT
danielfeismann Oct 1, 2024
de1b0c5
Merge branch 'refs/heads/dev' into df/#930-refactor-handleInfeed
danielfeismann Oct 1, 2024
fe470ca
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Oct 1, 2024
392d040
Merge branch 'refs/heads/dev' into df/#878-thermalGridIT
danielfeismann Oct 14, 2024
b6c596f
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Oct 28, 2024
e3807b8
Merge branch 'dev' into df/#878-thermalGridIT
danielfeismann Oct 29, 2024
2ed6f02
Merge branch 'df/#1008-thermalResultsFilter' into df/#878-thermalGridIT
danielfeismann Oct 29, 2024
5500119
rename lastTimeTick into tick and use updatedState for thermalResults
danielfeismann Oct 29, 2024
393d19f
make store of ValueStore non-private
danielfeismann Oct 29, 2024
099838a
adapt ThermalGridIT to results processed in the currentTick
danielfeismann Oct 29, 2024
0e28577
rollback changes at ThermalGrid.results()
danielfeismann Oct 29, 2024
611b701
override def getTimeKeysAfter in WeatherSourceWrapperSpec
danielfeismann Oct 30, 2024
ce64339
Merge branch 'refs/heads/dev' into df/#856-tap-water
danielfeismann Oct 30, 2024
9c742de
resolve merge conflicts in ThermalGrid
danielfeismann Oct 30, 2024
509b6db
fmt
danielfeismann Oct 30, 2024
c892eea
pick changes from pr 1009 to fix filter ThermalGridResults
danielfeismann Oct 30, 2024
a4e6fd4
fix for psdm changes on thermal storages
danielfeismann Oct 30, 2024
cfac4cc
fix after merging ThermalGrid
danielfeismann Oct 30, 2024
cc2f566
adapting ThermalGridIT to changes in thermal grid result calculation
danielfeismann Oct 30, 2024
e03d0ad
adapt scala doc of DomesticHotWaterStorage
danielfeismann Oct 30, 2024
f522c82
fix initial stored energy of DomesticHotWaterStorage
danielfeismann Oct 30, 2024
2bc339e
Merge branch 'dev' into df/#878-thermalGridIT
danielfeismann Nov 1, 2024
e1df392
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 1, 2024
de52f6e
Merge branch 'dev' into df/#856-tap-water
danielfeismann Nov 1, 2024
339a020
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 7, 2024
20664ab
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 13, 2024
165371d
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 14, 2024
ba6b581
Merge branch 'df/#928-Refactor-ThermalGird-energyDemand' into df/#930…
danielfeismann Nov 14, 2024
b40cfe0
Merge branch 'dev' into df/#878-thermalGridIT
danielfeismann Nov 14, 2024
d3357f6
Merge branch 'dev' into df/#856-tap-water
danielfeismann Nov 14, 2024
441359c
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 14, 2024
a669b5b
remove double entry in changelog
danielfeismann Nov 14, 2024
7884541
Revert "remove double entry in changelog"
danielfeismann Nov 14, 2024
86b3256
remove correct double entry in changelog
danielfeismann Nov 14, 2024
f4fa810
reintroduce demand booleans indicating demand when handle thermal infeed
danielfeismann Nov 14, 2024
963670c
add some scala doc
danielfeismann Nov 14, 2024
bfd633b
handle sonar code smell
danielfeismann Nov 14, 2024
9eee886
Revert "handle sonar code smell"
danielfeismann Nov 14, 2024
122cb69
handle sonar code smell
danielfeismann Nov 14, 2024
eba3b89
fmt
danielfeismann Nov 15, 2024
1f6311f
fix scala doc
danielfeismann Nov 15, 2024
95d0562
refactor demand booleans of thermal units into ThermalDemandIndicator…
danielfeismann Nov 15, 2024
f33fc1a
Merge branch 'dev' into df/#878-thermalGridIT
danielfeismann Nov 15, 2024
6b74778
Merge branch 'refs/heads/df/#930-refactor-handleInfeed' into df/#878-…
danielfeismann Nov 15, 2024
96a7dfb
fmt
danielfeismann Nov 15, 2024
b7ebbe2
Merge branch 'df/#934-thermalHouseResults' into df/#878-thermalGridIT
danielfeismann Nov 15, 2024
6631b67
remove comment from merge conflict
danielfeismann Nov 15, 2024
30e4318
Merge branch 'df/#1023-zeroKW-and-kWh-in-test' into df/#930-refactor-…
danielfeismann Nov 15, 2024
9fb1523
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 15, 2024
378f2f6
Merge branch 'df/#1023-zeroKW-and-kWh-in-test' into df/#856-tap-water
danielfeismann Nov 15, 2024
29dedaa
Merge branch 'df/#1023-zeroKW-and-kWh-in-test' into df/#856-tap-water
danielfeismann Nov 15, 2024
e5702c1
resolving merge conflict
danielfeismann Nov 15, 2024
ab42b3c
Merge branch 'dev' into df/#856-tap-water
danielfeismann Nov 15, 2024
94397ee
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 15, 2024
7341e10
remove unnecessary value
danielfeismann Nov 15, 2024
97b4a15
Merge branch 'dev' into df/#878-thermalGridIT
danielfeismann Nov 15, 2024
b69dd06
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 15, 2024
15f2f59
Merge branch 'dev' into df/#856-tap-water
danielfeismann Nov 15, 2024
98d7511
Merge branch 'dev' into df/#878-thermalGridIT
danielfeismann Nov 15, 2024
36ce30a
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 19, 2024
0d40632
Merge branch 'dev' into df/#878-thermalGridIT
danielfeismann Nov 19, 2024
05bebe4
Merge branch 'dev' into df/#878-thermalGridIT
danielfeismann Nov 19, 2024
aa2db68
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 19, 2024
41e2441
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 19, 2024
7292171
Merge branch 'dev' into df/#878-thermalGridIT
danielfeismann Nov 19, 2024
85c0fc1
Merge branch 'dev' into df/#856-tap-water
danielfeismann Nov 19, 2024
04f0207
fix import
danielfeismann Nov 21, 2024
d44e19f
fix thermal demand determination
danielfeismann Nov 21, 2024
a567d0b
simplify methods to compare temperatures
danielfeismann Nov 21, 2024
3cccc33
fmt
danielfeismann Nov 21, 2024
995818e
correct test cases of HpModelSpec
danielfeismann Nov 22, 2024
1b9375f
refactoring thermal demand indicators
danielfeismann Nov 22, 2024
be2452a
fix turnHpOn determination
danielfeismann Nov 22, 2024
1e25d3b
fix comment in HpModelSpec
danielfeismann Nov 22, 2024
135ea15
fix turnHpOn in HpModel
danielfeismann Nov 22, 2024
debae48
refactoring thermal demand indicators
danielfeismann Nov 22, 2024
a95a242
Merge branch 'refs/heads/dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 22, 2024
5c00a89
fix thermalPower determination in calcState of HpModel
danielfeismann Nov 22, 2024
cbd997e
fix EmAgentIT
danielfeismann Nov 22, 2024
a0e95af
Merge branch 'df/#930-refactor-handleInfeed' into df/#878-thermalGridIT
danielfeismann Nov 22, 2024
a07b626
also turn Hp on in case house has additional demand and the Hp was ru…
danielfeismann Nov 22, 2024
752f755
Merge branch 'df/#930-refactor-handleInfeed' into df/#878-thermalGridIT
danielfeismann Nov 22, 2024
7516d7b
fmt
danielfeismann Nov 22, 2024
31c73d9
fix handleInfeed of thermal energy
danielfeismann Nov 22, 2024
85594d3
correct direction of thermal power of thermal heat storage
danielfeismann Nov 22, 2024
391b49d
fix ThermalGridWithStorageOnlySpec test where putting energy into sto…
danielfeismann Nov 22, 2024
ba9aeea
add ThermalGridWithStorageOnlySpec test where taking energy from storage
danielfeismann Nov 22, 2024
f7b1c1d
fix ThermalGridWithHouseAndStorageSpec
danielfeismann Nov 23, 2024
bdd63f6
fmt
danielfeismann Nov 23, 2024
aac4297
adapt EmAgentIT
danielfeismann Nov 23, 2024
092a6c9
fmt
danielfeismann Nov 23, 2024
92e6c51
fix EmAgentIT
danielfeismann Nov 23, 2024
481da32
fmt
danielfeismann Nov 23, 2024
b03b576
correct direction of thermal power of thermal heat storage
danielfeismann Nov 23, 2024
7b58297
fix handleInfeed of thermal energy
danielfeismann Nov 23, 2024
c763b72
Merge branch 'dev' into df/#930-refactor-handleInfeed
danielfeismann Nov 23, 2024
8d452ec
enhance ThermalGridSpec when checking for required and additional demand
danielfeismann Nov 23, 2024
07746a4
fix inputs for thermalGridWith specs plus add another test case
danielfeismann Nov 23, 2024
da0dd0b
Merge branch 'df/#930-refactor-handleInfeed' into df/#878-thermalGridIT
danielfeismann Nov 23, 2024
e6b831c
Merge branch 'df/#878-thermalGridIT' into df/#856-tap-water
danielfeismann Nov 23, 2024
1d3eaa4
solving some merge conflicts
danielfeismann Nov 23, 2024
31e6c21
fix some tests after merge conflicts
danielfeismann Nov 23, 2024
ad18a71
fix ChpModelSpec and CylindricalThermalStorageSpec due to new storage…
danielfeismann Nov 24, 2024
d5a24c4
correct tests after merge conflict
danielfeismann Nov 24, 2024
f575af1
adapt tests to input requirements
danielfeismann Nov 24, 2024
921c18d
fmt
danielfeismann Nov 24, 2024
c765a82
add case to handleInfeed
danielfeismann Nov 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add unapply method for ThermalHouseResults [#934](https://github.com/ie3-institute/simona/issues/934)
- Added `ApparentPower` to differentiate between different power types [#794](https://github.com/ie3-institute/simona/issues/794)
- Update/enhance config documentation [#1013](https://github.com/ie3-institute/simona/issues/1013)
- Integration test for thermal grids [#878](https://github.com/ie3-institute/simona/issues/878)
- Integration test for thermal grids [#878](https://github.com/ie3-institute/simona/issues/878)

### Changed
- Adapted to changed data source in PSDM [#435](https://github.com/ie3-institute/simona/issues/435)
Expand Down Expand Up @@ -144,6 +146,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix initialisation freezing on empty primary data [#981](https://github.com/ie3-institute/simona/issues/981)
- Shallow fetch in CI [#1041](https://github.com/ie3-institute/simona/issues/1041)
- Correct wrong use of term "wall clock time" [#727](https://github.com/ie3-institute/simona/issues/727)
- Refactoring of `ThermalGrid.handleInfeed` to fix thermal storage recharge correctly when empty [#930](https://github.com/ie3-institute/simona/issues/930)
- Refactoring of `ThermalGrid.handleInfeed` to fix thermal storage recharge correctly when empty [#930](https://github.com/ie3-institute/simona/issues/930)

## [3.0.0] - 2023-08-07

Expand Down
1 change: 1 addition & 0 deletions docs/readthedocs/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ maxdepth: 1
models/bm_model
models/chp_model
models/cts_model
models/dhws_model
models/evcs_model
models/hp_model
models/load_model
Expand Down
2 changes: 1 addition & 1 deletion docs/readthedocs/models/cts_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This page documents the functionality of the cylindrical thermal storage available in SIMONA.

## Behaviour
This storage model operates on volumes, although the functions it provides for other models all operate with energy. Internally the storage model converts energy to volume and vice versa with formulas specified below. Furthermore, it is assumed that the storage medium is water. Also, the model holds a variable for the current storage level.
This storage model operates on volumes, although the functions it provides for other models all operate with energy. Internally the storage model converts energy to volume and vice versa with formulas specified below. Furthermore, it is assumed that the storage medium is water. Also, the model holds a variable for the current storage level. At initialisation the storage will be empty.

## Attributes, Units and Remarks

Expand Down
56 changes: 56 additions & 0 deletions docs/readthedocs/models/dhws_model.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
(dhws_model)=
# Domestic Hot Water Storage
This page documents the functionality of the domestic hot water storage available in SIMONA.

## Behaviour
This storage model operates on volumes, although the functions it provides for other models all operate with energy. Internally the storage model converts energy to volume and vice versa with formulas specified below. Furthermore it is assumed that the storage medium is water. Also the model holds a variable for the current storage level. At initialisation the storage will be full. Domestic hot water storage will be refilled when the state of charge will be below 20 % or when the required water demand can not be covered by the stored energy in the storage itself.

## Attributes, Units and Remarks

Please refer to {doc}`PowerSystemDataModel - CTS Model <psdm:models/input/thermal/domestichotwaterstorage>` for Attributes and Units used in this Model.

## Calculations
### Maximal storage capacity
As the name suggests this storage has a cylindric form, hence its maximum storage capacity $V_{st, max}$ can be given by:

$$
V_{st, max} = \pi \cdot r^2 \cdot h
$$

### Conversions of energy and volume

In this model the change of stored energy (heat) is represented by the change of the volume of the storage medium. This relation between stored heat and volume change is given by:

$$
V = (\frac{W}{c \cdot (tE - tA)})
$$

with
W = energy to be converted to volume
V = resulting volume
tE = return temperature
tA = inlet temperature
c = $1,15 \frac{kWh}{m^3 \cdot K}$

The original equation is given by:

$$
\Delta V_{st} = (\frac{\dot{Q_{th}} \cdot \Delta t}{c \cdot (tA - tE)})
$$

Reference:

* {cite:cts}`Quaschning.2013`


That is the mathematical description of loading and unloading processes concerning the buffer storage. Whenever heat is stored within the storage or removed from the storage this equation is used. This includes the case that the whole heat demand is satisfied by the storage.

The same relationship is used to determine the quantity of heat which is stored in the storage by converting the equation to:

$$
W = V \cdot c \cdot (tE - tA)
$$

## Store/Take energy

This calculation is performed as follows: An amount of energy is specified for storing or taking. The model then changes the storage level and returns if it exceeded the maximum (when storing energy) or the minimum (when taking energy).
2 changes: 1 addition & 1 deletion docs/readthedocs/models/thermal_house_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This page documents the functionality of the thermal house available in SIMONA.

## Behaviour

This house model represents the thermal behaviour of a building. This reflects a simple shoebox with a thermal capacity and with transmission losses.
This house model represents the thermal behaviour of a building. This reflects a simple shoebox with a thermal capacity and with transmission losses for its heating demand. As well the hot water demand (tap water) based on the number of inhabitants and the housing type on hourly basis is considered.

## Attributes, Units and Remarks

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/config-template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ EvcsRuntimeConfig {
baseRuntimeConfig: BaseRuntimeConfig # this entry is ignored by the config generator,
# but cannot removed bc otherwise EvcsRuntimeConfig is handled as String
chargingStrategy: String | "maxPower" # can be one of maxPower, constantPower, gridOrientedScheduling or marketOrientedScheduling
lowestEvSoc: Double | 0.2 # Defines the lowest possible state of charge (SoC) that an EV is allowed to uncharge in vehicle to grid (V2G) mode
lowestEvSoc: Double | 0.2 # Defines the lowest possible state of charge (SoC) that an EV is allowed to discharge in vehicle to grid (V2G) mode
}

#@define extends BaseRuntimeConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import edu.ie3.simona.event.ResultEvent
import edu.ie3.simona.event.ResultEvent.{
FlexOptionsResultEvent,
ParticipantResultEvent,
ThermalResultEvent,
}
import edu.ie3.simona.event.notifier.NotifierConfig
import edu.ie3.simona.exceptions.CriticalFailureException
Expand Down Expand Up @@ -1913,8 +1912,7 @@ protected trait ParticipantAgentFundamentals[
result: R
): Option[ResultEvent] = result match {
case thermalUnitResult: ThermalUnitResult =>
Some(ThermalResultEvent(thermalUnitResult))

Some(ResultEvent.ThermalResultEvent(thermalUnitResult))
case unsupported =>
log.debug(
s"Results of class '${unsupported.getClass.getSimpleName}' are currently not supported."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@ trait HpAgentFundamentals
HpRelevantData(
tick,
weatherData.temp.inKelvin,
baseStateData.startDate,
baseStateData.model.thermalGrid.house.map(_.houseInhabitants).getOrElse {
throw new InconsistentStateException(
s"The model ${baseStateData.model.thermalGrid.house} was not provided with the needed number of inhabitants."
)
},
)
}

Expand Down
21 changes: 21 additions & 0 deletions src/main/scala/edu/ie3/simona/event/ResultEvent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import edu.ie3.datamodel.models.result.system.{
}
import edu.ie3.datamodel.models.result.thermal.{
CylindricalStorageResult,
DomesticHotWaterStorageResult,
ThermalHouseResult,
ThermalUnitResult,
}
Expand Down Expand Up @@ -92,6 +93,26 @@ object ResultEvent {
}
}

object DomesticHotWaterStorageResult {
def unapply(result: DomesticHotWaterStorageResult): Option[
(
ZonedDateTime,
UUID,
ComparableQuantity[Power],
ComparableQuantity[Energy],
)
] = {
Option(result).map { result =>
(
result.getTime,
result.getInputModel,
result.getqDot,
result.getEnergy,
)
}
}
}

/** Event that holds all grid calculation results of a power flow calculation.
* The usage of a type is necessary here, to avoid passing in other instances
* of [[edu.ie3.datamodel.models.result.ResultEntity]] except of the wanted
Expand Down
Loading
Loading