The most important operating parameters of the hot water tank are inertia of the tank and heat exchange surface of the exchanger. The intensity of the heat exchange process results from heat exchange surface and the material from which the exchanger is made, which is characterized by the heat conductivity coefficient expressed in [W/m2K]. The value of the heat conductivity coefficient is strongly related to operating parameters of the tank, including water temperature within the tank, temperature of the medium supplying the exchanger, and the volumetric flow. These parameters characterize the so-called operating point of the tank, which is dependent on them. The values of these parameters vary under operating conditions, therefore it is very important to determine the heat conductivity coefficient of the exchanger at a given operating point as a function of the volumetric flow of the medium supplying this exchanger. For this reason, the parameters mentioned above were selected for analysis, as described below.
The proposed diagnostics method is based on the comparison of two models: an analytical model, in the form of a system of differential equations, developed on the basis of an energy balance linking the characteristic parameters of the storage tank (thermal conductivity coefficients, tank volume, etc.) with an operational model, in the form of differential equations, developed on the basis of operational data using parametric identification. A prerequisite for the reliability of this method is the same order of analytical and parametric model. The System Identification library of the Matlab package was used to develop an operational model based on the operational data, therefore, the paper will explain the part of the methodology concerning the analytical model.
2.1. The Operational Analytical Model of a Domestic Hot Water Storage Tank Based on Energy Balance
The operational model of the storage tank based on energy balance was developed assuming that the water temperature in the tank is distributed uniformly over the entire height of the coil heat exchanger. The model therefore does not take into account possible stratification that may occur in the storage tank. However, in modern heating systems, due to the requirements of the users, internal circulation is ensured to compensate for stratification in the storage tank.
Assuming that the modeled hot water storage tank is a load for a solar collector array and is isolated from the solar segment by a coil heat exchanger placed inside the storage tank, the amount of heat supplied by the collector array to the tank can be determined from Equation (1).
Assuming that the distribution of water temperature in the storage tank over the height of the heat exchanger is uniform, the amount of heat received by the water in the storage tank can be calculated from Equation (2).
In a steady state, the amount of heat supplied by the heat exchanger is equal to the amount of heat received by the water in the tank. Equation (3) is, therefore, true.
Therefore, by substituting Equations (1) and (2) into Equation (3), it is possible to determine the outlet temperature of the medium from the heat exchanger according to Equation (4).
Assuming that the recorded curves of the inlet and outlet temperatures of the medium are dependent on the temperature of the water in the storage tank, Equation (4) can be simplified to the form 5.
According to Equation (5), the variation of the outlet temperature of the medium from the heat exchanger depends on the value of the ULW coefficient, the inlet temperature, the flow rate, and the specific heat of the medium in the system.
The temperature rise in a domestic hot water storage tank depends not only on the thermal capacity of the storage tank but also on the dynamic properties of the heat exchanger inside the storage tank. The dynamic properties of the heat exchanger can be determined from the differential equation.
By transforming Equation (6) into the form (7) and completing the Laplace transform, Equation (8) is obtained, which enables determination of the transition state of the outlet temperature of the medium from the coil.
The model of the coil heat exchanger developed on the basis of the energy balance consists of two paths: the main path related to the medium inlet temperature, described in Equation (9) by the transfer function
G1(
s), and the disturbance path related to the storage tank temperature, described in Equation (10) by the transfer function
G2(
s). The operational model of the heat exchanger can be represented by a block diagram (
Figure 1).
The individual constituent paths of the model are described with the transfer function, appropriate for a first-order inertial object. The gain factors of the individual paths can be determined from Equations (11) and (12), and the equivalent time constant, which is identical for both paths of the model, can be determined from Equation (13).
Equations (11) and (12) show that the gain factors of both model paths depend on the flow and specific heat of the medium and the ULW coefficient. The equivalent time constant is related to the effective heat capacity of the heat exchanger and the flow rate and specific heat of the medium.
Assuming that there is no stratification in the storage tank over the height of the heat exchanger and that the amount of heat transferred by the coil is equal to the amount of heat received by the water in the storage tank, the energy balance of the tank can be described using Equation (14).
The temperature of the water in the storage tank can be calculated by transforming Equation (14) into the form:
According to Equation (15), the water temperature rise in the storage tank depends on the inlet temperature of the medium to the coil and the specific heat and flow rate of the medium.
The water temperature rise in the storage tank depends on the amount of heat transferred through the heat exchanger and the heat losses through the tank walls. Knowing the amount of heat transferred by the heat exchanger into the storage tank and the heat losses from the tank to the environment, the temperature rise in the tank can be estimated using the Equation:
By transforming Equation (16) and rearranging it, we can obtain the Equation
By transforming Equation (17) using the Laplace transform into the domain of a complex variable, the operational model of the storage tank (18) is obtained, which makes it possible to determine the dynamic properties in the time domain.
Equation (18) shows that the storage tank model developed on the basis of the energy balance consists of two paths: the main path described with Equation (19) by the transfer function
G1(
s), related to the medium inlet temperature
Tin to the coil, and the disturbance path described with Equation (20) by the transfer function
G2(
s) and related to the ambient temperature
Tamb. The operational model of the storage tank can be represented by a block diagram (
Figure 2).
The transfer functions of both paths are appropriate for first-order inertial objects. The transfer functions describing the dynamic properties of the individual paths make it possible to determine the gain factors and the equivalent time constants. The main path gain factor can be determined from Equation (21), while the disturbance path gain factor can be determined from Equation (22). The equivalent time constant is defined by Equation (23).
The holistic model of the DHW storage tank can be represented with the following block diagram (
Figure 3).
According to the diagram in
Figure 3, the DHW storage tank consists of two interdependent objects: the coil heat exchanger and the water tank.
The inlet temperature of the medium to the heat exchanger and the ambient temperature were taken as input signals, and the outlet temperature of the medium from the exchanger was taken as the output signal. The water temperature in the heat exchanger is the variable that links the two parts of the storage tank model. According to the diagram of the storage tank shown in
Figure 3, the parametric identification process would need to develop two independent models of the individual components of the storage tank, linked together by the water temperature in the storage tank. Consequently, in terms of its structure, the model would become complex. Assuming that the recorded curves of the inlet and outlet temperatures of the medium from the exchanger and the water temperature in the storage tank, as a function of time, are interdependent on each other and on the ambient temperature, the disturbance path can be neglected in both parts of the storage tank model. The operational model of the DHW storage tank is then simplified to the form represented with the block diagram in
Figure 4. The dynamic properties of the main path of the operational model are described by the transfer function (24) and of the disturbance path—by the transfer function (25), the gain factors and the equivalent time constants of which can be estimated using Equations (26)–(29).
The
ULW and
ULZ coefficients in the individual transfer functions of the paths of the model parts correspond to the heat loss coefficients. The
ULW coefficient corresponds to the heat losses of the coil heat exchanger and the
ULZ coefficient corresponds to the heat losses of the storage tank. The energy balance shows that the power supplied by the heat exchanger should be equal to the power transferred to the storage tank. Therefore, the gain factors of both paths of the operational model of the
DHW storage tank should be 1. The heat losses from the coil heat exchanger—
ULW should be calculated with Equation (26). The power losses of the tank—
ULZ should be calculated with Equation (28), and the thermal capacity of the tank with Equation (29). The heat transfer intensity of the heat exchanger to the storage tank, that is the exchanger thermal conductivity coefficient
λW, should be calculated using Equation (30).
2.2. Storage Tank Model Based on Operational Data
The diagnostics of a storage tank is illustrated by the operating data recorded during the operation of the solar heating system (
Figure 5). The system consisted of two flat solar collectors with a unit absorber area of 3 m
2. The collectors were thermally loaded with a 100 dm
3 storage tank fitted with a coil heat exchanger with a volume of 2.3 m
3 and a developed heat transfer surface area of 0.75 m
2 (
Figure 6). The exchanger’s declared power, according to the manufacturer, is 14 kW at the flow rate of the heating medium of 2.5 m
3/h and the temperature of the heating medium of 70 °C, the temperature of feeding water of 10 °C, and the temperature of domestic hot water of 45 °C. The medium flow rate was forced by a pump with stepless adjustment between 2 and 9 l/min, and it was measured using a flow meter generating a voltage signal corresponding to the flow rate, in the range of 0–10 V DC. The temperature was measured using four-wire PT1000 sensors, which made it possible to compensate for the resistance of the wires. The system control algorithm was implemented in a PLC which used a TCP/IP protocol for communication with a computer and the installed SCADA LBX software (ver. 2.60 LAB-EL, Reguły Poland, 2020). This solution made it possible to monitor the system and record the measurement data. The measurement data were sampled and recorded with a 1-s interval.
The operating data recorded at various operating points of the tank are to be used to diagnose the storage tank. In case of the solar heating system under consideration, the operating point will vary depending on prevailing sunlight conditions and flow of the working medium. The impact of working medium mass flow in solar installation on heat transfer coefficients as well as on thermal inertia of DHW storage tank and coil heat exchanger were analyzed on data recorded during 15 days of the installation operation. During each experiment, the mass flow of the working medium was constant, and the values of solar radiation intensity were high and stable over time. The instantaneous variability of the intensity of solar radiation during the experiment had a negligible impact on the dynamic properties of the reservoir (very high reservoir time constant) and the thermal conductivity coefficients. All experiments were performed for three mass flows of the working medium through the coil exchanger: the minimum one was 0.038 ± 0.02 [kg/s], the average one was 0.09 ± 0.02 [kg/s] and the maximum one was 0.13 ± 0.2 [kg/s]. Examples of operational data from one of these 15 days are presented in
Figure 7. During the experiment that day, the medium flow through the heat exchanger was 0.132 [l/s]. On this basis, the proposed diagnostic method was discussed, but it should be emphasized that in the case of operational data recorded for the remaining 14 days, the procedure was identical.
In the identification process, the DHW storage tank was treated according to the analytical model as a single-input dual-output object (
Figure 4). The inlet temperature of the medium to the coil, which is also the outlet temperature of the medium from the collector array, was taken as the input signal. The outlet temperature of the medium from the coil, which is also the inlet temperature of the medium to the collector array, and the temperature of the water in the storage tank were taken as the output signals. For temperature measurements, class A Pt1000 sensors were used for which the measurement uncertainty in the temperature range −30 °C–300 °C was (±0.15 + 0.002|t|). The operational model developed on the basis of such data enables the analysis of the dynamics of the coil heat exchanger—main path and the analysis of the dynamics of the water temperature in the storage tank—disturbance path.
In the parametric identification process, an operational model of the storage tank was developed based on the recorded operational data. The static and dynamic properties of the DHW storage tank were best represented by the ARX autoregressive model, described by a system of differential Equation (31), as estimated in the validation process (
Figure 8). The determination coefficient of the model was 0.99.