← Darsh Patel

EV battery thermal management control

Course project · Fall 2026 · simulation only AI-assisted

On this page

This class project built a Simulink model of an air-cooled EV battery pack and compared controllers for its cooling fan. The goal is to keep every cell core below 45 °C while using as little fan energy as possible. At the same overheating risk, a variable-speed fan with a corrected temperature estimate used about 16% less energy than an on/off thermostat. It came within 2 Wh of a controller that knows the exact core temperature.

Everything is simulated. The cell is a real commercial size, but the cooling, airflow and fan parameters are assumptions, not measurements.

The pack model

The pack is 96s24p: eight modules of 288 Molicel P42A-size 21700 cells, at 345.6 V and about 35 kWh, cooled by one shared fan. Every cell has a single-particle electrochemical model and a three-layer thermal model from core to surface, so the model tracks almost 30,000 states. Parallel cells share current unevenly, depending on their temperature and resistance, and the air warms row by row as it passes the cells.

The model checks itself on every run. It checks the charge and energy balance, the current sharing in each parallel row, and the heat that the air carries away. Halving the time step changed the peak core temperature by less than 0.01 °C.

The pack, with eight modules of 288 cells, the one shared fan (blue) and the warmed outlets (orange).
The pack, with eight modules of 288 cells, the one shared fan (blue) and the warmed outlets (orange).
The air supply to the eight modules, the airflow through one module, and the electrical connection of the parallel rows.
The air supply to the eight modules, the airflow through one module, and the electrical connection of the parallel rows.
The standard drive with the fan off, with an on/off thermostat and with a variable-speed fan. The variable-speed fan used 56% less energy than the thermostat on this drive.
The standard drive with the fan off, with an on/off thermostat and with a variable-speed fan. The variable-speed fan used 56% less energy than the thermostat on this drive.

Estimating the core temperature

A real controller cannot measure the temperature inside a cell. It has only eight surface thermistors, the pack current, the inlet air temperature and the fan speed. The study compared five ways of estimating the hottest core: a two-temperature observer, the observer with a learned correction (linear, lookup table or a small neural network), a 60 or 120 s look-ahead forecast, an LSTM, and perfect knowledge as a benchmark. Each estimator was paired with each fan rule, which gave 20 controllers.

Comparing energy alone rewards the controller that runs the hottest. So each controller got one temperature offset, tuned on 129 drives so that all the controllers overheat equally rarely. Their fan energy was then compared on 258 different drives.

The top level of the Simulink model, with the operating conditions, the pack plant and the battery controller.
The top level of the Simulink model, with the operating conditions, the pack plant and the battery controller.
One held-out drive with every controller at zero offset. The plots show the hottest core, the blower command, and each estimate against the true core temperature.
One held-out drive with every controller at zero offset. The plots show the hottest core, the blower command, and each estimate against the true core temperature.
The LSTM's forecasts of the hottest core over the next 120 s, on a validation drive that it was not trained on.
The LSTM's forecasts of the hottest core over the next 120 s, on a validation drive that it was not trained on.

Results

The fan rule matters most. With the same estimator, the thermostat used 507 Wh per drive and the variable-speed fan used 424 Wh. A learned correction on the observer saved about 10%. The lookup-table version came within 2 Wh of perfect knowledge, so a better estimate cannot save much more. The look-ahead and LSTM controllers used about the same energy, but they needed almost no offset to be safe.

The recommended controller is the variable-speed fan with the observer and the lookup-table correction. It is small enough for a microcontroller, and the C code that MATLAB Coder generates for it matches the MATLAB output.