Subscribe to Newsletter
  • ACQUIRE

logo

  • Energy
  • Construction
  • Resources
  • Trending
  • Business Insight
  • Events
  • Magazine
  • Advertise
  • Contact
Home
  • Home
  • Energy
  • Construction
  • Resources
  • Trending
  • Business Insight
  • Events
  • Magazine
  • Advertise
  • Contact

Using modelling and simulation to design safe battery management systems for electric vehicles

28 Apr, 2025
Stéphane Marouani, Country Manager ANZ, MathWorks



Safety is a paramount concern in electric vehicles (EVs). The high energy density of lithium-ion batteries, a typical choice in EVs, poses risks of failure if the operating conditions deviate from those for which the battery has been designed.

A Battery Management System (BMS) is critical in preventing negative outcomes, including thermal runaway, an uncontrollable exothermal reaction leading to the destruction of the battery. The primary functions of a BMS include monitoring current, voltage, and temperature, preventing overcharge and over-discharge, balancing the charge across the cells, estimating the battery’s state of charge (SOC) and state of health (SOH), and controlling the temperature of the battery pack.

These functions are critical, as they impact the performance, safety, battery lifetime, and user experience of the electric vehicle. For example, by preventing overcharge and discharge beyond voltage limits, the BMS prevents premature aging of the battery, ensuring that the vehicle remains performant over its operational life.

Benefits of simulation in BMS development

Engineers simulate the battery plant model, environment, and BMS algorithms on a desktop computer using behavioral models. They use desktop simulation to explore new design ideas and test multiple system architectures before committing to a hardware prototype.

Desktop simulation enables engineers to verify functional aspects of the BMS design. For example, engineers can explore different balancing configurations to evaluate suitability and trade-offs between them.

Simulation is also instrumental in requirement testing; for example, engineers can verify correct contactor behaviour in the presence of an isolation fault. Evaluating the system’s behaviour during a fault is another clear example of the use of simulation to replace hardware testing.

Once the design is validated using desktop simulation, engineers can automatically generate C or HDL code for rapid prototyping (RP) or hardware-in-the-loop (HIL) testing to further validate the BMS algorithms running as code in real-time.

With RP, code is generated from the BMS algorithms model and deployed to a real-time computer that performs the functions of the production microcontroller. With automatic code generation, algorithm changes made in the model can be tested on real-time hardware in hours rather than days.

In the case of HIL testing, code is generated from the battery plant models rather than the BMS algorithm models, providing a virtual real-time environment that represents the battery pack, active and passive circuit elements, loads, charger, and other system components.

This virtual environment enables engineers to validate the functionality of the BMS controller in real time before developing a hardware prototype.

Using modelling and simulation to design safe battery management systems for electric vehicles

Engineers simulate the battery plant model, environment, and BMS algorithms on a desktop computer using behavioural models.

Simulation enables engineers to dramatically reduce the time from design to code generation, allowing for rapid modelling of various techniques with enhanced speed and efficiency.

Altigreen Propulsion Labs engineers used a simulation-based approach to model and iteratively test different techniques for SOC estimation, such as Kalman filtering and Coulomb counting and designed a comprehensive one for their SOC estimation.

Prathamesh Patki, Principal Engineer and Control Systems Head at Altigreen, says: “Embedded Coder® has cut development time in half.

“Whatever we conceptualise, we can get it running in the shortest amount of time on the real hardware.”

Modelling and simulation use cases in BMS development

Cell characterisation is the process of fitting a battery model to experimental data. Accurate cell characterisation is essential because the BMS algorithm uses the battery model to set control parameters such as those of a Kalman Filter for SOC estimation or power limits based on SOC, and temperature to avoid undervoltage or overvoltage conditions.

Later in the BMS development stage, engineers can use the same battery model for system-level closed-loop desktop and real-time system simulations.

Tools such as Simscape™ Battery™ provide multiple approaches to battery modelling, including equivalent circuit, electrochemical, and reduced order modelling using neural networks.

Charging speed is a key performance indicator in EV design and adoption. The high power levels of fast charging stress the battery materials and reduce its lifetime.

Therefore, it is essential to optimise the power profile during fast charging to ensure maximum charging rate and minimal stress on the battery. This is achieved with a combination of simulation and optimisation. The charging time is minimised while stress factors are kept within acceptable ranges.

Production code generation complements BMS design workflows compliant with formal certification standards in the automotive industry.

For example, when LG Chem (now LG Energy Solution) developed the BMS for the Volvo XC90 plug-in hybrid, AUTOSAR was a requirement standard. LG Chem chose to model and simulate the BMS algorithms and behaviours as an integral part of their design workflow.

The number of software issues identified in each software release dropped from about 22 to fewer than nine, well below their target for the project. The BMS LG Chem developed for Volvo using AUTOSAR has achieved ISO 26262 functional safety–based certification for Automotive Safety Integrity Level C (ASIL C).

Modelling and simulation in BMS design enable faster development cycles, reduced costs, and the realisation of safer, more efficient EVs. By exercising BMS algorithms over all possible operating and fault conditions, engineers increase confidence that the BMS software will handle those conditions in the real system, reducing the need for costly testing.

Ultimately, this approach ensures the final product exceeds industry standards and consumer expectations.

For more information, visit www.mathworks.com

Share this story

  • Share on LinkedIn
  • Share on Twitter
  • Share on Facebook

Related Articles

Incident Reporting & Investigation 2026

Incident Reporting & Investigation 2026

Battery Show

The Battery Show Asia – Indonesia

Battery Asset Management Summit 2025

Battery Asset Management Summit Australia

Electric Vehicle Council

Comments

Leave a comment Cancel reply

You must be logged in to post a comment.

Breaking

  • Energy
  • Construction
  • Resources
12 Jan

First stage of Eraring battery starts commercial operations

09 Jan

Japan’s first floating offshore wind farm starts operations

09 Jan

Vestas powers South Australia’s clean future

09 Jan

Strategic funding builds future-ready Queensland

09 Jan

UNSW researchers find solar panels fail faster than expected

19 Dec

RICS report shows AI could boost green infrastructure

17 Dec

CEFC urges investors to lead green data centres growth

12 Dec

Queensland offers renters, landlords rebates for solar power use

12 Dec

NSW government grants $25.45M to reduce cement emissions

12 Dec

Australia awards first embodied carbon rating to Frasers Property

19 Dec

Airbridge secures AU$1.5 million grant for carbon dioxide capture project

19 Dec

Study finds Australian organisations place technology central to climate action

15 Dec

Flinders University researchers search solutions for mine waste

12 Dec

Monash University launches national research hub to convert carbon wastes

08 Dec

Woodside investor meeting highlights Murujuga protections

Online Magazine

    Current Cover
  • Login
  • Subscribe

Subscribe

Subscribe to Newsletter

Our Titles

  • Share on Newsletter
  • Share on LinkedIn
  • Share on Twitter
  • Share on Facebook
  • Home
  • Contact Us
  • Terms and Conditions
  • Privacy
© Sage Media Group 2026 All Rights Reserved.
×
Authorization
  • Registration
 This feature has been disabled
 This feature has been disabled until further notice, however you may still register
×
Registration
  • Autorization
Register
* All fields required