how does an ac unit work

Updated Different vehicles have different systems.Tesla has regular air heater to heat the cabin. As it has large battery heating takes only few percents of the whole battery. It uses AC compressor to cool the cabin and even battery while supercharging.Starting in 2013 Nissan Leaf has heat pump ability. Before that it only had AC for summer and a resistive heater for winter. In chilly weather that was a curse. Small battery is now not wasted on warming up the cabin.  You get about 3kWh of heat or cold with 1kWh of battery power using compressor. But the heat pump does not always work (sometimes it needs defrosting and in below -15C it almost does not work at all so a normal resistive heater is used). Tesla also can heat/cool the battery with the same system. It can even heat the battery with heat from motor+inverter (but that is really a minimum amount, not enough for cabin, those are not connected).Written Written Pls add more details.If you wanna know how an A.C. work, pls read refrigeration cycle and principleIf you wanna know the energy source for this AC, look around.
Its electricityIf you wanna know where does this "electricity" come from in Tesla and other electric cars, the answer is in the term "electric cars"Pls let me know if you need anything else.How Does the Outside Portion of Your AC Work? If you have a central heating system, you know that it consists of only one unit, located somewhere inside of your home. An air conditioner, however, has two connected units that make up the whole system, and one is located outdoors. Learn why this is and what’s included in the outside unit from the guide below. And call our team for more information! The Need for an Outside Unit You need an indoor unit because it sucks in air from your home to cool it down and send it through the air ducts. So why would you need a large outdoor unit as part of this system? For one, your outdoor system is quite loud, something you’ve likely noticed, so it’s a good thing it’s designed to be outdoors. But mostly it’s located there because if the entire system was inside, it would do you no good.
You cannot really “produce” cooling as you can with heat. It’s not a thermal energy, but a lack of heat. So if you remove heat from a space, you can cool it down. That’s how a central air conditioner works. It removes heat from the air in your home—and that heat needs somewhere to go. If it went back inside of your home, the process would be pointless. The outside unit gives the heat a place to dissipate. The outside unit of an air conditioning system is often called the condenser unit because the condenser plays a key role in how it works. Check out all of the most important parts. Compressor – Refrigerant plays a key role in the cooling process, with the ability to absorb a lot of heat under the right pressure as it turns into a gas and then release heat as it condenses. The compressor adds pressure to the refrigerant so it can continue to cycle throughout the system. Condenser coil – Refrigerant runs through the condenser coil as it condenses—turns to a liquid.