Thermodynamic Cycles, P-V Diagrams & Entropy
Heat input temperature.
Heat rejection temperature.
Area inside P-V loop.
ΔS = Qh/Th = Qc/Tc
Gas expands at constant hot temperature ($T_h$). Heat ($Q_h$) flows in from reservoir to do work. $P \propto 1/V$.
Reservoir removed (insulated). Gas continues expanding, using its internal energy to do work. Temp drops to $T_c$. $P \propto 1/V^\gamma$.
Gas is compressed at constant cold temp ($T_c$). Work is done on the gas, pushing waste heat ($Q_c$) into the sink.
Insulated again. Gas is compressed further, forcing its internal energy and Temperature back up to $T_h$, completing the cycle.