The microscopic arrangement of battery materials, known as the microstructure, affects how easily lithium ions move between the electrodes. Mathematical models help explain how these effects influence battery performance and guide the development of faster methods for comparing battery designs.