Terminal Behavioral Modeling Of Electric Machines For Real-Time Emulation And System-Level Analysis