Energy flow and matter cycling