Pv diagram closed loop