Text this: Demagnetization and Fault Simulations of Permanent Magnet Generators