I'm working on mathematical modelling of microturbines for distributed generation. I'm simulating the gas turbine to produce the torque output which is fed to a Permanent Magnet Synchronous Generator on a single shaft. As microturbines rotate with high speed, the freq of power output will be in KHz. So i need power conditioning unit to rectify and invert in to 50/60 Hz standard frequency. Now i'm getting some errors while simulating the dynamic model of gas turbine in MATLAB simulink. Are there any experts who have already done similar work here?