Optimal design of an axial-flux permanent-magnet motor for an electric vehicle based on driving scenarios