This example models moist air flow in a vehicle heating, ventilation, and air conditioning (HVAC) system in Simscape. The vehicle cabin is represented as a volume of moist air exchanging heat with the external environment. The moist air flows through a recirculation flap, a blower, an evaporator, a blend door, and a heater before returning to the cabin. The recirculation flap selects flow intake from the cabin or from the external environment. The blender door diverts flow around the heater to control the temperature.
The example HVAC component library is built on a custom moist air domain using the Simscape language. The across variables are pressure, dry-bulb temperature, and water vapor mass fraction. The through variables are mixture mass flow rate, energy flow rate, and water vapor mass flow rate. The moist air is assumed to be a perfect gas. Additional moisture may be added to a moist air volume. When a moist air volume reaches saturation, liquid water condenses and is removed from the volume.
Please read the README.txt file to get started.
To find other Simscape examples, search for posts with the keyword "physical modeling"
To learn more about MathWorks Simscape Products, go to:
Leo Ng (2022). Vehicle HVAC System in Simscape (https://www.mathworks.com/matlabcentral/fileexchange/62811-vehicle-hvac-system-in-simscape), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!