Functional Stirling engine model. The Stirling engine operates by repeatedly heating and cooling a sealed working gas. Its theoretical efficiency approaches that of the Carnot cycle, making it one of the most recognized examples of an external combustion engine.