P v diagram cycle