Function of photovoltaic