1. Introduction
District heating (DH) supplied hot water to 63% of the private Danish houses in 2015 [
1]. The concept of 4th generation district heating/cooling system, supported by renewable, is presented in [
2]. With the goal to become carbon neutral in the heating sector by 2030, renewables need to contribute all the heating demands. Thus, there is a possibility to integrate the thermal and electric networks to support grid ancillary services by the flexible electrical loads, such as electric boilers (EBs) and heat pumps (HPs), supporting the thermal system [
2,
3]. The electricity and heating network are coupled together as power-to-heat (P2H) to utilize renewable electricity for district heating. Integrated heat storage decouples demand and generation, to enhance flexibility for a better adaptation of energy requirements. The concept of P2H in the multi-energy system requires minor expansion of grid and storage [
4].
The objective of this paper is to acknowledge flexible operation of the thermal unit consisting of an electric boiler (EB) and a storage tank modelled with stratified layers, as a part of P2H system. This is primarily realized through analysis of metered thermal consumption data from the residential area and estimating thermal demand using curve fitting, followed by an optimal schedule of the EB based on the spot price. The multilayer stratified thermal storage tank model is suitably identified for electric grid integration and flexible operation to compensate the error in estimation of thermal demand. The method could as well be applied for a heat-pump system. However, the application of EB is quite significant nowadays in providing energy flexiblity as well as system frequency services [
5]. As an example, an EB of 50 kW is used as a flexible load in LIVØ island, Denmark to increase the self-consumption from wind and PV units installed in the island [
6].
Advantages of centralized thermal storage in terms of operational flexibility of CHP (combined heat and Power) for district heating is well-explored in [
7]. The flexibility of a district heating network for automatic frequency restoration reserve market is studied in [
8]. The balancing markets provide an opportunity for introducing more EBs into DH and increase its contribution to flexibility [
9]. A crucial aspect here is how system deployment can be realized effectively. Ref. [
7] addresses the flexible operation of heat pumps using predictive control strategy, neglecting consumption of hot water for its highly randomized and hardly predictable nature. The predictive control of the heat pump by estimating only outdoor temperature has been studied in [
10]. Thus, there is a necessity to investigate simple and effective methods to determine the influencing parameters for thermal demand prediction to manage the flexible operation of the thermal units in P2H technology.
The perspective of heat electrification in a wind dominated market using resistive heating and storage is the most carbon-intensive method [
11] with lower investment cost compared to HP [
9,
12]. Further, large HPs take a long time from a cold start until they reach their optimal efficiency. Thus, they are not very active at balancing markets between hours, due to short start–stop intervals. Rather, they are mainly used as base load [
9]. Hence, the flexibility in easy start–stop in balancing services is the main driver for introducing more EBs into the system. EBs in district heating have the potential for negative secondary control power by increasing consumption and supporting grid balance [
13]. Reference [
14] realized the benefit of demand-side management and the ability of demand response to improve power system efficiency with integrated wind power and electric heating devices considering constant heat load through the day. Higher potential of HPs in DH systems in the future is realized in [
15]. Integration of EB with storage in low voltage residential grid as flexible consumer load has been presented in [
16]. Hence, there is the potential of good harmony and flexibility between electrical and thermal energy sector supporting each other in multi-energy systems.
The investigation of space heating and domestic hot water needs is presented in [
17] based on curve fitting and distribution functions. In [
18] peak load ratio index of buildings are used for determining the diversity in thermal loads to generate the thermal profile for residential buildings. Reference [
19] calculates the probability of domestic hot water drawn at a time(t) which depends upon probability during the day, weekday, season and holiday as a function of time(t). Higher probability step functions for weekends in comparison to weekdays are used to indicate higher consumption of domestic hot water on weekends. The thermal demand for space heating in a typical winter day is explored in [
20]. However, the pattern of usage for the combined effect of space heating (SH) and domestic hot water (
) still remains unrealized. Proper knowledge of demand pattern for space heating and domestic use, as presented in this paper, is the key factor for developing a good and applicable estimating tool for thermal demand. This is italic in the main text and equations. For the consistence in the paper, please carefully check and change them to italic.
The possibility of estimating heat demand for space heating just a few hours in advance using neural network based on heat consumption in Polish buildings is matched against weather conditions over a 10-year period in [
21]. In [
21], the forecasting method is based on time series neural network with temperature and thermal consumption at a particular hour, day and previous history are taken into consideration. One month data from a DH network in Riga has been analysed for forecasting in [
22] with the comparison between methods using an artificial neural network, polynomial regression model and the combination of both. With these methods, forecasts are performed by updating the statistics of actual load and temperature of the previous measurement. DH from Czechia has been analysed in [
23] in a forecast model based on time series of outdoor temperature and time-dependent social components, which may vary for different weekdays and seasons. The Box–Jenkins method is used to realize the forecast of the social component. Reference [
24] addresses issues on the selection of appropriate input variables from building energy management systems sensors. Ambient temperature and relative humidity along with solar radiation are the predominant factors for the predictive model [
24,
25]. In [
26], forecasting based on similar day method is well presented for day-ahead power output for small scale solar PV system. However, none of the literature discussed regarding district heating in both summer and winter, as well as thermal demand prediction based on a combined effect of the time factor and environment variables (such as outdoor temperature, humidity, and wind velocity) together. These aspects are significant to be studied in an integrated framework to clearly understand the effective potential of thermal units like EBs. In this way, it is possible for such flexible units to render energy flexibility necessary to support integration of renewable energy in future energy systems.
In this paper, the proposed methodology to obtain flexibility with EB in P2H is summarised in the block diagram as shown in
Figure 1. The significant contributions in this paper are the identification of thermal demand pattern, estimation of thermal demand using curve fitting tool, and use of stratified storage tank to verify flexible operation of EB. Actual thermal data from DH operator are analysed to unleash the specific consumption pattern of residential areas associated with usage based on different time factors such as hourly, weekdays, weekends, and seasonal. This information is useful while training the curve fitting tool to estimate thermal demand. With reference to [
21,
22,
23], thermal demand estimation is based on the past and its current state for winter. A simple, yet effective curve fitting technique for estimating the thermal demand in the residential area, based on dependent parameters such as time factor (based on consumption profile) and environment variables (apparent temperature), has been investigated and compared with actual data as well as results from existing literature. The analysis is performed for thermal demand estimation during winter as well as summer. The curve fitting is simple and overcomes the problem encountered with the update of measured data (due to the failure of measuring equipment) as in time series estimation. The estimated demand is used to determine the optimal schedule of the EB operation in P2H, for the planning of capacities to store and fulfil thermal energy demand simultaneously, based on the spot price of electricity. The use of stratified storage tank in combination with EB emulates the real operating condition where the temperature of hot water being delivered is more realistic compared to ones from an average model of the storage tank, where hot water temperature decreases gradually. The outcome is verified with actual thermal demand to illustrate how the thermal storage copes up with the error in forecasting and contribute as an example of a flexible load in the P2H concept.
The paper is structured as follows. Analysis of thermal load consumption based on actual measurements at one particular residential site in Denmark supplied with five feeders is analysed to unleash the specific usage pattern and is identified in
Section 2. Selection of parameters for effective estimation of thermal demand using various tools such as neural net fitting, and similar day method are discussed in
Section 3. Overview of the modelling approach of the stratified hot water storage tank and EB is presented in
Section 4 along with validation of the model. In
Section 5, the methodology for optimized operation schedule of EB is presented along with EB ON/OFF control strategy. Results of the estimated demand are discussed in
Section 6, followed with its application in flexible scheduling of the EB for demand response. Finally, the paper is concluded with the outcome of the research work in
Section 7.
2. Analysis of Thermal Data
Thermal data measured at the terminal of five thermal distribution feeders (
) supplying a number of residential buildings, in one particular residential area of Aalborg, Denmark, are used for analysis. Available measured data of hourly thermal consumption, from the period of 21 December 2015 to 4 December 2016 are analysed.
Figure 2 shows the total annual consumption of thermal demand (
) for residences in feeders (
) supplying residential buildings. The annual consumption varies from 723.7 MWh as lowest consumption for
to 1278.5 MWh as the highest consumption in
. This variation is due to the different number of residents in the area and their level of comfort. The total annual consumption was 5195.7 MWh.
Figure 3a,b shows the plot of hourly consumption of
for feeders (
) and their total consumptions respectively, throughout the year.
Figure 3a,b clearly shows that there is seasonal variation.
Figure 3b shows that there is a sudden transition in thermal consumption at certain time period such as towards the end of January, mid of March, and beginning of May. However, there is a significant difference in thermal consumption between mid-May to September end which is less than 35% of the peak winter consumption. Thus, to simplify the further analysis, the trend of thermal consumption is roughly divided into two seasons, winter and summer, irrespective of autumn and spring. Hence, October to April is considered as winter season and May to September is considered as summer season. The transition period at the beginning of May and October is not considered in this analysis. It seems that there is slightly more thermal demand in May than in September, due to transition from winter to summer and is around 30 ± 5% of the peak winter consumption. It is interesting to see the analysis of data from seasonal perspectives: winter and summer consumption. In the rest of the paper, analysis is done taking the combined effect of all feeders. As a result, the maximum heat demand is likely to be less than the sum of the individual feeder’s peak load. This also reduces the intermittent variation in demand for individual feeders.
The average consumption per hour of for all the feeders, considering yearly consumption, is 618.5 kWh. During winter, it is 881.8 kWh, which is 205.8% more than summer consumption of 288.4 kWh.
Figure 4a,c shows the graph of hourly average thermal consumption pattern of different days of the week during winter and summer respectively. It is clearly seen that there exist a unique pattern of average thermal consumption with peaks. The pattern is different on weekends (Saturday and Sunday) in comparison to weekdays (Monday–Friday). To simplify the graphs shown in
Figure 4a,c, graphs with an average consumption of thermal energy during the week, weekdays and weekend has been plotted in
Figure 4b,d for winter and summer respectively. It is observed that there are some definite patterns of hourly usage of an average
. There are two peaks and two valleys. It is clear that the amount of variation in thermal consumption with respect to minimum consumption is higher for weekends than for weekdays indicating higher consumption of domestic hot water as mentioned in [
19].
Figure 5 shows the consumption pattern for the week, weekdays and weekends for the period of Dec 2016 to Aug 2017 for winter and summer respectively.
Unlike in
Figure 4b,d the total consumption at weekends are lower than weekdays. Thus, the amount of thermal consumption based on weekend and weekdays are not much relevant. However, the hourly pattern of consumption for weekdays and weekends are comparable with similar peaks and valley at particular hours seen in
Figure 4b,d. Hence, knowledge of these patterns of thermal consumption during weekdays and weekend is much helpful to train the estimation tool to compensate for the error due to temperature independent factors such as user behaviour. The lowest consumption is during the period 03:00–04:59 h which rises gradually until 07:00–07:59 h during normal weekdays when people get ready for their job (
Figure 4b,d). On the weekend there is a shift in this peak which is around 10:00–12:59 h. The shift in peak could be because people prefer to wake up late on the weekend. After the morning peak, there is decrement of thermal consumption until 2:00–3:59 h when people are at work during weekdays. Throughout the week, the evening peak is around 18:00–20:59 which gradually decreases to 4:59 h in the early morning. However, in summer there is a shift in evening peak compared to that in winter. This analysis shows the relevance of time, day and season to determine the usage pattern of thermal consumption and that it is significant for forecasting as seen in [
21] for thermal load similar to the forecasting of electrical load [
27].
3. Thermal Demand Estimation
It is difficult to estimate thermal demand for the residential area, as it is not only largely depending on the environmental variables (weather), but also on the user behaviour and building geometry. In reality, analysis for occupancy and user level comfort is difficult and leads to challenges incorporated with privacy issues of the individuals. This leads to a significant effort to compromise between errors in estimated variable and dependent parameters. Analysis of thermal data from residential areas gives remarkable information on the pattern of thermal demand, without compromising the privacy issue of individuals. These informations are helpful in selecting effective variables for the estimation of thermal demand from the perspective of user behaviour, which defines the pattern of demand. Time of day and days of the week (weekdays or weekends) are the two major parameters associated with the pattern of thermal consumption based on user level comfort.
The estimated parameters are subjected to identify the flexible operation of the thermal system based on demand, supply, capacity, and energy prices. In this paper, for the estimation of thermal consumption in the residential area, thermal data associated with
Figure 5 are used.
3.1. Dependent Variables for Thermal Demand Estimation
Thermal demand is highly influenced by the environmental variable such as air temperature.
Figure 6a shows the hourly value of thermal demand and corresponding average external temperature of the environment. It shows that decrease in temperature increases thermal demand. Beside air temperature, cold air with high relative humidity increases the conduction of heat from the body in comparison to dry air with the same temperature. In order to incorporate the combined effect of relative humidity, wind and air temperature together, responsible for heat loss from a body, apparent temperature is considered. The apparent temperature is calculated using (
1) and (
2) [
28].
Figure 6b shows the hourly value of thermal demand and corresponding apparent temperature. The correlation coefficient of thermal demand with respect to external ambient temperature and apparent temperature, is −0.88 and −0.89 respectively.
where,
= Apparent Temperature [
C].
= Dry bulb temperature of external environment [
C].
e = water vapour pressure [hpa].
v = wind speed [m/s].
= Relative humidity [%].
Figure 7a shows the graph of apparent temperature vs. thermal demand throughout the period of December 2016 to August 2017.
Figure 7b shows the distribution of thermal demand with respect to apparent temperature during summer and winter only. It is clear from
Figure 7b that thermal demand during winter is inversely proportional to the apparent temperature. Whereas, during summer, proportional relationship between each other is very small. This could be due to the reason that apart from external temperature, thermal consumption is mostly for domestic purposes such as bathing, washing, space heating for toilet/bathroom, and transmission losses. Thus, it is logical to conclude that seasonal effect needs to be considered as input variable in the model for estimation.
The parameters for estimation of thermal loads in residential areas are based on factors such as user behaviour (hour, weekdays, and weekends), and environmental condition (apparent temperature and season).
3.2. Estimation Technique of Thermal Demand
Different approaches to estimating thermal demand based on curve fitting technique such as the neural net fitting, and similar day method are considered as they are widely used. MATLAB inbuilt tools and functions are used for developing the estimation model using the neural net tool. Different scenarios based on the seasonal variations (summer and winter) are analysed.
For the neural net fitting tool, 50% of the seasonal data set are used for training, 25% for validating, and 25% for testing to develop the model. The datasets are divided randomly for training, testing, and validation of the model. After developing the model, 50% of the remaining seasonal data set are used in estimation.
For the similar day approach, the hourly data of a day is arranged according to season (summer and winter) and weekdays and weekends as shown in
Figure 8.
50% of each dataset (weekdays and weekends for summer and winter) are used as the historical data to build a Euclidean distance (ED) for measure of similarity. In similar day method, it is assumed that the thermal demand is associated with apparent temperature (
) for similar day (weekdays and weekends for summer or winter), and will result into similar thermal demand. EDs value based on recorded normalised
(
) values at particular hour(
h) of the day (
d) are calculated for each and every historical similar days (
) using (
3) [
26]
where,
is the ED between day
d and historical days
with respect to the value of
. Days with similar pattern of
will have very small values of ED, hence corresponding value of thermal demand is selected as the estimated value.The parameters for AT can be achieved from the forecasted meteorology data.
5. Operation Schedule of EB for Flexibility
In order to schedule the time of operation of the EB to charge the hot water storage tank, the optimization procedure given by (
11) and (
12) are followed. The objective function is to minimize the cost of electricity for production of hot water to meet the demand and storage needs. The constraints calculate the energy stored in storage tank and does not allow the storage tank to charge more than its allowable maximum and minimum limit. The energy extracted from the grid is either 0 (when EB is turned OFF) or is equal to the rated power of EB heater (
, when EB is turned ON). The energy extracted from the grid must be able to charge the storage as well as fulfil the demand. Although there are possibilities to control the EB power in several stages, the problem here is simplified with just ON and OFF in order to demonstrate the flexibility in operation of EBs under dynamic tariff conditions, with the help of estimated demand. Also, the operation of EB during peak hours in evening are restricted to minimise problems related to grid congestion and under voltage in Danish low voltage residential grid, due to integration and operation of electric boilers (EBs) [
6]. The thermal energy stored in the tank at the end of the day is maximized to illustrate that storage tank is not only providing flexibility by supplying the thermal demand at the time of high electricity price and peak electricity demand, but also stores energy during the period of low electricity price during the 24 hour period of spot price in the electricity market.
Here,
C = energy price[EUR/MWh].
= energy extracted from the grid [MWh].
S = energy that can be extracted from storage [MWh].
= thermal demand [MWh].
= rated power of EB [2.4 MW]. Subscripts:
t = time [h], min = minimum, max = maximum, ini = initial value. The maximum energy that can be stored in hot water storage tank is given by (
13)
Here,
= Mass of water in storage [
kg].
= temperature of supply hot water in the tank [
C].
= temperature of return water in the tank [
C].
= specific heat capacity of water [4190 J/kg·K].
The optimization problem was solved by minimizing the cost function using brute force optimization in MATLAB. All possible candidates for the solutions are generated and then checked against the satisfaction of problem statement as given in (
11) and (
12). For more than one solutions, the solution with less ON/OFF operation of EB is selected. The solutions were verified using “PuLP”, linear programming modeller written in python.
Control of EB
The optimized schedule for operation of the EB is determined based on the estimated thermal demand. On the other hand, the actual thermal demand would vary to some extent compared to the estimated value. This leads to an estimation error. In case the error is large, it can lead storage tank temperature to be away from the specified limit (
C when storage is charged and
C to limit storage discharge up to 70% of its capacity). Thus, in order to compensate for the large error in estimated demand with respect to the actual value, the optimized schedule for operation of EB is reinforced with limit controllers based on hysteresis control, realized with RS flipflop, to turn ON/OFF EB as shown in
Figure 12. This ensures that the temperature of hot water in the storage tank is within the specified limit.
Figure 12a shows that, when the temperature of bottom layer
C the EB needs to be turned OFF as discussed in
Section 4.1. It is turned OFF only for a short period until the temperature of the seventh layer (
) is less than
C, so that it can further follow the schedule.
Figure 12b ensures that if
C (storage is discharged more than 70% of its capacity), EB is turned ON until it is fully charged (i.e.,
C). Apart from these two conditions, the EB is operated as per the determined schedule. The overall control strategy is shown in
Table 3, where
is the Control signal for turning ON and OFF of EB and
is the signal from scheduled ON/OFF of EB.