Thermal Battery Simulator

3D model of a sand-based thermal energy store.

Standby at 500 °C: temperature field and balance of the case shown. Holding power of about 5.91 kW. Screenshot supplied by the author.Click to enlarge

A sand battery stores energy as heat. Resistors heat the gas of a closed circuit; the gas flows through a pipe network in the bed and gives up its heat there. On discharge, a heat exchanger returns it to the user. The simulator follows bed, casing and circuit together to study temperatures, losses and useful power.

Goal
How does heat distribute in the bed? How much is lost in standby, and how do charge and discharge evolve? The model also lets you examine the flow rates in the pipes and the fan power required.
Method
The 3D temperature field is solved by finite volumes on an adaptive mesh, with temperature-dependent materials and bed conductivity. A coupled network describes pipe–bed exchange, gas mixing, pressure losses and flow distribution. Transients include an energy balance at every step.
Development and features
I developed the solver and the GUI with PySide6 and PyVista. You configure the tank, insulation, ground and pipe network; you can size the gas distribution and check mesh convergence before running standby or transients. The 3D view sits next to temperatures, powers, balances and time series. States can be saved and resumed; data export to CSV and the field to VTK. The gallery distinguishes the standby case supplied by the author from the illustrative 24-hour charge.
Next projectRenewable Capacity Explorer