The integrated simulation framework comprises five components: (i) a solar geometry and irradiance transposition model; (ii) an eight-layer PVT physics model; (iii) a PID controller operating on outlet fluid temperature via flow rate manipulation; (iv) an energy and exergy performance analyser; and (v) five case-study scenarios. Implementation is in Python 3.11.7 (NumPy 1.26.4, SciPy 1.11.4, Matplotlib 3.8.0); a reproducibility script is released alongside this paper.
3.1. Solar Irradiance Model
The simulation runs from 06:00 to 18:00 local solar time. Clear-sky global horizontal irradiance (GHI) is modelled as a sinusoidal approximation of the diurnal solar arc:
Solar intermittency is superimposed by adding zero-mean Gaussian noise of standard deviation σ
G = 120 W m
−2 (representative of cumulus cloud shadows at the study site), with the result clipped to a physically meaningful range:
In Equation (2), (0, σG2) denotes an independent zero-mean Gaussian (normal) random draw of variance σG2 applied at each control step, Gclear is the deterministic clear-sky envelope of Equation (1), Gh is the resulting global horizontal irradiance (GHI), and the clip[·] operator bounds the result to the physically admissible range 0–1100 W m−2.
Figure 2 plots a single realisation of the stochastic forcing alongside the corresponding plane-of-array (POA) irradiance; its realism is corroborated in
Section 3.6, where measured POA irradiance for two monsoon days of differing variability at the same site shares the diurnal envelope and cloud-driven intermittency (
Figure 3).
The simulation date is n
d = 81 (vernal equinox, 22 March), representative of the annual-mean solar geometry for the site. The POA irradiance is obtained by isotropic-sky transposition [
26], with the diffuse fraction d
f computed from the full three-branch Erbs (1982) correlation [
27]:
The Python implementation of Equation (3) is given in
Listing S1 (Supplementary Materials). The corresponding routine in the original notebook used only the first and third branches, biassing the POA irradiance upward by 30–80% for partly cloudy conditions (0.22 < k
t < 0.80); the corrected form is used throughout this study.
The diffuse fraction d
f splits the GHI into its diffuse and beam horizontal components, which are transposed to the plane of array by the isotropic-sky (Liu–Jordan) model [
26]. With the day number n
d, solar declination δ = 23.45° sin [360°(284 + n
d)/365], hour angle ω = 15°(t − 12) and zenith angle given by cos θ
z = sin φ sin δ + cos φ cos δ cos ω at the site latitude φ = 8.643° N, the instantaneous clearness index is k
t = G
h/(G
sc cos θ
z), with G
sc = 1367 W m
−2; then
where β
t = 10° is the collector tilt, ρ = 0.20 the ground albedo and cos θ = cos θ
z cos β
t for the south-facing collector. Equation (3b) defines the plane-of-array irradiance G
tilt used throughout (Equations (5), (6), (13a) and (14)); at this small tilt and low latitude R
b ≈ 1, which is why the POA tracks the GHI closely in
Figure 2 and
Figure 3.
3.2. Eight-Layer PVT Model
The collector is modelled as a one-dimensional lumped-capacitance system comprising eight thermal nodes, numbered ①–⑧ in
Figure 1: (1) cover glass, (2) air gap, (3) module glass, (4) PV cell, (5) EVA adhesive, (6) copper absorber and tube, (7) HTF, and (8) PU foam back-insulation. The PV electrical efficiency is temperature-dependent:
Here h
cond = 200 W m
−2 K
−1 is the solid inter-layer conduction coefficient (
Table 2), applied over the aperture area A to each internal solid–solid link (nodes ③–④, ④–⑤, ⑤–⑥ and ⑥–⑧); the glazing stack (nodes ①–②–③) is coupled through the air-gap coefficient h
gap = 5.5 W m
−2 K
−1, and the cover glass absorbs a fraction α
glass = 0.04 of the incident irradiance. The complete eight-equation system is written out in
Appendix B, and the nodal masses and heat capacities are listed in
Table 3.
The fluid-node energy balance (which is the algebraic linkage to the PID actuator) is:
The useful thermal heat removal rate that defines the input to the TCES reactor is:
The front-side convection coefficient depends on wind speed via the McAdams correlation, h
conv(v) = 5.7 + 3.8 v (in W m
−2 K
−1), so that the simulation responds correctly to the diurnal wind profile:
The eight coupled ODEs are integrated over each control interval Δt = 10 s using scipy.integrate.odeint with relative and absolute tolerances of 1 × 10
−6 and 1 × 10
−8 respectively and a maximum internal step size of 1 s. Initial conditions are set to the ambient temperature at simulation start (06:00). Physical and control parameters are listed in
Table 2.
The modelled aperture A = 0.6834 m
2 is the reference collector used consistently throughout this modelling programme; the experimental prototype of
Section 3.6 is a larger unit (full Jinko JKM355PP-72 module, ≈1.94 m
2 aperture) used to validate the intensive collector heat transfer physics at a different scale. Because every reported efficiency is a per-unit-area ratio, a 2.8× change in aperture (0.6834 → 1.94 m
2, with nodal masses and flow limits scaled) changes the first- and second-law efficiencies by less than 0.5%, while absolute yields scale linearly.
3.3. PID Controller
A discrete-time PID controller regulates the pump flow rate u(k) with the objective of holding the HTF outlet temperature T
7 at the setpoint T
sp = 95 °C, corresponding to the SrCl
2/NH
3 desorption threshold. The error and the control law are:
In Equation (11), k is the current discrete control step, j is the summation (integration) index running over control steps 0, …, k, e(j) is the outlet temperature error of Equation (10) at step j, and Δt = 10 s is the control interval, so the middle term is the accumulated integral error. The regulated (controlled) variable is the outlet temperature T
7—a measurable proxy for the reactor desorption threshold constraint—not exergy directly; the energy and exergy quantities of
Section 3.4 are performance evaluation metrics computed from the resulting trajectories, not control objectives.
The controller output is bounded to [u
min, u
max] = [0.05, 0.5] L min
−1. Conditional-integration anti-windup is implemented: when saturated at u
max, the integral updates only if e < 0; when saturated at u
min, only if e > 0. This prevents exergy-destroying overshoot when the controller emerges from a saturated state—a condition that recurs repeatedly under cloud transients. The PID implementation is given in
Listing S3 (Supplementary Materials).
The control variable u is treated as an idealised bounded flow command; the physical actuator is a small variable-speed circulation pump, and its finite turndown and minimum stable flow are the practical constraints on realising the low-flow regime the controller commands. The 0.05–0.10 L min
−1 active band identified below is not a modelling abstraction: the co-located PVT prototype of
Section 3.6 is driven by a 12 V DC circulation pump that sustains stable outlet temperature regulation in precisely this band under monsoon operation, demonstrating that an embedded-systems-cost pump can deliver the ultra-low flow on which the desorption threshold temperature rise depends. The ≈60 K per-pass rise required to reach the TCES setpoint is achievable only at flows roughly an order of magnitude below the typical PVT design point; that this is the regime in which small pumps approach their low-flow stability limit is precisely why deployability, not control sophistication, is the decisive lever for this system class (
Section 5.1).
The gain set was selected by manual sensitivity tuning informed by the plant’s identified input-to-outlet response time: at the noon operating point, a step in irradiance or flow relaxes with an effective 63% response time τ
eff ≈ 13–15 min, dominated by the thermally coupled glazing stack (the bare absorber-plus-fluid estimate (m
6c
6 + m
7c
7)/(h
fluid A
tube) ≈ 31 s is far shorter;
Table 3,
Appendix B). Gains an order of magnitude faster or slower than the adopted set were rejected as noise-amplifying or sluggish. We do not claim a formal optimal-tuning procedure: the 4 × 4 sweep of
Section 4.5 confirms a posteriori that the principal transient metrics vary by at most a few percent across the swept range, so the central conclusions do not depend on the precise gain values.
3.4. Energy and Exergy Performance Metrics
Throughout the exergy analysis the dead state (reference environment) is the instantaneous ambient temperature T
a(t)—the same time-varying ambient that forces the collector energy balance (
Table 2); it is distinct from the STC reference temperature T
ref = 25 °C of the PV model (Equation (4)) and from the HTF inlet temperature T
in = 35 °C. All exergy efficiencies reported here are gross values: they are referenced to the collector control volume (aperture to HTF outlet) and exclude pump electrical consumption. At the throttled operating band (0.05–0.10 L min
−1) the pumping penalty is small—the ideal hydraulic exergy is ≈0.03 W (≈0.007% of the daily exergy yield), and even a realistic 12 V DC circulation pump drawing ≈5 W while energised consumes ≈7 Wh day
−1 at the 11.6% mean duty cycle, i.e., ≈1% of the total daily exergy yield—so the net exergy efficiency lies within about one relative percent of the gross value quoted throughout.
The thermal exergy delivered to the TCES reactor is computed from the rigorous Bejan/Kotas integrated form [
28], which accounts for the cooling of the HTF as it transfers heat from T
7 to T
in:
The solar exergy uses the temperature-dependent Petela coefficient [
29]:
The solar and electrical exergy rates follow directly—electricity is pure exergy, and the solar exergy is the Petela-weighted plane-of-array irradiance:
Writing a second-law (exergy) balance over the collector control volume—bounded by the aperture (solar exergy inflow) and the HTF outlet (thermal exergy outflow to the reactor), with dead state T
a(t)—gives Ėx
solar = Ėx
elec + Ėx
th + Ėx
loss + T
a·
gen, where Ėx
loss collects the exergy carried away by the convective, radiative and back-insulation losses and T
a·
gen is the internal irreversibility. The principal novelty metric of this paper is the exergy that fails to reach the reactor, relative to the undisturbed baseline, during a PID recovery transient—the accumulated exergy delivery deficit:
with t
dist the disturbance onset, t
settle the time at which T
7 returns to within 1 K of T
sp, and the three integrand terms given by Equations (13a), (13b) and (12) at the common dead state T
a(t). By the control-volume balance above, the integrand equals Ėx
loss + T
a·
gen: the metric measures undelivered exergy relative to the undisturbed baseline, not internal irreversibility alone—during an irradiance reduction it is dominated by the un-captured solar term, the true irreversibility being only the recovery-transient subset. This is precisely why, as shown in
Section 4.5, ΔEx
deficit is a controller-independent benchmark for the configuration: the controller can act only on the small recovery-transient term.
3.6. Experimental Validation and Real-Weather Forcing
The thermal model of
Section 3.2 and the irradiance forcing of
Section 3.1 are grounded here against measured data from the study site. Two independent sources are used. The first is a three-year record (March 2023 to June 2026) from the Walailak University rooftop monitoring system of a 2.54 MWp grid-connected photovoltaic plant, logging plane-of-array irradiance from two independent pyranometers (and their geometric mean), ambient temperature, module temperature and wind speed at 15 min resolution. The second is a purpose-built single-panel PVT collector—a Jinko JKM355PP-72 module fitted with a copper-tube absorber, foam-insulated back and glazed front, regulated by a PID-controlled 12 V DC circulation pump acting on the outlet water temperature and operating in the same 0.05–0.10 L min
−1 band as the simulated controller command (
Section 3.3)—constructed and instrumented at the same site. The prototype module (≈1.94 m
2 aperture) is larger than the 0.6834 m
2 modelled reference collector; because the validation compares temperatures and per-area heat transfer coefficients, it tests the collector heat transfer physics at a different scale rather than the modelled once-through temperature rise. Because the prototype construction (cover → air gap → module glass → cell → absorber/tube → fluid → insulated back) mirrors the eight-node stack of
Section 3.2, and because its pump controller is a physical instance of the flow rate feedback law studied in this paper, it provides a partial but well-posed hardware test of both the collector physics and the control concept.
Measured forcing is reconstructed by transposing the WU global horizontal irradiance to the plane of array with the same optics used in
Section 3.1 (Erbs diffuse split, isotropic sky).
Figure 3 overlays the two September 2024 prototype-campaign days, which differ in daily clearness and sub-daily variability (both cloud-affected—neither is a clear-sky day). The measured envelope and its cloud-driven excursions are consistent with the synthetic forcing of
Figure 2, confirming that the σ = 120 W m
−2 stochastic model is representative of the site; the three-year record additionally supplies many genuinely clear and intermittent days that are retained as drop-in forcing for the planned multi-day analysis. Note that the smoother campaign day (24 September, K
t = 0.26) has a lower daily clearness index than the more intermittent day (10 September, K
t = 0.37): within a cloudy monsoon fortnight, daily transmittance and sub-daily variability are only weakly correlated, so the day with fewer fast fluctuations is not necessarily the brighter one.
Table 5 collates every measured and synthetic day used in this study.
The front-side thermal core of the model—the optics and the convective/radiative balance of nodes 1–4, which set the cell operating temperature and hence both the η(T) penalty and the exergy delivery deficit benchmark—is validated against the measured temperature of a bare rooftop PV module driven by the WU plane-of-array irradiance, ambient temperature and wind. Integrating the lumped energy balance C·dT
m/dt = (ατ − η(T
m))·G
POA − U(v)·(T
m − T
a), with a single site-calibrated loss coefficient (U ≈ 12 W m
−2 K
−1, consistent with the restricted ventilation of the close-mounted array, NOCT-equivalent ≈ 57 °C), reproduces the measured module temperature with an RMSE of 3.8 °C, a mean bias of +0.4 °C and R
2 = 0.94 over
n = 170 fifteen-minute samples (
Figure 4). The model captures both the diurnal envelope and the cloud-driven dips and relaxes to 1–2 °C below ambient at night, the correct radiative behaviour. This supports the optical and convective/radiative physics that underpins the exergy delivery deficit benchmark.
Figure 5 shows the prototype rig: the glazed copper-tube PVT collector, the variable-speed circulation pump and its PID driver, and the control and data-acquisition panel. The controller modulates the 12 V pump to regulate the outlet water temperature—the same flow rate feedback principle analysed throughout this paper—and the rig was operated outdoors under September monsoon skies. On-site irradiance was not logged during these (rainy) campaigns, which is precisely why the co-located WU pyranometer record supplies the forcing for the prototype analysis.
Because the prototype water inlet temperature was not logged, the panel temperature is predicted from the WU forcing using the measured outlet water temperature as the fluid boundary condition, which isolates the absorber-to-water heat transfer physics. On the well-cooled campaign day (24 September 2024, low-variability), the model reproduces the measured panel temperature with an RMSE of 1.3 °C (
n = 52); the fitted absorber-to-water conductance, UA
f ≈ 85 W m
−2 K
−1, is high and consistent with well-bonded copper tubing (
Figure 6, left). An adversarial baseline that simply equates panel and water temperature achieves only RMSE 2.1 °C, so the energy balance model improves the prediction by about 39% in RMSE—real structure rather than overfitting. On the intermittent day (10 September), with the pump cycling under fast cloud transients, the measured panel temperature sits well above the water temperature, and the fitted conductance collapses to ≈9 W m
−2 K
−1 (
Figure 6, right): the model thus correctly reproduces flow-limited panel–water decoupling, the very mechanism that the flow rate controller of this paper exists to manage.
Under the same monsoon conditions, the prototype delivered usable hot water—a peak outlet up to 79 °C—daily maxima of 46–79 °C across the four campaign days (61–79 °C on the three non-stagnant days) and daily means of 39–56 °C—while the PID modulated the pump flow (
Figure 7). This is a real-world demonstration of the PVT-to-TCES charging service that the simulated system is designed to provide: the controller trades a measure of electrical efficiency for a thermal stream hot enough to approach the desorption threshold, exactly as in the simulation.
The validation establishes the model’s thermal behaviour, not its electrical model: the prototype panel was not held at its maximum-power point, so the measured apparent efficiency (0.10–0.12, rising anomalously with temperature) could not validate the temperature-dependent η(T) relation, which is supported by the manufacturer datasheet and enters the thermal balance weakly (η·Gtilt ≪ ατ·Gtilt). The module validation addresses the front optical/convective core common to PV and PVT, and the cooled-collector validation demonstrates absorber/panel heat transfer rather than the full once-through rise; two of the four prototype days are flow-limited, and one module loss coefficient is site-calibrated. Within this scope the agreement is strong, and the central physics underpinning the 937 kJ deficit benchmark is experimentally supported.