Figure 4.-4. Another type of heat engine.
Illustration of a heat engine showing working going into the top of the engine with compressed fluid inside and heat going out the bottom.

Source: NC State University.