The system from Figure 12.19 is an interesting one. Since work is done from the external port to drive gas through leakage area AL, the gas must continuously get hotter to account for this input energy. If there were no leakage, then all work would be reversible and the gas would heat and cool as the piston cycled. Derive the equations for this system from the bond graph in Figure 12.19.