A diagram illustrating how a two-piston Stirling engine works. (American Stirling Company)