switched reluctance generator; particle swarm optimization; OPAL-RT simulator1. Introduction Electric aircrafts increase safety and reliability, impact the environment positively, and enhance system efficiency. Extensive efforts have been made to develop reliable and efficient onboard generation systems [1]....