A Multizone Building Model For Matlab/simulink Environment
A Multizone Building Model For Matlab/simulink Environment
net/publication/253092213
CITATIONS READS
15 1,126
5 authors, including:
Peter Riederer
Centre Scientifique et Technique du Bâtiment
49 PUBLICATIONS 477 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Contribution for district energy system design: simulation, optimization and decision support View project
All content following this page was uploaded by Peter Riederer on 03 May 2018.
Zaki El Khoury*, Peter Riederer*, Nicolas Couillaud*, Julie Simon**, Marina Raguin**
*Centre Scientifique et Technique du Bâtiment, 84, Avenue Jean Jaurès, 77421 Marne la
Vallée Cedex 2, France
** Gaz de France - GDF, 361 Avenue Président Wilson, 93211 Saint Denis la Plaine, France
- 525 -
The bar above a variable indicates a vector (not a
The problem is more complicated when these scalar). Aa, Ba,s and Ba,p are matrices that are
matrices are time dependent. In this case, the defined by the building zones. This way of
modeller has two possibilities: description is also used in the following sections.
1. Split down the problem to a set of time
Walls model
independent blocks;
2. Use the “S-function” block that allows to Multilayer walls are modelled using constant thermo-
use other programming languages such as C physical properties for each layer. The heat transfer is
and Fortran. assumed to be one-dimensional. The wall surfaces
For this building model, we have chosen the first can be of two kinds: those in contact with air and
approach. Its implementation is described hereafter. those with imposed surface temperature (called
“boundary” surfaces).
where Tw x =0
= Tb,1 (t ) (11)
To be used into the multizone model, the above This set of partial differential equations has been
equations must be defined in a matricial format (for discretisized using a combined finite difference and
all zones of the building). For example, the final finite volume schemes. The discretization step for
format of the equation (2), used in the model is (now each layer is calculated by:
equivalent to equation (1)):
∆x 2j = ζ ⋅ α j ⋅ ∆t (15)
&
Ta = Aa Ta + Ba,s Ts + Ba, p ( Peq,c + Pg ,c + Pcpl + Pv ) (7)
The resulting final differential equation for all walls
in matrix form is given by:
- 526 -
Infrared heat exchange
&
Tw = Aw Tw + Bw,a Ta + B w,ϕ ϕ (16) The infrared heat exchange model is based on the
assumption that all surfaces behave as black bodies.
The black body equation has been linearised. This is
where ϕ is a vector that contains absorbed incident
justified by relatively small differences between
fluxes (IR and solar radiation) on the walls surfaces: surface temperatures in buildings.
- 527 -
α i Ai
Solar radiation f d ,i = (31)
The solar radiation is composed of two parts: beam ∑ − ρ j ) Aj
(1
j
and diffuse. Solar radiation measurements can have
several formats. This model uses normal solar beam MODEL STRUCTURE
radiation and solar diffuse radiation.
In this section, the link between the thermal
phenomena is described. The graphical and modular
The position of the sun in the sky is defined by the
methodology of Simulink is used to structure the
zenith β and the azimuth. γ. Both are necessary to
model using layers (subsystems).A full presentation
model the beam solar radiation. It can be calculated
of this structure will be cumbersome so we’ve
using trigonometric formulas available in the
restricted it to the most important features.
literature for example from ASHRAE Handbook of
Fundamentals (ASHRAE, 1972). From sun position, Structure of the building model
slope and azimuth of each of the building facets, the Figure 2 shows a simplified representation to the
solar radiation fluxes on the building facets can be model first layer in a top to down approach. This
calculated. layer has two main blocks: Building envelope and air
zones.
The beam solar radiation is divided into two parts: The block “building envelope” calculates surface
temperatures for all the building surfaces (walls and
1. Beam solar radiation absorbed on the windows) depending on weather data, blind positions
external surfaces of the building; of windows, radiant fluxes due to equipment and
2. Beam solar radiation transmitted through internal gains as well as the air temperatures for the
windows into the building zones. building zones.
The block “air zones” calculates the air temperature
The transmitted beam radiation is distributed on the in the zones depending on the building surface
internal surfaces of the building. The building temperatures and all convective powers in each of the
description for the model is not based on geometrical zones.
data. The user has thus to specify coefficients that
determine the distribution of solar radiation to the
particular internal surfaces. For example the whole
beam solar radiation can be injected on the floor. The
reflected part of the beam radiation is assumed to be
diffuse so it is treated by the diffuse solar radiation
model.
- 528 -
The interface automatically generates adjacency
between zones of successive floors. The user can
define its own wall types or uses those from the
interface library. The interface finally generates
an xml file.
This xml building description file could also be
written manually but becomes cumbersome when
the building has several air zones.
Figure 3 Simplified representation of the building This file is read in the Simulink model mask,
envelop layer; translated to a text file by an automatic translator
and finally used to define the matrix parameters
Link between the different blocks necessary for the Simulink model.
When modelling with Simulink it is convenient to - Project and system related data
avoid algebraic loops because they slow down the Project and system related parameters are to be
model and can sometimes provoke non-convergence. specified by the user in a second interface, the
An algebraic loop occurs in a model when the inputs block mask of the Simulink building model
of a block depend on its own outputs through a direct block. The parameters to be specified are eg. The
feedback. The problem can thus not be solved in a geographical location of the building, ground
straightforward way and an iteration process is reflectance, choices of model calculation modes
needed. In the case of the windows model which is (eg. Walls models) as well as interzonal air flow
based on a steady state heat balance, an algebraic parameters.
loop is created (the window surface temperatures are
function of the IR fluxes on the windows surfaces This double approach for the interface has been
which at the same depend on the windows surface chosen in order to separate general building
temperatures). A transient model would break this characteristics that do not depend on geographical
loop but would lead to a model of higher order. The location or other project related parameters. The
problem has been solved by decoupling both models building, once described, can then be transferred to
by a so called “memory block” at the surface other locations without the need for modification.
temperatures outputs for the windows model. This
feeds back the value of the window surface MODEL VALIDATION
temperature to the IR from the previous time step. In a first step, the model has been confronted to a
Since the model is used mainly for control series of simple (but important) validation cases: for
applications with a small time step this decoupling example, the simulated building was set in an
has a negligible impact on simulation results. ambiance that has a given constant external
temperature without solar radiation (the sky
Another interesting point concerning the windows temperature was set equal to the external one). The
model is the way to deal with the variable geometry steady state air temperature of the building zones was
of the window due to the variable positions of sun found equal to the outside one.
blinds. As mentioned previously, variable matrices In further steps the new model is planned to be
are not convenient for Simulink blocks (except for validated on other cases such as BESTEST.
the S-function block). To avoid this difficulty the In this paper, first comparisons with TRNSYS “Type
window is split into two representative parts: a clear 56” multizone model (Trnsys, 2000) have been
part and a shaded part of 1m2 each. The resultant carried out. This series of tests is not completely
surface temperature of the whole window is then finished yet, but there was good agreement for all
determined by equation (20). In this way the variable tested cases. An exemplary test is shown in the
configuration problem has been split down into two following section. Validation work is still ongoing.
invariable configuration problems.
BUILDING DESCRIPTION INTERFACES Some differences between Trnsys type 56 and
The Simulink model as described in the previous Simbad
sections demands two kinds of parameters: It’s interesting to mention some main differences
between Trnsys “Type 56” and the Simbad multi-
- General building description data: zone model:
An independent graphical user interface
“Simbdi” (Simbad Building Description 1. Trnsys uses transfer function to simulate
Interface) has been developed in Visual Basic walls heat conduction, while Simbad uses a
environment. This interface allows the user to combined finite difference/finite volume
draw the building floor by floor in 2 dimensions. scheme.
- 529 -
2. Trnsys uses the so called “star temperature” 4- Absolute humidity;
(Seem et al., 1987) to simulate IR exchange 5- Wind velocity (not used);
for internal surfaces, while Simbad uses the 6- Wind direction (not used).
common mean radiant temperature.
3. Trnsys uses a detailed model for windows Table 1 pane properties of the window;
that reads output data from the WINDOW
4.1 program (WINDOW4.1, 1994). Trnsys PANE PROPERTY VALUE
takes thus into account the variation of solar Thickness 4.0 mm
transmittance and absorptance with the
incidence angle and uses hemispherical Thermal conductance 225 W/m²K
transmittance and absorptance for the diffuse
Normal solar transmittace 0.83
radiation. Simbad windows model is rather
simple and uses the same constant solar Normal solar absorptance 0.095
transmittance and absorptance for both beam
and diffuse radiation. Hemispherical solar transmittance 0.749
Hemispherical solar absorbtance 0.106
The simulated case
One comparison case is presented here. This case A slight modification was needed on the Simbad
consists of a building (cf. figure 4) composed of two model to accept the solar radiation of the Trnsys
zones. Ventilations, airflows between zones, format. The simulation was run for one summer
equipments power, and internal gains are set to zero. week. Figures 5 & 6 show air temperature and solar
radiation for this week.
30
Temperature [°C]
25
20
15
10
0 20 40 60 80 100 120 140 160
Temps [h]
case 960.
600
- 530 -
Trnsys is more detailed than the Simbad one
ragerding radiation phenomena, two cases are 30
Zone A: air temperature
26 28
22 24
20 22
18 20
0 20 40 60 80 100 120 140 160
Temps [h]
18
0 20 40 60 80 100 120 140 160
Temps [h]
Figure 7 Simbad versus Trnsys – air temperature for
Zone A (case without solar radiation);
Figure 10 Simbad versus Trnsys – air temperature
Zone B: air temperature for Zone B (case with solar radiation);
30
Simbad
Trnsys
28
CONCLUSION
Air temperature [°C]
- 531 -
NOMENCLATURE p power
s surface
Romaine letters rad radiative
A area (m²). sh shaded part (for the window)
A matrix coefficient of the state vector. sky relative to the sky
B matrix coefficient of the inputs vector. solar solar radiation
Cp heat capacity (J/kg.K). t total
f matrix of blind positions. v ventilation
f view factor between surfaces. w wall
f beam solar radiation distribution factor (-). wn window
h linearized heat transfer coefficient (W/m²K). z zone
k thermal conductivity (W/mK). ϕ flux
L total thickness of the wall (m). 1 first face of the wall
m& mass flow rate (kg/s). 2 second face of the wall
P cooling or heating load (W).
P gain, power (W). REFERENCES
t time (s). ASHRAE, 1972. ASHRAE Hundbook of
T temperature (°C). Fundamentals, American Society of Heating,
U inputs vector. Refrigerating, and Air Conditionning Engineers.
V zone volume (m3). Judkoff, R., J. Neymark. 1995. International Energy
x abscise belong the wall thickness (m). Agency Building Energy Simulation Test
X state vector. (BESTEST) and Diagnostic Method. NREL/TP-
Greek letters 472-6231. Golden, CO: National Renewable
α thermal diffusivity (m²s-1). Energy Laboratory, USA.
α solar absorbtivity (-). Laitila PK., Kohonen RO., Katajisto KI. Et al. 1991
An emulator for testing HVAC systems and their
β zenith angle of the sun (rad).
control and energy management systems,
γ azimuth angle of the sun (rad).
ASHRAE trans.1991, vol.97, paper number NY-
∆t Timestep (s).
91-9-2, 679-683, 8 figs., 1 tab., 3refs.
∆x space step (m).
Martin, M., Berdahl P. 1984. Characteristics of
ε mean IR emissivity for the building surfaces.
Infrared Sky Radiation in the United States,
θ slope with respect to the horizontal plane
LBL, University of California – Berkeley, Solar
(rad).
Energy Vol.33, No.3/4, pp. 321-336.
ξ stability safety factor for wall discretization. Matlab, 2004. Matlab. Version 7.0 Mathworks Inc.,
ρ density (kg/m3). Ma., USA.
ρ reflectivity (-). Seem, J.E. 1987. Modeling of Heat in Buildings, Ph.
σ Stefan-Boltzman constant for black body = D. thesis, SEL, University of Wisconsin,
5.67×10-8 Wm-2K-4. Madison USA.
ϕ heat flux (W/m²). SIMBAD, 2003. SIMBAD Building and HVAC
Indices Toolbox, Version 3.1, CSTB, France
a air Simulink, 2004. Simulink dynamic System
az adjacent zone Simulation for Matlab. Version 6.0, Mathworks
b boundary Inc., Ma., USA.
c convective, convection Trnsys, 2000. Trnsys: a transient system simulation
cl clear part (for the window) program. SEL, University of Wisconsin,
cpl coupling between zones Madison USA.
d diffuse horizontal solar radiation Vaézi-Nejad et al, 1991. The use of building
eq equipments emulators to evaluate the performance of
ext exterior (air) building energy managment systems , BS1991 ,
g gains 91 pp. 209-213.
g global horizontal solar radiation WINDOW4.1, 1994. WINDOW4.1, PC Program for
gr ground Analysing Window Thermal Performance in
i zone, surface, ventilation, coupling number Accordance with Standard NFRC Procedures.
IR infrared radiation Energy and Environnement Division, Lawrence
j layer, surface number Berkeley Laboratory, CA 94729 USA.
m mean
n total number of layers in the wall
n normal beam solar radiation
- 532 -
View publication stats