Sunday, July 14, 2024
HomeMatlabModeling and Simulation of a Fashionable HVAC System » Pupil Lounge

Modeling and Simulation of a Fashionable HVAC System » Pupil Lounge

Selim’s challenge, a complicated Simulink® simulation of a complicated HVAC system tailor-made for a typical 4-room condo in Germany, addresses thermal dynamics and air high quality administration to make sure the consolation of a household of 4. Selim’s work explores modern strategies to make a sustainable dwelling atmosphere.

Since profitable the problem, Selim has made the transition from academia to the skilled world, the place he’s now making his mark as a software program engineer.

Be part of me as we discover the main points of Selim’s profitable answer and have fun his achievement in pushing the boundaries of power effectivity and management engineering in residential HVAC methods.

A quote from Selim about his private expertise:

“Profitable the 2023 MathWorks Sustainability and Renewable Vitality Problem was a pivotal second in my journey in the direction of selling sustainability, notably inside the realm of HVAC (Heating, Air flow, and Air Conditioning) methods. As the only real contributor to the challenge, I delved deep into the intricacies of renewable power options, recognizing the essential function HVAC methods play in power consumption and environmental impression. I acquired the prospect to additional deepen my information within the area of thermodynamic system mannequin and normal management system design. Particular due to Roberto Valenti from MathWorks, whose invaluable steerage enhanced our strategy, emphasizing the importance of HVAC methods in attaining sustainable power targets. Profitable this esteemed problem underscored the potential of modern HVAC options to mitigate carbon emissions and foster a greener future. This expertise has additional fueled my dedication to advancing sustainable practices and applied sciences, driving optimistic change for generations to return.”

Introduction and Motivation

The target of the challenge was to simulate a up to date HVAC system and develop a controller geared toward enhancing heating, cooling, air flow, air high quality, and power effectivity, thereby contributing to the design and management of contemporary properties and buildings to protect power and promote wholesome dwelling environments.

The motivation behind the challenge stems from the societal crucial to assemble buildings and houses that prioritize power effectivity and the well-being of their occupants. This endeavor presents a major problem, necessitating the implementation of gadgets able to successfully regulating air temperature, humidity, and high quality whereas concurrently minimizing power consumption. Central to this problem is the event of methods and controllers able to harmonizing these numerous targets. Leveraging modeling, simulation, and management methodologies turns into essential within the pursuit of optimized options.

As a result of various implementations of HVAC methods throughout completely different nations, that are influenced by components equivalent to local weather, cultural preferences, constructing codes, power availability, financial concerns, and many others., a choice was made to tailor the use case to the nation of origin of the challenge employee, Germany. This strategy ensures the event of probably the most optimum and lifelike HVAC system design for this particular context.

Since 2020, Germany has pursued a twin technique of transitioning to renewable power whereas enhancing power effectivity in residential buildings. This dedication is mirrored in insurance policies such because the Renewable Vitality Sources Act and the Vitality Saving Ordinance, which purpose to extend renewable power capability and enhance power efficiency requirements for buildings. By incentivizing investments in energy-saving measures and selling the usage of renewable power applied sciences, Germany seeks to scale back each general power consumption and greenhouse fuel emissions. Regardless of challenges equivalent to retrofitting older buildings and addressing affordability issues, Germany stays steadfast in its purpose of attaining a sustainable and low-carbon power future [1].

Predominant Half

The next sections will delve into the challenge framework, the modeling and simulation of the condo, the event of the HVAC system, and the obtained outcomes.


In Germany, the housing panorama is predominantly characterised by a mixture of rental flats and single-family properties, with roughly 60% of the inhabitants residing in rented lodging [2]. Single-family properties, together with indifferent homes and semi-detached dwellings, additionally represent a good portion of the housing inventory, accommodating a large phase of the inhabitants (ibid). The typical family dimension in Germany has been regularly reducing over time, presently standing at roughly 2.1 individuals per family (ibid). The typical dimension of flats and the variety of rooms differ relying on the area and sort of lodging. In line with a examine by Immowelt in 2021 [3], the typical condo dimension in Germany is roughly 87 sq. meters. The typical variety of rooms per condo is round three to 4 rooms [1].

The most typical sort of flats in Germany are multi-family homes, so known as “Mehrfamilienhäuser”. These are condo buildings with a number of models, usually starting from two to a number of flooring. Multi-family homes accommodate a good portion of the inhabitants, notably in city areas (see Determine 1).

Determine 1: Typical German Condo Block in Berlin-Neukölln, Germany[4]

Deriving from the talked about information it was selected to mannequin a 3-room condo with an space of 108.8 m², which is positioned within the center flooring to moreover add complexity in types of warmth alternate with the condo from beneath and above (see Determine 2). So as to add intricacy to the simulation, the condo would accommodate a household of 4, comprising two mother and father and two youngsters. With every member having distinct each day routines, they might occupy completely different rooms at numerous occasions all through the day. Particularly, the primary and second bedrooms, together with the lounge, can be geared up with local weather management methods to control temperature and air high quality (see Determine 3).


