Modeling to get hydrogen and oxygen by solar water electrolysis