Technical description of main components
In this chapter the mathematical models of components, that are used in ReSiE for the simulation of energy systems, are described. In this context a component is defined as one energy processing part (e.g. a heat pump) of the overall system, while the combination of multiple interconnected components is defined as an energy system. For each component the implemented calculation rules and relevant physical quantities and parameters are described. You can find a detailed description of customizable parameters in the corresponding chapter.
Note: Not all components described here are implemented in ReSiE yet but all will be included in upcoming versions! Currently, only simplified component models are integrated. Also, the descriptions are not yet completed and may change later.
Conventions
Symbols:
- Scalars are shown in italic letters (normal math: )
- Vectors or time series in bold and italic letters (boldsymbol: )
- Matrices are bold and non-italic (textbf: )
- Time-derivatives are noted with , meaning
- General energies are noted with , general power with . Thermal energies are noted with and thermal power with .
Components:
- Energy flows into a component are positive, energy flows out of a component are negative
- Components are single units like a heat pump, a buffer tank, a battery or a photovoltaic power plant while energy systems are interconnected components
- Unlike in reality, where the ‘nominal power’ or ‘design power’ or ‘rated power’ of a component is not necessarily the maximum power that the component can deliver or requires, the ‘power’ parameter of a component here in ReSiE always refers to the maximum power that a component can deliver or requires. This is typically defined by one of the inputs or outputs of the component, e.g. by the electrical power consumption of an electrolyser or the heat production of a gas boiler.
- The fraction of utilised power divided by nominal power at a given point in time is called the part load ratio (PLR), or operation point, or power fraction, and can be signified with for the sake of brevity
Heat pump (HP)
Heat pumps use thermodynamic cycles to elevate a medium on one side of the cycle to a higher temperature by lowering the temperature of the medium on the other side, which requires an input of electricity to run the sub-components. The electricity used becomes part of the heat being moved. Heat pump technologies include plants to provide buildings or heat networks with heat for room heating and DHW, as well as other uses such as refrigeration components or Peltier elements. While there are also heat pumps using chemical fuels instead of electricity, these are not included in the model within ReSiE. The two most common technologies, electrically driven variable-speed and on-off compressor heat pumps, are the best fit for the heat pump model described in the following.
General description
The general system chart of a heat pump with the denotation of the in- and outputs is shown in the figure below. In general, a gaseous refrigerant is compressed by the compressor requiring electrical energy, resulting in a high temperature of the refrigerant. The refrigerant is then condensed in the condenser and it releases the energy to the condenser liquid at a high temperature level. After that, the refrigerant is expanded and completely liquefied in the expansion valve. In the following evaporator, the refrigerant is then evaporated at a low temperature level with the help of a low-temperature heat source, after which it is fed back into the compressor.
The energy balance at the heat pump is built up from the incoming electricity , the incoming heat at a low temperature level and the outgoing heat flow at a higher temperature level .
The energy balance of the heat pump model is shown in the following figure:
Using the electrical power , an energy flow with temperature is transformed to the energy flow with temperature . The thermal energy losses and the losses in the power electronics are not taken into account in the actual heat pump model described below, as this would complicate the model even further. Instead, the energy losses are considered outside of the actual heat pump model and are therefore not part of the energy balance equation. The consideration of losses is described in more detail below.
The efficiency of the heat pump is defined by the coefficient of performance (COP). The COP determines the electrical power required to raise the temperature of a mass flow from the lower temperature level to :
The COP is always smaller than the maximum possible Carnot coefficient of performance (), which is calculated from the condenser outlet and evaporator inlet temperature. The maximum possible COP calculated by Carnot is reduced by the carnot efficiency factor , which is according to [Arpagaus2018]2 around 45 % for high temperature heat pumps and around 40 % for conventional heat pumps.
The energy balance (or power balance) of the heat pump can be drawn up on the basis of the latter figure and on the ratio between supplied and dissipated heat power, expressed as the COP:
While ReSiE deals in energy values and energy flow (power), if required the following equation can be used to determine other variables of the heat input or output:
where is the mass flow of the medium and its specific heat capacity.
Modelling approaches: Overview
According to [Blervaque2015]1, four different categories are described in the literature when it comes to the simulation of heat pumps:
- quasi-static empirical models: equation-fit models based on discretized manufacturer or certification data fitted to polynomials, used for example in EnergyPlus or TRNSYS
- dynamic empirical models: equation-fit models extended by continuous transient effects
- detailed physical models: thermodynamic approach based on dynamic and refrigerant flow modelling, many parameters required
- simplified physical models or parameter-estimation models: based on physical model, but with less input parameter needed due to internal assumptions
For the simulation of energy systems in an early design phase, for which QuaSi is intended, only quasi-static or dynamic empirical models can be considered due to the lack of detailed information about the technical components used and the computational effort required for physical models. Therefore, an empirical model based on manufacturer data or certification process data is implemented in ReSiE.
There are several aspects to be considered when simulating a heat pump based on equation-fitting, which will be briefly described in the following:
The COP of a heat pump, representing the efficiency in a current timestep, depends highly on the temperature of the source and the requested temperature of the heat demand. Generally speaking, the efficiency and thus the COP decreases with larger temperature differences between source and sink.
Additionally, the maximum thermal power of the heat pump is not constant for different operational temperatures. The available thermal power is decreasing with lower source temperature, an effect that mainly occurs in heat pumps with air as the source medium. The rated power given in the literature for a specific heat pump is usually only valid for a specified combination of sink and source temperature. The specification for the declaration of the rated power is described in DIN EN 145113.
Furthermore, the efficiency and therefore the COP is changing in part load operation. In the past, mostly on-off heat pump were used, regulating the total power output in a given time span by alternating the current state between on and off. This causes efficiency losses mostly due to thermal capacity effects and initial compression power needed at each start, or rather the compression losses at each shutdown. [Socal2021]11 In the last few years, modulating heat pumps have become more common, using a frequency inverter at the electrical power input to adjust the speed of the compression motor and therefore affect the thermal power output. Interestingly, this method leads to an efficiency increase in part load operation with a peak in efficiency at around 30 to 60 % of the maximum power output. In the literature, many research groups have investigated this effect, compare for example to Bettanini20034, Toffanin20195, Torregrosa-Jaime20086, Fuentes20197, Blervaque20151 or Fahlen20128.
When heat pumps with air as source medium are used, the losses due to icing effects need to be considered as well.
For a more realistic representation, all four discussed effects need to be considered - temperature-dependent COP, temperature-dependent power, part-load-dependent COP and icing losses. The calculation of these dependencies will be described below.
Modelling approaches: Detail
Temperature-dependent COP
The temperature-dependent can be calculated from different methods:
- Using the with the Carnot efficiency factor as explained above. This is easy, simple and fast, but leads to unrealistically high efficiency with small temperature differences between source and sink.
- Looking up the in a look-up table in dependence of the condenser outlet and the evaporator inlet temperature. These are usually taken from manufacturer data sheets and/or measurements and interpolated between support values.
- Calculating the as fraction of temperature-dependent electrical and thermal power, gained from the maximum power output of the heat pump, which is itself a function of the inlet and outlet temperatures. This method however implies that the heat pump runs at full power, as the COP furthermore changes with the PLR (see following sections).
As example for a lookup-table COP, the following figure from Steinacker202243 shows a map of a high-temperature heat pump as a set of curves, depending on the evaporator inlet and condenser outlet temperature and assuming full power. In three dimensions, this figure would result in a surface that can be interpolated between the given support values.

For ReSiE the first two were chosen as available methods, with the Carnot method mostly for cases in which little information on the heat pump is available or high performance is required. For the method using lookup-tables, bi-linear interpolation is done for values between the support values.
By-pass
When the source temperature is equal or higher than the requested sink temperature, a heat pump does not have to go through the thermodynamic cycle and can instead carry the heat from the source to the sink acting like a heat exchanger. In real systems this still requires some electricity to run the pumps and the sensors. To model this, a constant, relatively high is chosen to approximate the work the pumps have to perform.
Losses
Losses in a heat pump can be considered either as efficiency losses, which lead to a reduction in the COP and thus an increase in the electrical energy input, or as actual energy losses that affect the energy balance of the entire model, such as heat losses due to radiation or heat losses in the power electronics. Efficiency losses that affect the COP, e.g. due to partial load operation or high output temperatures, are discussed in the other sections. Actual energy losses are not directly included in the heat pump model, but can be taken into account by means of a "wrap-around". Both electrical () and thermal energy losses () can be applied as fractions of the current electrical and thermal energy demand of the heat pump at each time step, which leads to an increase in energy demand that cannot be utilised as useful thermal energy:
When modelling, attention must be paid to which effects are already taken into account in a provided COP curve and which must be additionally mapped via the "wrap-around" for electricity and heat demand using the efficiencies and .
Note that should rather be seen as a fictitious efficiency that covers all heat losses of the heat pump in relation to the thermal energy input in every time step. When using measured data, it represents the energy that is missing in the energy balance when measuring the thermal input, electrical input and thermal output energy.
In measurement data a certain constant electrical demand can often be observed when the heat pump is not running, which is likely caused by eletronic components that are always running or in stand-by mode. This can be approximated by a constant electric power loss term that is always applied and effectively reduces the available electric energy or, if electricity is not the limiting factor, an additional electric demand from the heat pump. Considering this additional loss term results in:
Maximum and minimum thermal output power
With the COP of the heat pump determined by one of the methods described in the previous section, the maximum and minimum power of the heat pump is modeled independently, but in relation to the source and sink temperatures. In general, power of the heat pump is understood as the thermal output of the heat pump here. In the following the nominal power of the heat pump, user-provided via the input file, is defined as the highest maximum thermal output power value over all possible temperature values and at the part load ratio with the best efficiency . This is different than in real systems, where the nominal power is defined at a particular pair of input/output temperature values. For the model instead, it is important that in all cases.
Comparing available data of many different heat pumps from Stiebel-Eltron9, specifically those with air as the source medium, three important observations can be made:
- The minimum power of a heat pump also plays a role as this can be a significant fraction of the maximum power and in some cases even limit the heat pump to a single on-or-off operational state at a fixed power
- The maximum and minimum power values vary a lot across the possible source and sink temperatures
- The differences between heat pump systems necessitates that the curves, if this information is available, can be given as input to the simulation for improved accuracy compared to averaged curves
In the simulation, the maximum and minimum power are calculated based on multiplied with a reduction factor as a function of the source and sink temperature, . This reduction curve has to be normalized and should return values in :
If no specific curves are known for the heat pump, a model based on biquadratic polynomials is described in TRNSYS Type 401 and can be used as a best guess. Note that this must be normalised before it is entered into the model:
where all temperatures are normalised according to
Note that this does not include a formulation for minimum power, which is assumed to be zero. It is an open question if any set of coefficients exists, that can represent most heat pump technologies with reasonable accuracy. We would be glad to include these as default values.
Part load efficiency
The COP of the modeled heat pump depends not only on the temperatures of the sink and the source but also on the current part load ratio (PLR) . The COP can be corrected using a part load factor (PLF) that is dependent of the PLR:
The PLF curve is an input to the simulation and can be configured by a variety of function prototypes. This is described in more detail in the corresponding section on function definitions.
The literature provides different examples for the correlation of the COP to the PLR (see section "Overview" for literature examples). This relation is non-linear as shown for example in the following figure given the part-load-dependent COP of an inverter-driven ENRGI-Heatpump at different temperature levels (Source: Enrgi10).

The part-load behavior depends also on the type of the heat pump (on-off or inverter heat pump), as shown for example in Bettanini20034 or in Socal202111. For illustration, the following figure is taken from the latter reference to demonstrate the different part load factors of the COP (y-axis) at different part load ratios for different heat pump technologies:

