You are on page 1of 6

International Journal of Innovative Technology and Exploring Engineering (IJITEE)

ISSN: 2278-3075, Volume-1, Issue-2, July 2012

A new mathematical dynamic model for HVAC


system components based on Matlab/Simulink
Ahmad Parvaresh, Seyed Mohammad Ali Mohammadi, Ali Parvaresh

appropriate simulation tool. We can categorize these


Abstract— In this paper, a new and complete mathematical modeling tools on three sections.
dynamic model of HVAC (Heating, Ventilating, and Air First, tools that used for pipe/duct sizing, as AFT Fathom,
Conditioning) components such as heating/cooling coil, DOLPHIN, DUCTSIZE, EES (Energy Equation Solver) and
humidifier, mixing box, ducts and sensors is described. All of PHYTON.
these components are proposed and simulated in
Matlab/Simulink platform. The proposed model is presented in Second, tools that used for energy performance analysis, as
terms of energy mass balance equations for each HVAC Carrier HAP, TRANSYS, and HVACSIM+.
component. We have considered two control loop for this model,
namely, temperature control loop and humidity ratio control Third, tools that used for control and modeling analysis of
loop. The proposed model is a full dynamic model of HVAC these systems, as MATLAB and Energy Plus.
system that includes least approximations and assumes.
Advantage and disadvantage of these tools have mentioned
in [8]. With these programs, the heating, cooling, lighting,
Index Terms— HVAC system, HVAC components,
Matlab/Simulink, HVAC model
ventilation and other energy related flows in a building can
be simulated. Lebrun [9] presented a simulation of a HVAC
I. INTRODUCTION system by using EES.

Initially, the most important issue of HVAC (Heating, In these groups the reason for choosing Simulink, which is
ventilating and Air-Conditioning) systems factories was to part of the Matlab package, was a larger degree of flexibility,
maintain the zone conditions in predefined values related to modular structure, and transparency of the models and ease
occupants' thermal comfort. However, with start of energy of use in the modeling process. The modular structure in
Simulink makes it easier to maintain an overview of the
crisis, the amount of energy consumption of these
models, and new models can just as easily be added to the
equipments became important. In order to, evaluate these two
pool of existing models [8]. Recently, some
options, the designer have been started to modeling and Matlab/Simulink-based simulations of HVAC systems have
design of new type of HVAC system components. been developed. Some examples of these studies are Reiderer
In this paper, some study has been focused on HVAC et al. [10], Mendes et al. [11], Dion et al. [12], Huang and
modeling. For instance, Wang et al. [1] have used heat Lam [13], Ghumari et al. [14], Oliveira et al. [15].
transfer and energy balance principles to identify a linear
model to represent a non-linear model of a cooling coil. In this paper we have focused on the modeling of HVAC
system components and simulation of the presented model.
Clarke [2] has presented a transient model for a HVAC
The HVAC system components that modeled are the zone,
system for some components such as humidifier and mixing
the cooling coil, the heating coil, the humidifier, the mixing
box, but no specific model for cooling/heating coils was
box, the ducts, and the sensor models. This paper is
given. Stoecker [3] provided a model for cooling coil with organized as follows: Section 2 presents an introductory
empirical parameters under the assumptions of constant air explanation of the HVAC system and its components models.
flow and water flow. Braun and Rabehi [4,5] presented two Section 3 covers details of the new proposed model. In
cooling coil models that were too complex and iterative sections 4 and 5 we have simulated presented model in
computations. Many researchers studied HVAC dynamic Matlab/Simulink and discussion about results, respectively.
models using empirical or theoretical methods. Underwood Finally, in section 6 we have mentioned conclusion.
and Crawford [6] developed a nonlinear model of a heat
exchanger loop. Nassif et al. [7] presented a validation of the
II. MODEL OF HVAC SYSTEM COMPONENTS
cooling coil, mixing box and a fan for a VAV (Variable Air
Volume) system. In recent years, several numerical simulation models for
An issue related to HVAC systems modeling, is the use of an HVAC systems performance were developed. Because of
complexity of these systems a complete theoretical approach
of formulating the model is too difficult. In order to, achieve
Manuscript received on July, 2012 full dynamic model of HVAC system we have to reach all of
Ahmad Parvaresh, Department of electrical engineering, Shahid Bahonar the important models of components. The major components
university of Kerman, Kerman, Iran.
S. M. Mohammadi, Department of electrical engineering, Shahid Bahonar
considered in the system model can be divided in two groups,
university of Kerman, Kerman, Iran. which are the zone model and Components of HVAC system.
Ali Parvaresh, Department of electrical engineering, Shahid Rajaee First we propose a model for the zone and then for all of
Teacher Training University, Tehran, Iran.

