A distributed multi-level current modeling method for design analysis and optimization of permanent magnet electromechanical actuators