Taking the correction factor curve from the figure above for inverter heat pumps, the maximum part load factor is reached at 50 % part load with an increase of the COP by about 10%. Contrary, in Toffanin20195, the part load factor is assumed to be much higher, reaching its maximum at 25 % part load ratio with a part load factor of 2.1 (efficiency increase of 110 %). These discrepancies illustrate the wide range of literature data and the difficulty in finding a general part load curve. In Lachance202113, several part load curves are compared.
A unified formulation for on-off and inverter heat pumps can be derived from descriptions in the literature. The PLF curve for inverter-driven heat pumps is based on Blervaque20151 and Filliard200912. There, the curve is defined in two separate sections. The section below the point of maximum efficiency is a function according to the PLF calculation in DIN EN 14825 for water-based on-off heat pumps, differing from the cited paper according to Fuentes20197. The section above the point of the maximum efficiency is approximated as linear. The definition of these curve can be done entering the coefficient and the coordinates of the two points highlighted in the figure below. Here, is chosen as 0.95 and is used to stretch the curve to meet the intersection point with the straight line.
This results in the following equation to calculate the part load factor for inverter-driven heat pumps, defined by the coefficients and according to DIN EN 14825 and the point of maximum efficiency at (,):
For on-off heat pumps, and .
Calculating energies from the part-load-dependent efficiency
As described in the corresponding section, it is possible to calculate the input and output energies from the efficiency as function of the PLR through numerical inversion in a pre-processing step. However because of reasons described in the section on the slicing algorithm, this does not work if there are multiple sources or multiple sinks to be considered. In addition, several multidimensional functions for various effects would have to be considered, which increases the complexity a lot. Therefore this is not implemented, which leads to worse performance for heat pumps with exactly one source and exactly one sink as compared to the theoretical case. A future update might address this problem.
Cycling losses, start-up ramps and cooldown
The general effect of energy system components experiencing reduced output power and/or efficiency during a starting phase of operation is described in this section. This effect is also observed for heat pumps and described in the literature. At the moment this effect is not included in the model and not implemented. This will be included in a future update as it is a vital part of a detailed operational simulation.
The cycling losses of an alternating heat pump are covered by the part-load-dependent efficiency functions.
Icing-losses of heat pumps with air as source medium
To account for icing losses of heat pumps with air as source medium, the approach presented in TRNSYS Type 401 is used15. When enabling calculation of icing-losses it is necessary to ensure that the COP curves do not already take icing into consideration.
For the calculation of icing losses, five coefficients are needed: , , , and . According to the Type 401, icing losses are calculated using a superposition of a gaussian curve with its maximum between 0 °C and 5 °C representing the maximum likelihood of frost within the heat pump (high absolute humidity) and a linear curve, representing the higher sensible energy effort to heat-up the components of the heat pump for defrosting. Exemplary curves are shown in the following figure (linear, gauss and superposition):

