A Simulation Model For The Four-Phase Switched-Reluctance Motor