Skip to main content
emobility.academy
2026· Preprints.orgpreprintFree to read

A Modular Digital Twin Framework for Electric Vehicle Powertrains Using PyBaMM Battery Modelling and GYM Electric Motor Simulation

Rana Reda, Mohammed Osama, Shahd Abdallah, Roaa Mohamed, Saad Ali, Hazem Hossam, Mohamed Yasser, Sara Abdelghafar

No free copy found yet:all versions on Google Scholar ↗request from the author ↗

Abstract

Electric vehicle (EV) powertrains couple electrochemical and electromechanical subsystems whose interacting degradation and thermal behaviours are difficult to observe with conventional bench testing alone. This paper presents a modular digital twin (DT) framework for EVs that couples high-fidelity, open-source battery modelling in PyBaMM (Python Battery Mathematical Modelling), based on the Doyle–Fuller–Newman (DFN) electrochemical model, with electromechanical motor simulation in the GYM Electric Motor (GEM) library for a permanent magnet synchronous motor (PMSM). A physics-based vehicle-dynamics layer converts a commanded speed profile into power demand and coordinates energy flow between the two subsystems in real time. The framework was exercised over standardized highway, urban, and combined drive cycles and evaluated in terms of state of charge (SoC), state of health (SoH), remaining useful life (RUL), torque, efficiency, and thermal behaviours. An interactive web-based dashboard exposes these metrics for simulation control and visual diagnostics. Correlation analysis of the resulting time-series confirms physically consistent relationships among key variables, notably a near-unity correlation between vehicle speed and motor speed and a strong thermal coupling (r = 0.91) between battery and motor temperature, which supports the framework’s validity as a basis for predictive maintenance and control-strategy research. The results indicate that coupling open-source, physics-based battery and motor solvers within a single interactive DT is a practical and extensible route to EV powertrain diagnostics that does not depend on proprietary simulation suites.

Details

Journal / source
Preprints.org
Published
2026
Type
preprint
Access
Free to read
Citations
0
Licence
cc-by

Research areas

Related EV research