Highlights
What are the main findings?
- RHES closes electricity, hydrogen, and thermal carrier balances while explicitly representing battery state of charge, converter ratings, storage bounds, and residual-deficit dispatch.
- Published Utsira, Northern Italy, Salaspils, and UK district-heating systems provide source-based engineering benchmarks while screening calculations are kept distinct from measured validation.
What is the implication of the main finding?
- The framework enables transparent multi-energy planning without combining incompatible carrier units or double-counting cross-carrier conversion flows.
- The analysis identifies the measured time-series and common disturbance data required for future quantitative resilience and optimization validation.
Abstract
Hybrid renewable energy systems require coordinated modelling of electricity, thermal energy, hydrogen, storage, and dispatchable generation to evaluate performance under changing supply, demand, and disturbance conditions. This paper presents the Resilient Hybrid Energy System Simulator (RHES), an integrated framework for chronological carrier balancing, storage-state tracking, resilience metrics, and multi-criteria design evaluation. Electricity, hydrogen, and thermal energy are represented as distinct carriers and are coupled through electrolyzers, hydrogen storage, fuel cells, heat recovery, hydrogen-to-heat, and power-to-heat devices. The formulation explicitly closes cross-carrier inputs and outputs, defines battery state-of-charge and power constraints, and specifies a dispatch order for battery, hydrogen, and grid support. Published Utsira, Northern Italy, Salaspils, and UK district-heating systems are used as source-based engineering benchmarks. Where complete synchronized measured time series are unavailable for this study, results are identified as screening or illustrative rather than as field validation. Sensitivity checks quantify the effect of selected resource, conversion-efficiency, demand-reconstruction, fuel-price, and objective-weight assumptions. The resulting framework provides a reproducible basis for multi-energy planning while keeping measured evidence, derived calculations, illustrative assumptions, and future validation work clearly separated.
1. Introduction
A resilient energy system can prepare for, absorb, adapt to, and recover from disturbances while maintaining or rapidly restoring critical energy services. Reliability describes the ability to meet demand during expected operating conditions, whereas resiliency additionally emphasizes high-impact disturbances, degraded operation, recovery time, and continuity of critical loads [1]. In a hybrid system, resilience is strengthened by diversity because energy generation, renewable resources, dispatchable sources, electrical storage, hydrogen, thermal storage, and conversion equipment can support one another rather than relying on a single source or carrier [2].
Modern energy systems are exposed to renewable-resource variability, equipment failures, fuel-supply constraints, transmission or distribution outages, communication failures, and environmental stresses such as extreme heat, cold, storms, flooding, wildfire conditions, and drought. Integrated electric-heating restoration and interdependent power–hydrogen research show why disturbance response must include network configuration, service restoration, and cross-carrier support [3,4]. Hybrid storage can further reduce the effect of renewable intermittency and preserve reserve for critical loads [5].
1.1. Environmental, Economic, and Operational Motivation
Resiliency assessment should expose the system to stresses rather than evaluating only normal annual operation. Extreme temperature can increase electrical and thermal demand while reducing reserve; drought or low-water availability can derate hydro resources; a fuel-supply interruption can restrict dispatchable generation; and an electrical outage can disable pumps or heat-transfer equipment. These stresses may affect several subsystems at once, so the simulation must synchronize disturbances, demand, storage state, component availability, and network connectivity.
The economic consequence of inadequate resilience is not limited to the value of the missing kilowatt-hours. Interruption costs can include lost production, service disruption, restart costs, spoiled products, reduced comfort, emergency operations, and delayed recovery. LaCommare et al. estimated the annual U.S. cost of sustained power interruptions at roughly $44 billion in 2015 dollars under their study assumptions [6]. This demonstrates why avoided outage cost and energy not served should be included in resilient design. U.S. Department of Energy AFFECT examples also report example-specific energy-cost savings of approximately 19–38% and emission reductions of approximately 19–36.8% for selected federal-facility projects combining measures such as PV, batteries, thermal storage, efficiency, and microgrid controls [7].
1.2. Problem Statement and Research Gap
Installed capacities and annual energy totals alone cannot describe the operation of a resilient multi-energy system. Electricity, hydrogen, and thermal energy use different units, efficiencies, storage behaviours, operating limits, and time constants. A design that appears adequate on an annual-energy basis can still experience short-duration deficits, storage depletion, converter saturation, curtailment, or delayed recovery. Chronological simulation is therefore required to reproduce demand and generation, storage SOC, conversion losses, component ratings, failure and restoration, and cross-carrier support.
Important modelling gaps remain. Annual screening can hide hourly shortages and recovery delays; deterministic profiles may not represent correlated extreme events; many studies simplify component failure, repair, degradation, protection, communication, and environmental derating; and economic optimization may omit avoided outage cost, uncertainty, replacement, or degradation. DOE modelling roadmaps similarly identify the need for stronger model integration, interoperability, flexible software architectures, resilience metrics, and advanced techno-economic analysis [8,9].
1.3. Research Objective and Contributions
The objective of this paper is to develop RHES as a coordinated multi-energy simulation framework for planning assessment, resilient operation, and performance evaluation of hybrid energy systems. The principal contributions are:
- A common representation for electricity, hydrogen, thermal energy, storage, dispatchable fuel use, and future renewable coupling;
- Explicit carrier-balance, conversion, storage, cost, emissions, and resiliency equations with consistent symbols and constraints;
- A resilience layer based on explicit disturbance/availability inputs, critical-load priority, islanded grid states, and fixed-topology cross-carrier support; automated graph-based fault isolation and topology reconfiguration are identified as future work rather than as validated capabilities;
- Case-study translation and source-based benchmarking using Utsira, a Northern Italy PV–battery–hydrogen microgrid, Salaspils solar district heating, and a UK seasonal-storage system, with source-derived values distinguished from RHES assumptions and derived screening quantities;
- A multi-criteria design-evaluation framework that connects the governing equations to cost, emissions, ENS, curtailment, recovery, and reserve metrics. The current worked example verifies the ranking calculation; it is not presented as a completed component-sizing optimization of the literature cases.
2. Literature Review
2.1. Hybrid and Multi-Energy System Modelling
District multi-energy systems coordinate electricity, heat, fuels, storage, and conversion devices so that the operating state of one carrier can influence another [10]. Integrated multi-energy flow formulations provide a mathematical basis for coupling electricity, gas or hydrogen, and thermal subsystems while preserving separate physical balances [11].
Hybrid-system research also emphasizes technology diversity. Hybrid renewable systems can improve reliability and flexibility when variable resources are coordinated with storage and dispatchable generation [2]. Hydro–PV–battery studies and hydro forecasting research further demonstrate that water availability and time-dependent resource behaviour can materially change renewable contribution [12,13].
2.2. Hydrogen Storage and Control
Hydrogen provides a long-duration cross-carrier pathway: surplus electricity is converted by an electrolyzer, transported or compressed, stored as chemical energy, and later reconverted through a fuel cell. The Utsira demonstration is especially relevant because it combines wind generation, electrolysis, hydrogen compression and storage, and fuel-cell or hydrogen-engine backup using operational data [14]. Energy-hub research similarly treats electrolyzers, hydrogen storage, and fuel cells as coupling devices between electricity and stored fuel [15], while hydrogen-to-heat research shows the potential role of hydrogen in thermal decarbonization and cross-carrier operation [16].
The optimization literature shows that sizing and dispatch must be evaluated together. Selim et al. developed optimal sizing for off-grid systems with integrated hydrogen storage [17]. Wang et al. presented an integrated hybrid-power modelling and optimization framework including solar, wind, fuel cells, electrolysis, hydrogen generation, and batteries [18]. Dufo-López et al. optimized control strategies for stand-alone renewable systems with hydrogen storage using simulation-based genetic algorithms [19].
2.3. Thermal Energy Storage and Heat-System Modelling
Thermal energy storage performs an analogous balancing function for useful heat, but it requires a dedicated thermal balance. Reviews distinguish sensible, latent, and thermochemical storage and emphasize charging, discharging, and standing losses [20]. The Salaspils solar district-heating system provides a practical case with renewable heat production and water-based thermal storage [21]. Seasonal district-heating storage in the UK [22] and the Gemasolar concentrated solar power (CSP) plant, located in Fuentes de Andalucía, Seville, Spain, provide additional examples of long-duration thermal energy storage. The Gemasolar plant was developed by Torresol Energy, with heliostat technology supplied by SENER (Getxo, Spain) and the molten-salt receiver developed by SENER in collaboration with CIEMAT [23]. Experimental hybrid renewable and thermal-storage research further demonstrates the need to coordinate renewable production, useful heat, and storage performance [24].
2.4. Demand and Load-Profile Analysis
Accurate simulation requires realistic demand profiles rather than annual totals alone. Electricity, thermal, and gas or hydrogen demand can have different hourly, daily, seasonal, and multi-year behaviour. Recent studies have applied clustering and machine learning to residential electricity profiles [25], explainable forecasting to district-heating loads [26], and dedicated forecasting methods to natural-gas consumption [27]. For a hybrid energy system, time-series, peak-demand, load-factor, clustering, regression, forecasting, and correlation analysis are therefore treated as preprocessing methods that convert raw building-, regional-, or factory-level data into chronological simulation inputs.
2.5. Resilience, Restoration, and Modelling Integration
Power-system resilience research provides metrics for disturbance impact and recovery [1]. Integrated electric-heating restoration studies show how network reconfiguration can recover service across coupled carriers [3], and interdependent power–hydrogen research demonstrates how hydrogen infrastructure can support restoration [4]. Co-simulation and microgrid-planning roadmaps call for stronger interoperability across planning and operations, electricity and thermal models, communications, and advanced techno-economic analysis [8,9,28]. Hydrogen microgrid design, planning, and management have also been examined within an integrated control framework [29].
2.6. Literature Synthesis
The identified gap motivates a unified modelling framework that connects demand and generation profiles with carrier balances, conversion and storage constraints, disturbance response, resiliency assessment, and multi-objective optimization. The following section develops this generalized formulation before describing its implementation in RHES.
3. Generalized Multi-Energy Methodology
3.1. Generalized Hybrid Energy System
A hybrid energy system represents electricity, hydrogen, and thermal energy as distinct carriers connected through conversion and storage technologies. At each time step, the simulator updates source availability and demand; reconstructs chronological load; computes carrier-specific balances; enforces conversion, storage, and equipment constraints; applies the selected disturbance and resiliency strategy; updates SOC and reserve states; and records technical, economic, environmental, and resiliency outputs. Figure 1 summarizes this research architecture.
Figure 1.
RHES graphical abstract shows coordinated electricity, hydrogen, thermal energy, storage, resiliency, and optimization. Arrows indicate the direction of carrier exchange or control signals; the legend distinguishes electricity, hydrogen, heat, and supervisory information.
Figure 2 summarizes the calculation workflow, from inputs and time-series processing to coupled balances, resilience analysis, design evaluation, and reported outputs.
Figure 2.
Hybrid and multi-energy simulation, resiliency, and optimization framework.
3.2. Demand and Load-Profile Formulation
Demand analysis begins with building-, regional-, or factory-level data such as utility bills, smart meters, hourly demand, thermal loads, gas or hydrogen use, weather, occupancy, population, and production schedules. The data are cleaned, converted to consistent units, placed on a common time step, and normalized. Correlation and forecasting methods can then explain or project how demand changes with weather, time, occupancy, production, or other drivers.
Let Eannual be annual-energy demand and ph the normalized profile multiplier for hour h. When the profile has an average of one, the hourly load is:
Pload,h = (Eannual / 8760) × ph
For a profile whose daily average is not exactly one, the profile sum is used explicitly so that the reconstructed time series preserves the annual energy total:
Pload,h = (Eannual × ph) / [365 × (p1 + p2 + … + p24)]
The same normalization is applied independently to electrical and thermal demand. Hydrogen or fuel demand can be entered directly as mass, volume, or energy and converted using the appropriate lower heating value or heat rate. A reconstructed representative profile is suitable for screening and algorithm testing, but it is not equivalent to measured chronological validation. Measured-data validation requires time-aligned source, demand, and storage-state observations at the same temporal resolution. The profile examples shown below use a one-hour step over a representative 24 h day. Repeating that day is a dispatch test, not a weather-aligned annual run. In particular, it does not establish seasonal resource variability, annual storage cycling, or hydrogen autonomy over an observed year. A full-year study would require 8760 synchronized hourly observations (8784 for a leap year), calendar weights or measured hourly series, and explicitly carried initial and final storage states.
3.3. Carrier-Balance Equations and Equation Sequence
At each time step the electrical subsystem first compares local electrical generation with load. Positive residual energy is treated as surplus and negative residual energy as deficit:
RHES applies a declared dispatch order. In the Northern Italy example, available generation meets electrical load first. Any surplus charges the battery, feeds the electrolyzer, and, when enabled, supplies power-to-heat before the remaining energy is exported or curtailed. During a deficit, the battery discharges first, followed by the fuel cell or another available generator; grid import covers the remaining shortfall, up to its connection limit. Any final deficit is recorded as electrical ENS. The default policy does not import grid electricity for electrolysis. Grid export and import are mutually exclusive, as are battery charge and discharge. Equipment that is absent or unavailable has zero dispatch in that step.
Sbat,pre,t = Sbat,t−1 (1 − λbat,t)
Ebat,dis,t = min[Edeficit,t, Pbat,dis,max Δt, ηbat,dis (Sbat,pre,t − Sbat,min)]
Esur,1,t = max[Esurplus,t − Ebat,ch,t, 0]; Edef,1,t = max[Edeficit,t − Ebat,dis,t, 0]
Equation (12) is the final electrical accounting identity after the individual dispatch terms are determined. Power-to-heat electricity and grid export are explicit electrical sinks, preventing cross-carrier energy from being counted twice: all electrical quantities in Equations (3)–(14) are energies over Δt hours, in kWh. Grid import and export are non-negative metered energies bounded by the interconnection rating multiplied by Δt; both are zero while islanded. E_P2H,t is electrical energy supplied to an enabled heat pump or heater after higher-priority electrical uses, and the corresponding useful heat enters Equation (23) only through Q_P2H,t.
Be,t = Egen,t + EFC,t + Ebat,dis,t + Egrid,imp,t − Eload,t − Eel,t − Ebat,ch,t − EP2H,t − Egrid,exp,t
Ecurtailed,t = max[Be,t, 0]; Eunmet,t = max[−Be,t, 0]
Hydrogen production is limited by renewable or system surplus, electrolyzer rating, and available tank space:
Eel,t = min[Esur,1,t, Pel,max Δt, Eel,storage−limit,t]
mH2,gross,t = (Eel,t ηel) / LHVH2
mH2,pipe,t = mH2,gross,t (1 − λpipe)
mH2,pre,t = mH2,t−1 (1 − λstorage,t)
mH2,in,t = min[mH2,pipe,t, mH2,max − mH2,pre,t]
Fuel-cell dispatch is calculated from the residual deficit after battery support, not from the initial deficit. It is constrained by the installed fuel-cell rating and the hydrogen inventory remaining at that time step: the step begins with the hydrogen inventory carried from t − 1 after any storage loss. Electrolysis is then accounted for, followed by hydrogen allocation to permitted end uses. Equation (20) includes hydrogen produced during the same step, but under the default surplus/deficit policy the electrolyzer and fuel cell cannot both operate because their electrical triggers are mutually exclusive. Newly produced hydrogen may feed an enabled hydrogen boiler in that step, provided the same mass is not allocated to the fuel cell. The “other” term in Equation (22) means an explicitly entered non-fuel-cell, non-boiler hydrogen withdrawal (kg per step); it is zero if no such demand is supplied.
mH2,FC,t = min[mH2,pre,t + mH2,in,t, mH2,required,t, PFC,max Δt/(LHVH2 ηFC)]
EFC,t = mH2,FC,t LHVH2 ηFC
mH2,t = mH2,pre,t + mH2,in,t − mH2,FC,t − mH2,boiler,t − mH2,other,t ≥ 0
The thermal calculation also follows a definite order. First, available direct heat, recovered electrolyzer and fuel-cell heat, and any authorized power-to-heat output are calculated without boiler heat. This preliminary supply determines the TES charge or discharge from Equations (24)–(29). After TES discharge, the remaining useful-heat deficit is offered to the hydrogen boiler, then to backup heat. Equation (23) contains all the final available heat terms after these decisions, so each coupling flow is counted once. TES charging and discharging are not permitted in the same step.
STES,pre,t = STES,t−1 (1 − λTES,t)
Qcharge,t = min[Qsurplus,t, Pcharge,max Δt, (STES,max − STES,pre,t)/ηcharge]
Qdis,gross,t = min[STES,pre,t + ηcharge Qcharge,t, Pdis,max Δt, Qdeficit,t/ηdischarge]
Qdis,useful,t = ηdischarge Qdis,gross,t
STES,t = STES,pre,t + ηcharge Qcharge,t − Qdis,gross,t
Qbackup,t = min[max(Qload,t − Qavailable,t − Qdis,useful,t, 0), Pbackup,max Δt]
Qunmet,t = max[Qload,t − Qavailable,t − Qdis,useful,t − Qbackup,t, 0]
Bth,t = Qavailable,t + Qdis,useful,t + Qbackup,t − Qload,t − Qcharge,t
The coupled architecture can also be summarized using a balance vector bt, supply vector st, demand vector dt, coupling-flow vector xt, and conversion matrix . The matrix representation is useful for architecture and network analysis, while the expanded equations are used in the backend because they explicitly enforce physical constraints: Figure 3 summarizes the calculation sequence and the relationships among carrier-specific constraints.
Figure 3.
Equation flowchart connecting inputs, carrier balances, intermediate states, constraints, and outputs. Arrows indicate processing and information flow from inputs through carrier calculations and constraints to system outputs.
3.4. Hydrogen–Thermal Coupling and Network Conversion
Hydrogen–thermal coupling is assessed in two different ways. Correlation describes how two time-aligned variables change together; physical coupling instead describes actual energy transferred through a converter. Applying Pearson correlation to the separate illustrative 24 h Utsira electrical and Salaspils thermal shapes gives r ≈ 0.189. These profiles were drawn from different systems and are not synchronized measurements. The coefficient is therefore only an example of the calculation in Equation (34). It cannot be used to infer how independent reserves, a shared network, or cross-carrier dispatch would perform during an outage.
Physical coupling is represented through optional heat recovery, hydrogen-to-heat, and power-to-heat paths. Electricity consumed by power-to-heat is already subtracted in Equation (12), while each useful-heat output is added once to Qavailable,t in Equation (23). Recoverable electrolyzer heat, recoverable fuel-cell heat, hydrogen-boiler heat, and power-to-heat conversion are:
QEL,heat,t = EEL,t (1 − ηEL) ηHR,EL
QFC,heat,t = mH2,FC,t LHVH2 (1 − ηFC,e) ηHR,FC
QH2,boiler,t = mH2,boiler,t LHVH2 ηH2,boiler
mH2,avail,boiler,t = max[mH2,pre,t + mH2,in,t − mH2,FC,t, 0]
QP2H,t = EP2H,t COPt
In Equation (39), Q_def,remaining,t (kWhth) is the thermal load still unserved after direct generation, recovered heat, power-to-heat, and useful TES discharge, but before the hydrogen boiler and conventional backup are dispatched. It is max[Q_load,t − Q_gen,t − Q_EL,heat,t − Q_FC,heat,t − Q_P2H,t − Q_dis,useful,t, 0]. P_H2,boiler,max is the hydrogen boiler’s thermal rating (kWth). The available hydrogen mass is reduced by fuel-cell use before the boiler withdrawal is set. This definition removes the apparent circular dependence between the provisional heat deficit and final boiler output.
Figure 4 presents the conceptual coupling network and shows the optional pathways connecting energy carriers. In the network diagram, solid arrows show directed energy or mass transfers, dashed arrows represent optional conversion pathways, and dotted arrows denote controller or switching signals; coloured boxes distinguish electrical (blue), hydrogen (green), thermal (orange), and control (purple) components.
Figure 4.
Conceptual multi-energy network showing hydrogen, thermal storage, and cross-carrier conversion paths. The current implementation uses fixed topology with component-availability flags; automatic topology reconfiguration is future work. Solid arrows show enabled energy-transfer pathways, while dashed connections indicate optional or supervisory coupling. Node colours group the electrical, hydrogen, and thermal subsystems.
These optional pathways provide cross-carrier support under a fixed network topology. In the current RHES implementation, a disturbance can disable a component or external-grid connection through an availability flag, and the remaining available converters can be dispatched subject to their ratings and storage limits. Automatic graph search, switch-level fault isolation, topology reconfiguration, and optimal rerouting are not evaluated in the present paper and are retained as future network-control extensions.
3.5. Resiliency Assessment
A reproducible resilience experiment must specify the disturbance start time, duration, affected components, availability or capacity reduction, external-grid state, critical-load fraction, repair/restoration rule, and pre-event storage states. RHES represents these quantities as time-indexed availability and demand-priority inputs. At each disturbed time step the simulator calculates the fractions of electrical and thermal demand that remain served. Separate service ratios avoid adding electricity and heat directly in incompatible units: electrical critical load is a declared subset of electrical demand at each timestamp; its served energy is counted before flexible loads, and CLSR is the critical electrical energy served divided by critical electrical energy demanded over the disturbance interval. If critical thermal service is studied, it is reported as a separate thermal ratio. Recovery time is measured from disturbance onset to the first post-disturbance step at which the required critical service is restored and remains restored through the observation window. No physical network-switching action is inferred from an availability flag.
Relec,t = Eserved,t / Edemand,t
Rthermal,t = Qserved,t / Qdemand,t
RMES,t = we Relec,t + wth Rthermal,t, where we + wth = 1
Hydrogen is treated as an enabling reserve rather than being added directly to the served-load ratio. Its contribution is measured through electricity or heat restored by conversion. The response modes are defined as follows:
- Mode 1—Hydrogen reserve: Stored hydrogen is dispatched through the fuel cell only after the residual electrical deficit remains following higher-priority resources.
- Mode 2—Thermal reserve: TES and backup heat support the remaining thermal deficit subject to energy and power limits.
- Mode 3—Cross-carrier support: Enabled heat recovery, hydrogen-to-heat, or power-to-heat devices are dispatched under the same fixed-topology availability constraints. This mode does not imply automated network switching or topology optimization.
Primary resilience outputs are electrical ENS (kWhe), thermal ENS (kWhth), critical-load served ratio (CLSR), the separately weighted service index, recovery time (h), and the relevant storage-autonomy indicators. Electrical and thermal ENS are reported separately. Interruption cost assigns each carrier its own value of lost load (VOLL), in currency per kWhe or per kWhth, rather than adding the two ENS measures before conversion to cost:
ENSe = Σt Eunmet,t; ENSth = Σt Qunmet,t
CLSR = Ecritical,served / Ecritical,demand
Coutage = Σt [VOLL_e,t × Eunmet,t + VOLL_th,t × Qunmet,t]
The published case-study inputs do not define a common calibrated outage, repair history, critical-load series, or pre-event inventory for all four sites. For that reason the resilience model is presented as an assessment procedure, not as a demonstrated reduction in ENS or recovery time. A comparative test will require identical weather, demand, component failures, initial battery/hydrogen/TES states, repair times, and grid rules for each candidate; the numerical ENS and CLSR series and the restoration time would then be reported alongside the disturbance schedule.
3.6. Multi-Criteria Scoring and Proposed Sizing Optimization
3.6.1. Optimization Framework
The design-evaluation stage is connected directly to the methodology above. For a true sizing optimization, every candidate must be simulated against the same service demand, resource data, disturbance set, time horizon, and system boundary. The objective is to compare life-cycle cost, greenhouse gas emissions, curtailed energy, electrical and thermal ENS, and recovery performance without allowing a change in case-study boundary to masquerade as a design improvement.
The decision vector can include installed nuclear, wind, solar, hydro, grid, or dispatchable capacity; electrolyzer rating; hydrogen-storage mass; fuel-cell rating; thermal generation; TES energy capacity; TES charge/discharge power; heat-pump or electric-heater rating; and backup-heating capacity. For a candidate vector x, the principal design constraints are capacity bounds, carrier balances, SOC bounds, conversion efficiencies, fuel availability, demand-service requirements, and resilience thresholds.
xmin,j ≤ xj ≤ xmax,j
0 ≤ mH2,t ≤ mH2,max; 0 ≤ STES,t ≤ STES,max
CLSR ≥ CLSRmin; ENSe ≤ ENSe,max; ENSth ≤ ENSth,max
A life-cycle or annualized cost metric can include annualized capital, O&M, fuel, replacement, and interruption cost. Greenhouse gas emissions are accumulated from fuel use or energy imports using technology-specific emission factors:
Cannual = Σj(CRFj Ccap,j + CO&M,j + Cfuel,j + Crep,j) + Coutage
GHG = Σt Σj (EFj × Fj,t)
3.6.2. Proposed Sizing-Optimization Algorithm
The algorithm is simulation based. First, a common demand/resource dataset, disturbance set, technical assumptions, and economic assumptions are fixed. Second, candidate design variables are generated within declared bounds. Third, the chronological electricity, hydrogen, battery, and thermal equations are executed over the entire study horizon. Fourth, infeasible candidates are rejected or penalized using explicit SOC, inventory, power, service, and resilience constraints. Fifth, valid outputs are normalized and ranked. For an exhaustive grid search, the stopping condition is completion of the declared candidate set; for an iterative optimizer, the maximum iteration count and convergence criterion must be reported. This is the proposed procedure, not an algorithm exercised on the case-study designs in Section 5 and Section 6. No candidate bounds, search population, convergence history, feasibility logs, or Pareto front have been generated for those cases.
For a minimization metric zi, min–max normalization is:
zi,norm = (zi − zi,min) / (zi,max − zi,min)
A representative multi-criteria objective is:
J = wc Cnorm + wg GHGnorm + we ENSnorm + wu Curtnorm + wr Trecovery,norm
wc + wg + we + wu + wr = 1
Objective weights reflect decision priorities and are not physical constants. They must therefore be reported explicitly and tested for sensitivity. Unnormalized metrics are retained alongside any weighted score so that a favorable aggregate value cannot hide an unacceptable ENS, emissions, or cost result. The illustrative scoring values were entered directly on a 0–1 scale. They were not calculated by normalizing raw cost, emissions, ENS, or curtailment results against published extrema. Consequently, Equation (52) describes normalization intended for a future comparable candidate set, not the present illustrative inputs.
3.6.3. Case Study/Application
The worked example in this paper is intentionally limited to a calculator verification using three preset normalized metric vectors. Candidates A, B, and C are not three alternative designs of one common physical system: they were constructed from different case-study emphases to test the ranking calculation. They therefore must not be interpreted as a component-sizing optimization of Utsira, Salaspils, or an integrated Utsira–Salaspils plant. The labels A, B, and C identify abstract scoring-test candidates, not measured site configurations.
3.6.4. Algorithm Execution
For the calculator verification, cost, GHG, ENS, and curtailment weights are 0.35, 0.25, 0.30, and 0.10. The same arithmetic objective is applied to every preset vector. Recovery time is omitted because no common measured disturbance/recovery series exists for these illustrative vectors. Weight sensitivity is shown only to demonstrate how the scoring rule responds to decision priorities.
JC = 0.35(0.72) + 0.25(0.32) + 0.30(0.20) + 0.10(0.36) = 0.4280
The corresponding arithmetic scores are JA = 0.6325, JB = 0.4765, and JC = 0.4280. These values verify the calculation for the selected normalized inputs; they do not establish an engineering optimum, a component-sizing result, or a cost-resilience trade-off among the literature case studies.
3.6.5. Optimization Outputs and Results
For a completed optimization run, RHES stores the design vector, installed capacities, annualized cost, COE, fuel use, GHG emissions, renewable utilization, curtailment, electrical and thermal ENS, storage cycles, minimum and final SOC, hydrogen and thermal autonomy, CLSR, recovery time, and constraint violations. The current paper demonstrates the scoring/output structure, while automated common-boundary sizing is reserved for a future validation study.
The preset calculator vectors and corresponding plots are presented in Section 6.6. Those graphics are retained only as a transparent arithmetic and weight-sensitivity check, not as evidence that one literature case outperforms another.
4. RHES Implementation and System Architecture
4.1. Implementation Scope and Novel Contribution
RHES brings electricity, battery, hydrogen, and thermal calculations into one chronological modelling workflow. The components are not claimed to be new individually; the point of the implementation is to account for their exchanges without combining different carrier units or counting a converted flow twice. The current case-study work uses a fixed network topology and prescribed availability flags. It does not exercise automatic switching or component-size search.
The application uses a Python/Flask calculation backend (Python version 3.12; Flask 3.0.3, Flask-SQLAlchemy 3.1.1) and a React browser interface for entering scenarios and viewing results. User-defined demand profiles and related records are held in a SQL database. Software version numbers, a source revision, and a complete export of the plotted input series are not archived with this manuscript; therefore the figures are not independently rerunnable from the paper alone. The next reproducibility release must supply the actual code revision, dependency versions, complete time-stamped inputs, and exported states and outputs. This limitation is separate from the arithmetic checks given below.
4.2. Input Processing and Chronological Simulation Workflow
The simulation begins with user-defined demand projections, normalized or time-series load profiles, resource data, technology capacities, component efficiencies, storage limits, economic inputs, emission factors, and disturbance conditions. These inputs are converted to consistent units and mapped to the study time step. For each time step, RHES updates resource availability and demand, computes the initial electrical and thermal balances, applies conversion and storage constraints, updates hydrogen and TES states, applies any disturbance or network restriction, and records the resulting technical, economic, environmental, and resiliency metrics. The final state of one time step becomes the initial state of the next, preserving storage chronology and preventing annual totals from hiding short-duration deficits.
For a chronological run, the required configuration includes the starting timestamp, Δt in hours, number of steps, the study boundary, dispatch priority, initial SOC and hydrogen/TES stocks, converter ratings and efficiencies, carrier-specific demand and source series, disturbance flags, tariff and fuel inputs, and any terminal-state requirements. Each run should export one row per time step, including served and unserved demand, grid exchange, storage charge/discharge and end-of-step inventory, hydrogen flow, thermal flows, curtailment, costs, and balance residuals. Initial storage inventories are not reported for the plotted representative literature-case days, so those plots cannot be used to infer a measured final SOC or seasonal reserve.
A step is evaluated in this order: (1) read demand, generation, flags, and previous inventories; (2) apply storage losses and component availability; (3) meet electrical load, update the battery, dispatch electrolysis or fuel-cell support, and settle optional power-to-heat and grid flows; (4) form usable recovered heat, dispatch TES, then hydrogen-boiler and backup heat; (5) deduct hydrogen for each end use and commit all three end-of-step inventories; and (6) store outputs and test the electrical, hydrogen-mass, and useful-heat residuals. Storage stock carried into t + 1 must equal the stock committed at t. Listing 1 provides Python-style pseudocode specifying the processing sequence; individual device equations and limits remain those of Equations (3)–(40).
| Listing 1. Chronological multi-carrier dispatch and state-update pseudocode. |
| for t in range(N): inputs = series[t]; previous = state state_pre = apply_storage_losses(previous, inputs) elec = dispatch_electricity(inputs, state_pre, priority="battery_then_H2_then_grid") heat = dispatch_heat(inputs, elec.recovered_heat, state_pre, priority="TES_then_H2_then_backup") state = commit_balances(state_pre, elec, heat) assert within_bounds(state) and not double_counted(elec, heat) export_row(t, inputs, elec, heat, state, balance_errors(inputs, elec, heat, state)) |
A minimal comma-separated input record is: t_h,Egen_kWh,Eload_kWh,Qgen_kWhth,Qload_kWhth,Sbat0_kWh,mH20_kg,STES0_kWh = 0,8,5,2,4,4,0.5000,2. The matching calculated record is: t_h,Ebat_ch_kWh,Eel_kWh,mH2_end_kg,QTES_use_kWhth,Qbackup_kWhth,Sbat_end_kWh,STES_end_kWhth = 0,1,2,0.536004,0.9,0.7,5,1. Converter settings and availability flags are fixed as listed in Table 1. These are example records to make the accounting check reproducible; they are not exports from the literature-case simulation.
Table 1.
One-hour hand-check fixture for the balance equations (invented test inputs, not site observations or recorded software output).
The electrical residual is 8 − 5 − 1 − 2 = 0 kWh. Hydrogen mass closes as 0.5000 + (2 × 0.60)/33.33 − 0.53600360036 = 0 kg before displayed rounding. The thermal residual is 2 + 0.4 + 0.9 + 0.7 − 4 = 0 kWhth. The corresponding end-of-step stocks are 5 kWh in the battery, 0.53600360036 kg H2, and 1 kWhth in TES. Printed values give an H2 mass residual below 10−6 kg; using full precision, all three checks close to numerical precision. This verifies the worked arithmetic only, not the accuracy of a particular backend execution.
4.3. Carrier Modules and Cross-Carrier Exchange
The electrical module compares available generation with electrical demand and identifies surplus or deficit before dispatching storage, hydrogen conversion, and grid exchange. Under the default battery–hydrogen priority used for the Northern Italy case, the battery provides short-duration balancing first; the electrolyzer receives only residual surplus, and the fuel cell responds only to residual deficit after battery discharge. Grid import/export is applied after local storage and conversion unless the user selects a different dispatch policy.
The hydrogen module converts eligible electrical surplus into hydrogen subject to electrolyzer power, efficiency, transfer losses, and available tank capacity. Stored hydrogen is tracked as a separate state variable and can later be dispatched through a fuel cell or other hydrogen conversion pathway. RHES records hydrogen produced, stored, used, lost, and converted back into useful electricity or heat.
The thermal module balances useful-heat production and thermal demand independently from the electrical balance. Excess heat can charge TES, while a heat deficit can be supplied by TES discharge, backup heat, power-to-heat, heat recovery, or hydrogen-to-heat pathways when those devices are enabled. This separation preserves carrier-specific units and efficiencies while still allowing controlled cross-carrier support.
4.4. Resiliency and Network-Control Execution
Disturbance scenarios modify component availability, external-grid state, or available generation during the chronological simulation. RHES prioritizes declared critical loads and records ENS, service ratios, storage autonomy, and cross-carrier contribution. In the present implementation, islanded operation is represented by setting grid availability to zero and component outages by availability flags. Automated graph-based fault isolation, switching, and topology search are not implemented or evaluated in this paper.
4.5. Optimization Execution and Output Management
A complete sizing study would generate designs within reported size bounds, run each against the same demand, resource, and disturbance records, reject designs that violate operating or service constraints, and retain the feasible metric vectors for weighted comparison or a Pareto analysis. That common-boundary candidate search was not carried out for the published cases here. The implemented example in Section 6.6 is a weighted scoring-calculator check using three preassigned vectors, not an optimization run.
RHES stores both aggregate metrics and carrier-level states, including demand served, unmet demand, energy production, hydrogen- and thermal-storage levels, fuel use, cost of energy, emissions, curtailment, autonomy, and recovery indicators. Figure 5 shows the proposed component-sizing candidate search, feasibility checks, and ranking workflow.
Figure 5.
Proposed component-sizing search and feasibility workflow. The case-study results in this paper exercise only the separate weighted scoring step.
Figure 6 illustrates the electrical, hydrogen, thermal, and control layers and their principal outputs. Solid links represent carrier transfers and dashed or dotted links represent optional services, feedback, or control interactions; the colours group the electrical, hydrogen, thermal, and coordination layers.
Figure 6.
RHES system architecture showing the electrical, hydrogen, and thermal networks, cross-carrier conversion pathways, controller, resiliency and optimization layer, and principal outputs. Arrows represent the connections between subsystems and controllers; box colours distinguish the electrical, hydrogen, thermal, and supervisory functional layers.
5. Case Study
Four published applications are used so that RHES is assessed with two hydrogen systems and two thermal systems rather than one example per carrier. The hydrogen cases are the Utsira wind–hydrogen demonstration [14] and a PV–battery–hydrogen residential microgrid in Northern Italy [30]. The thermal cases are the Salaspils solar district-heating system [21] and a UK solar district-heating system with seasonal thermal storage [22]. Together they test renewable-surplus conversion, hydrogen storage and reconversion, battery–hydrogen coordination, short-term thermal storage, seasonal heat shifting, and demand-service logic across different system scales.
Four evidence categories are used throughout the study to prevent different types of results from being interpreted as equivalent. Source-reported values are quantities stated in the cited case-study publications. Derived screening values are algebraic calculations based on published quantities and declared RHES assumptions. Illustrative chronological profiles are representative time-step inputs used to exercise the governing equations and are not measured site data. Calculator-verification values are preset normalized metrics used only to test the multi-criteria scoring routine. Operational and validation claims are limited to the evidence category that supports them.
5.1. Utsira Wind–Hydrogen Application
The Utsira demonstration uses a 600 kW wind turbine, a 10 Nm3/h alkaline electrolyzer, 2400 Nm3 of hydrogen storage at 200 bar, a 55 kW hydrogen engine, and a 10 kW PEM fuel cell [14]. A source describing the same plant reports an electrolyzer electrical rating of approximately 48 kW [31]. For RHES, the 2025–2050 demand trajectory (300 to 650 MWh/year), CF = 0.15, and simplified constant conversion efficiencies are illustrative screening inputs rather than measured Utsira operating data. The gas-flow and electrical specifications describe different sides of the electrolyzer: at a nominal hydrogen density of 0.0899 kg/Nm3, 10 Nm3/h corresponds to 0.899 kg/h or about 30.0 kWh/h of H2 chemical energy on an LHV basis. If 48 kW is the electrical input at that same point, the implied LHV conversion efficiency is about 62.4%. Because the two figures come from different source reports, this is a consistency calculation, not evidence that both ratings were measured simultaneously. Figure 7 compares the annual demand scenario with the wind-generation screening estimate.
Figure 7.
Utsira annual electricity-demand scenario versus annual wind-generation screening value.
Wind electricity first serves the electrical load. Residual surplus can be converted to hydrogen after any higher-priority electrical storage term, while stored hydrogen is later consumed only when a residual deficit remains. RHES records surplus sent to electrolysis, gross and delivered hydrogen production, tank inventory, hydrogen consumed, fuel-cell or engine-equivalent electrical support, unmet demand, curtailment, cost, and autonomy. These screening outputs are not presented as a replay of the Utsira measured March 2007 time series. Figure 8 shows the representative demand profile used for the hourly dispatch example.
Figure 8.
Illustrative 24 h per-unit Utsira electricity-demand profile used for RHES time-step testing. The profile is not a measured Utsira day and is not assigned a seasonal or annual weighting.
The representative 24 h profile is repeated only for algorithm demonstration. No season, weather class, weekday/weekend category, or annual weighting is inferred from this single profile; therefore, the profile-derived maximum is not interpreted as the measured annual site peak.
5.2. PV–Battery–Hydrogen Residential Microgrid in Northern Italy
The Northern Italy residential microgrid provides a second hydrogen case with explicit short- and long-duration storage. The published system contains a 12 kW PV array, a 26 kWh lithium-ion battery with a 5 kW power limit, a 5 kW PEM electrolyzer, a 3 kW PEM fuel-cell stack, and a 200 kg pressurized hydrogen tank [30]. The source constrains battery SOC between 0.2 and 1.0 and reports a 95.9% battery round-trip efficiency and a 37.1% hydrogen-cycle efficiency (68.6% electrolyzer stage and 54.1% fuel-cell stage, reported on an HHV basis) [30]. Figure 9 summarizes the cited Northern Italy component inputs.
Figure 9.
Northern Italy PV–battery–hydrogen case-study inputs retained for RHES: electrolyzer rating and annual hydrogen demand.
Within RHES, direct PV generation serves the electrical load first. The battery then handles short-duration surplus/deficit subject to SOC, charge/discharge efficiency, and 5 kW power limits. Only residual surplus is sent to the 5 kW electrolyzer, and the 3 kW fuel cell is dispatched only after battery support leaves a residual deficit. Grid exchange is the final balancing term in the grid-connected configuration. This sequence prevents simultaneous positive battery/hydrogen support while PV already exceeds load.
Figure 10 presents an illustrative RHES sunny-day dispatch using the published Northern Italy component ratings together with a representative daily load and PV trajectory. Positive battery or fuel-cell output occurs only during a residual electrical deficit, whereas battery charging and electrolysis occur during surplus periods. Grid exchange closes the remaining electrical balance. The example is used to verify dispatch bookkeeping and storage-state evolution and is not presented as a measured Northern Italy operating day.
Figure 10.
Illustrative RHES sunny-day dispatch using Northern Italy component limits. Positive battery power denotes discharge and negative battery power denotes charging; electrolyzer demand and grid export are electrical sinks. The daily load and PV trajectories are illustrative, while the component ratings are source-based [30].
5.3. Salaspils Solar District-Heating Application
The Salaspils case contains a 21,672 m2 solar collector field, 1720 collectors, 12.8 MWth installed solar thermal capacity, an 8000 m3 thermal-storage tank, and 10.9332 GWhth/year of annual solar-heat production [21]. Because the reported solar contribution can reach approximately 20% of heating demand, the 2025 screening demand is estimated as 10.9332/0.20 = 54.666 GWhth/year. The RHES demand scenario increases to 70.105 GWhth/year by 2050 to test the same thermal subsystem under demand growth. Figure 11 compares the reported annual solar heat with the illustrative thermal-demand projection.
Figure 11.
Salaspils projected thermal demand and reported annual solar-heat contribution.
The thermal calculation remains separate from the electrical mix. Solar heat first supplies the thermal bus; surplus can charge TES; and a deficit can be supplied by TES discharge and backup heating. RHES reports useful thermal energy, storage charge/discharge, remaining storage, backup heat, unmet thermal demand, fuel consumption, emissions, and thermal operating cost.
Figure 12 shows the representative hourly thermal-demand shape used for the calculation; the profile is illustrative rather than measured.
Figure 12.
Illustrative 24 h per-unit Salaspils thermal-demand profile used for RHES time-step testing. The profile is not a measured day and has no assigned seasonal or annual weighting.
The Salaspils daily shape is a representative profile used to exercise the thermal balance. It does not identify a specific season, weather condition, or day type and is not expanded into an annual chronology without additional weighting data.
5.4. UK Solar District Heating with Seasonal Thermal Storage
The UK solar district-heating study provides a second thermal case focused on long-duration seasonal storage rather than only a short-term water tank [22]. The reference community contains 52 homes with approximately 7540 m2 of heated living area. The reported solar collector area is 2293 m2, short-term storage is provided by two 120 m3 tanks, and seasonal storage is represented by 144 boreholes with depths of approximately 35–37 m. These parameters allow RHES to evaluate a thermal system in which heat can be shifted over substantially longer time scales than in the Salaspils case. Figure 13 compares the physical scales of the UK seasonal-storage components.
Figure 13.
Reported physical scale of the UK solar district-heating and seasonal thermal-storage case study.
For RHES, the short-term tanks and borehole field are represented as distinct thermal-storage functions connected to the thermal bus. Solar heat first serves current thermal demand, excess heat charges available storage, and stored heat is discharged when direct solar supply is insufficient. The expected simulation outputs include short-term and seasonal-storage state, heat charged and discharged, thermal demand served, unmet thermal demand, and seasonal thermal balance. This case is used primarily for architecture, storage-function, and scale validation rather than claiming a numerical prediction error.
5.5. Case-Study Synthesis
The four-case set spans two hydrogen and two thermal architectures, but the cases are not treated as alternative designs of one common plant. Utsira is used for wind–hydrogen scale and operational benchmarking; Northern Italy for explicit battery–hydrogen coordination; Salaspils for solar thermal generation with water-based TES; and the UK case for short-term tanks plus seasonal borehole storage. Source-derived values, RHES assumptions, and derived screening quantities are identified separately in Table 2.
Table 2.
Case-study quantities with explicit separation between source values, RHES assumptions, and derived screening quantities.
5.6. Resiliency Scenario and Profile Correlation
Figure 14 juxtaposes the separate illustrative electrical and thermal profiles used only for the Pearson-correlation demonstration.
Figure 14.
Illustrative normalized Utsira electrical and Salaspils thermal profile shapes used only for same-hour correlation analysis; neither profile is presented as a measured annual chronology.
6. Results
6.1. Utsira Screening and Published Operational Benchmark
Using the RHES screening assumption CF = 0.15, annual wind generation from a 600 kW turbine is 788.4 MWh/year. Compared with the illustrative 2025 electrical demand of 300 MWh/year, the annual arithmetic surplus is 488.4 MWh/year before chronological coincidence, storage state, electrolyzer minimum-load behaviour, or other operating constraints are applied. Using an approximate 48 kW source-reported electrolyzer rating, the full-year input ceiling is 420.48 MWh/year; this is a screening upper bound, not expected actual annual electrolysis. Figure 15 presents the resulting annual screening quantities.
Ewind = 0.6 MW × 8760 h/year × 0.15 = 788.4 MWh/year
Esurplus,2025 = 788.4 − 300 = 488.4 MWh/year
Eel,max = 0.048 MW × 8760 h/year = 420.48 MWh/year
Figure 15.
Utsira annual screening quantities. The demand trajectory and CF = 0.15 are RHES assumptions; the figure is not a measured chronological energy balance.
The 2400 Nm3 Utsira tank corresponds to approximately 215.76 kg when a density of 0.0899 kg/Nm3 is used. At LHVH2 = 33.33 kWh/kg and an illustrative 55% electrical conversion efficiency, a full tank provides approximately 3.96 MWh of recoverable electricity. At 65 kW combined backup output, the resulting screening autonomy is about 60.9 h, or 2.54 days, which lies within the published 2–3 day autonomy description for the demonstration [14]. Published Utsira operational data for March 2007 were recorded at 10 min resolution; a source report shows hydrogen pressure decreasing from about 145 to 33 bar over the month and stand-alone operation for about 65% of that period [31]. Because the raw synchronized wind/load/storage series are not part of the RHES dataset used here, no point-by-point RMSE, MAE, or time-series accuracy claim is made. The 65 kW denominator is the sum of the engine and fuel-cell nameplate outputs (55 + 10 kW), assumed to run continuously together in this hypothetical full-tank calculation. The 55% value is an assumed blended hydrogen-to-electricity efficiency, not a documented combined-unit operating efficiency. Equation (60) rounds 215.76 kg to 216 kg; the stated 3959.6 kWh and 60.9 h follow that rounded value. Real autonomy would depend on dispatch order, actual operating efficiency, minimum tank pressure, reserve policy, and the critical electrical load, none of which is fixed by the screening calculation.
mH2,tank = 2400 Nm3 × 0.0899 kg/Nm3 = 215.76 kg
EFC,full = 216 kg × 33.33 kWh/kg × 0.55 = 3959.6 kWh
τautonomy = 3959.6 kWh / 65 kW = 60.92 h ≈ 2.54 days
6.2. Northern Italy PV–Battery–Hydrogen Microgrid Results
The Northern Italy case checks whether RHES applies the published battery–hydrogen operating hierarchy and component limits consistently. The source system uses a 12 kW PV array, 26 kWh/5 kW battery, 5 kW electrolyzer, 3 kW fuel cell, and 200 kg hydrogen tank [30]. The source reports the battery as short-term storage and hydrogen as long-term storage, which is the same dispatch priority used in the RHES formulation.
Figure 16 presents an illustrative low-PV stress-day dispatch under the same Northern Italy component limits. Battery support is positive only while a residual deficit exists and SOC remains above its minimum. Fuel-cell output is dispatched only after battery support is insufficient, and grid import supplies any remaining deficit. During surplus periods, the battery charges and the electrolyzer operates only when residual surplus remains. The figure provides an internally consistent RHES accounting test using source-based component ratings rather than a reproduction of measured field data.
Figure 16.
Illustrative RHES low-PV stress-day dispatch using Northern Italy component limits. The figure shows power-balance consistency, battery SOC bounds, residual-deficit fuel-cell dispatch, and the final grid-balancing term; the daily load and PV trajectories are illustrative [30].
6.3. Salaspils Thermal Demand, Storage, and Backup Results
Using the reported annual solar heat of 10.9332 GWhth/year and a 20% contribution to heating demand, the estimated 2025 district thermal demand is 54.666 GWhth/year. The corresponding average thermal load is 6.24 MWth. Applying the illustrative daily-profile multiplier of 1.264 gives a profile-derived value of approximately 7.89 MWth; this is an algorithm-test peak, not a demonstrated annual maximum. The simplified annual backup requirement before chronological timing and TES effects is 43.7328 GWhth/year. Figure 17 separates the estimated thermal demand, reported solar contribution, and residual heat requirement.
Qdemand,2025 = 10.9332 / 0.20 = 54.666 GWhth/year
Pth,avg = 54.666 GWhth / 8760 h = 6.24 MWth
Pth,peak = 6.24 × 1.264 = 7.89 MWth
Qbackup,annual = 54.666 − 10.9332 = 43.7328 GWhth/year
Figure 17.
Salaspils RHES annual thermal screening results showing estimated demand, reported solar heat, and the remaining heat requirement before chronological dispatch.
A one-hour thermal dispatch example shows why storage energy capacity and discharge power must be treated separately. If useful thermal generation is 5.0 MWhth during an hour with 10.0 MWhth demand, the initial deficit is 5.0 MWhth. If TES can withdraw 3.0 MWhth gross at 90% discharge efficiency, useful TES delivery is 2.7 MWhth, leaving 2.3 MWhth for backup heat. Demand is fully served only if the backup unit has at least 2.3 MWth of available one-hour output.
Qdis,useful = 3.0 × 0.90 = 2.7 MWhth
Qremaining = 5.0 − 2.7 = 2.3 MWhth
6.4. UK Solar District Heating and Seasonal Thermal Storage Results
The UK seasonal-storage case broadens thermal validation beyond Salaspils. Its 52-home district, 2293 m2 collector field, two 120 m3 short-term tanks, and 144 boreholes approximately 35–37 m deep provide a published architecture for testing heat transfer across daily and seasonal time scales [22]. In RHES, the validation checks are conservation of thermal energy, storage bounds, charging during surplus periods, discharging during deficits, and correct accounting of thermal demand served and unmet heat. Since the retained source data do not provide a complete synchronized hourly series for a formal error metric, the paper reports this case as structural and scale validation rather than presenting an unsupported numerical accuracy percentage.
Figure 18 shows the illustrative seasonal RHES response used for the UK case. The profile represents how summer solar availability can charge seasonal storage and how stored heat can support winter demand. It is an RHES illustration based on the case architecture rather than a measured monthly validation series.
Figure 18.
Illustrative RHES seasonal-storage response for the UK solar district-heating case study.
6.5. Resilience Metrics and Evidence Boundary
The resilience formulation defines how an explicit disturbance run produces electrical and thermal ENS, CLSR, storage-autonomy, and recovery trajectories. The four published case studies do not share a common site, load, disturbance, critical-load definition, or repair process; consequently, the case-study results are not used to claim that one response mode provides a quantified resilience enhancement over another. A direct resilience comparison requires all candidate configurations to be exposed to the same declared disturbance and to report numerical ENS, CLSR, and recovery time. For a reproducible site-specific event, the report would also tabulate each time step of the disturbance, the equipment state, pre-event hydrogen mass and battery/TES inventories, separate critical electrical and thermal loads, and the repair rule. Those records are not available here, so a numerical ENS or recovery curve for the four published sites has not been fabricated.
The r = 0.189 value compares two illustrative daily profiles from different sites. The timestamps do not refer to a shared operating day or a coupled plant, and the coefficient is not a resilience metric. The earlier profile comparison is retained solely to show the Pearson calculation; it gives no evidence about the benefit of keeping separate hydrogen and thermal reserves.
6.6. Multi-Criteria Ranking Verification
Table 3 and Figure 19, Figure 20, Figure 21 and Figure 22 verify the normalized weighted-score calculation using three preset metric vectors. Because the vectors do not represent alternative component designs evaluated against one common demand/resource/disturbance boundary, they are not interpreted as a physical optimization of Utsira, Salaspils, or a combined system.
Table 3.
Preset normalized metric vectors used only to verify RHES multi-criteria scoring; these are not case-study optimization results.
Figure 19.
Arithmetic weighted scores for the preset metric vectors; not a component-sizing optimization result.
Figure 20.
Preset normalized cost, GHG, ENS, and curtailment values used to verify the scoring routine.
Figure 21.
Cost–ENS visualization of the preset metric vectors; not a case-study Pareto front.
Figure 22.
Sensitivity of the preset scoring example to balanced, resilience-first, and cost-first weight sets.
With the illustrative balanced weights 0.35 for cost, 0.25 for GHG, 0.30 for ENS, and 0.10 for curtailment, the arithmetic scores are 0.6325, 0.4765, and 0.4280 for vectors A, B, and C. This verifies the calculator only. A defensible sizing optimization would additionally report the design variables, search method, iteration history or enumerated candidate set, stopping rule, and all feasibility checks under one common system boundary. No physical unit or raw cost/GHG/ENS/curtailment value underlies a row of Table 3, so neither measured minima and maxima nor fixed engineering reference ranges can be reconstructed. Min–max values generated from a future candidate pool would depend on that pool. Raw metric columns must therefore remain “not available” until a common-boundary run produces them; inventing raw values would give the calculator a misleading physical interpretation. Figure 20 displays the four preset normalized criteria.
Figure 19 reports the three arithmetic weighted scores for preset candidates A–C.
Figure 21 plots the same arbitrary vectors in cost–ENS space. Because the vectors do not share a common physical system boundary, the figure is not interpreted as a Pareto front for the case studies; it only verifies the trade-off visualization used by the software. The dashed line joins the illustrative points for visual guidance only and does not represent a fitted optimum or a verified Pareto frontier.
Figure 22 compares the three illustrative objective-weight selections to show ranking sensitivity.
To test how the calculator responds to its inputs, the three same 0–1 vectors were rescored under two different weight sets. The resilience-first weights (0.20, 0.15, 0.50, 0.15) give A = 0.6750, B = 0.4295, C = 0.3460. The cost-first weights (0.55, 0.15, 0.20, 0.10) give A = 0.6025, B = 0.5205, C = 0.5200. As a separate arithmetic check, replacing each column by its three-candidate rank mapped to 0, 0.5, or 1 gives balanced-weight scores A = 0.65, B = 0.50, C = 0.35. Under the cost-first weights, the rank-based scores instead become A = 0.45, B = 0.50, C = 0.55, reversing the preferred vector. This is sensitivity of an artificial scoring example, not robustness of an engineering design. A physical ranking would require raw results, fixed reference bounds or a justified alternative mapping, and additional candidates evaluated on the same system.
6.7. Economic and Environmental Screening
For Salaspils, the following calculation is a screening estimate rather than a measured project benefit. If 10.9332 GWhth/year of useful solar heat displaces a 90%-efficient natural-gas boiler, the avoided gas input is approximately 41,451 MMBtu/year. Using the EPA direct-combustion factor of 53.06 kg CO2/MMBtu gives about 2199 t CO2/year of avoided direct combustion emissions [32]. The $6/MMBtu gas price is an illustrative RHES assumption; a $4–$8/MMBtu range gives approximately $165,800–$331,600/year. Capital cost, O&M, upstream emissions, taxes, and local tariff effects are excluded. The arithmetic is expressed as illustrative USD at an assumed 2026 reference price level; no historical price escalation or exchange-rate correction was applied. The system boundary for the avoided-fuel example is the useful solar heat delivered and the natural-gas combustion it replaces, not full life-cycle district-heating economics. The emissions boundary is direct boiler combustion CO2 only. Grid electricity, upstream fuel and equipment emissions, construction, maintenance, and end-of-life emissions are outside this estimate. Separate electricity and heat outage costs would require separately stated VOLL_e (USD/kWhe) and VOLL_th (USD/kWhth) under Equation (46).
Qfuel = 10.9332 GWhth / 0.90 = 12.148 GWh = 41,451 MMBtu/year
CO2avoided = 41,451 × 53.06 = 2.199 × 106 kg CO2/year
Fuel Costavoided = 41,451 × $6 = $248,704/year
For Utsira, the 3959.6 kWh full-tank electrical-recovery estimate can be combined with a facility-specific value of lost load (VOLL). The $20/kWh example gives $79,192 for one full discharge, but both the VOLL and the assumption that the entire tank is available to the interrupted critical load are illustrative. This value is therefore a screening calculation, not an observed economic benefit at Utsira. Only electrical interruption energy is valued in this example, using the illustrative VOLL_e = 20 USD/kWhe. No thermal outage saving is included. The tank-energy estimate is not a recorded amount of critical load restored.
Cavoided,event = 3959.6 kWh × $20/kWh = $79,192/event
6.8. Sensitivity and Uncertainty Screening
A one-at-a-time sensitivity screen evaluates parameters that materially affect the reported screening quantities. The analysis is deterministic rather than probabilistic because probability distributions and measured stochastic input ensembles are not available. It quantifies how the screening conclusions vary when key assumptions are changed within transparent ranges. Table 4 summarizes the one-at-a-time parameter sensitivities.
Table 4.
One-at-a-time sensitivity of selected RHES screening quantities.
7. Discussion
7.1. Findings
A central result of the formulation is bookkeeping consistency: battery charge/discharge, electrolysis, fuel-cell generation, power-to-heat, hydrogen-to-heat, heat recovery, TES, grid exchange, and unmet demand are connected through explicit residual balances and state constraints. The Northern Italy dispatch examples show that storage support is not dispatched while PV already exceeds load, and the Utsira autonomy screen reproduces the published 2–3 day scale while remaining clearly identified as a screening calculation.
7.2. Assumptions and Evidence Boundaries
Case-study evidence has different levels of strength. Utsira and the Northern Italy study provide source-based component and operating information, while Salaspils and the UK district-heating study provide physical scale and thermal-storage architecture. RHES demand growth, representative daily profiles, selected constant efficiencies, VOLL, gas price, and some screening capacity factors are model assumptions or derived inputs. Source-reported, derived screening, illustrative chronological, and calculator-verification results are identified separately so that illustrative or derived quantities are not described as measured site performance.
7.3. Limitations and Future Work
The main unresolved limitation is the absence of a complete synchronized measured time-series dataset that can be redistributed and replayed through RHES for point-by-point error metrics. This study therefore does not claim formal chronological validation, a quantified resilience enhancement, or a completed component-sizing optimization. Future work should ingest measured Utsira or equivalent source/load/storage data, report MAE/RMSE and state-trajectory errors, run common disturbance experiments with ENS/CLSR/recovery-time outputs, perform probabilistic or Monte Carlo uncertainty analysis, add degradation and detailed technology operating constraints, and implement graph-based switching/reconfiguration before making network-restoration claims. The arithmetic fixture in Section 4.2, the published case parameters, and the normalized calculator vectors are not substitutes for a versioned program and its complete chronological input/output files. Until those are supplied, neither software-level reproducibility nor measured performance accuracy has been established.
8. Conclusions
This paper presents an RHES methodology for integrated multi-energy simulation, resilience assessment, and multi-criteria design evaluation. The electrical balance includes battery SOC, charge/discharge efficiency and power limits, residual-deficit fuel-cell dispatch, grid import/export, and power-to-heat consumption. Hydrogen and thermal balances explicitly account for hydrogen-boiler use and recovered or converted heat, preventing omitted consumption and double-counting.
The four literature cases are used as engineering benchmarks rather than as interchangeable optimization candidates. Utsira provides measured-operation context and a 2–3 day autonomy benchmark; Northern Italy provides explicit battery–hydrogen component limits and storage hierarchy; Salaspils and the UK study provide thermal-generation and storage scales. Screening calculations reproduce useful order-of-magnitude quantities, but representative profiles and assumed parameters are not treated as measured chronological evidence.
The sensitivity analysis shows that screening conclusions can change materially with wind capacity factor, conversion efficiency, and the assumed solar fraction used to reconstruct thermal demand. Economic and environmental values are therefore reported with their source or assumption status and are not presented as observed project savings.
The current multi-criteria example verifies the scoring and weight-sensitivity logic only; it does not establish a physical sizing optimum because the preset vectors do not share one common system boundary. Likewise, the resilience formulation defines the required disturbance variables and metrics, but a numerical resilience enhancement is not claimed without a common failure/recovery experiment. The next validation step is to replay measured synchronized time-series data through RHES, report quantitative error metrics, and then execute common-boundary disturbance and sizing studies with fully documented constraints and uncertainty ranges.
Author Contributions
Conceptualization and methodology, H.A.G. and N.K.; software and visualization, N.K.; validation and formal analysis, H.A.G. and N.K.; writing—original draft preparation, N.K.; writing—review and editing, H.A.G. and N.K.; supervision and project administration, H.A.G. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Natural Sciences and Engineering Research Council of Canada (NSERC).
Data Availability Statement
Case-study parameters are derived from the cited published sources and are identified in the case-study input descriptions. RHES demand trajectories, representative profiles, selected efficiencies, economic assumptions, and preset normalized scoring vectors are illustrative study inputs and are identified as such. The raw synchronized measured Utsira operational series used in the original demonstration studies is not available in the dataset used for this study; therefore, point-by-point measured-data validation is not claimed.
Acknowledgments
The authors acknowledge members of the Smart Energy Systems Lab at Ontario Tech University who supported the research.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| CF | capacity factor |
| CHP | combined heat and power |
| CLSR | critical-load served ratio |
| COE | cost of energy |
| ENS | energy not served |
| GHG | greenhouse gas |
| H2 | hydrogen |
| HES | hybrid energy system |
| LHV | lower heating value |
| O&M | operation and maintenance |
| PEM | proton-exchange membrane |
| PV | photovoltaic |
| RHES | Resilient Hybrid Energy System Simulator |
| SOC | state of charge |
| TES | thermal energy storage |
| VOLL | value of lost load |
Symbols and Units: Symbols and units used throughout the paper are consistent with the simulation time step: E denotes electrical energy per time step (kWh), P electrical power (kW), Q useful thermal energy per time step (kWhth), S stored energy (kWh or kWhth), mH2 hydrogen mass (kg), LHVH2 lower heating value (kWh/kg), η conversion efficiency (-), λ fractional standing or transfer loss (-), SOC state of charge (-), and Δt time-step duration (h). Annual quantities are reported separately in MWh/year or GWh/year and are not mixed directly with chronological time-step balances. VOLL_e and VOLL_th denote electrical and thermal interruption values (USD/kWhe and USD/kWhth), respectively. Grid imports and exports, electrolysis electricity, and power-to-heat electricity are in kWhe per step; hydrogen withdrawals including m_H2, other are in kg per step. Q_def,remaining is useful heat still required before dispatching the hydrogen boiler (kWhth). All dollar calculations in Section 6.7 use the explicitly assumed 2026 USD price basis rather than recorded site costs.
References
- Stanković, A.M.; Tomsovic, K.L.; De Caro, F.; Braun, M.; Chow, J.H.; Čukalevski, N.; Dobson, I.; Eto, J.; Fink, B.; Hachmann, C.; et al. Methods for analysis and quantification of power system resilience. IEEE Trans. Power Syst. 2023, 38, 4774–4787. [Google Scholar] [CrossRef] [Scilit]
- Hassan, Q.; Algburi, S.; Sameen, A.Z.; Salman, H.M.; Jaszczur, M. A review of hybrid renewable energy systems: Solar and wind-powered solutions: Challenges, opportunities, and policy implications. Results Eng. 2023, 20, 101621. [Google Scholar] [CrossRef] [Scilit]
- Wang, J.; Ge, H.; Yang, Y.; Pan, Z.; Liu, Y.; Zhao, H. Collaborative service restoration with network reconfiguration for resilience enhancement in integrated electric and heating systems. Electronics 2023, 12, 3792. [Google Scholar] [CrossRef] [Scilit]
- Zhu, S.; Xu, Y.; Wang, Y.; He, J. Resilience-motivated service restoration of interdependent power and hydrogen distribution system. IEEE Access 2024, 12, 149528–149542. [Google Scholar] [CrossRef] [Scilit]
- Adeyinka, A.M.; Esan, O.C.; Ijaola, A.O.; Farayibi, P.K. Advancements in hybrid energy storage systems for enhancing renewable energy-to-grid integration. Sustain. Energy Res. 2024, 11, 26. [Google Scholar] [CrossRef] [Scilit]
- LaCommare, K.H.; Eto, J.H.; Dunn, L.N.; Sohn, M.D. Improving the estimated cost of sustained power interruptions to electricity customers. Energy 2018, 153, 1038–1047. [Google Scholar] [CrossRef] [Scilit]
- U.S. Department of Energy, Federal Energy Management Program. 2022 Assisting Federal Facilities with Energy Conservation Technologies (AFFECT) Federal Agency Call Funding Recipients; U.S. Department of Energy: Washington, DC, USA, 2023.
- Bent, R.; Du, W.; Heleno, M.; Jeffers, R.; Korkali, M.; Liu, G.; Olis, D.; Pradhan, P.; Singh, R. Integrated Models and Tools for Microgrid Planning and Designs with Operations; Microgrid R&D Program White Paper, Topic 6; U.S. Department of Energy, Office of Electricity: Washington, DC, USA, 2022.
- U.S. Department of Energy, Office of Electricity. Microgrids R&D Strategic Plan—Topic 6: Integrated Models and Tools for Microgrid Planning and Designs with Operations; Draft Report; U.S. Department of Energy: Washington, DC, USA, 2026.
- Xu, Y.; Leonforte, F.; Del Pero, C. District multi-energy systems: A comprehensive review of configurations, technologies, and performances. Build. Environ. 2024, 253, 111318. [Google Scholar] [CrossRef] [Scilit]
- Zhu, M.; Xu, C.; Dong, S.; Tang, K.; Gu, C. An integrated multi-energy flow calculation method for electricity-gas-thermal integrated energy systems. Prot. Control Mod. Power Syst. 2021, 6, 5. [Google Scholar] [CrossRef] [Scilit]
- Borkowski, D. Run-of-the-river hydro-PV battery hybrid system as an energy supplier for local loads. Energies 2021, 14, 5160. [Google Scholar] [CrossRef] [Scilit]
- Ogliari, E.; Nespoli, A.; Mussetta, M.; Pretto, S.; Zimbardo, A.; Bonfanti, N.; Aufiero, M. A hybrid method for the run-of-the-river hydroelectric power plant energy forecast: HYPE hydrological model and neural network. Forecasting 2020, 2, 410–428. [Google Scholar] [CrossRef] [Scilit]
- Ulleberg, Ø.; Nakken, T.; Eté, A. The wind/hydrogen demonstration system at Utsira in Norway: Evaluation of system performance using operational data and updated hydrogen energy system modeling tools. Int. J. Hydrogen Energy 2010, 35, 1841–1852. [Google Scholar] [CrossRef] [Scilit]
- Massaro, F.; Di Silvestre, M.L.; Ferraro, M.; Montana, F.; Riva Sanseverino, E.; Ruffino, S. Energy hub model for the massive adoption of hydrogen in power systems. Energies 2024, 17, 4422. [Google Scholar] [CrossRef] [Scilit]
- Ameli, H.; Strbac, G.; Pudjianto, D.; Ameli, M.T. A review of the role of hydrogen in the heat decarbonization of future energy systems: Insights and perspectives. Energies 2024, 17, 1688. [Google Scholar] [CrossRef] [Scilit]
- Selim, A.; El-shimy, M.; Amer, G.; Ihoume, I.; Masrur, H.; Guerrero, J.M. Hybrid off-grid energy systems optimal sizing with integrated hydrogen storage based on deterministic balance approach. Sci. Rep. 2024, 14, 6888. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, F.-C.; Hsiao, Y.-S.; Yang, Y.-Z. The Optimization of Hybrid Power Systems with Renewable Energy and Hydrogen Generation. Energies 2018, 11, 1948. [Google Scholar] [CrossRef] [Scilit]
- Dufo-López, R.; Bernal-Agustín, J.L.; Contreras, J. Optimization of control strategies for stand-alone renewable energy systems with hydrogen storage. Renew. Energy 2007, 32, 1102–1126. [Google Scholar] [CrossRef] [Scilit]
- Sarbu, I.; Sebarchievici, C. A comprehensive review of thermal energy storage. Sustainability 2018, 10, 191. [Google Scholar] [CrossRef] [Scilit]
- Lebedeva, K.; Migla, L.; Odineca, T. Solar district heating system in Latvia: A case study. J. King Saud Univ. Sci. 2023, 35, 102965. [Google Scholar] [CrossRef] [Scilit]
- Renaldi, R.; Friedrich, D. Techno-economic analysis of a solar district heating system with seasonal thermal storage in the UK. Appl. Energy 2019, 236, 388–400. [Google Scholar] [CrossRef] [Scilit]
- Tehrani, S.S.M.; Shoraka, Y.; Nithyanandam, K.; Taylor, R.A. Cyclic performance of cascaded and multi-layered solid-PCM shell-and-tube thermal energy storage systems: A case study of the 19.9 MWe Gemasolar CSP plant. Appl. Energy 2018, 228, 240–253. [Google Scholar] [CrossRef] [Scilit]
- Adesanya, M.A.; Rabiu, A.; Ogunlowo, Q.O.; Kim, M.-H.; Akpenpuun, T.D.; Na, W.-H.; Grewal, K.S.; Lee, H.-W. Experimental evaluation of hybrid renewable and thermal energy storage systems for a net-zero energy greenhouse: A case study of Yeoju-Si. Energies 2025, 18, 2635. [Google Scholar] [CrossRef] [Scilit]
- Michalakopoulos, V.; Sarmas, E.; Papias, I.; Skaloumpakas, P.; Marinakis, V.; Doukas, H. A machine learning-based framework for clustering residential electricity load profiles to enhance demand response programs. Appl. Energy 2024, 361, 122943. [Google Scholar] [CrossRef] [Scilit]
- Dang, L.M.; Shin, J.; Li, Y.; Tightiz, L.; Nguyen, T.N.; Song, H.-K.; Moon, H. Toward explainable heat load patterns prediction for district heating. Sci. Rep. 2023, 13, 7434. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Liu, J.; Wang, S.; Wei, N.; Chen, X.; Xie, H.; Wang, J. Natural gas consumption forecasting: A discussion on forecasting history and future challenges. J. Nat. Gas Sci. Eng. 2021, 90, 103930. [Google Scholar] [CrossRef] [Scilit]
- U.S. Department of Energy, Office of Electricity. T&D Co-Simulation of Microgrid Impacts and Benefits; Microgrid R&D Program White Paper, Topic 2; U.S. Department of Energy: Washington, DC, USA, 2022.
- Valverde, L.; Rosa, F.; Bordons, C. Design, planning and management of a hydrogen-based microgrid. IEEE Trans. Ind. Inform. 2013, 9, 1398–1404. [Google Scholar] [CrossRef] [Scilit]
- Damato, A.; Iamarino, M.; Ferraro, A.; D’Angola, A. PV-based hybrid residential microgrid with hydrogen and battery energy storage options: A Northern Italy case study. J. Phys. Conf. Ser. 2022, 2385, 012119. [Google Scholar] [CrossRef] [Scilit]
- Eté, A. Hydrogen Systems Modelling, Analysis and Optimisation. Master’s Thesis, University of Strathclyde, Glasgow, UK, September 2009. [Google Scholar]
- U.S. Environmental Protection Agency. Emission Factors for Greenhouse Gas Inventories; 2025 GHG Emission Factors Hub, EPA: Washington, DC, USA, 2025.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





















