I've been trying to understand how an air conditioner works. And so far I've been able to understand that the basic working is
a cool gaseous refrigerant, is passed through a compressor. where it turns into a liquid. and that in turn goes through some coils, where it releases heat to the outside. Then it goes through some sort of regulator valve, that releases the liquid into a pipe where the pressure is lower, and so it goes back to the gaseous state, and it is cool now, so it can pass through coils. The ac then runs the hot air in the room through these coils, the gaseous refrigerent absorbs this heat and cool air goes into the room and the refrigerent goes back to the compressor and the process continues.
I have three basic questions, why would the refrigerent go back to liquid form when the pressure is increased in the condenser?
Why would this liquid then go on to release heat to the outside?
And how does the refrigerent turn back to a really cool gas?