Code and data for: Observer-based robust nonlinear model predictive control of a potassium carbonate (K2CO3) thermochemical heat battery under variable demand and humidity

Published: 12 October 2026| Version 1 | DOI: 10.17632/nzzcgm39zs.1
Contributor:
Abdul Rauf

Description

This repository provides the numerical simulation data, computational models, source code, statistical analyses, and reproducibility materials supporting the research article entitled “Observer-based robust nonlinear model predictive control of a potassium carbonate (K2CO3) thermochemical heat battery under variable demand and humidity,” intended for submission to *Sustainable Energy & Fuels*. The study investigates the control and operational performance of a three-segment, open-mode potassium carbonate thermochemical heat battery containing 20 kg of salt, with a theoretical energy storage capacity of approximately 3.97 kWh. Four control approaches are investigated: feedforward-assisted proportional–integral–derivative (PID) control, nonlinear model predictive control (NMPC) with ideal state feedback, observer-based NMPC incorporating an extended Kalman filter (EKF), and robust nonlinear model predictive control (RNMPC) integrating uncertainty scenarios, constraint tightening, and a deliquescence protection mechanism. The dataset includes computational results from four operating scenarios: nominal discharge conditions, variable humidity disturbances, plant-model mismatch, and initial-state and sensor disturbances. Additional investigations include one-at-a-time sensitivity analysis and a paired 100-draw Monte Carlo uncertainty study to evaluate controller robustness, thermal power tracking, safety-constraint violations, energy delivery, state-of-charge estimation, and computational performance. The repository contains MATLAB-language source code executed using GNU Octave 8.4, Python 3.12 processing and visualization scripts, simulated time-series data, numerical performance metrics, model-validation comparisons, statistical results, controller settings, parameter files, research tables, and publication-quality figures. Supporting documentation includes a README, software environment specifications, data descriptions, and a result-to-file traceability table. The numerical model was assessed against literature-reported thermodynamic and performance benchmarks. The dataset does not contain newly measured experimental time-series data. The Simulink model-building scripts are included as unexecuted reference materials, while all reported numerical results originate from the GNU Octave simulation pipeline. This repository is intended to facilitate research transparency, computational reproducibility, independent verification, and further development of observer-based robust control strategies for thermochemical energy storage systems.

Files

Steps to reproduce

The dataset comprises numerical simulation outputs, time-series CSV files, thermochemical reactor models, nonlinear control algorithms, extended Kalman filter estimation code, simulation verification results, literature-benchmark validation data, sensitivity analysis, paired Monte Carlo uncertainty results, performance evaluation tables, and publication figures. All reported results were generated computationally using GNU Octave 8.4, with Python 3.12 used for data processing, statistical analysis, and scientific visualization. No original laboratory measurements are included.

Categories

Chemical Engineering, Energy Engineering, Energy Storage, Thermochemical Reaction

Licence