Vehicle HVAC System in Simscape

Version (197 KB) by Leo Ng
Vehicle HVAC system model in a custom Simscape moist air library.
Updated 9 Aug 2017

View License

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:

Cite As

Leo Ng (2024). Vehicle HVAC System in Simscape (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Simscape in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!



Version Published Release Notes

Corrected typo.