I know I've forgotten most of the stuff that I learnt in high school physics. Something about things expanding when they heat up (until they change state). There was also something about the calorific content of fuel. Of course, the container may have limits of mass and volume but it is the energy in the fuel which is partially converted into work done by the powerplant .... I need more red wine.