Characterization of the parameters of interior permanent magnet synchronous motors for a loss model algorithm