Modeling And Control Of A Wind Turbine As A Distributed Resource In An Electric Power System