Principle and function of rooftop solar power generation