Isobaric compression and isovolumetric cooling