1
A new mathematical dynamic model for HVAC system components based on Matlab/Simulink

components that are in HVAC system.

Figure 1. View of energy and mass balance equation that used for the zone modeling

A. The Zone Model Tz (s) Gz ( s)[ Ts ( s) [ 2Gws ( s)


One of the most important sections of HVAC system
model is the zone modeling. All of components in HVAC
+ 2Gwn (s) 2
Gwe (s) 2
Gww (s) (9)
systems work to the zone achieve to optimal conditions. In 2 2
+ Gr (s)](Tz (s) To (s)) G f (s)T f (s) Q]
previous works, because of simplify and approximation in
presented models, they are far from their real performance.
In our proposed model we have considered effect of Wz (s) Gwz (s)Ws (s) QQ (10)
uncontrolled input as people, lights and so on, and effect of
the north wall, south wall, east wall, west wall, floor and Where
inner roof on the zone temperature. In this model we have f sa a C pa H ws Aws H wn Awn
considered eight state variables: the zone temperature (T z), (11)
inner wall temperature (Tws,Twn,Twe,Tww,Tf,Tr), and the zone +H we Awe H ww Aww H r Ar H f Af
humidity ratio (Wz). The pressure of air is assumed to be
constant and air in the zone in fully mixed. f sa a C pa , H ws Aws , H wn Awn ,
With these descriptions, energy and mass balance (12)
equations are (as shown in Fig. 1) H we Awe , H ww Aww , H r Ar , H f Af .

dTz 1 1
Cz f sa aC pa(Tsa - Tz ) Gz ( s ) , Gws ( s) ,
dt Cz s 2 Cws s 2
(13)
H ws Aws (Tws - Tz ) H wn Awn (Twn - Tz ) 1 1
(1) Gwn ( s ) , Gwe ( s ) .
H we Awe (Twe - Tz ) H ww Aww (Tww - Tz ) Cwn s 2 Cwe s 2

H r Ar (Tr - Tz ) H f A f (T f - Tz ) Q 1 1
Gww ( s ) , Gr ( s) ,
Cww s 2 Cr s
dTws (14)
Cws H ws Aws (Tz Tws )+H ws Aws (To Tws ) (2) 1 fs
dt G f ( s) , Gwz ( s) .
Cf s Vz s fs

dTwn
Cwn H wn Awn (Tz Twn )+H wn Awn (To Twn ) (3)
dt

dTwe
Cwe H we Awe (Tz Twe )+H we Awe (To Twe ) (4)
dt

dTww
Cww H ww Aww (Tz Tww )+H ww Aww (To Tww ) (5)
dt

dTwn Figure 2. Graphical view of the zone


Cr H r Ar (Tz Tr )+H r Ar (To Tr ) (6)
dt
Fig. 2 shows a graphical view of the zone that modeled.
dT f B. The Cooling Coil Model
Cf H f A f (Tz T f ) (7)
dt The most important component of every HVAC system is
cooling coil. The increased emphasis on variable operation of
dWz HVAC equipment warrants a greater understanding of the
Vz f s (Ws Wz ) (8) dynamic behavior of cooling coils. Due to importance of this
dt
component, many studies have done as [16], [17], and [18].
In Fig. 3 a view of cooling coil is shown.
With taking the Laplace transform of Eqs. (1)- (8) and
rearrange we have

2
International Journal of Innovative Technology and Exploring Engineering (IJITEE)
ISSN: 2278-3075, Volume-1, Issue-2, July 2012
M a c p, aTwr M wcwTws
Tw (23)
M a c p, a M wcw

And

hit Ait Mw
, (24)
mw cw mw Lc

With rewriting Eq. 23 we have


