KWR-Water / pysimdeum

SIMDEUM in python
European Union Public License 1.2
17 stars 7 forks source link

Add warm water functionality #36

Closed BramHillebrand closed 3 months ago

BramHillebrand commented 3 months ago

Added warm water functionality

Consumption array has an extra dimension: flowtypes. This has the values totalflow and hotflow. totalflow is the total water consumption while hotflow is just the heated part of the waterflow.

Each end use has, when applicable, a temperature set of the water outflow from which the percentage of hot waterflow (also with a fixed temperature) is calculated.

plot and write functions have been updated.

This is a breaking change. Due to the addition of an extra dimension to the consumption data array statements like (as in the example) tot_cons = consumption.sum(['enduse', 'user']).mean([ 'patterns']) need to be replaced by: tot_cons = consumption.sum(['enduse', 'user']).sel(flowtypes='totalflow').mean([ 'patterns']) to get the same results. the .sel(flowtypes='totalflow') part selects the totalflow array. by replacing this by .sel(flowtypes='hotflow') you gain access to just the hot water flow.