Modelling and Simulation of EV Powertrains for Coursework