To describe the aerodynamic and thermal effects in the flow between the slotted stator and rotor of electric motors, we have conducted direct and large eddy simulations using the lattice Boltzmann method. The flow between the stator and rotor is influenced by turbulence and Taylor–Couette (TC) vortices. Axial grooves (slots) are incorporated either on the stationary outer cylinder or the rotating inner cylinder. These groove shapes and numbers are designed based on the groove geometry of drive motors used in commercial electric vehicles. The radius ratio of the TC flow configuration in this study is 0.955, and the simulated bulk Reynolds numbers reach up to 21000 which corresponds to the Taylor number of Ta=4.63×108. The characteristics of torque and heat transfer are analysed by comparing cases with and without grooves. Regardless of the groove placement, it is suggested that while the grooved surface effects are not significant on torque and heat transfer performance at Taylor numbers Ta≤107, where Taylor vortices are still evident, the effects become pronounced at Ta≥108 as the flow transitions to the ultimate regime.