A software application for energy flow simulation of a grid connected photovoltaic system