Determine 2: Format of modelled condo

To reinforce the realism of the mannequin, actual outside temperatures have been built-in, sourced from knowledge offered by the German Meteorological Service. (see:

Following simplification have been executed for the mannequin:

  • No open home windows
  • No closed doorways
  • No furnishings
  • Fixed worth of air density at 20 °C

Determine 3: (left): Overview of climatized rooms, (proper): Path of air circulate by air dealing with unit. Recent and new air will get launched from bed room 1, 2 and the lounge and will get blown out from the toilet and the kitchen.

Mannequin & Simulation of Condo

The mannequin of the thermodynamic and moist air properties of the condo could be obtained from Determine 4. As you may see the inputs of the system are the surface temperature T_OUT and the preliminary room temperature T_ENV. All rooms are linked by way of the moisture air and thermal area nodes of Simscape™. Within the thermal area, the thermal plenty of every room, together with the room air mass, are linked by way of thermal resistances, simulating the partitions that separate the rooms. This accounts for the warmth switch between the interior partitions, outer partitions, and home windows of the condo. Within the moist air area, the volumes of moist air in every room are interconnected, reflecting the belief that each one doorways inside the condo are open through the simulation, facilitating optimum airflow.

Determine 4: Simulink mannequin of condo

The moisture in every room is variated in relations to the variety of occupants within the room and the CO2 breathed out. Additionally the warmth dissipation of every occupant is included within the simulation.

HVAC unit

To attain optimum temperature and air high quality management, a mixture of a PI controller and Stateflow® management, supplemented by a lookup desk was developed. The HVAC unit controls following system specs for following variable within the:
  1. Temperature: Optimum temperature vary is from 16 to 24.5 °C
  2. Humidity: Optimum humidity vary is from 20 to 82 %
  3. Air-quality(quantified by CO2-levels within the air): CO2-levels needs to be saved underneath 2000 ppm

To make sure all these necessities are met, the system could be affected by following manipulated variables:

  1. Air circulate: The quantity of air launched in and ejected out from the condo.
  2. Heating energy: The quantity of warmth launched.
  3. Cooling energy: The quantity of cooling launched.
The PI controller regulates the heating and cooling energy equipped by the air con models based mostly on the focused room temperature, whereas the Stateflow controller manages the airflow into and out of the house in keeping with exterior temperature and humidity situations. To fine-tune the PI controller, we utilized the PID Tuner app from the Management System Toolbox™, adjusting for a damped time response to attain the quickest potential response time.The adjustment of the air dealing with unit management was based mostly on the info introduced in Determine 5, illustrating the optimum temperature and humidity vary for human consolation.
Determine 5: Look-Up Desk Knowledge for Air Handler Unit Management[5]

Determine 6 shows the lookup desk utilized for this function. When outside temperature and humidity ranges deviate from the consolation zone, the air dealing with unit is deactivated to stop mixing air plenty with differing moist air properties, which may result in humidity ranges within the room air straying from the advisable consolation zone. To bolster this requirement, a Stateflow security management was carried out, deactivating the air con models if indoor humidity ranges exceed 85% (see Determine 7).


Determine 6: Lookup desk parametrization


Determine 7: Stateflow logic for management of humidity ranges


A simulation showcasing the most popular day in Cologne, Germany, in 2023 is introduced (seek advice from the video object beneath). The PI controller successfully maintains the temperatures in bed room 1, 2, and the lounge at a near-constant reference temperature of 20°C. Nevertheless, occasional temperature will increase happen as a result of dehumidifier. When humidity ranges exceed the brink, the controller is deactivated, resulting in rising indoor temperatures influenced by the upper outside temperatures. The humidity ranges within the three essential rooms attain their most restrict of 85%, whereas CO2 ranges are principally maintained beneath the brink of 2000 ppm.



In conclusion, the event and simulation of a contemporary HVAC system for a German condo, as a part of the MathWorks Sustainability and Renewable Vitality Problem, exemplify the intersection of expertise and sustainability. By means of meticulous modeling and management design, the challenge aimed not solely to optimize indoor consolation but in addition to reduce power consumption and promote environmental accountability. By leveraging superior instruments and methodologies offered by MathWorks, equivalent to Simscape and Stateflow, Selim was in a position to create a complete answer tailor-made to the particular context of energy-efficient constructing design in Germany. The outcomes showcased the efficacy of the developed HVAC system in sustaining optimum indoor situations whereas adhering to sustainability targets, as evidenced by simulations carried out underneath numerous environmental situations. This challenge underscores the pivotal function of modern HVAC options in mitigating local weather change and advancing in the direction of a greener future. Shifting ahead, the insights gained from this endeavor will proceed to tell and encourage efforts to revolutionize constructing power methods for enhanced sustainability worldwide.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments