Text this: Electromagnetics for electrical machines