Modeling and Advanced Control
- f HVAC Systems
Modeling and Advanced Control of HVAC Systems Topic: HVAC Modeling - - PowerPoint PPT Presentation
Modeling and Advanced Control of HVAC Systems Topic: HVAC Modeling & Control Truong Nghiem ESE, University of Pennsylvania nghiem@seas.upenn.edu January 26, 2011 Outline Part I: Modeling of HVAC Systems Part II: Advanced Control
◮ Part I: Modeling of HVAC Systems ◮ Part II: Advanced Control of HVAC Systems
HVAC Modeling & Control 2
HVAC Modeling & Control 3
Zone heat gain VAV supply air Sensor Thermostat reheat damper zone temperature set-point
◮ Mathematical model of the plant (Zone block). ◮ HVAC system: exact models are complex (nonlinear, PDE,
◮ Focus: simplified (linearized) first-principles models derived from
◮ Other types of models: regression models, neural networks, look-up
HVAC Modeling & Control 4
(Zone air)
(Supply air, radiation, internal heat gain, etc.)
(Conduction, in- filtration, etc.)
HVAC Modeling & Control 5
◮ Heat Q: energy transferred across system boundary by temperature
◮ Heat flow (rate) ˙
◮ Heat flux: heat flow rate through a surface. Heat flux density is
◮ Heat capacity C: heat needed to raise temperature of a body mass
◮ Specific heat (capacity) Cp: heat needed to raise temperature of
◮ Energy change by temperature change ∆E = ρVCp∆T. ◮ Mass flow rate ˙
HVAC Modeling & Control 6
HVAC Modeling & Control 7
HVAC Modeling & Control 8
1 kA (thermal resistance) then
HVAC Modeling & Control 9
◮ Natural convection: heat transfer from a radiator to room air. ◮ Forced convection: from a heat exchanger to fluid being pumped
1 hA and write ˙
HVAC Modeling & Control 10
1 ǫhrA and write ˙
HVAC Modeling & Control 11
◮ Direct radiation to the walls, furnitures, etc. in the room. ◮ Then heat transfer from walls, furnitures, etc. to room air. ◮ No direct heat transfer to room air but indirectly through walls,
HVAC Modeling & Control 12
HVAC Modeling & Control 13
Window 1 Window 2 Window 4 Door 1 Door 2 Door 3 Door 4 Door 4
Source: [Deng et al., 2010]
◮ Ignore latent load (humidity), only sensible load (temperature). ◮ No infiltration. ◮ Simplified model with simplified heat transfer equations. ◮ HVAC system of VAV type.
HVAC Modeling & Control 14
◮ Exact temperature distribution in a body mass is complex (PDE). ◮ Simplification: mean temperature of all points. ◮ How to measure mean temperature? Sensor placement. ◮ Mean temperature = temperature that occupants feel.
HVAC Modeling & Control 15
R = 1 Rr + 1 Rcv .
HVAC Modeling & Control 16
T1 Ts1 Tw1 Tw2 Twn Ts2 T2 C1 R1 Rc1 Cw1 Rc2 Cw2 Cwn Rc(n+1) R2 C2 Wall Zone 1 Zone 2
HVAC Modeling & Control 17
Rwindow,1 T1 T2 T4 T3 Rwindow,2 Rwindow,4 T37 T37 T37
T5 T7 T6 T9 T8 T12 T21 T25 T26 T22 T33 T29 T30 T34 T28 T24 T23 T27 T35 T31 T10 T11 T32 T36 T19 T15 T13 T17 T14 T18 T20 T16
Source: [Deng et al., 2010]
HVAC Modeling & Control 18
T1 Ts1 Tw1 Tw2 Ts2 = Toa C1 R1 Rc1 Cw1 Rc2 Cw2 Rc3 Wall Zone Outside Air ˙ Qsa1 ˙ Qi1 ˙ Qr1
dT1 dt = ˙
R1 (T1 − Ts1)
R1 (T1 − Ts1)− 1 Rc1 (Ts1 − Tw1)
HVAC Modeling & Control 19
◮ State variables x: all temperature variables. ◮ Disturbance variables w: internal gain, solar radiation, outside air
◮ Input variables u: defined by application.
◮ Supply air flow rate u1 = ˙
◮ Blind control u1b ∈ [0, 1]: ˙
◮ Output variables y: e.g., y are all zone air temperatures. ◮ Parameters: capacitances and resistances.
HVAC Modeling & Control 20
HVAC Modeling & Control 21
HVAC Modeling & Control 22
u0...N
HVAC Modeling & Control 23
◮ Constrained in a bounded set wk ∈ Wk. ◮ Stochastic model, e.g., Toa ∼ N( ¯
HVAC Modeling & Control 24
◮ Safety and mechanical constraints: uk ∈ Uk. ◮ Air quality: ˙
◮ Thermal comfort:
◮ Predicted Mean Vote (PMV) index: predicts mean of thermal
◮ Predicted Percentage Dissatisfied (PPD) index: predicted percentage
◮ PMV/PPD can be calculated as nonlinear functions of temperature,
◮ Constraint on PMV/PPD gives (nonlinear) constraint on xk. ◮ Simplified as xk ∈ Xk (convex).
HVAC Modeling & Control 25
◮ Minimize energy consumption: often a linear function of control
◮ Minimize peak demand: a minimax optimization problem where
k∈P cTuk ◮ Minimize energy cost: weighted sum of energy consumption and
◮ Maximize thermal comfort by minimizing PMV squared.
HVAC Modeling & Control 26
◮ Is a complete re-implementation of the control system. ◮ Requires high computational power because of the time scale of field
◮ Good optimization but costly implementation.
◮ Adds optimization software to supervisory control layer; keep local
◮ Requires less computational power because of slower time scale. ◮ Less expensive implementation, (slightly worse) optimization.
HVAC Modeling & Control 27
◮ Large-scale system: hundreds of variables times dozens time steps. ◮ Stochastic nature of the system due to weather, occupancy, etc. ◮ Long optimization horizon (e.g., billing period). ◮ Non-linearity of system ⇒ linearization. ◮ Complex objective function, e.g., energy cost.
HVAC Modeling & Control 28
HVAC Modeling & Control 29
HVAC Modeling & Control 30
HVAC Modeling & Control 31
ut,...,ut+T−1
◮ Horizon T ≪ N. ◮ Objective function f (·):
k∈P∩{t,...,t+T−1} cTuk
HVAC Modeling & Control 32
ut,...,ut+T−1
◮ Disturbance wk:
◮ Bounded constraint wk ∈ Wk ⇒ robust MPC. ◮ Probabilistic model wk ∼ Pk ⇒ stochastic MPC.
◮ Optional demand-limiting constraint: for every k ∈ P
HVAC Modeling & Control 33
◮ If it is convex, use standard algorithms and tools. ◮ If it is non-convex, use approximation technique (Lagrangian dual
◮ Large-scale system ⇒ distributed optimization. ◮ For better performance:
◮ Initialize with previous solution. ◮ Use heuristics to guess initial solution. ◮ Further constrain variables using rules, e.g., during peak hours, VAV
HVAC Modeling & Control 34
Time step [h]
Room temperature profile of RBC for one year.
Time step [h]
Room temperature profile of SMPC for one year.
Typical violation level
Source: [Oldewurtel et al., 2010]
HVAC Modeling & Control 35
Deng, Kun, Barooah, Prabir, Mehta, Prashant G., & Meyn, Sean P. 2010. Building thermal model reduction via aggregation of states. Pages 5118–5123 of: Proceedings of the 2010 American Control Conference, ACC 2010. Oldewurtel, Frauke, Parisio, Alessandra, Jones, Colin N., Morari, Manfred, Gyalistras, Dimitrios, Gwerder, Markus, Stauch, Vanessa, Lehmann, Beat, & Wirth, Katharina. 2010 (Jun.). Energy efficient building climate control using Stochastic Model Predictive Control and weather predictions. Pages 5100 –5105 of: American Control Conference (ACC) 2010.
HVAC Modeling & Control 36