Three-phase electrical machine systems : computer simulation