Permanent Magnet Generator Design