Professional Documents
Culture Documents
Joe Huang, Fred Winkelmann, and Fred Buhl, Lawrence Berkeley National Laboratory,
Berkeley CA, USA
Curtis Pedersen, Daniel Fisher, Richard Liesen, Russell Taylor, and Richard Strand,
The Building Systems Laboratory, University of Illinois, Urbana IL, USA
Drury Crawley, US Department of Energy, Washington DC, USA
Linda Lawrie, US Army Corps of Engineers, Construction Engineering Research Laboratory
Champaign IL, USA
INTRODUCTION
In the last ten years, significant advances have been
made in the development of airflow models that can
simulate interzone airflows and pollution transport in
both single- and multi-zone buildings (Feustel 1998,
Figure 1. Floor plan of a simple building and its
Walton 1994). COMIS 3.0 is one such program that
representation in a two-dimensional nodal network
was developed in the framework of International
(fr. Feustel 1990)
Energy Agency (IEA) Annex 23, starting in 1990 and
officially finishing in 1997.
The boundary conditions for pressure distribution in
the building can be described by grid points outside
Multi-zone airflow models such as COMIS represent
the building, or outside zones. The inputs needed for
a major improvement over previous single-zone
COMIS are the flow coefficients (Cs) and exponents
infiltration models, permitting the modeling of
for cracks and closed windows and doors, the height
1
and width of opened windows and doors, the physical APPROACH
dimensions of the building zones and their linkages There are four possible approaches to couple an
to each other and the outside, the pressure airflow model with a thermal simulation model. The
coefficients (Cp) on the exterior facades, and the first is sequential coupling, where the thermal model
ambient air temperature, wind speed and direction, is run and the output history of zone temperatures
humidity, and barometric pressure. Although COMIS used as inputs to the airflow model. The second
calculates the impact of temperature on airflows, e.g., approach is “ping-pong coupling”, where the outputs
stack-driven ventilation, it does not simulate the from the thermal model are passed to the airflow
thermal conditions of the spaces but requires zone model at each time step, which in turn returns its
temperatures as input parameters. outputs to the thermal model for use in the
subsequent time-step. The third approach is an
To take full advantage of its capabilities to model elaboration of the previous one, where iterative
airflows, COMIS should be linked with a building calculations are done between the two models until
thermal program that can model the thermal some criteria of convergence is achieved. The fourth
conditions within a building and pass to COMIS the approach is to actually couple the algorithms of both
indoor zone temperatures. COMIS in turn can models and simultaneously solve the expanded
improve the thermal modeling by returning to the matrix.
thermal program the calculated airflows from the
outside and zone to zone. In this paper, we describe The first approach is the simplest but of questionable
the linkage of COMIS to EnergyPlus, a new building accuracy due to the lack of any feedback between the
energy simulation program currently being developed two models. This problem is partially addressed in
jointly by the University of Illinois Building Systems the second approach, where the feedback is lagged by
Laboratory and Lawrence Berkeley National one time step. The feedback is improved in the third
Laboratory with support from the U.S. Department of approach, but our experience with iterative solutions
Energy (USDOE). is that they’re cumbersome, slow, and susceptible to
stability problems. The fourth method, while ideal
Starting in 1995, USDOE has been supporting the from a theoretical point of view, would require a
development of EnergyPlus with the goal of tremendous amount of work and likely produce
combining the best features and capabilities of the complex matrices beyond the capabilities of current
two major existing public-domain simulation mathematical solvers. In essence, this would require
programs, IBLAST and DOE-2. The general features embedding the COMIS solver into the basic heat
of this new program has been described in other balance solution of EnergyPlus.
papers (Pedersen et al. 1997, Crawley et al. 1999). A
separate paper at this conference summarizes the The working approach chosen in this project is the
simulation methodology and improved calculations second one of a single “ping-pong” between the
used in EnergyPlus (Strand et al. 1999). In addition to EnergyPlus thermal and the COMIS airflow models.
improved simulation algorithms, an equally Such an implementation fits well into the modular
important objective in the design of EnergyPlus is to structure of EnergyPlus, in which the link to COMIS
maintain maximum modularity and clarity in the occurs entirely within the Air Heat Balance Manager
computer code to permit easy extensibility through module. Since EnergyPlus permits user-defined
the use of modules. For example, the linkage to the simulation time steps, the issues of feedback and
COMIS multi-zone airflow model occurs entirely in convergence can be addressed by selecting an
the Air Heat Balance Manager module (see Figure 2). appropriate time step for a particular problem. The
effect of different time steps on the solution results
Sky Model
EnergyPlus
Air Loop
for a sample 3-zone problem are discussed later in
Simulation Manager
Module Module
this paper.
Shading Zone Equip
Module Module
Integrated Solution Manager
Building
In principle, the EnergyPlus-COMIS link is achieved
Surface Heat Air Heat
Daylighting Balance Balance
Systems
Simulation
Plant Loop by converting COMIS to a subroutine that is called
Module Manager Manager Module
Manager within the Air Heat Balance Manager module in
Window Glass
Module
Condenser
Loop Module
EnergyPlus. Meanwhile, the Air Heat Balance
CTF
Manager module has to prepare and pass to COMIS
Calculation COMIS PV Module input information on the building, window
Module
operations, weather conditions and zone air
temperatures from the previous time step. COMIS
Figure 2. Heat Balance Modules in EnergyPlus uses these to calculate airflows from the outside
2
through infiltration and ventilation, and inter-zone EnergyPlus rather than through external files. This
airflows, that are returned to the Air Heat Balance work is expected to be done by September 1999.
Manager module to be used in the subsequent heat
balance simulation in EnergyPlus. COMIS INPUTS
To simulate multi-zone airflow, COMIS requires the
Although there are several enhanced versions of following inputs at the minimum:
COMIS with graphical interfaces, in this application
we have used the basic 3.0 version of the program Crack airflow element
written in Fortran-77 with text-based inputs and Flow coefficient (Cs)
outputs. The input file (DEFAULT.CIF) can be either Flow exponent (n)
totally self-contained with all input information Window or door airflow element
necessary for a COMIS calculation, as in a steady- Flow coefficient for closed windows (Cs)
state calculation with static conditions, or can refer to Flow exponent (n)
user-defined external files with time-varying data in Type of large vertical opening
the case of a dynamic simulation. For example, a Width
COMIS simulation for a three-zone building can read Height
from four files for the outdoor air conditions, and the Schedule for window/door opening and closing
indoor conditions (temperature, humidity, and Zone
pressure) in each of the three zones. The data in the Reference Height
output file (DEFAULT.COF) are specified in the Volume
input and can include building and zone-level Temperature*
temperatures, airflows, pressures, and pollution Humidity*
concentrations. Link
Element name
The implementation of the EnergyPlus/COMIS link Zone from-to
will proceed in three stages related to data transfer Height from-to
efficiency, not the underlying computation. For the Facade Element
initial “proof-of-concept”, we made the minimum Element number
changes necessary for the two programs to interact Relative horizontal position
with each other. We wrote a COMIS DEFAULT.CIF Relative vertical position
file that was consistent with a corresponding
Pressure Coefficient (Cp)
EnergyPlus test input file, and modified the Air Heat
Facade element number
Balance Manager module in EnergyPlus so that it
Cp value by wind direction
would write the time-varying input parameters
Meteorological Data
(ambient and zone air conditions) to small ASCII
Temperature *
files just prior to calling COMIS. After the COMIS
Humidity *
run, the modified Air Heat Balance Manager would
Wind speed *
read the airflow rates from the COMIS output file
Wind direction *
(DEFAULT.COF) and incorporate them into the air
Barometric pressure *
heat balance solution. This rudimentary link is very
inefficient from computational point of view, since it
In the initial implementation, the time-invariant
makes COMIS read the same input over and over
inputs (those without asterisks) are written manually
again. However, the link performs the correct
to a DEFAULT.CIF file. Figure 3 shows a test
calculation and allows us to study and fine-tune the
DEFAULT.CIF file for the 3-zone building. In the
link before expending the effort to make a more
Stage Two implementation, the DEFAULT.CIF file
efficient data transfer mechanism. The linkage details
will be generated automatically by the Air Heat
described in this paper refer to this initial “proof-of-
Balance Manager. Most of the inputs related to
concept” implementation.
building geometry can be extracted from the existing
EnergyPlus building descriptions. Others, such as the
Once this preliminary linkage has been shown to
flow coefficients and exponents, can be added to the
work satisfactorily, we will first use the standard
Input Data Dictionary (IDD) of EnergyPlus in a
EnergyPlus input procedure to generate the
straightforward manner. The most complicated inputs
DEFAULT.CIF input file, which then becomes an
are the Pressure Coefficients (Cp) that need to be
internal file to the program. Then, we will modify
entered for each façade element by different wind
the COMIS program to eliminate its input/output
directions. COMIS 3.0 has a routine that calculates
procedure and allow it to exchange data directly with
3
&-CIF 1
3ZOSTTEST.CIF
&-PR-IDENtification 2
Test 3-zone file modified to conform to EnergyPlus
test file with 3 zones of equal size (3.048 x 6.096 x 6.096),
with a window in the first zone.
&-PR-OUTPut options 3
VENTilation
NO HEATflow
NO POLlutant
PZ-S 1
PZ-P 1
# WP (Wind Pressure) is now PE (Pressure External)
#PE-S 1,2,3,4
#PE-P 1,2,3,4
PE-S 1
PE-P 1
STARTtime 1999jan01_00:00
STOPtime 1999jan01_00:00
&-PR-CONTrol parameters 4 --- OPTIONAL DATASECTION ---
1. 1.E-06 1.E-05 0. 1 1.E-12
0 0 5 50
&-NET-AIR flow components
# Allowed prefixes are: *CR *FA *DS *DF *F1 *F2 *F3 *F4 *WI *TD
# fan duct-fitting window(openable)
# keep the KEYWORDs &-CR,...,&-TD in this part &-NET-AIR
&-CR CRACK
*CR-1
0.0057 0.6666 0.
*CR-2
0.0108 0.6666 0.
*CR-3
0.0065 0.6666 0.
&-WI WINDOW
*WI-1
0.002 0.57 1 5.0 2.0 0.0
0.0 0.6 0.0 1.0 0.0
1.0 0.6 1.0 1.0 0.0
0
&-SCH-TEMperature schedule 00 --- OPTIONAL DATASECTION ---
F:T1 Zone1T.Dat
&-SCH-TEMperature schedule 00 --- OPTIONAL DATASECTION ---
F:T2 Zone2T.Dat
&-SCH-TEMperature schedule 00 --- OPTIONAL DATASECTION ---
F:T3 Zone3T.Dat
&-NET-ZONes 18
1 zone1 20. 0. 113.27 0. T1
2 zone2 20. 0. 113.27 0. T2
3 zone3 20. 0. 113.27 0. T3
&-NET-EXTernal node data 21 --- OPTIONAL DATASECTION ---
1 1 0.
&-NET-LINks 22
1 CR-1 3 -1 0 0 1.0 1
2 CR-2 1 3 0 0 1.0 1
3 CR-2 1 2 0 0 1.0 1
4 CR-3 2 -1 0 0. 1.0 1
5 CR-3 1 -1 0 0 1.0 1
6 WI-1 1 -1 0 0 1.0 1
&-CP-VALUes 33 --- OPTIONAL DATASECTION ---
AIVC_6.2.4
* 0.
1 1.
&-SCH-METeo data 36 --- OPTIONAL DATASECTION ---
F:Weath.Dat COMIS
4
Pressure Coefficients, but it is limited to block- has been added to the Air Heat Balance Manager that
shaped buildings in certain prescribed urban reads the existing, i.e., previous time step’s, zone air
environments. We will probably include this routine temperatures, current outdoor conditions, and writes
only as an optional input method in the them to small temporary files. After COMIS is
EnergyPlus/COMIS link. called, the modified Air Heat Balance Manager
parses the DEFAULT.COF file and uses the
The time-varying inputs marked with asterisks are computed heat flows in the subsequent infiltration
read from external files that are updated by the Air and cross-mixing calculations.
Heat Balance Manager before each call to COMIS.
These appear in Figure 3 as WEATH.DAT, TEST RUN
ZONE1T.DAT, ZONE2T.DAT, ZONE3T.DAT, The test run used to investigate the initial implement
ZONE1H.DAT, ZONE2H.DAT, and ZONE3H.DAT. is a simple one-story building with three zones and a
Each file contains a single line with the current, i.e., single window in the first zone (see Figure 4). Input
previous time-step’s, temperature and/or humidity
ratio.
5
EnergyPlus/COMIS link for general engineering
applications.
REFERENCES
Crawley, D., L. Lawrie, C. Pedersen, R. Liesen, D.
Fisher, R. Strand, R. Taylor, F. Winkelmann, F. Buhl,
E. Erdem, and J. Huang 1999. “EnergyPlus: A New-
Generation Building Energy Simulation Program”,
Building Simulation ’99, The International Building
Performance Simulation Association, Kyoto.