The functional principle of all procedures within the flexibility provision, together with additional necessary calculations, are demonstrated in the example of HP-HS and PV-BS systems in residential buildings, as well as combinations of these technologies.
3.2. Flexibility Quantification
In our previous work [
10] we demonstrated the developed method for quantifying flexibility in residential buildings with PV-BS systems. In this study, we applied the developed method to quantify the flexibility potential of HP-HS-systems in selected households that could also have provided it additionally to their operations in 2019.
The
first step in the proposed flexibility quantification method prescribes scheduling the operation of the decentralised energy systems to cover the needs of building occupants. The original time-series with electrical power consumption of the HPs from [
27] were used to derive the time-series with thermal power required for heat demand of the selected households (see
Table 2). As the historical power measurements reflect the operational fluctuations of the heat pumps under real-world conditions, we assume that the derived heat demand also includes the corresponding kind of variability. This generated heat demand data were then applied to simulate the optimal operation of the HP-HS systems in the selected households using a generic MTRESS model [
32,
33].
These newly generated data contain time-series of the household heat demand, operating electrical power of the HPs, thermal power flow between HP and HS, as well as the amount of thermal energy stored in the HS systems at each point in time. The thermal energy stored in the HS was calculated using the difference between the flow and return temperatures. In the simulations of the scheduled operation (without flexibility provision), we defined that the nominal difference between the flow and return temperatures in the HS must not exceed 10 K, i.e., during the operation without flexibility provision the maximal nominal flow temperature was set to 40 °C and the return temperature to 30 °C.
In the second step of the method for quantifying flexibility, we defined and calculated the power and energy boundaries of the HP-HS systems. The lower power boundary of these systems is equal to zero and the upper power boundary to (set nominal power of the HP compressor). These power boundaries remain stable during the quantification of the flexibility potential of the HP-HS systems for the entire year of 2019. In comparison to that, the lower and upper energy boundaries should be calculated anew at all points in time for the planning period, the duration of which was set to six hours. However, this value is a free variable and can be changed according to the users of the flexibility quantification method.
In order to enable the simulation of the flexibility provision, we assumed that the HS was allowed to deviate by up to 5 K from its nominal temperature levels. In this case, the flow temperature in the HS could reach a maximal value of 45 °C during the provision of negative flexibility, and the return temperature was allowed to cool down to 25 °C during the provision of positive flexibility. The additional energy corresponding to the allowed temperature deviation in the HS was considered in the calculation of the energy boundaries, as well as in that of the amount of energy stored in the HS during and after the flexibility provision.
In the third step of the flexibility quantification method, we calculated the maximal duration for providing the flexibility power values. In order to investigate the entire flexibility potential of the HP-HS, we defined a range of positive and negative flexibility power values. The following range was defined ∈ [−4500, 4500] with a step of 100 W, where −4500 W was the maximal negative flexibility power and 4500 W the maximal positive flexibility power. We estimated the maximal duration of the flexibility provision for each flexibility power value in this range. Firstly, we calculated the new power values of the HP and new value of energy stored in the HS in case of deviation from the operation for the purpose of flexibility provision. Secondly, we determined that these new power and energy values lay between the lower and upper boundaries at each point in time over the subsequent six hours. Otherwise, the flexibility could not be provided. The flexibility potential was calculated for every 15 min time interval independently of each other.
To highlight, the primary objective of power and energy boundaries is to ensure the secure operation of energy systems, thereby meeting the needs of building occupants. As long as the flexibility potential is calculated within these boundaries, occupants will not experience any negative impact from flexibility provisions. In case of undermining the boundaries, the flexibility potential at that point in time is considered to be zero.
As the decentralised energy systems have different primary applications and can provide flexibility solely as an additional service, these systems feature a time-varying flexibility potential. In
Figure 3, the daily variations in flexibility potential are presented for the example of the HP-HS system in “SFH-19” for two different times, 00:00 and 10:00, on 24 January 2019.
The green curves in
Figure 3 represent the flexibility potential for the entire flexibility power range at the given points in time. The vertical red lines correspond to the power boundaries, and the horizontal red line depicts the planning time of 6 h. At midnight on 24 January 2019, the HP-HS system in “SFH-19” could have almost solely provided the negative flexibility by additional increase of the HP electrical power. At 10:00 on the same day, this HP-HS system could have provided approximately similar amounts of positive and negative flexibility. The current operating mode of the HPs and energy amount stored in the HS systems have a strong influence on the flexibility potential.
In addition to daily variations, the HP-HS systems in the observed households also have seasonal variations in their flexibility potential.
Figure 4 presents the maximal flexibility power that the HP-HS system in “SFH-19” could have provided as flexibility at each time point in 2019 for the maximal duration of 15 min.
Each point in time in
Figure 4 has two values indicated by two dots: the red dots correspond to the maximum positive flexibility potential, whereas the blue ones represent the maximum negative flexibility potential for the 15 min period. However, the flexibility potential also includes the intermediate power values between zero and the calculated maximum. For example, the calculated maximal power of the positive flexibility at 1000 W can be interpreted as the HP-HS system having theoretically reduced its power consumption by a value between 0 W and 1000 W for the purpose of positive flexibility provision.
The annual mean of all maximal positive flexibility power values during the heating period (from January to April and from October to December) was equal to 150 W for the maximal duration of 15 min. Over the same period of time, the annual mean of all maximal negative flexibility power values was much higher, at 1800 W. Thus, the HP-HS system in the selected household had much higher negative flexibility potential than positive. In other words, the flexibility potential could have been provided more frequently by switching on the HP.
Based on the flexibility potential curves for each point in time of the year 2019, we calculated the monthly mean flexibility potential curves for the selected points in time (00:00, 06:00, 12:00, and 18:00) independently from each other. The area under these monthly curves was then calculated using the trapezoidal rule (see
Figure 5). The values of the area under the monthly mean flexibility potential curves demonstrate both the daily and seasonal variations in the flexibility potentials.
Similarly to
Figure 4, the calculated area values under the mean flexibility potential curves demonstrate that the HP-HS system in “SFH-19” could have provided more negative flexibility than positive in 2019. Furthermore, the calculated flexibility potential in the colder months is higher than in warm ones, as the HP-HS systems were operated more frequently and intensively in the months with lower outside air temperatures to generate a sufficient amount of thermal energy for comfortable room temperature. As the investigated household had almost no heat demand in the warmer months, the HP-HS system was operated very rarely. In this regard, the flexibility potential during this time period was much lower. The HP-HS systems with another operational mode, such as for the provision of space and water heating as well as cooling, could have been operated during the entire year. Therefore, these systems could have had higher flexibility potential during the warm season.
3.3. Flexibility Aggregation
In this section, we demonstrate the flexibility aggregation method and describe the results of aggregating the flexibility potential values from two different technologies: BS and HP-HS. For this purpose, we selected a household “EMS-1” with a PV-BS system from [
25] and a household “SFH-19” with an HP-HS system from [
27]. These two households were selected for the flexibility aggregation case study, because based on data analysis we assumed that “EMS-1” did not have an electricity-based heating system, and that HP-HS system in “SFH-19” was operated primarily during the cold season. These two decentralised energy systems were therefore taken to belong to different technology categories, and to have different primary applications, technical characteristics, and operational schedules.
For the annual evaluation of the aggregated flexibility potential, we calculated the maximal aggregated flexibility power that the BS in “EMS-1” and HP-HS system in “SFH-19” could have provided together at each point in time for the maximal duration of 15 min in 2019.
Figure 6 presents the mean weekly percentage contributions of the BS and the HP-HS system (top and bottom sub-plots) to the aggregated flexibility, as well as the maximal aggregated flexibility power that this combination could have provided at each point in time in 2019 for the maximal duration of 15 min (middle sub-plot).
Figure 6 shows that the BS system in “EMS-1” could have made much higher contributions to the aggregated flexibility potential, both positive and negative. The HP-HS system in “SFH-19” could have mostly influenced the aggregated negative flexibility in the cold season, when the heating system was operated much more intensively. Therefore, the aggregated negative flexibility potential during the cold season was higher than in the warm season. Almost all missing values of “EMS-1” occurred in the first, second, and fourth weeks of January, as well as the second week of February 2019. Therefore, the aggregated flexibility potential in these weeks was lower than in other cold months, and the HP-HS system has exhibited a higher contribution to the aggregated flexibility potential in these weeks. The mean annual contribution of the BS to the aggregated positive flexibility potential was 96.4% and to the aggregated negative flexibility potential it was 85.1%. The mean annual contribution of the HP-HS to the aggregated positive flexibility potential was 3.6% and to the aggregated negative flexibility potential it was 14.9%. The presented case study shows that the proposed method of flexibility aggregation can be applied to orchestrate different technologies for the joint flexibility provision.
One of the main goals of the flexibility aggregation is to increase flexibility power. The aggregated flexibility power from the combination of n flexibility providers should be higher than the flexibility power of each component participating in the flexibility provision. In addition, the flexibility aggregation method used in this study aims to identify the most optimal combination of available flexibility providers belonging to different technology types. Only the flexibility providers with available flexibility potential are included in the combination, and the participating flexibility providers are not obliged to contribute with equal power values to the aggregated flexibility. Therefore, each flexibility provider offers the flexibility potential that coincides with its schedule, as well as with the needs of the building occupants.
The flexibility aggregation case study revealed that the contribution of the selected HP-HS system to aggregated flexibility was relatively low. However, investigating and quantifying the flexibility potential of this technology remains highly relevant, as the number of installations is substantial and is expected to grow in the future. For example, in 2019, HPs were installed in 7% of German households, while BS systems were present in 2% [
29]. By 2023, the share of households with HPs and BS systems had increased to 10.3% and 3.6%, respectively [
34]. Furthermore, HP-HS systems can be incorporated to provide flexibility in cases when only this decentralised energy technology is available in the energy cells.
Nowadays, the majority of decentralised energy systems are operated to optimise the consumption of the buildings where these units are installed, e.g., the charging and discharging of the BS systems is scheduled to maximise the self-consumption of local PV systems. However, this kind of operation does not coincide with the requirements of the power grid and system balance, and it can even have negative impacts on them, such as overloading and increasing power grid and system costs [
35,
36]. Therefore, operation of decentralised systems in the future should consider both the local requirements as well as those of the power grid and system balance. Combining the high number of flexibility providers belonging to different technologies for joint flexibility provision can make a positive contribution to this goal.
3.4. Integration of PV Variability and Uncertainty into Flexibility Quantification
The next step in this investigation was to incorporate uncertainty into the flexibility quantification process. As we assume that local uncertainties should first be managed by available local flexibility providers, these uncertainties can also be interpreted as local needs for flexibility (see
Section 2). In this case study, we demonstrated how to integrate these local flexibility needs into our developed flexibility quantification method using PV systems as an example. The local flexibility needs of PV systems are represented by unexpected power and energy fluctuations due to the variability and uncertainty inherent in their weather-dependent energy generation. In our previous study [
24], we developed a framework for quantifying the power and energy fluctuations of any PV system using its historical power values. In this study, we integrated this framework into the method for quantifying the flexibility of energy cells.
First, we drew on the historical measured power values of PV systems from [
25] to calculate the PV power ramps and build the cumulative empirical distributions of these. We assumed that 90% of these power fluctuations should first be balanced locally. By
and
, we denoted the 5% quantile and the 95% quantile, respectively. Thus, at each point in time the system should be able to balance the power fluctuation within the interval
.
The results of this calculation are presented in
Table 4, and can be interpreted as the power values of the local flexibility needs caused by the variability of the PV systems. Afterwards,
were integrated into the calculation of lower and upper power boundaries of any flexibility provider using Equation (
5). For example, 90% of the power ramps of the PV system in the household “EMS-5” lay in the range between −1.2 kW and 1.2 kW. Therefore, we assigned the value of 1.2 kW as the power value of the local flexibility needs caused by the PV system installed in this household.
We utilised global horizontal irradiance (GHI) data from Solcast [
37] to predict the energy output of the PV systems using linear regression. This prediction contained a time series with the expected energy generation of these PV systems throughout 2019. Next, we calculated the absolute difference between the predicted and actually measured energy values at each time point during the year. We then averaged these absolute differences over the same points in time for the previous
N days. In this study, we suggest that these average values represent the energy of local flexibility needs
due to the uncertainty in PV systems. The relevant equation is presented below:
where
and
are the measured and predicted energy of the PV system at time
t. To calculate
for each point in time during the year, we used the absolute difference values between
and
at the same time as the previous five days, i.e.,
. For example, the energy value for local flexibility needs at 10:00 AM on 6 February 2019 was calculated by averaging the absolute difference values from the same time over the previous five days, specifically from 1 February 2019 to 5 February 2019. In this case, we considered the short-term weather trends and local site characteristics, but avoided consideration of long-term weather impacts over different seasons.
For demonstration purposes,
Figure 7 displays the energy values of the local flexibility needs caused by the prediction uncertainty of the PV system in “EMS-1” in 2019. Each orange dot displays the corresponding energy of the local flexibility needs at the given point in time, which was calculated by averaging the absolute difference values between prediction and measurement at the same time for the previous five days. These
values were integrated into the flexibility quantification method by subtracting them from the upper energy boundary and adding them to the lower one at each point in time, as described in
Section 2.3. As is shown in
Figure 7, the energy values exhibit a strong seasonal dependency. For example, during winter, when PV power generation is lower, the energy values for flexibility needs were expected to be much lower compared to those in summer.
The inclusion of the power and energy fluctuations of PV systems in calculating the flexibility boundaries can be seen as the local flexibility provider setting aside a specific amount of power and energy to handle unexpected changes in local energy generation and consumption. On the one hand, considering local flexibility needs reduce the interval between the lower and upper boundaries, this in turn decreases the amount of theoretical flexibility potential available to meet external flexibility requests. On the other, it can keep the energy cell (e.g., city district) within its planned residual load, thereby avoiding additional costs and preventing potential overload of the local power grid. This operation of energy cells can be viewed as the system- and grid-oriented operation, which is essential for the future energy infrastructure.
3.5. Flexibility Provision
In the next phase of our research, we simulated how the investigated energy systems could respond to flexibility requests from external entities, such as public utility companies or distribution grid operators. We derived these requests from the balancing power per household outlined in
Section 3.1.3. Specifically, we treated this balancing power as a flexibility requested from an individual household, where it deviates slightly from regular operation. At each point in time, we simulated whether the investigated BS and HP-HS systems could have met the corresponding flexibility request, i.e., balancing power per household at this point in time, without exceeding their power and energy boundaries during the planning period. For each simulation, the ability to provide balancing power was evaluated independently of other time points. This means that we assumed that the energy systems were operated according to their schedules before the flexibility requests were made.
We evaluated the simulation results using a metric called
theoretical coverage. This metric quantifies the percentage of time points during which the analysed energy system could reliably provide balancing power as a flexibility for a maximum duration of 15 min, without exceeding its power and energy boundaries.
Table 5 presents the annual theoretical coverage values of the BS systems with and without considering PV variability and uncertainty. The columns with household labels contain the theoretical coverage values of the single BS unit belonging to that household. The column “all” contains the theoretical coverage in the case of combining six BS systems to provide sixfold balancing power per household.
As can be seen in
Table 5, the individual BS systems (without consideration of local flexibility needs) could theoretically have covered approximately 60% of the balancing power values. The portions of positive and negative flexibility needs that can be covered by the BS systems are also approximately equal to each other.
As anticipated, considering the uncertainties in flexibility quantification reduced the overall external flexibility potential.
Table 5 shows that setting aside a portion of power and energy to address potential local fluctuations in PV output led to a decrease in the average theoretical coverage values. The BS systems with consideration of the PV variability and uncertainty could have met about 15 percentage points less potential external flexibility requests in comparison to the BS systems without that consideration.
Aggregating six BS systems to provide the sixfold flexibility indeed enhanced their theoretical coverage. Specifically, this combination could have met almost 62% of the balancing power values when local flexibility needs were considered, and 83% when they were not. However, this aggregation could still not have covered the full range of requested balancing power values, despite the combined power of the six BS systems being significantly greater than the total balancing power required. The primary reason for this was the timing mismatch between the available flexibility potential of the BS systems and the requested balancing power. The timing mismatch means that the energy systems cannot provide flexibility at the times of the flexibility requests without undermining their primary applications. We assumed that the investigated BS systems were optimised to maximise the self-consumption of PV power, which did not always align with the external flexibility needs based on historical balancing energy.
The same simulation and evaluation were repeated for the HP-HS systems. The theoretical coverage of these was investigated for three levels of temperature deviations in the HS systems, and the results are presented in
Table 6. The theoretical coverage values of the individual HP-HS units are presented in the columns with household labels, and the theoretical coverage of six HP-HS systems in the column “all”. The common operation of the HP-HS systems (without flexibility provision) was simulated under the condition that the flow temperatures could not exceed 40 °C and the return temperatures could not fall under 30 °C. For the simulation of the flexibility provision (especially in the calculations of thermal energy stored in HS as well as in that of the energy boundaries), we assumed that the flow and return temperatures were allowed to deviate from their nominal values by up to 5 K. For example, in the case of 2 K deviation, the HS systems were allowed to increase their flow temperatures to 42 °C—while increasing the losses of the HS—and decrease their return temperatures until 28 °C—while reducing the efficiency of the HP—for the purpose of flexibility provision.
Allowing the HS systems to deviate from the nominal flow and return temperatures by up to 2 K led to a notable increase in the average theoretical coverage, improving it by approximately 16 percentage points compared to operations that did not allow deviation. Nevertheless, additional increases in the allowed deviation did not result in further improvements in the theoretical coverage values. The results from all three HP-HS simulations (with deviations by 0 K, 2 K, and 5 K) show that the investigated HP-HS systems were more effective at covering negative balancing power compared to positive balancing power. However, increasing the allowed temperature deviation had a stronger effect on improving the theoretical coverage for positive balancing power.
A central finding of the flexibility provision simulations was a significant increase in the flexibility that could have been provided by the combination of six BS systems or six HP-HS ones in comparison to single units. In other words, six investigated BS and HP-HS systems could have theoretically met more external flexibility requests derived from the balancing energy in comparison to the single units. Moreover, the results of the flexibility simulations confirmed that the operation of decentralised energy systems has a relevant influence on flexibility potential.
The aim of using the historical balancing energy values was to integrate the external requirements into the flexibility provision simulations. The results of the simulations confirmed once again that decentralised energy systems should be operated with consideration of both the local requirements and those of the power grid and system balance. Aggregating the flexibility of a large number of different energy systems can support this intention.
3.6. Flexibility Return
We investigated the influence of flexibility provision on the following operation of energy cells and the power grid with the help of the term
flexibility return (see
Section 2.4). For this purpose, we defined the external flexibility requests with longer durations and simulated the flexibility provision for these. For the definition of a flexibility request, we first selected the highest absolute value of balancing power per day and time
of its occurrence. Then, we determined the time frame for flexibility provision
such that all balancing power values in this interval had the same sign as the balancing power value at
. This time frame was limited to two hours and
and
was at most one hour. We repeated this procedure for all days of the observed year of 2019.
First, we applied the flexibility quantification method to confirm that the investigated decentralised energy systems could have provided the required flexibility without undermining their power and energy boundaries over the next 6 h. If this condition was met, we then simulated the flexibility provision and corresponding deviation of these energy systems from the initial operation. Finally, we calculated the flexibility energy return curves as described in
Section 2.4.
The operation of the energy systems in the following 24 h after flexibility provision was taken into account in the calculation of flexibility energy return curve. In this way, we intended to quantify the potential impacts on energy systems and households caused by deviation from their scheduled operation for the purpose of flexibility provision. For instance, because of the positive flexibility provision and resulting energy deficit in the BS system, the household load could not have been covered by the BS as initially planned. In addition, we also integrated the requirements of the surrounding energy system or power grid into the flexibility return quantification. In the worst case, the flexibility provision at a current point in time could lead to an additional system requirement in the future, such that the flexibility provider would not actually cover the need for flexibility but rather postpone it until later. For example, providing positive flexibility at a given point in time could cause higher energy consumption from the power grid later. In order to quantify the potential influence of flexibility provision on the power grid, we extended quantification of the flexibility return by inserting the balancing power per household into the calculations. For the flexibility return, we considered the balancing power values with a sign opposite that of the flexibility power provided. In this way, we attempted to quantify the possible negative effects on the power grid, as well as to make the entire process of flexibility provision more grid- and system-oriented. To summarise, the resulting flexibility return time series was created using both the time series with the operation of the decentralised energy systems and that with the balancing power per household in the following 24 h after the flexibility provision.
For the purpose of better understanding, we demonstrate the simulation results of the flexibility provision and return on the example of the BS system in “EMS-1” on 31 January 2019–1 February 2019. The historical operation of this BS system in the observed period of time can be derived from the scheduled SOC curve represented by the solid grey curve in
Figure 8. The green dashed line indicates the minimum SOC value below which the BS cannot be discharged. According to the simulation, the BS received a request to provide 306.7 Wh of positive flexibility from 15:15 until 17:15. As the BS could have provided this required flexibility and kept its scheduled operation in the subsequent 6 h (according to the flexibility quantification method), we simulated the flexibility provision. However, the latter could have caused the energy deficit in the BS system in the following 24 h after the flexibility request, i.e., the SOC fell below its minimal value at 06:00 on 1 February 2019 (see the red dashed curve in
Figure 8). Therefore, the energy deficit should theoretically be balanced until this point in time. Otherwise, the BS would not have sufficient energy to cover the household load, which would in turn consume more energy from the power grid.
We calculated two energy curves, one being a cumulative energy deficit in the BS system in the 24 h following positive flexibility provision, and another being a cumulative available negative balancing energy per household in the following 24 h. Both curves are displayed in
Figure 9.
Figure 9 shows that within the observed time period, the available negative balancing energy per household occurred before the critical time point at 06:00. Therefore, the energy deficit could theoretically have been balanced by providing this negative balancing power. Based on these two energy curves, we calculated the power values of the possible flexibility return considering both the operation of BS and the need for balancing power in the following 24 h. The power curve of the flexibility provision by the BS system in “EMS-1”, as well as the power curve of the flexibility return, are presented in the top subplot in
Figure 10. The power curve of the flexibility provision (red solid curve) corresponds to the positive flexibility request that was defined as described at the beginning of this Section. The power curve of the flexibility return (blue dashed curve) was calculated considering the operating power of the BS and the available negative balancing power per household. As can be seen, the flexibility return curve includes power values with a sign opposite the power values of the flexibility provision.
In order to assess the simulation results, we calculated the
flexibility balance, which is the percentage of energy provided as flexibility that can be returned within the next 24 h by providing the balancing power with a sign opposite the provided flexibility power values. The flexibility balance is a metric for evaluating the extent to which the flexibility provision can be managed in as a much system- and grid-oriented manner as possible. Within the demonstrated time period, 81.3% of the energy provided as positive flexibility by the BS in “EMS-1” could have been balanced by providing the negative balancing power, as is shown in the bottom subplot in
Figure 10.
As is shown in
Figure 10, the energy deficit caused by the positive flexibility provision on 31 January 2019 could not have been fully balanced by providing the negative balancing energy. However, as the flexibility return was managed by providing the negative balancing energy per household, this flexibility return means that this BS system provided flexibility to the power grid again.
We repeated these simulations for the entire year of 2019 and all the investigated energy systems. Then, we calculated the annual flexibility balance values of all investigated energy systems (see
Table 7).
During the observed year, 55% of the flexibility provided by the BS in “EMS-1” could have been returned by supplying the balancing power with a sign opposite the power values of the flexibility provision. The HP-HS systems in “SFH-8” and “SFH-9”, which are supposed to be operated year-round, have higher flexibility balance values compared to other HP-HS systems that are only supposed to be operated during the cold season (October to April). The flexibility balance values indicate that in 44% of the BS cases and 32% of the HP-HS ones (mean values averaged over all investigated energy systems) the operation of the decentralised energy systems and power grid was not adversely affected by the flexibility provision. This was achieved by balancing the resulting energy surplus or deficit via the flexibility return approach.
The flexibility balance of 100% signifies situations in which the energy deficits or surpluses caused by flexibility provision were fully balanced in a system- and grid-oriented manner, meaning that the flexibility provision at that point in time did not create new flexibility requests in the power grid. However, operation of the decentralised energy systems and power grid in 2019 did not always feature optimal conditions for balancing the energy deficits or surpluses within the 24 h following flexibility provision. Despite this, any remaining portion of the energy surpluses or deficits could theoretically be balanced at a later time through coordinated efforts between the power grid and decentralised energy systems if necessary or required.