A contract-governed simulation architecture developed for hydrogen hybrid energy systems has demonstrated that more than half of commonly evaluated energy management strategies fail strict operational admissibility tests, while simultaneously reducing software maintenance overhead by 61.5 percent across diverse industrial applications. Researchers designing hybrid power configurations have long faced difficulties in balancing shared electrical models against application-specific demands, often leading to code duplication or misleading performance claims. By implementing executable contracts and rigorous campaign-level evaluation gates, the research team established a simulation framework that verified software modularity across three distinct engineering scenarios while systematically auditing controller eligibility. In a controlled comparison spanning forty-two controller-condition testing cells across industrial handling and refrigerated transport cases, the architecture rejected twenty-three evaluations because the controllers failed to sustain battery charge or breached service requirements, disproving several apparent fuel savings that were actually artifacts of depleted electrical storage or numerical sampling defects.
Hydrogen hybrid power systems typically combine proton exchange membrane fuel cells with lithium-ion batteries to deliver electrical power while managing transient load peaks. However, simulation experiments in this domain routinely depend on application-specific operational requirements, specialized physical states, and distinct service objectives. For example, an industrial forklift must execute intensive handling missions with rapid acceleration, a refrigerated container must preserve perishable cargo within precise thermal limits through active cooling, and a stationary solar installation must balance intermittent photovoltaic generation with bidirectional hydrogen electrolysis and storage. While reusing underlying differential physical equations is standard practice in computational modeling, the fundamental methodological challenge lies in preserving and mechanically verifying that reuse when scenarios, control policies, and physical components change over time. Without explicit governance, adjustments in numerical time steps, decision intervals, or baseline assumptions can invert apparent efficiency advantages, causing researchers to mistake simulation anomalies for genuine engineering progress.
To address this structural challenge, the researchers established a layered simulation testbed organized around strict software contracts rather than monolithic application code. At the center of the architecture sits a reduced-order electrical plant representing a hybrid forklift powertrain comprising a ten-kilowatt fuel cell paired with a five-kilowatt-hour, forty-eight-volt lithium-ion battery pack. Integrated at one hundred hertz with a ten-millisecond time step, the core advances battery state of charge, lumped cell temperature, cumulative hydrogen mass, and an empirical four-term stack voltage degradation surrogate. Crucially, this shared core is decoupled from application-specific kinematics, mechanical lifting equations, thermal dynamics, and cargo states. Instead, a runtime execution loop cleanly separates scenario specifications, demand generators, platform-specific extensions, the shared electrical core, interchangeable control strategies, and downstream analysis pipelines, ensuring that application requirements cannot introduce hidden conditional branches into the core numerical engine.
To confirm that this separation was structurally enforced rather than merely asserted, the investigators instrumented the runtime interface using an execution proxy to log every attribute access between the platform layers and the underlying core. The instrumentation revealed an exceptionally narrow coupling boundary: the refrigerated container accessed the core using only two standard function calls, while the stationary microgrid added three passive state readings to track electrical state of charge, temperature, and accumulated hydrogen for its tank inventory balance. Crucially, neither platform performed any external write operations on internal core variables. Because zero external writes occurred, the core remained reachable solely through its formal interface contract. This enabled the researchers to execute an ambitious substitution experiment: replacing the initial isothermal core with an independently authored core that calculated cell efficiency through physical polarization curves with active thermostatic cooling. All three platforms executed on the replacement core without a single line of application-level source modification, demonstrating true architectural substitutability.
The engineering benefits of this modular encapsulation were quantified through an extensive paired maintenance benchmark comparing the contract-governed architecture against a conventional structural baseline composed of three autonomous, application-specific simulators that each maintained duplicate copies of the electrical core. Thirty paired maintenance tasks were executed across five realistic engineering task families, including updating fuel cell efficiency curves, adjusting internal battery pack parameters, introducing shared key performance indicators, integrating new control adapters, and appending custom scenario trajectories. While both software distributions achieved identical numerical outputs within tight absolute tolerances of ten to the power of negative ten, the contract-governed architecture required editing only thirty files across the entire suite compared to seventy-eight files in the duplicated baseline. This achieved a 61.5 percent reduction in modified software artifacts and a 20.7 percent reduction in altered lines of source code, proving that shared packaging concentrates routine engineering maintenance into significantly fewer points of intervention.
Beyond maintenance efficiency, the primary scientific advance of the architecture is its admissibility-first evaluation protocol for energy management strategies. In conventional literature, control strategies are frequently ranked directly by direct fuel consumption, even when final battery states diverge from starting conditions. Under the proposed protocol, a strategy must first satisfy strict physical and operational constraints before its fuel economy can be evaluated. Specifically, the strategy must return the battery state of charge to within 0.5 percentage points of its initial value across at least ninety percent of randomized noise evaluations, preventing artificial fuel reductions achieved by simply exhausting stored electrochemical energy. For the refrigerated container platform, admissibility additionally mandates strict thermal envelope compliance, requiring air temperatures to remain within prescribed preservation bands for at least 98.9 percent of operating hours without unserved auxiliary electrical load.
Applying these admissibility gates across the forty-two test cells produced striking diagnostic findings, resulting in the immediate rejection of twenty-three experimental configurations. The rejected pool encompassed nineteen forklift evaluations and four refrigerated container shifts. Remarkably, eleven of the rejected strategy cells had produced equivalent-hydrogen consumption numbers lower than the anticipative numerical reference bound, creating a superficial appearance of superior energy efficiency. A comprehensive energy balance audit revealed that seven of these seemingly superior runs had completed their operational profiles with severe battery charge deficits, while four had concluded with substantial uncredited charge surpluses outside acceptable tolerances. By establishing terminal storage balance as an absolute prerequisite for comparison, the testbed demonstrated that uncorrected energy trajectories cannot serve as valid evidence for controller benchmarking, as apparent fuel savings frequently represent unserved electrical work or depleted onboard storage.
When evaluated strictly within admissible operating boundaries, the performance hierarchy among control strategies shifted noticeably. Calibrated equivalent consumption minimization strategies emerged as the only control approach capable of satisfying admissibility criteria across both refrigerated container operating regimes, recording gap-to-reference values of 5.15 percent in chilled conditions and 20.23 percent under frozen demands. On the forklift platform, simple deterministic reactive rules maintained full admissibility across all six evaluation missions, achieving consumption gaps ranging from 10.10 percent to 31.71 percent. In contrast, complex learned policies implemented through soft actor-critic reinforcement learning proved fragile, achieving admissibility in only one forklift mission where it recorded an elevated consumption gap of 44.00 percent. Furthermore, on highly repetitive, predictable operational cycles, a simple predeclared constant power set-point consistently outperformed the learned reinforcement learning policies, illustrating that steady operating profiles often favor transparent baseline controllers over unconstrained adaptive agents.
The critical necessity of systematic simulation auditing was further underscored when the research team investigated why an initial numerical bound was repeatedly beaten by causal control strategies. During early testing, calibrated equivalent consumption minimization strategies appeared to outperform the dynamic programming reference by 7.75 percent on intensive forklift lifting missions. Rather than accepting this anomalous result as a breakthrough in control efficiency, the investigators executed an energy-balance audit across the mathematical toolchain. The investigation localized a subtle numerical defect: the optimization grid had sampled fluctuating power demands at the exact midpoint of five-second intervals rather than integrating interval means. Because industrial lifting maneuvers involve brief, high-power surges lasting only a few seconds, midpoint sampling introduced an energy calculation bias of up to 7.98 percent on intensive profiles. Replacing midpoint sampling with energy-conserving interval integrals resolved the anomaly and restored the absolute validity of the anticipative reference.
Mechanical contract enforcement also exposed critical hidden software defects that had previously evaded standard regression testing. When verifying platform isolation, the investigators discovered that the refrigerated container module had silently overwritten the shared simulation time step from ten milliseconds to one full second during Python package import. While existing vehicle simulations had manually reset this variable prior to production runs, any automated or out-of-order execution would have advanced simulated time by two orders of magnitude without warning. Even more critically, the stationary microgrid platform was discovered to be directly writing to an internal core flag to force fuel cell activation, completely bypassing the core’s internal start-stop transition logic. Consequently, the core logged zero start events despite twenty-three physical cycling maneuvers, underestimating component degradation by up to twenty-eight percent. Re-architecting the system to prohibit external state writes restored accurate transition counting and ensured complete behavioural reproducibility.
Despite its rigorous software verification, the research team emphasized clear boundaries regarding the empirical scope and physical fidelity of the simulation testbed. The system represents an advanced digital model rather than an operational digital twin, as it lacks automated bidirectional telemetry with physical machinery and relies on literature-derived parameters rather than empirically identified fuel cell stack measurements. The four-term voltage loss equation functions as an internal comparative stress surrogate rather than a calibrated life-prediction model, and the battery formulation omits open-circuit voltage variation across state-of-charge trajectories. Furthermore, the dynamic programming bounds reflect discretised, reduced-order representations rather than continuous-time global optima. To bridge the gap toward operational deployment, the authors outlined a roadmap focusing on scaled hardware-in-the-loop validation with real fuel cell stacks and physical state-of-charge estimation, ensuring that the software governance principles demonstrated here can ultimately be validated against live electrochemical hardware.
Subject of Research: Contract-governed layered simulation architecture and admissibility auditing for hydrogen hybrid energy systems
Article Title: A contract-governed layered simulation architecture for hydrogen hybrid energy systems: Cross-platform reuse, maintenance evidence and strategy comparison
Article References: Platero-Horcajadas, M., Ferrández-Pastor, F.-J., & Navalón-Garijo, I. (2026). A contract-governed layered simulation architecture for hydrogen hybrid energy systems: Cross-platform reuse, maintenance evidence and strategy comparison. Results in Engineering, 32, Article 114377. https://doi.org/10.1016/j.rineng.2026.114377
Image Credits: AI Generated
DOI: 10.1016/j.rineng.2026.114377
Keywords: hydrogen hybrid systems, fuel cell simulation, energy management strategy, software architecture, admissibility audit, dynamic programming, equivalent consumption minimization, reinforcement learning, refrigerated transport, hybrid forklift, microgrid simulation, change propagation, model verification, battery degradation, computational testbed, electrochemical modeling, digital model