Figure 3. A view of cooling coil In air side
Tw ( s) Twr ( s) Tws ( s) (25)
dTa, out By taking Laplace transform Eq. 22
(Ta Tt ) (Ta, out Ta, in ) (15)
dt
(s )Twr ( s) Tt ( s) Tw ( s) Tws ( s) (26)
Where
We obtain Tt (s ) by substituting Eq. 25 in Eq. 26
M a c p, aTa, in M wcwTa, out
Ta (16)
M a c p, a M wcw s
Tt ( s) Twr ( s) Tws ( s) (27)

And
By equating right-hand sides of Eq. 21 and Eq. 27
ht s, ov Ao Ma
, (17) s
cv A ALc Ta ( s) Ta, in ( s)
(28)
s
Twr ( s) Tws ( s)
We can rewrite Eq. 16 as follow

Ta (s) Ta, in (s) Ta, out (s) (18) With simplify Eq. 28 we can obtain Ta (s ) in terms
ofTwr (s ) , Tws (s ) , and T a, in (s )
That in which
(s ) ( )
M a c p, a M wcw Ta ( s) T ( s) T ( s)
, . (19) (s ) wr (s ) ws
M a c p, a M wcw M a c p, a M wcw (29)
T ( s)
(s ) a, in
By taking Laplace transform Eq. 15

C. The Heating Coil Model


(s )Ta (s) (Ta (s) Tt (s)) Ta, in (s) (20)
In HVAC systems heating coils are placed in the airstream
to regulate the temperature of the air delivered to the space.
We obtain Tt (s ) by substituting Eq. 18 in Eq. 20 During the heating mode, problems can occur if the hot water
temperature in the heating coil has been set too low in an
s attempt to reduce energy consumption. If enough outdoor air
Tt ( s ) Ta, out ( s ) Ta, in ( s ) (21) to provide sufficient ventilation is brought in, that air may
not be heated sufficiently to maintain thermal comfort or, in
In water side order to adequately condition the outdoor air, the amount of
outdoor air may be reduced so that there is insufficient
dTwr outdoor air to meet ventilation needs.
(Tt Tw ) (Tws Twr ) (22) In proposed model for heating coil we considered effect of
dt input/output water temperature through the coil, output
temperature of the zone and input air from mixing box on
Where output air temperature of coil.

3
A new mathematical dynamic model for HVAC system components based on Matlab/Simulink

d T co
C ah f sw wC pw(T wi T wo)
dt
(UA) a(T o T co) (30)
f sa aC pa(T m T co)

[C ahs f sa aC pa (UA) a] Tco ( s)


f sw wC pw[T wi( s) T wo( s)] (31)
(UA) aT o( s) f sa aC paT m( s) Figure 4. The mixing box structure

F. The Duct Model


T co G s( s){ [T wi( s) T wo( s)] T o( s) T m( s)} (32)
The ducts are used in HVAC systems to deliver and
Where
remove air. Air ducts are one method of ensuring acceptable
indoor air quality as well as thermal comfort.
f sa a C pa (UA)a , f sw w C pw, (UA)a ,
dTout (hi ho )ma C p
1 (33) (Tin Tout ) (43)
Gs ( s) . dt hi M cCc
Cah s

To (s) Gduct (s)Tin (s) (44)


(Vah f sa )Wco (s) f saWm (s) (34)

(hi ho )ma C p
Ws (s) Gws (s)Wsi (s) (35) Gduct ( s) , (45)
s hi M c Cc
f sa
Gws ( s) (36)
Vah s f sa s, temp
Ts, temp ( s) Tm, temp ( s) (46)
s, temp s 1
D. The Humidifier Model
The measurement and control of moisture in the air is an G. The Sensors Model
important phase of air conditioning [19]. In some references The sensors that are used in HVAC systems have different
has been presented model for humidifier as [19] and [20]. types as temperature sensor, Humidity sensor, pressure
sensor, and flow sensor. In many studies different models
dT h have been presented to these sensors. For instance, Wang
Ch f saC pa(T si T h) h (T o T h) (37)
dt [17] by using of time constant manner considered a first
order differential equation for temperature and humidity
dWh h(t ) sensor.
Vh f sa (Wsi Wh ) (38) Note that for achieve more exact model we have to
dt a consider different time constant. In proposed model, we have
considered a first order differential equation with time
E. The Mixing Box Model constant 1 for temperature sensor and time constant 2 for
A mixing box is the section of an air handling unit used to humidity sensor.
mix the return air flow with the outside air flow. It consists of Fig. 6 and Fig. 7 show changes in temperature and relative
three sets of dampers whose operation is coordinated to humidity over the period 1th-31th march 2012 in Kerman,
control the fraction of the outside air in the supply air while respectively.
maintaining the supply airflow rate approximately constant.
III. SIMULATION RESULTS OF PROPOSED MODEL
In Fig. 4 structure of air flow in the mixing box unit is shown.
In order to simulate suggested system, the average
mr C paTr moC paTo mmC paTm (39) temperature and relative humidity of Kerman are compared
for mentioned period and are considered as two inputs for
mr mo mm (40) mixing box subsystem. In this regards, we consider two
mr Tr moTo control loops so as to control temperature and relative
Tm (41) humidity.
mr mo
s, hum
mrWr moWo
Ts, hum ( s) Tm, hum ( s) (47)
Wm (42) s, hum s 1
mr mo

