Ever spray a can of compressed air? Notice how the can becomes cold. This is because loss of pressure = cooling in the physics of gas.
Now imagine you have a can of compressed air that doesn’t run out. You spray it into a radiator that has a fan blowing air through it. This cools the air being blown by the fan. Now imagine you have a tube that the used air can travel outside and get compressed to be used again. This makes the air hot. So now imagine another radiator outside with a fan blowing air through it but now it’s heating the air. Then the compressed air goes back inside to be used again.
ACs don’t actually compress air though, they use a variety of coolents that can be compressed to a liquid and then expand to a gas. To heat the indoors there’s a reversing valve that as you might imagine, reverses which unit is getting hot or cold coolent
Latest Answers