The exemplary coefficients for the curves in the figure above are , , , , .
The resulting superposition, which represents the percentage loss of the COP due to icing as a function of ambient temperature, is expressed by the following formula, where the coefficients are reduced to the last letter for better readability:
can then be used to reduce the COP for icing losses:
According to the results found in Wei202114, it is assumed that the decrease of the COP due to icing losses will only increase the power input of the heat pump. It will not affect the thermal power output.
Steps to perform in the simulation model of the heat pump
The following section shows the calculation steps that are performed in the heat pump model of ReSiE to determine operation.
Slicing algorithm
A heat pump can be set up within an energy system such that multiple sources and/or multiple sinks are connected to it via busses. This corresponds to a real system providing heat for different demands (such as room heating and DHW) or being supplied with sources of different temperatures with the aim of preferably using higher source temperatures for increased efficiency. A real system would typically supply one sink at a time based on temperatures in pipes or tanks and similarly switch between sources based on their temperatures. In the model the heat pump cuts the current time step into slices such that exactly one source layer and exactly one sink layer is considered in each slice and the amount of time spent on each slice adds up to equal or less than the entire time step.
The figure above shows how the algorithm works for an example with two sources and two sinks and a limited amount of electricity available. Both sources and sinks are sorted according to priorities, but the heat pump could also change the order based on control modules. The algorithm goes through four steps to calculate which source layer supplies how much heat to which sink layer and how much electricity is used overall:
- In the first step source 1 has 4 units of energy left at 25 °C to supply 7 units of heat at 70 °C and 4 units of electricity are available. With a COP of 4.0, the result is that the source layer is used up completely, which requires 2 units of electricity and produces 6 units of heat.
- In the second step 1 unit of heat is left to be supplied at 70 °C. The second source layer supplies 0.5 units of heat and requires 0.5 units of electricity, for a COP of 2.0.
- In the third step the second sink layer with 5 units of heat at 45 °C can be supplied from the remaining 5.5 units of the second source layer. With a COP of 4.0 this requires 1.25 units of electricity. If the remaining available electricity had been less than 1.25 units, some energy of the second sink layer would have been left unsupplied.
- In the fourth step it is detected that one of the inputs or outputs, namely the heat output, was used up completely and the algorithm finishes.
Note that the algorithm also works with sources and sinks that can supply/request an infinite amount of energy as long as it is never the heat input and heat output that are infinite.
Process of calculating energies for one slice
The following pseudo-code example shows how the energies for one slice are calculated:
function energies_for_one_slice(
available_heat_in,
available_el_in,
available_heat_out,
T_source_in,
T_sink_out,
kappa
) returns
used_heat_in,
used_el_in,
used_heat_out
begin
if (COP is constant) then
COP = COP_const()
else if (T_source_in >= T_sink_out) then
COP = COP_bypass()
else
COP = COP_dynamic(T_source_in, T_sink_out)
COP = COP * PLF(kappa)
COP = COP * (1 - icing_losses(T_source_in) / 100)
end
used_heat_in = available_heat_in
used_el_in = used_heat_in / (COP - 1)
used_heat_out = used_heat_in + used_el_in
if (used_heat_out > available_heat_out) then
used_heat_out = available_heat_out
used_el_in = used_heat_out / COP
used_heat_in = used_el_in * (COP - 1)
end
if (used_el_in > available_el_in) then
used_el_in = available_el_in
used_heat_in = used_el_in * (COP - 1)
used_heat_out = used_heat_in + used_el_in
end
end
This function is not concerned with the power at which the heat pump can operate for the given slice and does not decide the PLR. The inputs to the function are available energies (or to be supplied for the heat output), temperatures and the PLR. They are specific to the slice in question.
Part load operation and optimisation of PLR
Given the slicing algorithm and the function energies_for_one_slice as described above, it is then the question of how much power is available for each slice and at which PLR each slice is performed. The minimum and maximum power for each slice depends only on temperatures, however the PLR does affect the COP.
Three different approaches to solve this problem are implemented, controlled by the model_type parameter:
- For the
simplifiedmodel, the PLR is set to1.0for all possible slices and the slicing algorithm is performed once to get a result. This offers good performance and can be used if the PLF function is constant. - For
on-offheat pumps, the PLRs are initially set to a value determined from the demands in that time step. Then an optimisation of the PLR values is performed to find values that meet demands and try to make the time spent on each slice sum up to the time step. This captures the cycling losses of a on-off heat pump using the PLF function, which is strictly less than1.0. - This works similarly for
inverterheat pumps, which also optimise PLR values, however the objective function is chosen to prefer lower electricity input, to capture the increased efficiency of the heat pump when running close to the optimal PLR.
In the latter two cases the optimisation is required for accurate calculation, but incurs a fairly large performance penalty. It can be configured to use fewer iterations, however no clever configuration can avoid this penalty and it might be better to use the simplified model when performance is important, then switch to a detailed calculation once a specific solution is identified.
Inputs und Outputs of the Heat Pump:
| Symbol | Description | Unit |
|---|---|---|
| heat flow supplied to the HP (heat source, including thermal losses) | [W] | |
| heat flow supplied to the HP (heat source, directly into the heat pump excluding losses) | [W] | |
| heat flow leaving the HP (heat sink) | [W] | |
| electric power demand of the HP (including losses from the power electronics) | [W] | |
| electric power demand of the HP (directly into the heat pump, excluding losses) | [W] | |
| thermal energy losses | [W] | |
| electrical energy losses | [W] | |
| condenser outlet temperature | [°C] | |
| evaporator inlet temperature | [°C] | |
| calculated COP | [-] | |
| calculated COP including losses of the power electronics | [-] | |
| weighted-mean of chosen input temperatures | [°C] | |
| weighted-mean of chosen output temperatures | [°C] | |
| weighted-mean of the of each slice | [-] | |
| activation time factor as fraction of the simulation time step, during which the heat pump was active | [-] |
Parameters of the Heat Pump:
| Symbol | Description | Unit |
|---|---|---|
| nominal (= maximum!) thermal energy output of heat pump | [W] | |
| function for maximum thermal heat output at given temperatures | [W] | |
| function for minimum thermal heat output at given temperatures | [W] | |
| function applied to to calcualate | [-] [0:1] | |
| function applied to to calcualate | [-] [0:1] | |
| function for COP depending on and | [-] | |
| constant COP, if given overrides dynamic COP and bypass calculation | [-] | |
| COP during bypass operation | [-] | |
| function used to modify the COP depending on | ||
| maximum PLR, usually 1.0, but might differ depending on control modules | [-] | |
| five coefficients for curve with icing losses according to TRNSYS Type 401 (air-sourced heat pumps only) | [-] | |
| efficiency of the power electronics | [-] | |
| efficiency factor representing possible thermal energy losses with respect to the thermal input power | [-] | |
| constant loss of electricity input, even when the heat pump is not running | [W] |
Chiller
Various technologies exist to provide cooling power on a scale of buildings or for industrial processes. All of them function similar to heat pumps in that they transfer heat from one end of a thermodynamic cycle to the other. The difference is that for a chiller the useful energy is not but .
Regarding the efficiency of a chiller, a common concept is the energy efficiency ratio (EER) defined as:
Because cooling demands in ReSiE are modeled as fixed sources of heat, no changes in the heat pump definition is required and the EER is not needed for calculation. This should be taken into account when consulting literature to determine the efficiency as sometimes the EER value is listed, but labeled as COP.
The example "Heating and cooling demands" shows how a cooling demand can be handled using a heat pump.
Compression chiller (CC)
Compression chillers are modeled as compression heat pumps. The produced waste heat, at a higher temperature then the cooling demand, can be removed from the system by a generic flexible sink.
Absorption/adsorption chiller (AAC)
This component is not implemented yet!
Hydrogen Electrolyser (HEL)
Implements traits: PLR-dependent efficiency
The hydrogen electrolyser uses electrical energy to split water into its components hydrogen () and oxygen () as shown in the following reaction equation:
While there is electrolyser technology to work with other chemical reactions or solutions of minerals in water (e.g. sea water hydrolysis), this model focuses on electrolysers splitting purified water as this is the most relevant technology at time of writing.
The use of waste heat of the electrolysis is an important factor for the overall efficiency of the electrolyser. This importance stems from both a substantial, non-reducable part of the input electricity being transformed into waste heat and by several effects concerning the temperature and availability of the heat outputs.
The general energy and mass flow in the electrolyser as well as the losses considered in the model can be seen in the following figure.
The relationship between supplied hydrogen of the electrolysis (energy or mass flow ) and the consumption of electrical energy is given in the following equation, where can be either the net or the gross calorific value of hydrogen:
Some part of the waste heat apart of the cooling loop can potentially be utilised. Electrolysers tend to be designed for high power draw and subsequentially produce a comparitively large amount of low temperature waste heat from power system cooling, radiative and conductive losses of the stacks and pressure handling, among other sources. Depending on the installation and configuration of the equipment some of this low temperature waste heat can be usable instead of being removed from the energy system entirely. A realised PEM electrolyser 16 was reported to make use of the low temperature waste heat and produce in 2023, via a heat pump, 261 MWh high temperature heat using 91 MWh of electricity for a COP of 2.87. However as not all installations can make use of this waste heat, in the model this can be toggled off, which will cause the low temperature waste heat to be counted towards the overall losses of the electrolyser.
Due to the difficulty of finding good numbers for parameters as well as reducing the model complexity to energy balances, the model displayed above is restructured to combine the losses of water purification and power electronics by affecting the efficiency of producing hydrogen from input electricity and the amount of high and low temperature waste heat. The losses of hydrogen from purification processes is modeled as two efficiencies curves for produced hydrogen with one including losses and one excluding them.
The figure above shows the inputs and outputs of the reduced model with the following relations:
Since the oxygen produced during the electrolysis process can also be utilized under certain circumstances, the resulting oxygen mass flow is determined from the stoichiometric ratio of the hydrolysis reaction equation:
Note: At the moment the pressure, at which the stacks operate and the hydrogen is extracted and purified, is assumed to be constant throughout the entire process and does not affect efficiencies or heat by-products. This might be addressed in a future release.
Unit dispatch
Depending on the sizing and technology of realised electrolysers, the whole plant often consists of more than one stack and/or more than one set of power supply equipment. This is modeled as the electrolyser consisting of units, which are all the same in regards to design power and efficiencies. The efficiency functions given as input parameters thus relate to a single unit with its own power supply subsystem. The electricity input of the overall electrolyser is split across the active units in a single timestep with no losses occuring before the split. Rather, each unit individually calculates its losses from the available energy. In a similar manner the hydrogen, oxygen and heat outputs are summed over the active units with losses being considered by each.
Different options exist for how to dispatch the units to meet a demand, in particular as the minimum power fraction of each unit tends to be fairly high and a lower overall can only be achieved by not activating all units. In addition, the efficiencies of each unit are not necessarily optimal at full load and a performance increase can be achieved by choosing the right number of units to activate close to the optimal PLR.
Note: The electrolyser is only operated between and maximum 100 % load. A specification of power above nominal power, which can occur in practice under certain circumstances, is not supported. The efficiency curves should take this into account. The nominal power should reflect the maximum operation point that can be sustained for several hours.
The currently implemented dispatch strategies for electrolysers are:
- Equal distribution: This spreads the load evenly across all units. This is a simplified model that ignores .
- Equal distribution with minimum power fraction: Same as an equal distribution, however if the total is lower than , then a number of units are activated at a calculated to ensure the minimum restriction is observed and the demand is met.
- Try optimal PLR: Attempts to activate a number of units close to their optimal PLR to meet the demand. If no optimal solution exists, typically at very low or close to the nominal power, falls back to activating only one or all units.
Inputs and Outputs of the Electrolyser:
| Symbol | Description | Unit |
|---|---|---|
| electrical power requirement of the electrolyser | [W] | |
| oxygen mass flow delivered by the electrolyser | [kg/h] | |
| hydrogen mass flow produced by the electrolyser (before losses) | [kg/h] | |
| hydrogen mass flow provided by the electrolyser (after losses) | [kg/h] | |
| hydrogen energy flow discharged from the electrolyser (before losses) | [W] | |
| hydrogen energy flow provided by the electrolyser (after losses) | [W] | |
| losses | [W] | |
| high temperature heat provided by the electrolyser | [W] | |
| low temperature heat provided by the electrolyser | [W] | |
| thermal losses (unusable waste heat) | [W] | |
| Overall losses of the electrolyser | [W] |
Parameters of the Electrolyser:
| Symbol | Description | Unit |
|---|---|---|
| total electric power consumption of the electrolyser under full load (operating state 100 %) | [W] | |
| number of units that make up the electrolyser plant | [-] | |
| dispatch strategy | method of dispatching the units of the electrolyser to meet demand | [-] |
| efficiency of hydrogen production of each unit as function of | [-] | |
| percentage of hydrogen losses of each unit as function of | [-] | |
| efficiency of high temperature heat production of each unit as function of | [-] | |
| efficiency of low temperature heat production of each unit as function of | [-] | |
| minimum of each unit | [-] | |
| minimum total of the electrolyser | [-] | |
| optimal of each unit at which production is most efficient | [-] | |
| mass-dependent energy of hydrogen (net calorific value or gross calorific value) | [Wh/kg] | |
| stoichiometric mass-based ratio of oxygen and hydrogen supply during electrolysis | [kg / kg ] | |
| cooling HT fluid outlet temperature of electrolyser | [°C] | |
| cooling LT fluid outlet temperature of electrolyser | [°C] |
Typical efficiency functions
Note: These are exemplary values and do not imply validation or extensive research.
Constant efficiencies
- Adapted from a realised PEM electrolyser described in Stickel202416 from the data of 2023, a year of mostly nominal operation. Of note is that the electrolyser was still in the process of being improved. The values are thus perhaps somewhat pessimistic for the expected efficiency.
- Note: This value was estimated.
Combined heat and power plant (CHPP)
Implements traits: PLR-dependent efficiency
A CHPP turns the energy stored in a chemical fuel into electricity and heat at a temperature usable for heating and DHW purposes. Typical examples are internal combustion engines or gas turbines. Because the outputs are not produced independently of each other, control of the CHPP has to consider one output as the target to meet while the other is a by-product that has to be consumed, stored or transported.
Energy balance of a CHPP:
The production of electricity and heat follows different efficiency curves:
Because the nominal power of a CHPP is typically either given as or at , an efficiency curve for the fuel input (relative to either one of the outputs) is also needed. Note that this efficiency is larger than 1.0 as it relates to the amount of fuel consumed to produce a certain output, which is necessarily smaller. For example if the nominal power is given as relative to the electricity output, then the inputs and outputs are calculated with the following relations:
The losses are calculated as a direct result of the energy balance:
Inputs and Outputs of the CHPP
| Symbol | Description | Unit |
|---|---|---|
| electric power output of the CHPP | [W] | |
| thermal power output of the CHPP | [W] | |
| fuel input power of the CHPP | [W] | |
| thermal energy losses of the CHPP | [W] | |
| temperature of heat output | [°C] |
Parameters of the CHPP
| Symbol | Description | Unit |
|---|---|---|
| nominal power of the CHPP at | [W] | |
| thermal efficiency as function of | [-] | |
| electric efficiency as function of | [-] | |
| fuel efficiency as function of | [-] | |
| minimum allowed PLR of the CHPP | [-] | |
| temperature of heat output | [°C] |
Typical efficiency functions
Note: These are exemplary values and do not imply validation or extensive research.
A general overview of CHP technology can be found in Ebrahimi201517.
Internal combustion engines
Relevant technologies include reciprocating / piston engines fed by natural gas or petroleum. Heat extraction is done by exhaust gas heat recovery and the motor jacketing cooling system. For engines of fairly large nominal power () the motor oil / lube is also cooled and can provide additional heat output.
Adapted from Ebrahimi2015:
Piece-wise linear functions relative to fuel input.
| Support values | |
|---|---|
| 0.0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1.0 | |
| 0.01, 0.17, 0.25, 0.31, 0.35, 0.37, 0.38, 0.38, 0.38 | |
| no oil | 0.8, 0.69, 0.63, 0.58, 0.55, 0.52, 0.5, 0.49, 0.49 |
| total | 0.93, 0.79, 0.71, 0.65, 0.61, 0.57, 0.55, 0.53, 0.53 |
Fuel boiler (FB)
Implements traits: PLR-dependent efficiency
Energy balance of fuel boiler:
Inputs and outputs of the FB:
| Symbol | Description | Unit |
|---|---|---|
| thermal power output of the FB | [W] | |
| energy demand of the FB as chemical fuel | [W] | |
| thermal losses of the FB | [W] |
Parameters of the FB:
| Symbol | Description | Unit |
|---|---|---|
| rated thermal power output of the FB at | [W] | |
| thermal efficiency of fuel boiler as function of | [-] | |
| minimum allowed PLR of the FB | [-] |
Typical efficiency functions
Note: These are exemplary values and do not imply validation or extensive research.
Note: An important part of choosing efficiency values is considering if the efficiency is relative to the lower, higher or gross heating value of the fuel. The simulation model outputs energy values for the required fuel for operation. How a given energy value corresponds to an amount of fuel is directly related to the heating value to which the efficiency is relative. For example, if a fuel with a GHV of 2.8 and a fuel boiler with a constant efficiency of 0.9 relative to the GHV is used, this means a simulated heat output of 25.2 kWh can be expected from 10 kg or 28 of input fuel.
Conventional gas-fired boiler
- Adapted from LeeSeo201918: . Note that the coefficients in the paper do not match given values. The coefficients were adapted as we were not able to replicate the figures in the paper.
Wood pellet boiler
- Bottom-feed boiler, adapted from Verma201319: Constant 88.5%
- Top-feed boiler, adapted from Verma201319: 70% at , 87% at
- Horizontal-feed boiler, adapted from Verma201319: Constant 88.25%
Gas boiler (GB)
Modelled as fuel boiler with burnable gasses as input.
Oil heating (OH)
Modelled as fuel boiler with liquid fuel as input.
Electric heating rod (ER)
Modelled as fuel boiler with electricity as input. This is not physically correct, as electricity is not a chemical fuel, however the numerical mechanisms are the same.
Biomass boiler (BB)
Modelled as fuel boiler with solid biomass fuel as input.
Thermal booster (TB)
The thermal booster is a simple thermodynamic component that raises the temperature of a thermal demand by combining two sources of energy:
- Low-temperature heat from an external source (e.g. a storage or a district heating system).
- Additional energy, which is converted into heat inside the booster (e.g. electrical energy).
The goal is to take a demand with a given return (cold) temperature and provide it at a higher supply temperature. Whenever possible, the booster uses low-temperature heat first and only uses additional energy for the remaining temperature lift.
Basic energy balance
The demand returns (input into the thermal booster) with a temperature [°C] and should be delivered at a higher outlet temperature [°C]. The working fluid has an (assumed constant) specific heat capacity [J/(kg·K)], and the mass flowing through the booster during that step is [kg].
The useful heat supplied to the demand in that time step is then where [Wh] is the useful heat delivered to the demand. This heat is composed of two contributions: low-temperature heat taken from an external source and heat generated by boosting.
Denoting [Wh] as the heat taken from the low-temperature source and [Wh] as the heat added by the thermal booster, the energy balance of the component is
In thermodynamic terms, the thermal booster first preheats the fluid from the demand return temperature up to some intermediate temperature [°C] using low-temperature heat. Then it uses additional energy to lift the temperature from up to the desired outlet temperature .
The low-temperature contribution is and the additional boosting contribution is
Here, [°C] is the intermediate temperature after preheating but before boosting.
Using these definitions, the total useful heat is automatically satisfied by the sum of preheating and boosting. In the model, is chosen such that it respects the physical limits of the low-temperature source (in particular a minimum terminal temperature difference to the source), and such that the available low-temperature energy and available boost energy are not exceeded. From the thermodynamic point of view, this just determines how much of is taken from the low-temperature side and how much must be provided by additional energy.
Inside the thermal booster, the additional heater is treated as an ideal thermal converter before losses: every unit of net boost energy used by the heater appears as the same amount of heat added to the fluid. We therefore identify where [Wh] is the additional energy effectively converted into heat inside the fluid and [Wh] is the boosting heat that raises the fluid temperature from to .
The actual additional power rating of the booster, [W], limits the maximum in one time step via with [s] the simulation time step.
Representation of losses
The thermal booster distinguishes between losses associated with additional boost energy input and losses associated with low-temperature heat input. These are represented by two constant efficiency factors with values typically between 0 and 1:
- for losses on the additional boost energy side (for example electrical losses, internal conversion losses),
- for thermal losses with respect to the low-temperature thermal input.
If we denote by [Wh] the gross boost energy taken from the surrounding system and by [Wh] the gross low-temperature heat taken from external sources, then the net useful energies actually available inside the booster are
With the identification the total useful output heat becomes
The difference between gross and net energies represents the losses of the component. The additional boost energy losses are and the thermal losses associated with using low-temperature heat are
The total losses of the thermal booster in one time step are then given by
These losses quantify how much of the energy drawn from the sources does not appear as useful heat at the outlet but is dissipated, for example in auxiliary components, conversion losses or imperfect thermal coupling.
Operation modes
The use of the additional boost energy is controlled by two boolean switches:
-
allow_boost_solelyenables boost-only operation. If this flag istrue, the thermal booster may deliver heat even when no low-temperature heat is available (), i.e. . If it isfalse, the component requires a non-zero low-temperature contribution to operate; without , no heat is supplied, even if boost energy would be available. -
allow_boost_additionalcontrols how strictly the low-temperature source has to do the heating. If this flag isfalse, the low-temperature side must always heat the demand as far as possible (up to its maximum feasible intermediate temperature). The booster is then only allowed to do the remaining temperature lift to . In this case, the delivered heat is essentially limited by how much low-temperature heat is available; boost energy cannot compensate a lack of . If this flag istrue, the low-temperature side is not forced to provide the maximum possible temperature lift. Whenever the low-temperature heat is not sufficient to reach the required mass flow to satisfy the desired energy demand, the model can use additional boost energy to cover the missing part. This allows the booster to deliver the required even without enough low-temperature energy, as long as boost power and demand limits are respected.
Together, these switches allow the thermal booster to be configured as a pure topping device (no boost-only, no additional boost), as a flexible hybrid that can supplement low-temperature heat, or as a pure boost device that can operate independently of any low-temperature source.
Symbols and thermodynamic parameters
| Symbol | Description | Unit |
|---|---|---|
| Specific heat capacity of the output medium (assumed constant) | [J/(kg·K)] | |
| Mass of fluid passed through the booster in the considered time step | [kg] | |
| Maximum additional (boost) power rating of the booster | [W] | |
| Net useful boosting heat added by the booster in the considered time step | [Wh] | |
| Gross boost energy drawn from the additional energy side (e.g. electrical grid) | [Wh] | |
| Net boost energy effectively converted into heat inside the fluid | [Wh] | |
| Useful heat delivered to the demand in the considered time step | [Wh] | |
| Gross low-temperature heat taken from external thermal sources | [Wh] | |
| Net low-temperature heat effectively used for preheating | [Wh] | |
| Net useful heat taken from the low-temperature source in the considered time step | [Wh] | |
| Losses associated with the additional boost energy input | [Wh] | |
| Losses associated with low-temperature heat input | [Wh] | |
| Total losses of the thermal booster (boost plus thermal losses) | [Wh] | |
| Return (input) temperature of the demand at the inlet of the thermal booster | [°C] | |
| Outlet (supply) temperature delivered by the thermal booster to the demand | [°C] | |
| Intermediate temperature after preheating with low-temperature heat and before boosting | [°C] | |
| Input temperature of the low temperature supply | [°C] | |
| Duration of the simulation time step | [s] | |
| Efficiency factor for the additional boost energy path | [-] | |
| Efficiency factor for the low-temperature heat path | [-] |
Heat exchanger
This component is not implemented yet!
There are many different types of heat exchangers, all of which result in different calculations when derived from first principles of thermodynamics. As detailed thermodynamics and hydraulics are not part of ReSiE's simulation model, a simplified model is used. Of the three inputs , , and three outputs , , , typically and remain unknown. Here, "source" and "sink" stand in for the commonly called hot and cold sides of a heat exchanger.
Approximation of temperature reduction
Given the unknown variables and the number of heat exchanger variations, no definitive calculation of , which is the important variable for further calculations of other components, seems possible. The simplest solution is a reduction by a fixed amount (which might be zero). A more complicated approach is based on the logarithmic mean temperature difference (LMTD), which is defined as
for a counter-current heat exchanger. Similar calculations can be made for cocurrent and cross-current heat exchangers. Setting allows us to disregard the unknown variables by introducing a new one in the form of , which is a measure for the temperature spread across the length of the exchange area. As heat exchangers are designed for a specific range in temperatures and mass flow, is expected to change in respect to the temperatures, becoming smaller the more approaches the extreme sides of the range.
This leads to the following formulation:
with being the design temperature range and being the minimal reduction in temperature.
Note: This is not a fully sound formulation, but has been deemed sufficiently accurate to values from experience.
Heat sources
Some sources of heat, such as ground sources, require detailed models and are described in their own sections. A generic implementation for heat sources is provided, which can model any type of heat source which only provides heat, but does not take any in. Ground sources typically must be regenerated outside of the heating period and thus act as a seasonal storage of heat.
Typical sources of heat
| heat medium | name | implementation |
|---|---|---|
| ground | probes | Geothermal Probes |
| ground | horizontal collector | Geothermal Heat Collector |
| ground | basket collector | not implemented |
| ground | trensh collector | not implemented |
| ground | spiral collector | not implemented |
| water | groundwater well | Generic Heat Source |
| water | surface waters | Generic Heat Source |
| water | waste heat from industrial processes | Generic Heat Source |
| water | waste water | Generic Heat Source |
| water | solar thermal collector | Generic Heat Source |
| water | district heating network (supply only) | Generic Heat Source |
| air | ambient air | Generic Heat Source |
| air | exhaust air | Generic Heat Source |
| air | hot air absorber | Generic Heat Source |
Generic Heat Source
Acts as a general flexible supply component on a medium that has a temperature and with an optional, simplified heat exchanger built in. Requires an input for and for the maximum value of in the current time step.
The heat exchanger can be modelled with a constant temperature reduction, a LMTD-based approach or no reduction at all.
Furthermore it is assumed that the heat exchanger can always be controlled and operated in such a way that , meaning that losses are considered to occur on the input side and thus outside of the energy system.
Inputs and outputs:
| Symbol | Description | Unit |
|---|---|---|
| thermal power output | [W] | |
| temperature of the input side | [°C] | |
| temperature of the output side | [°C] |
Parameters:
| Symbol | Description | Unit |
|---|---|---|
| maximum power of the heat source, either constant or from a profile | [W] | |
| temperature of the input side, either constant or from a profile | [°C] | |
reduction model |
which reduction model to use | [-] |
| constant reduction of temperature to the output side | [K] | |
| minimal temperature of the design range | [°C] | |
| maximal temperature of the design range | [°C] | |
| minimal reduction of temperature (plus -correction) | [K] |
Geothermal Probes
Overview
Geothermal probes are vertical geothermal heat exchangers with a typical drilling depth of 50 - 250 m. Into the borehole, which usually has a diameter of 150 - 160 mm, pipes are laid. In most cases, two pipes are inserted into the borehole in a U-shape and the borehole is subsequently filled with filling material. The purpose of the filling material is to improve the thermal properties of the heat transfer between the probe tubes and the ground and to give the borehole stability. Geothermal probes serve as heat reservoirs for heat pumps and can also be used conversely as cold reservoirs in summer regeneration mode. In larger systems, several borehole heat exchangers are connected hydraulically in parallel to form fields of geothermal probes. Over longer periods of time, the temperature fields around adjacent probes in a field influence each other. There are several approaches to model geothermal probes. In ReSiE, an approach based on g-functions is chosen. Using the g-functions, temperature responses of the surrounding earth to changes in thermal in- and output power can be calculated, as illustrated in the figure below. This approach eliminates the need to numerically calculate the temperature field of the entire ground at each time step and is therefore computationally efficient. The g-function values are based on analytical mathematical computational equations, which will be discussed in more detail later.
Basic simplifications
The soil is assumed to be homogeneous with uniform and constant physical properties over time. The properties can be determined, for example, by a thermal response test, or estimated by assumptions of the soil typology with standard values from VDI 4640-120. In addition, it is assumed that the heat transport processes in the ground are based exclusively on heat conduction. Convective effects, like ground water flow, are therefore not taken into account. All probes in the probe field are assumed to be identical in geometry and design and are hydraulically connected in parallel, i.e. the same volume flow rate flows through all of them in each time step. The borehole and fluid temperatures of each individual probe are assumed to be the same and the total heat extraction and input rates are divided equally among all probes.
g-function approach
The general g-function approach was introduced by Eskilson.21 The current temperature at the borehole wall as response to a specific heat extraction or injection within one timestep can be determined using the following equation:
where is the undisturbed ground temperature, is the heat conductivity of the soil and the pre-calculated g-function value at the current simulation time . can be calculated with the total heat extraction rate for one single probe , which is constant over each time step, and with the probe depth . is considered to be uniform over the entire depth of the probe.
Since the heat extraction or injection rate varies with each time step, a superposition approach is chosen, which is based on Duhamels theorem22. The temperature at the borehole wall is calculated by superimposing the temperature responses to past heat pulses:
The undisturbed ground temperature can be assumed as a constant value averaged over the probe depth. With the assumption of a thermal borehole resistance between the borehole wall and the circulating fluid, an average fluid temperature can be calculated from the borehole temperature. The calculation approach of the thermal borehole resistance will be discussed in more detail later.
Since a uniform borehole wall temperature over the entire probe depth is assumed, a depth-averaged fluid temperature is calculated.
Determination of the g-function
There are a number of approaches of varying complexity for determining the g-functions. Fortunately, there are already precomputed libraries, such as the open-source library of Spitler and Cook27 from 2021, that is used in ReSiE to avoid time-consuming calculation for g-functions of a specific probe field configurations. The probe field configuration is understood as the number of probes in the field, the respective probe depth, the distance between the probes and the overall geometric arrangement of the probes. The library by Spitler and Cook offers 27 pre-calculated g-function values at different time nodes for each of almost 35,000 available configurations. Between these time nodes, ReSiE interpolates in order to be able to access the corresponding g-function values for each simulation time step. The g-functions extracted from the library are transformed and interpolated in ReSiE to meet the desired probe length and the spacing between the probes as described in the manual of the library. The first node of the library is always at , where is the steady-state time defined by Eskilson in 198721:
where is the thermal diffusivity of the surrounding earth and is the probe depth. Depending on the thermal properties of the soil, the first given value in the library mentioned above at corresponds to a time after several days to weeks. Since the simulation time step size is in the range of a few minutes to hours, further g-function values must be calculated to fill the given 27 nodes of the precalculated g-function values with a finer discretisation. This is curently done by interpolating linearly between the given time steps of the library, except for the time span between and . Here, short-time effects of the probes are dominant and a linear interpolation would cause a significantly different system behaviour. A spline interpolation has been investigated as well, but the results were not satisfying. Other interpolation methods are difficult, as the g-function is not necessarily monotonically increasing as in the figure below, especially for small probe fields, and therefore a fit to a ln-function of the whole g-function is not possible.
Different approaches were investigated to try to achieve a better representation of the short-time effects. This was done under the assumption that single probes in a probe field do not influence each other during these short periods of time.23 Thus, a calculation method for the g-function can be chosen that is only valid for a single probe. Both an approach by Carslaw and Jaeger 24 using an assumption of an infinite cylindrical source or sink and one by Kelvin25, described by Laloui and Loria26, using an infinite line source approach, were implemented and tested. Although, it was not possible to determine a reliable and reasonable intersection point between the calculated short-term g-function values and the long-term values from the library by Spitler and Cook. Therefore, in ReSie, a logarithmic function is directly fitted to the first given node of the g-function from Spitler and Cook instead of just linearly interpolating between the first node and the origin. This has shown significantly better results in the validation of the model relative to measurement data and to the results of the commercial software EED compared to a linear interpolation of short-term values. In particular, the short-term dynamic behavior of the model corresponds much better to the real behavior. The utilized logarithmic function for has the following form
and is fitted to intersect with the first two nodes of the non-interpolated g-function from Spitler and Cook (at and ). This leads to the analytical solution for as the short-term representation of any given disretized g-function:
The fitted function is only applied for to the resulting g-function, as the shape of the further precalculated g-function may not represent a ln-function, depending on the probe field. The deviations in the results made by applying a linear interpolation between the nodes for are considered to be neglectable.
An exemplary g-function for one year (time step is one hour) is plotted below, with the fitted logarithmic function for short-term effects and a linear interpolation between the nodes of the long-term g-function from Spitler and Cook:

