
Fig. 1
In reversible process (a) the heat out is less than the heat in because
work is ignored, which is equivalent to letting the work leave the
system. In irreversivble process (b) the heat out is equal to the heat
in because the work is dissipated within the system.