4
International Journal of Innovative Technology and Exploring Engineering (IJITEE)
ISSN: 2278-3075, Volume-1, Issue-2, July 2012

Figure 5. Proposed model for HVAC system

80

IV. PROPOSED MODEL 70

The proposed model for a HVAC system is presented in


60
Fig. 5. This figure shows all components as subsystem in
simulink platform. Moreover, the components arrangement 50
Humidity (%)

is based on their real models. 40


We applied output temperature and relative humidity to
30
model, then simulated it. We considered two PID controllers
for control the loops. 20

Fig. 8 indicates the temperature-time curve of our


10
suggested model. From this figure, the zone temperature
tracks the set point very well, at time 40s arrive to desired 0
0 5 10 15 20 25 30 35
Days(1-31 march2012)
value, and speed of convergence is high.
The relative humidity-time curve is presented in Fig. 9 for
our suggested model. According to figures, it is revealed that Figure 7. Changes of relative humidity over the period
suggested model track the set point with less time constant 1th-31th march 2012
and high speed.

20 24

18
23

16
22
Temperature(C)

14
Temerature (C)

21
12

10 20

8
19
6
18
4

2 17
0 20 40 60 80 100 120 140 160 180 200

0
Time(S)
0 5 10 15 20 25 30 35
Days (1-31 march2012)
Figure 8. The zone temperature- time curve of proposed
Figure 6. Changes of temperature over the period 1th-31th model
march 2012

5
A new mathematical dynamic model for HVAC system components based on Matlab/Simulink

[9] Lebrun, J., 2011.”Simulation of HVAC system with the help of an