The library with the precalculated g-functions is described in more detail in 27, available at https://doi.org/10.15121/1811518. Several configuration categories are available:
- rectangle
- zoned rectangle
- open rectangle
- C-shape
- L-shape
- U-shape
- lopsided U-shape
Each of the configuration categories contain several thousand probe field configurations, accessable by two keys, while some of the categories only require the first key. The first key contains the number of probes in x and y direction, while the number of probes in x-direction has to be less or equal to the number of probes in y-direction (e.g. "6_11" for a probe field with 6x11 probes). The second key is used to define the special shapes like zoned rectangles. For details on how to define the second key, please see the publication linked above.
Thermal borehole resistance
All considered heat transfer processes within a borehole are summarized in the thermal borehole resistance, which is used to calculate a fluid temperature from a borehole temperature. The calculation of the thermal borehole resistance for the determination of the average fluid temperature in ReSiE is based on an approach by Hellström199128:
with the following substitutions:
where is the thermal conductivity of the backfill material, is the outer radius of a probe tube, is the inner radius of a probe tube, is the borehole radius, is the distance between the two adjacent probe tubes, is the heat transfer coefficient on the inside of the tube (see the calculation below), and is the thermal conductivity of the soil.
Energies are transferred between the coupled components in ReSiE, but not volume flows. For this reason, an average power is calculated at the beginning of each time step on the basis of the energy extracted within the known time step width. The spread of the heat transfer fluid is assumed to be constant during the operation. On the basis of the average heat energy input or output within the current time step, a mass flow can be calculated using the following equation, whereby this is halved in the case of an double U-probe.
where represents the fluid mass flow, the total heat extraction or input, the specific heat capacity of the fluid and the spread between inlet and outlet temperatures, which is assumed to be constant within the whole simulation. Since the inner cross-section of the tube is known (or set as a default value), statements about the flow condition in the probe tube can be made on the basis of the mass flow after calculating the Reynolds number . This is relevant because the heat transfer coefficient on the inside of the tube depends strongly on the level of turbulence. The more turbulent the flow, the greater is the heat transfer coefficient.
with as the fluid velocity, as the kinematic viscosity of the fluid and as the density of the fluid. Based on the Reynolds number , a corresponding calculation equation of the Nußelt number will be used in the following, depending on the flow condition. For Re 2300, which is laminar flow, a simplified equation is used as suggested by Ramming29 :
where is the Prandtl number of the heat carrier fluid and the inner diameter of one U-pipe.
For > , which is turbulent flow, an equation by Gielinski197530 is used to calculate the Nußelt number: Where is calculated as follows
For 2300 < Re , which is the transition between laminar and turbulent flow, an equation by Gielinski199531 is used to calculate the resulting Nußelt number.
In fully laminar or turbulent flow, the described equations above are used without further adjustments. This results in the final Nußelt number as:
Based on the calculated Nußelt number, the heat transfer coefficient on the inside of the tube is calculated and with this, the thermal borehole resistance (see above) can be determined:
| Symbol | Description | Unit |
|---|---|---|
| heat transfer coefficient inside the tube | ||
| thermal conductivity of soil | ||
| thermal conductivity of the backfill material | ||
| thermal conductivity of fluid | ||
| thermal conductivity of the pipe | ||
| kinematic viscosity of the fluid | ||
| density of the fluid | ||
| density of the soil | ||
| spread between fluid inlet and outlet temperature | ||
| thermal diffusivity of the soil | ||
| fluid velocity | ||
| specific heat capacity of the fluid | ||
| specific heat capacity of the soil | ||
| inner diameter of a U-pipe | ||
| g-function | [-] | |
| probe depth | ||
| i | index variable | [-] |
| fluid mass flow | ||
| n | total number of time steps so far | [-] |
| Nußelt number | [-] | |
| Prandtl number of the heat carrier fluid | [-] | |
| total heat extraction or input | ||
| specific heat extraction or injection per probe meter | ||
| radius of a U-tube | ||
| thermal borehole resistance | ||
| Reynolds number | [-] | |
| equivalent radius of cylindric heat source or sink | ||
| t | current simulation time | |
| temperature at the borehole wall | ||
| Average fluid temperature | ||
| steady-state time by Eskilson21 | ||
| undisturbed ground temperature |
Geothermal Heat Collector
Overview
There are several types of geothermal heat collectors. The model in ReSiE covers classic horizontal geothermal heat exchangers with a typical depth of 1-2 m below the surface, e.g. by a number of pipes laid parallel to each other. In addition to the physical properties of the soil, local weather conditions have a noticable influence on the soil temperature due to the low installation depth below the earth's surface, e.g. compared to geothermal probe systems. When designing geothermal collectors, the aim is to achieve partial icing of the ground around the collector pipes during the heating season in order to utilize latently stored energy. However, the iced volume around the collector pipes must not be so large as to prevent precipitation from seeping into deeper layers of the earth. VDI 4640-2 specifies design values for the area-related heat extraction capacity depending on the soil type and the climate zone.
Simulation domain and boundary conditions
For modeling horizontal geothermal collectors, a numerical approach is chosen here, which discretizes the soil and calculates a two-dimensional temperature field at each time step.
In the figure below, a schematic sectional view of the two-dimensional simulation domain is shown. A symmetrical temperature distribution in positive and negative x-direction of the collector tube axis is assumed in order to save computing time. Furthermore, boundary effects and interaction between adjacent collector tubes are neglected. Therefore, the simulation range in the x-direction includes half the pipe spacing between two adjacent collector pipes including half a collector pipe, where the outer simulation boundaries are assumed to be adiabatic. In y-direction the depth of the simulation area is freely adjustable. Because the lower simulation boundary conditions are assumed to be constant, a sufficiently large distance between the simulation boundary and the collector pipe should be considered, to avoid the calculation results being too strongly influenced by the constant temperature.
The simulation area in z-direction is necessary exclusively for the later formation of control surfaces and volumes around the computational nodes for energy balancing and includes the pipe length.
Within the simulation domain, a computational grid is built for the numerical calculation of the temperature field in each time step. The nodes in x-direction get the index "i" (horizontal), those in y-direction the index "j" (vertical). The smaller the spatial step size defined between computational nodes in the x- and y-directions, the finer the computational grid becomes, leading to more accurate temperature calculations. However, this is also associated with a significant increase in computing time. In this model, the spatial step sizes between the computational nodes are not equally spread, instead a non-uniform grid is used. Areas with high energy fluctuations, like the area around the collector pipe and the layers near the earth's surface as well as the lower boundary, are simulated with a finer mesh to be able to represent short-term energy gradients, while areas with low energy fluctuations are modelled with a wider mesh. This allows for a good balance of accuracy and computational speed. The overall accuracy can be adjusted by the minimal mesh width and the expansion factor by which the mesh increases from node to node. The following presets are made, all using an expansion factor of 2.0, meaning the grid width is doubled from node to node until the maximum width is reached.
| Accuracy Mode | Minimum Mesh Width | Maximum Mesh Width |
|---|---|---|
| very_rough | D_o |
D_o * 256 |
| rough | D_o / 2 |
D_o * 128 |
| normal | D_o / 4 |
D_o * 64 |
| high | D_o / 8 |
D_o * 32 |
| very_high | D_o / 16 |
D_o * 16 |
Here, a grid with the accuracy mode "normal" is shown as example:
The following figure presents a convergence study for the numerical grid used in the geothermal collector across the different accuracy modes outlined above (with an additional "extreme_rough" to clarify the convergence). Notably, starting with the "normal" accuracy mode, convergence is observed, particularly during the soil’s phase change stage.
The computational nodes each represent control volumes of the soil with a constant temperature. By balancing the energy of the control volumes in each time step, their temperatures can be recalculated taking into account the heat storage effect. The calculation from to will be explained in detail later.
The control volumes are calculated as follows: where is the control volume around a node and , , and are the variable location step widths in x, y, and z directions, respectively.
Numerical scheme. The solver employs an implicit backward-Euler time discretization on the non-uniform grid. In each global time step, the code assembles and solves a sparse linear system that combines (i) heat conduction between neighbouring control volumes, (ii) storage in the control volume, and (iii) boundary/source contributions. Temperature-dependent properties and the phase-change term are handled by a short Picard iteration: properties are evaluated at the current iterate, the linear system is rebuilt and solved, and the iterate is updated until the prescribed tolerance is reached. In the implicit scheme, the conduction fluxes and the storage term are written at the new time level and combined with the boundary/source contributions. This yields, in each time step, a sparse linear system for the unknown temperature field at . There is no internal sub-stepping.
Modelling of the soil
In the context of this model, the soil is considered to be homogeneous with uniform and temporally constant physical properties. However, an extension to include several earth layers in y-direction would be possible in a simple way by assigning appropriate parameters to the computational nodes. Also, different soil properties like heat conductivity and heat capacity of frozen and unfrozen soil are included. The basis of the temperature calculation is the energy balance in each control volume for each time step:
It is assumed that the heat transport between the volume elements in the soil is based exclusively on heat conduction. The heat fluxes to are supplied to or extracted from the adjacent volume elements around the node (i,j) and are calculated with the following equations based on the Fourier's Law of heat conduction:
where is the contact area between the adjacent control volumes and is the thermal conductivity of the soil. In the implementation, the face conductivity is evaluated as the arithmetic mean of the adjacent cells’ at the current Picard iterate.
Linear system assembly and boundary conditions
This section summarizes what the implicit solver does in each global time step, consistent with the flux definitions (with horizontal and vertical). All node temperatures at the new time level are stacked into and solved from using a row-major flattening .
On the non-uniform grid the face areas are
For each interior node , backward-Euler yields a storage term and four face conductances corresponding to the directions of : Face conductivities are arithmetic means of the adjacent cells’ . Each face heat rate equals the corresponding conductance times the temperature difference across that face:
The lateral outer boundaries are adiabatic (missing neighbours simply do not contribute). At the lower boundary the temperature is prescribed (Dirichlet): the row is overwritten with and .
At the surface there is no conduction from above; instead, the top face is replaced by environmental exchange consisting of convection with ambient air, long-wave radiation to the sky, and absorption of global irradiance: with Convection is treated implicitly by adding to the diagonal and to the RHS, while radiation and solar are treated explicitly (evaluated at ) and added only to the RHS: and for .
The thermal interaction with the pipe fluid is represented as an internal source/sink distributed to the five soil nodes adjacent to the fluid node. Because only half of the pipe’s surroundings lies inside the simulated half-domain, the per-pipe power is split by fixed weights that sum to (extraction negative, injection positive) and is added directly to the RHS at the corresponding rows, as shown in the figure below, where is the vertical index of the pipe node:
The resulting matrix coefficients are leading to so each row of the matrix equation reads
For every node the RHS then has the form and a short Picard loop updates and at the current iterate , rebuilds and , and repeats until convergence.
The matrix is assembled as a sparse matrix with one diagonal entry (capacity plus all face conductances, plus implicit convection at the surface) and up to four off-diagonals to existing neighbours, while the lateral adiabatic faces contribute nothing and bottom Dirichlet rows are set to . The built of the matrix is described in more detail below.
Block form of with explicit first and last blocks (entries in -parameters)
First horizontal block (size ): (with including ).
Coupling from row to :
Coupling from row to :
Last horizontal block (size ): ( has no surface add-on).
Coupling from row to :
Heat Carrier Fluid
The description of the heat carrier fluid is very similar to the explanations in the chapter "Geothermal probes", which is why it is not explained here in detail. Additionally to the method for the calculation of the laminar Nußelt number for the determination of the convective heat transfer coefficient on the inside of the pipe introduced by Ramming and explained above, a method by Stephan32 33 is implemented and can be chosen in the user input file:
Instead of the thermal borehole resistance from the probe model, a length-related thermal pipe resistance is introduced for the geothermal collector model. First, the following equation in accordance to (Hirsch, Hüsing & Rockendorf 2017)34 is used to calculate the heat transfer coefficient between the heat carrier fluid and the surrounding soil.
where is the heat transfer coefficient, is the convective heat transfer coefficient on the inside of the pipe, is the thermal conductivity of the pipe, is the inside diameter, and is the outside diameter of the pipe. Multiplying by the outer cylinder area of the pipe and then dividing by the pipe length produces a length-specific value. The reciprocal of this length-specific heat transfer coefficient results in the length-specific thermal pipe resistance, which is used in this ReSiE model.
The heat extraction or heat input capacity is related to the tube length of the collector and a mean fluid temperature is calculated using the length-related thermal resistance :
with as the length-specific heat extraction or injection rate and as the temperature of the nodes adjacent to the fluid node.
Optional, dynamic fluid properties for a 30 vol-% ethylene glycol mix, adapted from TRNSYS Type 710, are implemented using the following temperature-dependent properties for the calculation of the dynamic viscosity and thermal conductivity of the fluid, , both needed for the calculation of temperature-dependent Reynolds and Prandtl numbers:
Phase Change
In this model, the phase change of the water in the soil from liquid to solid and vice versa is modeled via an enthalpy formulation. During the phase change, the fusion enthalpy is released or bound, which is why the temperature remains almost constant during the phenomenon of freezing or melting. The resulting temperature-dependent specific heat capacity of the soil, , is described over the user-defined freezing interval as follows:
with a smooth liquid fraction between the limits, and derivative inside the band
As is used in the energy balances of every volume element and depends on the temperature, a short iterative solving algorithm (Picard iteration) updates the temperature-dependent terms each time step. When a linear predictor indicates that no node lies in or enters the freezing interval in the current step, the system is assembled and solved once without activating the latent term.
As a result, the heat capacity significantly increases during the phase change, reducing the temperature variation between time steps. This effect is illustrated in the following figure, where a constant energy demand is drawn from a soil volume element.
The volume element has a mass of 1000 kg and is cooled down from 5 to -5 °C. The specific heat capacity is in frozen and unfrozen state with an energy of fusion of . This results in a total energy of 27 361 Wh that is taken out of the element (54.7 W for 500 hours).
Technical description – Symbols and units
| Symbol | Description | Unit |
|---|---|---|
| convective heat transfer coefficient on the inside of the pipe | [W / ] | |
| convective heat transfer coefficient | [W/ ] | |
| global time step size | [s] | |
| step widths in x, y, and z direction | [m] | |
| minimum mesh width used in the pipe/soil coupling formula | [m] | |
| emissivity of the surface | [-] | |
| thermal conductivity of the soil | [W / (m K)] | |
| thermal conductivity of the pipe | [W/(m K)] | |
| density of the soil | [kg / ] | |
| Stefan-Boltzmann constant | [W / ] | |
| control-volume face areas in x–z and y–z planes | [ | |
| linear system coefficients (storage & face conductances) | [W / K]] | |
| specific heat capacity of the soil, depends on the temperature | [J / (kg K)] | |
| specific heat capacity of the frozen soil | [J / (kg K)] | |
| specific heat capacity of the unfrozen soil | [J / (kg K)] | |
| inside diameter of the pipe | [m] | |
| outside diameter of the pipe | [m] | |
| global solar radiation on horizontal surface | [W / ] | |
| face thermal conductances | [W / K] | |
| specific enthalpy of fusion of the soil | [J / kg] | |
| index for the node position in x-direction | [-] | |
| index for the node position in y-direction | [-] | |
| heat transfer coefficient (pipe/soil coupling) | [W/(m² K)] | |
| total length of the pipe | [m] | |
| index for the time step | [-] | |
| Nußelt number | [-] | |
| Prandtl number | [-] | |
| length-specific heat extraction or injection rate | [W / m] | |
| kinematic viscosity of the fluid | [m²/s] | |
| thermal conductivity of the fluid | [W/(m K)] | |
| horizontal infrared radiation intensity from the sky | [W / ] | |
| global radiation | [W / ] | |
| long wave radiation exchange with the environment | [W / ] | |
| convective heat flux | [W / ] | |
| heat extraction or injection rate | [W] | |
| heat energy supplied or released between two time steps | [J] | |
| reflectance of the earth's surface | [-] | |
| Reynolds number | [-] | |
| length-specific thermal pipe resistance | [(m K) / W] | |
| temperature | [°C] | |
| absolute temperature | [K] | |
| ambient air temperature | [°C] | |
| mean fluid temperature | [°C] | |
| upper temperature limit of the freezing process | [°C] | |
| lower temperature limit of the freezing process | [°C] | |
| effective mean sky temperature (sky radiative temperature) | [K] | |
| temperature of the nodes adjacent to the fluid node | [°C] | |
| control volume | [] |
Solarthermal collector
A solarthermal collector uses the energy from the sun to provide heat. Different collectors can be used, usually depending on the use case and needed temperature. For all collector types the same simulation model is used. Typical types of collectors are: - flat plate collector - evacuated tube collector - WISC (wind and infrared sensitive collector) - PVT collector (photovoltaic thermal hybrid solar collector)
General model of solarthermal collector
The model is based on the quasi dynamic model from DIN EN ISO 9806:201735, which describes the extracted thermal power as:
where the variables are defined as
| Symbol | Description | Unit |
|---|---|---|
| gross collector area | m² | |
| zero-loss efficiency at K based on the beam solar irradiance | - | |
| incidence angle modifier (IAM) for beam irradiance | - | |
| longitudinal incidence angle | ° | |
| transversal incidence angle | ° | |
| beam solar irradiance | W/m² | |
| incidence angle modifier (IAM) for diffuse irradiance | - | |
| diffuse solar irradiance | W/m² | |
| mean fluid temperature | °C | |
| ambient air temperature | °C | |
| reduced wind speed (u - 3 m/s) with u = surrounding wind speed | m/s | |
| long wave irradiance (λ > 3 μm) | W/m² | |
| Boltzmann constant | W/(m²K4) | |
| absolute ambient air temperature | K | |
| change of mean fluid temperature over time | K/s | |
| heat loss coefficient | W/(m²K) | |
| temperature dependence of the heat loss coefficient | W/(m²K²) | |
| wind speed dependence of the heat loss coefficient | J/(m³K) | |
| sky temperature dependence of long wave radiation exchange | - | |
| effective thermal capacity | J/(m²K) | |
| wind speed dependence of the zero loss efficiency | s/m | |
| wind speed dependence of long wave radiation exchange | W/(m²K4) | |
| radiation losses | W/(m²K4) |
The values for the parameters to and , , are available from thermal testing procedures. Sources for such documents are the solar keymark database36 or the ICC-SRCC database37. If only parameters of an older norm (e.g. EN ISO 9806:2013) are available, they can be put in place of the corresponding a parameters with all unknown values set to 0 or for WISC collectors conversion formulas can be used38. Most other variables can be acquired through weather data. Since the wind speed is usually given at a height of 10 m an assumption must be made to by which factor the wind speed differs at the chosen location.
The model strongly depends on the mean fluid temperature. Since ReSie doesn't model fluid dynamics, a way must be found to derive the mean fluid temperature from other parameters. Since components don't have a return temperature that can be used as an inlet temperature for the solar collector, we will use the needed or demanded temperature of the components connected to the output of the solarthermal collector as a target temperature for the collector output. To be able to calculate the mean fluid temperature the user has to set either a fixed flow rate or a fixed temperature difference over the collector . The other non-fixed value is then a variable that is calculated in each time step.
When energy is delivered to multiple components in one time step at different temperatures the average must be calculated. For all internal calculations the average is calculated by assuming that each component is supplied for a part of the total time step and it's averaged over those partial runtimes. The mean collector temperature in the output is calculated in the same way. In contrast the output temperature in the output files is averaged over the supplied energies. This was done to indicate in which time steps multiple components are supplied and in most cases it can be used to establish which components get energy from the solarthermal collector. This helps to check the energy system for errors or unwanted behaviour.
Solar irradiance
To get the irradiance on the collector plane the beam horizontal irradiance and diffuse horizontal irradiance from the weather data must be converted. For both conversions the incidence angle and therefore the position of the sun in the sky is needed. For calculation of the sun position Algorithm 5 from 39 is used, as an good compromise between calculation speed and accuracy. To get the best estimation of the sun position over a timestep the middle of the timestep is used with consideration of the sunrise and sunset. The output is the sun zenith and sun azimuth which can be used to calculate the angle of incidence on the collector with
The beam irradiance on the collector plane is then calculated with
The diffuse irradiance on the collector plane is approximated as
where the reflected diffuse irradiance from the ground is
with being the reflectance of the ground around the collector which can be approximated by the albedo of the ground. To calculate the diffuse irradiance on the collector plane from the sky the Hay model is used40 with the formula
where is the anisotropy index which is calculated with
The calculation of the extraterrestrial normal irradiance is based on 41 with the current solar constant of . The formula is
where the day angle is defined as
Inputs and Outputs of the solarthermal collector:
| Symbol | Description | Unit |
|---|---|---|
| Thermal power output | W | |
| Collector output temperature | °C | |
| Mean collector temperature | °C | |
| Temperature difference between input and output | K | |
| Collector flow rate | m³/s | |
| Direct normal irradiance | W/m² | |
| Beam solar irradiance on the collector plane | W/m² | |
| Diffuse solar irradiance on the collector plane | W/m² |
Parameters of the solarthermal collector:
| Symbol | Description | Unit |
|---|---|---|
| collector gross area | m² | |
| tilt angle of the collector | ° | |
| azimuth angle of the collector with west positive | ° | |
| Reflectance of the ground around the collector | ||
| zero-loss efficiency at K based on the beam solar irradiance | - | |
| Vector of transversal incidence angle modifiers for beam irradiance from 0° to 80° in 10° steps |
- | |
| Vector of longitudinal incidence angle modifiers for beam irradiance from 0° to 80° in 10° steps |
- | |
| Incidence angle modifier for diffuse irradiance | - | |
| Vector of collector parameters for 1 <= n <= 8 | - | |
| Volumetric heat capacity of the collector fluid | J/(K*m³) | |
| Factor for wind speed reduction | - |
Limits of the simulation model
Describe limits depending on the actual implemented model (Transformer or flexible source) (ToDo)
Short-term thermal energy storage (STTES / BufferTank)
The short-term energy storage is a simplified model of a cylindrical tank without a detailed simulation of different layers within the storage. It can be modelled either as ideally mixed, meaning the whole storage always has the same temperature, or as a ideally stratified storage with two adiabatically separated temperature layers, without any interaction between the two layers. Also, a combination of both models is available. Here, a switch point is defined as the percentage of the load of the storage where the model switches from ideally stratified to ideally mixed.
The three models are compared in the following figure, showing the output temperature during unloading at a constant unloading rate with and without losses.
Energy losses are taken into account, but in the case of the ideally stratified storage, only energy losses of the hot layer and no exergy losses are considered; the temperature of the upper layer remains the same, only the height of the hot layer is reduced due to losses to the ambiance. This is illustrated in the figure below. Also, possible energy gains into the cold layer are not included. When the buffer tank has reached its lower temperature, no losses are counted that would further discharge the storage tank below the specified lower temperature.
This model was chosen to keep the computational effort and number of input parameters as small as possible. If a more complex model is required, the seasonal thermal energy storage can be used, that includes detailed simulation of the thermal stratification.
The rated thermal energy content of the STTES can be calculated using the volume , the density , the specific thermal capacity of the medium in the storage and the temperature span within the STTES:
The amount of the total input () and output energy () in every timestep is defined as and
The current charging state can be calculated using the following equation and the charging state of the previous timestep () as well as the input and output energy
leading to the total energy content in every timestep as
The limits of the thermal power in- and output ( and ) due to the current energy content and maximum c-rate of the STTES are given as
For the ideally mixed model, the following temperature results in every time step:
The losses are modelled with basic thermal conductivity through the insulating material of the storage, differentiated into wall, lid and bottom. The outside temperature can either be the ambient temperature from the global weather file, a given temperature profile or a fixed temperature. The ground temperature for the heat conductivity through the bottom is assumed to be constant. Thermal transmission resistances at the inner and outer surfaces are not considered. The thermal power of the losses can be calculated as
The thermal losses into the ground are only condsidered for the model "ideally mixed". With the user-given ratio of height () to radius () of the cylinder (; minimum A/V is reached with hr = 2) and the volume, all surfaces can be calculated:
leads to
and
For the ideally stratified model, leads to a reduction of the energy content of the storage by:
For the ideally mixed model, a linear reduction of the temperature results in the new temperature of the storage:
Inputs and Outputs of the STTES:
| Symbol | Description | Unit |
|---|---|---|
| thermal input power of the STTES | [W] | |
| thermal output power of the STTES | [W] | |
| current mass flow rate into the STTES | [kg/h] | |
| current mass flow rate out of the STTES | [kg/h] |
Parameter of the STTES:
| Symbol | Description | Unit |
|---|---|---|
| maximum charging rate (C-rate) of the STTES | [1/h] | |
| maximum discharging rate (C-rate) of the STTES | [1/h] | |
| rated thermal energy capacity of the STTES | [Wh] | |
| losses of the STTES | [Wh] | |
| thermal energy content of the STTES at the beginning of the simulation in relation to | [%] | |
| volume of the STTES | [m³] | |
| radius of the cylindrical STTES | [m] | |
| height of the cylindrical STTES | [m] | |
| height to radius ratio (h/r) of the cylindrical STTES | [-] | |
| surface area of the cylinder barrel | [m²] | |
| surface area of the cylinder top | [m²] | |
| surface area of the cylinder bottom | [m²] | |
| density of the heat carrier medium in the STTES | [kg/m³] | |
| specific heat capacity of the heat carrier medium in the STTES | [J/(kg K)] | |
| rated upper temperature of the STTES | [°C] | |
| rated lower temperature of the STTES | [°C] | |
| ambient temperature of the air around the STTES | [°C] | |
| ground temperature below the STTES | [°C] | |
| thermal transmission of the barrel of the STTES | [W/m²K] | |
| thermal transmission of the top of the STTES | [W/m²K] | |
| thermal transmission of the bottom of the STTES | [W/m²K] |
State variables of the STTES:
| Symbol | Description | Unit |
|---|---|---|
| current amount of thermal energy stored in the STTES | [Wh] | |
| current charging state of the STTES | [%] | |
| current temperature of the STTES | [°C] |
Seasonal thermal energy storage (STES)
Seasonal thermal energy storages can be used to shift thermal energy from the summer to the heating period in the winter. Due to the long storage period, energy losses to the environment and exergy losses within the storage must be taken into account. Therefore, a stratified thermal storage model is implemented that is described below.
Tank (TTES) and Pit (PTES) thermal energy storage
Neglected: gravel-water storages
Generalized geometry for TTES and PTES
Figure and method of generalized geometry definition based on [Steinacker2022]43.
The geometry of the STES can be either modelled as cylinder or truncated cone with a circular cross-sectional shape, or as cuboid or truncated quadratic pyramid with a quadratic cross-sectional shape.
For both circular and quadratic cross-sectional shapes STES, the ratio between height and mean radius of the STES is defined as:
where the radius is equivalent to the edge length for the quadratic cross-sectional shape.
The slope angle has to be in the range of to ensure a valid shape. Analogously, the ratio between the height and the mean radius of the STES has to be smaller as
For circular cross-section:
The upper radius of the STES in dependence of the Volume and is calculated as: and the lower radius of the STES in dependence of the upper radius :
The height of the STES can be calculated as resulting with the number of layers into the thickness of each layer
Lateral surface of each layer with height , upper radius and lower radius of each layer:
Volume of each layer:
For quadratic cross-section:
The upper edge length of the STES in dependence of the Volume and is calculated as: and the lower edge length of the STES in dependence of the upper edge length as:
The height of the STES can be calculated as resulting with the number of layers into the thickness of each layer: With the upper edge length of each segment and the lower edge length and the sidewall height of each segment from the length of the edge of each sidewall :
the lateral surface of each layer can be calculated:
Also the volume of each layer:
For clarification, the following figure provides a sketch of the truncated quadratic pyramid:
Thermal model for stratified storage
General energy balance in every timestep :
Figure adapted from [Steinacker2022]43.
Stratified storage model based on [Lago2019]42 and modified to account for cones according to [Steinacker2022]43 and for half-buried storages.
Three different energy or exergy loss mechanisms are taken into account as shown in the figure above:
- Energy losses to the environment through the outer walls (bottom, walls and lid) of each storage layer (), characterized by the heat transfer coefficient of the outer surfaces
- Exergy losses due to diffusion processes between the storage layers , specified by the diffusion coefficient
- Exergy losses due to convection (buoyancy) between the storage layers .
As currently only direct charging/discharging is implemented and no indirect charging via heating rod e.g., the temperature in layer with height is given by the partial differential equation
The ambient temperature of each layer can be either the ambient air temperature in the specific timestep or the ground temperature depending on the considered layer and the number of layer buried under the ground surface.
Using the explicit Euler method for integration, the previous equation leads to the temperature in every timestep and layer with respect to the temperatures in the timestep before and the layers around (without the index for better overview)
As the coefficients mentioned above are constant within the simulation time, they can be precomputed for computational efficiency.
To account for buoyancy effects, a check is made in each timestep to determine whether the temperature gradient in the STES corresponds to the physically logical state, meaning that the temperatures in the upper layers are higher than in the lower storage layers. If, however, an inverse temperature gradient is present, a mixing process is performed in each timestep for all layers, beginning with : using the volume-ratio of each layer with respect to the surrounding layers, inspired by [Lago2019]42:
For numerical stability, an internal time step is used for all calculations of the STES:
To quantify the losses or gains to the ambient, they are calculated using an energy balance at the end of each global time step comparing the old and new temperature distribution and all energy inputs and outputs in the current time step.
To illustrate the principle of the implemented model, the following figure shows the mass flow into and out of the STES during charging as well as exemplary the mass flow between the layers within the model. The corresponding temperatures are the temperatures of the source (input flow or layer temperature of the previous layer). If the mass inflow within one timestep is larger than the volume of the smallest segment, an algorithm takes care about the correct mass and temperature flows in and out of every layer. As a convention, the lowermost layer is labeled with the number 1. The inflow and outflow is currently always in the top and bottom layer. Also, as assumption and simplification, the return mass flow during unloading into the lowermost layer equals the design lower temperature that is set for the STES.
This method was extensively tested in [Steinacker2022]43 and compared to calculations performed with TRNSYS Type 142 with high agreement. Is was shown that an optimal number of layers for this model is 25, considering computational efficiency and quality of the results.
Ground-coupling
This section describes the mathematical model used to couple a stratified seasonal thermal storage to the surrounding ground. The discretization and solver follow the same cell-centered axisymmetric finite-volume (FVM) scheme as in the Geothermal Collector model. What differs is the geometry mapping and the boundary conditions that represent the storage wall and base which is described in the following.
Governing equation (soil)
In cylindrical coordinates with axial symmetry, the soil temperature field satisfies the transient heat conduction equation
Here, is the radial coordinate measured from the symmetry axis and is the depth measured downward from the ground surface. The material properties (density), (specific heat capacity) and (thermal conductivity) are assumed piecewise constant in depth to represent stratified soil layers.
Computational domain and mesh
The domain is a half-plane with symmetry on the axis , surface at , and depth . Non-uniform meshes are used:
- Vertical mesh resolves (v1) the buried part of the storage one-to-one with the storage layers and (v2) the region just below the base until the deep ground via geometric coarsening. Depths where soil properties change are aligned with cell faces (additional nodes at layer interfaces).
- Radial mesh is built as a sequence of refinement bands from the symmetry axis to : it starts fine at the axis then coarsens towards the mid-radius of the storage and becomes fine again up to the bottom storage radius (end of the base footprint) (h1), remains uniformly fine along the buried slanted wall band (h2), transitions via a fine-to-coarse grading into the optional surface insulation overlap ring (h3), and finally continues with fine-to-coarse geometric growth towards the outer boundary (h4).
Exemplary, a visual representation of a fully-buried ground-coupled PTES with insulation overlap is shown below:
Geometry mapping
Round storages (cylinder, frustum) are represented directly. Quadratic storages (cuboid, truncated quadratic pyramid) are mapped to an area-equivalent axisymmetric shape: at each horizontal cut the circular radius is chosen so that its area equals the true planform area. The lateral wall is slanted; the true conical (or pyramidal) lateral area per vertical slice is used via a constant slant-area factor multiplying the cylindrical lateral area, ensuring correct wall-exchange area.
Boundary conditions
An overview of the boundary conditions of the soil is given below. See also the figure above for a visual representation.
- Symmetry axis (): adiabatic,
- Far radius (): adiabatic, (domain has to be chosen large enough)
- Ground surface towards ambient air (): Robin condition with a radially piecewise constant heat transfer coefficient to represent an optional insulation overlap ring: where is the (area-equivalent) storage radius at the surface, is the overlap width, the effective surface U-value of the top insulation overlap ring and the effective surface heat transfer coefficient outside of the top insulation.
- Deep boundary (): either Dirichlet (set to undisturbed ground temperature) or Neumann (adiabatic)
- Storage wall (buried part): Robin condition on the exterior soil side, where is the outward unit normal at the wall (pointing from the storage into the surrounding soil) and is the temperature gradient component normal to the wall. The parameter is the effective wall heat-transfer coefficient (U-value) between the storage medium and the adjacent soil, i.e. it lump-sums the thermal resistance of the wall/insulation and any near-wall contact resistance. The exchange area per horizontal slice equals the true slanted lateral area.
- Storage base: Robin condition on the ground beneath the storage footprint, integrated over the area-equivalent circular footprint. Here is the effective base heat-transfer coefficient (U-value) between the storage bottom and the underlying soil, lumping the thermal resistance of the bottom construction/insulation and any contact resistance.
Discretization and time integration
A cell-centered finite-volume scheme with axisymmetric metrics is used (see also the description of the geothermal heat collector):
- Diffusive conductances are placed on faces; face areas and distances use the actual axisymmetric geometry.
- Material properties are piecewise constant per row (depth interval).
- Time stepping is implicit Euler: solved as a sparse linear system each step.
To remain consistent with a face Robin condition applied to a cell-centered control volume, all Robin coefficients use a series-resistance reduction to the cell center: where is the normal distance from the boundary to the adjacent cell center. This preserves the correct flux against the discrete volume.
Coupling soil <-> storage
The stratified storage exchanges heat with its surroundings via UA terms per storage segment (side and base). Note that all storage layers have the same height, and each is aligned with the soil grid in the vertical direction: the soil mesh contains one or more soil cells over the depth of each storage layer, and storage layer interfaces coincide with soil cell faces. After each soil solve:
-
Wall segments (per buried storage layer): The net heat rate obtained from the assembled Robin terms along that layer’s wall band is with the effective wall area represented by a soil row, the temperature of the corresponding storage layer and the cell-center temperature of the adjacent soil control volume. An effective ambient temperature for that storage layer is then defined by where is the wall area of the current storage layer. Using this in the storage’s 1D energy balance guarantees that the storage–soil energy exchange equals the FVM flux.
-
Base segment: The soil temperature under the footprint is averaged area-weighted over concentric rings to obtain . The effective ambient temperature for the base is with the same series-resistance reduction () as used in assembly.
-
Above-ground side and lid: these exchange with the ambient air, i.e. their effective ambient temperature equals the ambient air temperature. Note that no radiation is included for now.
Initial condition
The soil field is initialized as a linear depth profile between the ambient air temperature at the surface and the deep ground temperature at the bottom of the domain.
Assumptions and scope
- Pure conduction in the ground; no groundwater advection, moisture transport, or freeze–thaw.
- Axisymmetric representation; non-circular storages are handled by area-equivalent mapping.
- Surface radiation and short-wave gains are not modeled explicitly; their net effect can be emulated by the surface transfer parameterization if needed.
- Temperature-dependencies in the soil are neglected, no freezing is included in the model.
Inputs and Outputs of the STES:
| Symbol | Description | Unit |
|---|---|---|
| thermal power input in the STES | [W] | |
| thermal power output of the STES | [W] | |
| current mass flow rate into the STES | [kg/h] | |
| current mass flow rate out of the STES | [kg/h] | |
| temperature of input mass flow while loading the STES | [°C] | |
| temperature of output mass flow while loading the STES | [°C] | |
| temperature of input mass flow while unloading the STES | [°C] | |
| temperature of output mass flow while unloading the STES | [°C] |
Parameter of the STES:
| Symbol | Description | Unit |
|---|---|---|
| effective wall exchange area represented by a soil row (depth band) | [m²] | |
| slope angle of the wall of the STES with respect to the horizon | [°] | |
| maximum charging rate (C-rate) of STES | [1/h] | |
| maximum discharging rate (C-rate) of STES | [1/h] | |
| soil specific heat capacity (piecewise constant per depth interval) | [J/(kg·K)] | |
| specific heat capacity of the heat carrier medium in the STES | [J/(kg·K)] | |
| normal distance from boundary face to adjacent soil cell center | [m] | |
| effective soil-air surface heat transfer coefficient | [W/(m²·K)] | |
| soil domain depth (bottom boundary location) | [m] | |
| soil–air surface heat transfer coefficient outside the insulation overlap ring | [W/(m²·K)] | |
| ratio between height and mean radius of the STES | [-] | |
| soil thermal conductivity (piecewise constant per depth interval) | [W/(m·K)] | |
| wall area of the current storage layer used in the STES UA term | [m²] | |
| outward unit normal direction at the storage wall (from storage into soil) | [-] | |
| number of thermal layers of the STES above the ground surface | [pcs.] | |
| number of thermal layers in the STES for the simulation | [pcs.] | |
| net wall heat rate from a buried storage layer to the soil (positive: storage → soil) | [W] | |
| radial coordinate (distance from symmetry axis) | [m] | |
| outer (far-field) radius of the soil domain | [m] | |
| (area-equivalent) storage radius at the ground surface | [m] | |
| soil density (piecewise constant per depth interval) | [kg/m³] | |
| density of the heat carrier medium in the STES | [kg/m³] | |
| time | [s] | |
| soil temperature field varying in time | [°C] | |
| ambient air temperature used in the surface Robin boundary condition | [°C] | |
| prescribed deep/undisturbed ground temperature (Dirichlet option at ) | [°C] | |
| effective ambient temperature for the storage base | [°C] | |
| effective ambient temperature for a storage wall layer | [°C] | |
| area-weighted mean soil temperature under the footprint (cell-center based rings) | [°C] | |
| soil cell-center temperature of the adjacent soil control volume next to the wall | [°C] | |
| temperature of the ambient (air or ground) of the STES per layer | [°C] | |
| temperature of the bottom storage layer/segment used for base exchange | [°C] | |
| temperature of the corresponding storage layer (segment) | [°C] | |
| effective base heat-transfer coefficient (U-value) between storage bottom and soil | [W/(m²·K)] | |
| effective wall heat-transfer coefficient (U-value) between storage layer and adjacent soil | [W/(m²·K)] | |
| effective Robin coefficient reduced to the cell center, | [W/(m²·K)] | |
| thermal transmission (U-value) of the insulation overlap ring | [W/(m²·K)] | |
| thermal transmission (U-value) of the STES bottom | [W/(m²·K)] | |
| thermal transmission (U-value) of the STES lid | [W/(m²·K)] | |
| thermal transmission (U-value) of the STES wall | [W/(m²·K)] | |
| volume of the STES | [m³] | |
| radial width of the insulation overlap ring | [m] | |
| coefficient of diffusion of the heat carrier medium in the STES into itself | [m²/s] | |
| vertical coordinate (depth measured downward from ground surface) | [m] |
Borehole thermal energy storage (BTES)
See Geothermal Probes.
Aquifer thermal energy storage (ATES)
This component is not implemented yet!
Ice storage (IS)
This component is not implemented yet!
Hydrogen fuel cell (FC)
This component is not implemented yet!
Photovoltaic (PV)
This component is not implemented yet! Use precalculated profiles in a fixed source instead.
For the calculation of the electrical power output of photovoltaic systems, a separate simulation tool was developed and integrated into ReSiE. It is based on the Python extension pvlib45 and uses the model chain approach described in the pvlib documentation. Technical data of specific PV modules and DC-AC inverters are taken from the SAM model44 and integrated into pvlib.
Inputs can include orientation, tilt, ambient albedo, type of installation (e.g. roof-added, free-standing), as well as module interconnection and specific PV modules and inverters chosen from the library. Additional losses, such as ohmic losses in cables or losses due to soiling, can be taken into account. A weather input dataset is required that includes direct normal, global horizontal and diffuse horizontal irradiance as well as ambient (dry bulb) temperature, humidity and wind speed.
Wind power (WP)
This component is not implemented yet! Use precalculated profiles in a fixed source instead.
Battery (BA)
Energy balance of battery in every timestep:
Self-Discharge losses of battery:
Charging losses of battery:
Discharging losses of battery:
Current maximum capacity of the battery:
Limits of electrical power in- and output (limit to current energy content and maximum c-rate of battery):
Relation between current charging state in percent and in energy content:
Inputs and Outputs of the BA:
| Symbol | Description | Unit |
|---|---|---|
| electrical power input in the BA | [W] | |
| electrical power output of the BA | [W] | |
| electrical power losses of the BA due to self-discharging | [W] | |
| electrical power losses of the BA while charging | [W] | |
| electrical power losses of the BA while discharging | [W] |
Parameter of the BA:
| Symbol | Description | Unit |
|---|---|---|
| charging efficiency of battery | [-] | |
| discharging efficiency of battery | [-] | |
| self-discharge rate of battery (% losses per hour regarding current energy content) | [1/h] | |
| maximum charging rate (C-rate) of battery | [1/h] | |
| maximum discharging rate (C-rate) of battery | [1/h] | |
| rated electrical energy capacity of the battery | [MWh] | |
| percentage of the reduction of the current battery capacity due to one full charge cycle | [%/cycle] | |
| electrical energy contend of the battery at the beginning of the simulation | [MWh] |
State variables of the BA:
| Symbol | Description | Unit |
|---|---|---|
| current amount of energy stored in the battery | [MWh] | |
| current maximum capacity of the battery depending on the number of charging cycles already performed | [MWh] | |
| current charging state of the battery | [%] |
Hydrogen compressor (HC)
This component is not implemented yet.
References
-
Blervaque, H et al. (2015): Variable-speed air-to-air heat pump modelling approaches for building energy simulation and comparison with experimental data. Journal of Building Performance Simulation 9 (2), S. 210–225. doi: 10.1080/19401493.2015.1030862. ↩↩↩
-
Arpagaus C. et al. (2018): High temperature heat pumps: Market overview, state of the art, research status, refrigerants, and application potentials, Energy, doi: 10.1016/j.energy.2018.03.166 ↩
-
DIN EN 14511:2018 (2018): Air conditioner, liquid chilling packages and heat pumps for space heating and cooling and process chillers, with electrically driven compressors. DIN e.V., Beuth-Verlag, Berlin. ↩
-
Bettanini, E.; Gastaldello, A.; Schibuola, L. (2003): Simplified Models to Simulate Part Load Performance of Air Conditioning Equipments. Eighth International IBPSA Conference, Eindhoven, Netherlands, S. 107–114. ↩↩
-
Toffanin, R. et al. (2019): Development and Implementation of a Reversible Variable Speed Heat Pump Model for Model Predictive Control Strategies. Proceedings of the 16th IBPSA Conference, S. 1866–1873. ↩↩
-
Torregrosa-Jaime, B. et al. (2019): Modelling of a Variable Refrigerant Flow System in EnergyPlus for Building Energy Simulation in an Open Building Information Modelling Environment. Energies 12 (1), S. 22. doi: 10.3390/en12010022. ↩
-
Fuentes, E. et al. (2016): Improved characterization of water-to-water heat pumps part load performance. REHVA Journal, August 2016. ↩↩
-
Fahlén, Per (2012): Capacity control of heat pumps. REHVA Journal Oktober 2012, S. 28–31. ↩
-
Stiebel-Eltron Heat Pump Toolbox: https://www.stiebel-eltron.com/toolbox/waermepumpe/ ↩
-
https://enrgi.de/wp-content/uploads/2022/08/Datenblatt_ecoGEO_B-C_1-9kW.pdf ↩
-
Socal, Laurent (2021): Heat pumps: lost in standards, REHVA Journal August 2021. ↩↩
-
Filliard, Bruno; Guiavarch, Alain; Peuportier, Bruno (2009): Performance evaluation of an air-to-air heat pump coupled with temperate air-sources integrated into a dwelling. Eleventh International Building Simulation Conference 2009, S. 2266–73, Glasgow. ↩
-
Lachance, Alex; Tamasauskas, Justin; Breton, Stéphanie; Prud’homme, Solange (2021): Simulation based assessment on representativeness of a new performance rating procedure for cold climate air source heat pumps. E3S Web Conf. 246, S. 6004. doi: 10.1051/e3sconf/202124606004. ↩
-
Wei, Wenzhe et al. (2021): Investigation on the regulating methods of air source heat pump system used for district heating: Considering the energy loss caused by frosting and on–off. In: Energy and Buildings 235, S. 110731. doi: 10.1016/j.enbuild.2021.110731. ↩
-
Wetter M., Afjei T.: TRNSYS Type 401 - Kompressionswärmepumpe inklusive Frost- und Taktverluste. Modellbeschreibung und Implementation in TRNSYS (1996). Zentralschweizerisches Technikum Luzern, Ingenieurschule HTL. URL: https://trnsys.de/static/05dea6f31c3fc32b8db8db01927509ce/ts_type_401_de.pdf ↩
-
Matthias Walter Stickel: Technisches Monitoring & Betriebsoptimierung im Reallabor - Erzeugung von grünem Wasserstoff und Abwärmenutzung inmitten des Stadtquartiers, Poster presentation at 15. Energiewendebauen Projektetreffen (2024) Kassel, Category D of the poster results ↩↩
-
Ebrahimi, Masood; Keshavarz, Ali (2015): 2 - CCHP Technology. In: Mohamed Abdallah El-Reedy und Ali Keshavarz (Hg.): Combined cooling, heating and power. Decision-making, design and optimization. Amsterdam, Netherlands, Oxford, UK, Waltham, MA: Elsevier, S. 35–91. ↩
-
Lee, D.Y., Seo, B.M., Yoon, Y.B. et al. Heating energy performance and part load ratio characteristics of boiler staging in an office building. Front. Energy 13, 339–353 (2019). doi: https://doi.org/10.1007/s11708-018-0596-5. ↩
-
Verma, V. K.; Bram, S.; Delattin, F.; Ruyck, J. de (2013): Real life performance of domestic pellet boiler technologies as a function of operational loads: A case study of Belgium. In: Applied Energy 101, S. 357–362. DOI: 10.1016/j.apenergy.2012.02.017. ↩↩↩
-
Verein Deutscher Ingenieure, VDI 4640 Blatt 1, Thermische Nutzung des Untergrunds - Grundlagen, Genehmigungen, Umweltaspekte: = Thermal use of the underground - fundamentals, approvals, environmental aspects. Berlin: Beuth Verlag GmbH, 2021. ↩
-
P. Eskilson, Thermal Analysis of Heat Extraction Boreholes. University of Lund, 1987. Available: https://buildingphysics.com/download/Eskilson1987.pdf ↩↩↩
-
Özisik, M.N. Heat conduction. New York: Wiley-Interscience, 1980. ISBN 047105481X ↩
-
M. Li, K. Zhu, Z. Fang: Analytical methods for thermal analysis of vertical ground heat exchangers. Advances in Ground-Source Heat Pump Systems, 2016. doi: https://doi.org/10.1016/B978-0-08-100311-4.00006-6. ↩
-
H.S. Carslaw., J.C. Jaeger. Heat Flow in the Region bounded Internally by a Circular Cylinder. Proceedings of the Royal Society of Edinburgh, 1942. ↩
-
T.W. Kelvin: Mathematical and Physical Papers. 1882. Cambridge University Press, London. ↩
-
L. Laloui, A. F. Rotta Loria: Analysis and Design of Energy Geostructures - Theoretical Essentials and Practical Application, Academic Press, 2020. doi:https://doi.org/10.1016/B978-0-12-816223-1.00009-6. ↩
-
J. D. Spitler, J. C. Cook, T. West, and X. Liu: G-Function Library for Modeling Vertical Bore Ground Heat Exchanger. Geothermal Data Repository, 2021. doi: https://doi.org/10.15121/1811518. ↩↩
-
G. Hellström, Ground Heat Storage: Thermal Analyses of Duct Storage Systems. Theorie. University of Lund, 1991. ↩
-
K. Ramming: Bewertung und Optimierung oberflächennaher Erdwärmekollektoren für verschiedene Lastfälle. Dissertation, Technische Universität Dresden 2007. ISBN 9783940046413. ↩
-
V. Gnielinski: Neue Gleichungen für den Wärme- und Stoffübergang in turbulent durchströmten Rohren und Kanälen. Forsch. Ing.wes. 41(1):8–16, 1975. ↩
-
V. Gnielinski: Ein neues Berechnungsverfahren für die Wärmeübertragung im Übergangsbereich zwischen laminarer und turbulenter Rohrströmung. Forsch. Ing.wes. 61:240–248, 1995. ↩
-
Stephan, Karl (1959): Wärmeübergang und Druckabfall bei nicht ausgebildeter Laminarströmung in Rohren und in ebenen Spalten. In: Chemie Ingenieur Technik 31 (12), S. 773–778. DOI: 10.1002/cite.330311204 . ↩
-
VDI-Gesellschaft Verfahrenstechnik und Chemieingenieurwesen (2013): VDI-Wärmeatlas. Mit 320 Tabellen. 11., bearb. und erw. Aufl. Berlin, Heidelberg: Springer Vieweg. ↩
-
H. Hirsch, F. Hüsing, and G. Rockendorf: Modellierung oberflächennaher Erdwärmeüberträger für Systemsimulationen in TRNSYS, BauSIM, Dresden, 2016. ↩
-
DIN EN ISO 9806, Solarenergie – Thermische Sonnenkollektoren – Prüfverfahren (German version EN ISO 9806:2017). DEUTSCHE NORM, pp. 1–107, 2018. ↩
-
Solar Keymark, https://solarkeymark.eu/database/ ↩
-
SOLAR RATING & CERTIFICATION CORPORATION (ICC-SRCC™), https://secure.solar-rating.org//Certification/Ratings/RatingsSummaryPage.aspx?type=1 ↩
-
Solar Keymark. "Annex P1 Collectors EN 12975 General: R6/ Edition 2023-05-12." Technical documentation. Zugriff am: 12. Juni 2024. [Online.] Verfügbar: https://solarkeymark.eu/the-network/certification-scheme-rules/ ↩
-
R. Grena, "Five new algorithms for the computation of sun position from 2010 to 2110," Solar Energy, vol. 86, no. 5, pp. 1323–1337, 2012, doi: 10.1016/j.solener.2012.01.024. ↩
-
J. E. Hay, "Calculation of monthly mean solar radiation for horizontal and inclined surfaces," Solar Energy, vol. 23, no. 4, pp. 301–307, 1979, doi: 10.1016/0038-092X(79)90123-3. ↩
-
J. W. Spencer, "Fourier series representation of the sun," Search, vol. 2, p. 172, 1971. ↩
-
Lago, J. et al. (2019): A 1-dimensional continuous and smooth model for thermally stratified storage tanks including mixing and buoyancy, Applied Energy 248, S. 640– 655: doi: 10.1016/j.apenergy.2019.04.139. ↩↩
-
Steinacker, H (2022): Entwicklung eines dynamischen Simulationsmodells zur Optimierung von wärmegekoppelten Wasserstoffkonzepten für die klimaneutrale Quartiersversorgung, unpublished master thesis, University of Stuttgart. ↩↩↩↩↩
-
System Advisor Model Version 2020.11.29 (SAM 2020.11.29). National Renewable Energy Laboratory. Golden, CO. URL: https://sam.nrel.gov ↩
-
Holmgren W. F., Hansen C. W. and Mikofski M. A. (2018): Pvlib Python: A python package for modeling solar energy systems, Journal of Open Source Software 3(29), 884, doi: https://doi.org/10.21105/joss.00884 ↩