Having just learnt about them and getting to grips with how they work i was just wondering how the compressor in the system causes the air to heat and the expansiona valve cause it to fall in temp.
I know that theres pressure difference but im not sure that if its correct to explain this fall in temp in expansion due to a fall in pressure by using pressure law or if it is something else. same for compressing gas increasing pressure and therefroe temp due to pressure law as its a constant volume.
Is this right and if not why does the compressor increase temp while the expansion valve decreases temp?