SMS: Electrical machine dynamics