Modeling and analysis of solar distributed generation