0.36 engineering equation solver”, 7th IBPSA Conference, Brazil.
[10] Riederer P., Vaezi-Nejad H., Husaunndee A., Bruyat F. (2010).
0.35 Development and quality improvement of HVAC control systems in
virtual laboratories, Proceedings of the 7th IBPSA (International
Relative humidity(/100)

0.34
Building Performance Simulation Association) Conference, pp.881-887,
Rio de Janeiro, Brazil.
0.33
[11] Mendes N., Oliveira R.C.L.F. and Santos G.H. (2003),DOMUS 2.0: A
0.32 whole-building hygrothermal Simulationn program, Eighth International
Conference on Building Performance Simulation (IBPSA´2003),
0.31 Eindhoven, Netherlands.
[12] Dion J.M., Dugard L., Franco A., Nguyen M. T. and Rey D. (1991).
0.3 MIMO Adaptive constrains predictive control case study: an environment
test chamber, Automatica, Vol. 27, pp. 611-626, Great Britain.
0.29
[13] Huang, W.; Lam, H. N. (1997). Using genetic algorithms to optimize
controller parameters for HVAC systems, Energy and Buildings, vol. 26,
0 50 100 150 200 pp. 277-282.
Time(S) [14] Ghoumari, M.Y., Megias, D. Montero, J. I. Serrano, J. (2001). Model
predictive control of a greenhouse climatic processes using on-line
linearisation. Proc. Of the European Control Conference, , pp 3452-3457,
Figure 9. The humidity ratio- time curve of proposed model Porto, Portugal.
[15] Oliveira, G. H. C., Coelho, L.S., Araújo, H. X., Mendes, N. (2009). Using
fuzzy logic in heating control systems. In: Proceedings of 6-TH
V. CONCLUSION ASME-JSME Thermal Engineering Joint Conference (AJTEC'03),
Hawaii, H.I., USA.
In this paper we have presented a dynamic model for [16] Jean Lebrun, J. ,P.,Bourdouxhe. & M. Grodent.(1998). Reference Guide
HVAC system components as the zone, cooling coil, heating for Dynamic Models of HVAC Equipment, American Sodiety of Heating,
coil, humidifier, mixing box, the ducts and the sensors. After Refrigeration and Air-Conditioning Engineers, Inc. Atlanta, Georga
30329, (ISBN 1-883413-60-5).
derive mathematical models of components we analyzed
[17] Z.J. Wang, G. Krauss, Dynamic models of heating and cooling coils with
simulation system of the complete HVAC system in one-dimensional air distribution, Journal of Thermal Science 2 (2) (1993)
Matlab/Simulink platform. In this models, which have been 126–134.
presented up to now, several simplifier assumptions such as [18] J.P. Bourdouxhe, J. Lebrun, Reference guide for dynamic models of
effect of floor and roof on zone temperature, have been HVAC equipment, American Society of Heating, Refrigerating and
Air-Conditioning Engineers, Atlanta, Georgia (1996).
considered. But, we present a model, which is close to real
[19] Kasahara M, Kuzuu Y, Matsuba T, Hashimoto Y, Kamimura K, Kurosu
model. Indeed, we present a complete mathematical dynamic S. Physical model of an air-conditioned space for control analysis.
model. The simulation results demonstrated that our ASHREA Trans 2000;106 Part 2:307–17.
suggested model for HVAC system components can be work [20] B.Tashtoush, M. Molhim, M. Al-Rousan, “Dynamic model of an HVAC
very well. system for control analysis”, journal of Energy, 2005, pp. 1729–1745

REFERENCES
[1] Wang, Y., Cai,W, Li, S., Xie, L., Soh, Y., 2012 “Development of cooling Ahmad Parvaresh received B.S degree in Electrical
coil model for system control and optimization,” IEEE CCA, China. Engineering from Tafresh University, Tafresh, Iran, in
[2] Clarke, J. A., 2011, “Energy Simulation in Building Design”. 2nd 2010. Currently, he is a M.Sc. degree in Shahid Bahonar
Edition, Butterworth Heinemann. University of Kerman, Iran. His interests include
[3] W.F. Stoecker, Procedures for Simulating the Performance of industrial automation, adaptive control, and control of
Components and Systems for Energy Calculations, ASHRAE, New York, HVAC systems.
1975.
[4] J.E. Braun, Methodologies for design and control of central cooling
Seyed Mohammad Ali Mohammadi received his B.S.
plants, Ph.D. Thesis, Department of Mechanical Engineering, University
degree in Electrical Engineering from the Sistan and
of Wisconsin, Madison, 1988.
Baluchistan University, Zahedan, Iran, in 1997, M.Sc.,
[5] R.J. Rabehl, J.W. Mitchell, W.A. Beckman, Parameter estimation and the degree from the Esfahan University of technology,
use of catalog data in modeling heat exchangers and coils, HVAC&R Esfahan, Iran, in 2002 and PhD degree in Applied
Research 5 (1) (1999) 3–17. Mathematics in Control Systems from S.B.U.K, Kerman,
[6] Underwood DM, Crawford RR. Dynamic nonlinear modeling of a Iran in 2009. His research interests are in fuzzy systems,
hot-water-to-air heat exchanger for control applications. ASHRAE Trans artificial intelligence, instrumentation and control
1990;96:149–55. systems.
[7] Nassif, N., Kajl, S., Sabourin, R., 2010. “Modélisation des composants
d’un système CVCA existent”. Vie Col. Interuniversitaire Ali Parvaresh received his B.S degree in electrical
Franco-Québécois, Canada. Engineering from the Shahid Rajaee Teacher Training
University, Teharan, Iran, in 2006, M.Sc. degree from
[8] J. A. Orosa, A. C. Oliveira, “Software tools for HVAC research,” the Shahid Rajaee Teacher Training University, Tehran,
Advances in Engineering Software, Advances in Engineering Software, Iran, in 2008. His research interests are in power systems
2011, pp 846–851 analysis, dynamic power systems.

You might also like