Multiphysics analysis of a permanent magnet synchronous motor for articulated robot applications