A simulink model for permanent magnet wind power generation