Energy flow and substance circulation