Modeling And Dynamic Stability Of Distributed Generations