Beruflich Dokumente
Kultur Dokumente
The following article was published in ASHRAE Journal, April 2000. © Copyright 2000 American Society of Heating, Refrigerating and Air-
Conditioning Engineers, Inc. It is presented for educational purposes only. This article may not be copied and/or distributed electronically or in paper
form without permission of ASHRAE.
EnergyPlus:
Energy Simulation Program
By Drury B. Crawley Curtis O. Pedersen, Ph.D. • It provides structure that begins to
Member ASHRAE Fellow/Life Member ASHRAE be object-based.
and • It allows long variable names (up to
Linda K. Lawrie Frederick C. Winkelmann, Ph.D. 32 characters).
Member ASHRAE Member ASHRAE • It provides backward compatibility
during the development process.
V
We began working on EnergyPlus by
arious building energy simulation programs developed around the modularizing (restructuring) code from
world are reaching maturity. Many use simulation methods (and the heat balance engine in IBLAST, a re-
search version of BLAST with integrated
even code) that originated in the 1960s. Without substantial rede-
loads and HVAC calculation (Taylor et al.
sign and restructuring of the programs, continuing to expand their capabili- 1990). Normally, such restructuring would
ties has become difficult, time-consuming, and prohibitively expensive. How- result in major rewrites involving a long
development period, and extensive test-
ever, phenomenal advances in analysis methods and computational power ing to ensure the new code performs as
have increased the opportunity for significant improvements in the flexibility intended. To avoid this problem, we de-
vised a process we call “Evolutionary
and comprehensiveness of these tools. Reengineering (ER)” that incrementally
moves the program from old unstructured
The U.S. Department of Energy (DOE) What is EnergyPlus? code to new modular code by incorporat-
began planning for a new generation of EnergyPlus is a new building perfor- ing new code with old. Throughout the
simulation tools in 1995 using a three-step mance simulation program that combines process, existing code still works with user
process: the best capabilities and features from input data, and is extended to generate
• Create an inventory of existing DOE- BLAST and DOE–2 along with new ca- parameters needed by the new code mod-
sponsored tools pabilities. EnergyPlus comprises com-
• Sponsor workshops to get recom- pletely new code written in Fortran 90. It About the Authors
mendations from users and developers is primarily a simulation engine—there is Drury B. Crawley is program manager for
about needs in energy simulation, and no formal user interface. Both BLAST and Building Energy Tools and team leader for Commerical
• Define new generation tools based DOE–2 have many user interfaces devel- Buildings at the U.S. Department of Energy. He is
on the recommendations from the work- oped by independent third-party devel- chairman of ASHRAE Technical Committee (TC) 4.2,
shops and experience in developing opers. We have invited these same de- Weather Information, vice chair of 4.12, Integrated
BLAST (BLAST Support Office 1992) and velopers to work on graphical user inter- Building Design and secretary of TC 4.7, Energy Cal-
DOE-2 (Winkelmann et al. 1993). faces for EnergyPlus. culations. He is also a member of both SPC 140P and
Three organizations formed the initial SSPC 169P. Linda Lawrie is a senior researcher
development team: Lawrence Berkeley Modular Code at the Construction Engineering Research Labora-
National Laboratory (LBNL)—developers One of the main goals for EnergyPlus is tory, Engineer Research and Development Center.
of DOE’s DOE-2 program (Winkelmann to create a well-organized, modular struc- Frederick Winkelmann is leader of the
et al. 1993)—and U.S. Army Construction ture that facilitates adding features and Simulation Research Group of Lawrence Berkeley
Engineering Laboratory (CERL) and the links to other programs. We decided to National Laboratory’s Environmental Energy Tech-
University of Illinois (UI)—developers of select Fortran 90 as the programming lan- nologies Division He is a member of TC 4.7 and SPC
DOD’s BLAST program (BLAST Support guage for EnergyPlus because Fortran 90: 140P. Curtis O. Pedersen, Ph.D., is pro-
Office 1992). This article focuses on the • It is a modern, modular language with fessor emeritus of mechanical engineering at the
structure, features, and capabilities of good compilers on many platforms. University of Illinois, Urbana, Ill. He is a member of
EnergyPlus. • It allows C-like data structures and TC 4.1, Loads Calculation and was the chair of TC
mixed language modules. 1.5, Computer Applications.
April 2000 ASHRAE Journal 49
ules. In this way the new modules can be verified
without having to completely replace the entire func-
tional capability of the old program with new code
before it can be tested. As the process proceeds, old
routines are replaced by new routines and data struc-
tures. This makes the transition evolutionary and per-
mits a smooth transition with a greater capability for
verification testing. By the time we had achieved an
alpha version, all the old code had been replaced.
EnergyPlus Structure
In the next generation simulation tools workshops
there was strong consensus that a more flexible and
robust tool with additional capabilities is needed. Re-
current themes for energy simulation needs through-
out the workshops were design, environment, eco-
nomics, and occupant comfort and safety. Designers
need tools that provide answers to specific ques-
tions during design. They want tools that provide
the highest level of simulation accuracy possible with
a reasonable level of detail but don’t get in the user’s
way. One of the highest priorities was an integrated Figure 1: Overall EnergyPlus structure.
(simultaneous) simulation for accurate temperature
and comfort prediction. the HVAC water and air loops and their attached components
In response to these findings, we decided that integrated (coils, boilers, chillers, pumps, fans, etc.). We replaced the
simulation should be the underlying concept for EnergyPlus— hardwired “template” systems (VAV, Constant Volume Reheat,
loads calculated (by a heat balance engine) at a user-specified etc.) of DOE–2 and BLAST with user-configurable heating and
time step (15-minute default) are passed to the building sys- cooling equipment components. As starting points for users,
tems simulation module during the same time step. The build- we have created input file templates to describe the more popu-
ing systems simulation module, with a variable time step (down lar system types from DOE-2 and BLAST. This gives users
to seconds), calculates heating and cooling system and plant much more flexibility in matching their simulation to the actual
and electrical system response. Feedback from the building system configurations. The Building Systems Simulation Man-
systems simulation module on loads not met is reflected in the ager also manages data communication between the building
next time step of the load calculations in adjusted space tem- systems (HVAC, electrical) modules, building description (in-
peratures if necessary. put data), and calculation results (output data). A comparison
By using an integrated solution technique in EnergyPlus, of major features and capabilities of EnergyPlus, BLAST,
the most serious deficiency of the BLAST and DOE–2 sequen- IBLAST, and DOE–2 are shown in Tables 1-3.
tial simulations can be solved—inaccurate space temperature
predication due to no feedback from the HVAC module to the Simulation Management
loads calculations. Accurate prediction of space temperatures At the outermost program level, the Simulation Manager
is crucial to energy efficient system engineering—evaluation controls the interactions between all simulation modules from a
of system and plant size, and occupant comfort and health all sub-hour level up through the user-selected time step and simu-
require accurate space temperature prediction. lation period—day, month, season, year or several years. The
Integrated simulation also allows users to evaluate a number Simulation Manager instructs simulation modules to take ac-
of processes that neither BLAST nor DOE-2 can simulate well. tions such as initialize, simulate, record keep, or report.
Some of the more important include: Having a Simulation Manager provides several benefits:
• Realistic system controls. • Major simulation loops are contained in a single module.
• Interzone airflow. • Modules are self-contained and more object-based.
• Radiant heating and cooling systems. • New modules can be added easily.
• Moisture adsorption and desorption in building elements.
Figure 1 shows the overall program structure and the three Heat & Mass Balance Calculation
basic components: Simulation Manager, Heat Balance Simula- The underlying building thermal zone calculation method in
tion module, and Building Systems Simulation module. EnergyPlus is a heat balance model in which room air is mod-
The Simulation Manager controls the entire simulation pro- eled as well stirred with uniform temperature throughout. (The
cess, the Heat Balance Simulation module calculates thermal modular structure of EnergyPlus allows more detailed room air
and mass loads, and the Building Systems Simulation Manager convection calculations—such as CFD or zonal methods—to
handles communication between the heat balance engine and be included later in the program.) It also is assumed that room
50 ASHRAE Journal April 2000
ENERGY SIMULATION
zone heating and cooling demand. lems and is currently in final beta testing. use EnergyPlus through an interface from
The air loop is solved iteratively at A library of HVAC components has been a third-party developer. To make it easy
each time step, not a single-pass calcula- created for SPARK. As mentioned earlier, for current DOE–2 and BLAST users to
tion as in DOE–2 and BLAST. In order to EnergyPlus users will have input file tem- move to EnergyPlus, the team has writ-
specify equipment connections to a loop, plates for many of the more popular sys- ten utilities that convert BLAST and
nodes are defined at key locations around tem types to use as starting points but DOE–2 input requirements to the new
the loop with each node assigned a developers and advanced users will be EnergyPlus input.
unique numeric identifier. Node identifi- able to build complex new HVAC models During a simulation, EnergyPlus saves
ers store loop state variables and set- with SPARK. Fisher et al (1999) provide results for each time step in an output
point information for that location in the more information on the EnergyPlus loop- data structure. The user selects the heat
loop. We use an iterative solution tech- based simulation. balance time step (15-minute default). The
nique to solve for unknown state vari- building system simulation may proceed
ables along with control equation repre- Input, Output, & Weather Data at the heat balance time step or at smaller
sentations. These representations con- Instead of user readability, we de- time steps in order to reach stability. The
nect the set points at one node with the signed the EnergyPlus input and output EnergyPlus output processor produces
control function of a component, such as data files for easy maintenance and ex- results in a simple variable-based format
fan damper position and cooling coil wa- pansion. We chose to keep the input file that can easily be read by post-process-
ter flow rate. In this scheme, all the loop format simple in order to accept simula- ing programs.
components are simulated first, and then tion input data from other sources such The other major data input is weather.
the control equations are updated using as CADD programs, and preprocessors Rather than a binary file created by a sepa-
explicit finite difference. This procedure similar to those written for BLAST and rate weather processor, again we use a
continues until the simulation converges. DOE–2. An EnergyPlus input file is not simple comma-separate, text-based for-
There are two water loops for HVAC intended to be the main interface for typi- mat, similar to the input data and output
plant equipment—a primary loop (for sup- cal end-users. We expect most users will data files. The weather data format in-
ply equipment such as boilers, chillers,
thermal storage, and heat pumps) and a
secondary loop (for heat rejection equip-
ment such as cooling towers and con-
densers). Equipment is specified by type
(gas-fired boiler, open drive centrifugal
chiller) and its operating characteristics.
In the first release of EnergyPlus we are
supporting curve-based equipment mod-
els derived from manufacturer perfor-
mance data (such as in BLAST and DOE–
2). However, because of the modular
code, it will be easy for developers to add
other types of models.
As in the air loop, the primary and sec- Advertisement in the print edition formerly in this space.
ondary plant loops use explicit nodes to
connect equipment to each loop. Connec-
tions between the air loop and zone equip-
ment and the primary and secondary loops
are made through the node data struc-
ture and must be explicitly defined in the
input file.
A similar loop approach is proposed
for a new electrical loop for simulating
electrical systems—supply (utility, pho-
tovoltaic modules, and fuel cells), demand
(plug loads, lighting, and other electrical
loads), and measurement (meters). In the
longer term, EnergyPlus users will have
more systems and equipment options
through a link to SPARK, a new equa-
tion-based simulation tool. SPARK is a
better solver for complex iterative prob-
April 2000 ASHRAE Journal 53
En e r g y
G e n e r a l Fe a t u r e DOE - 2 B L A ST I B L A ST
P lus
A d v a n c e d Fe n e s t r a t i o n C a l c u l a t i o n s Yes No No Yes
•Controllable window blinds
•Electrochromic glazing
cludes basic location information in the weather service file types such as TD1440
first eight lines: location (name, state/ and DATSAV2 and newer “typical year”
province/region, country), data source, weather files such as TMY2 and WYEC2.
latitude, longitude, time zone, elevation, A detailed review of the EnergyPlus
peak heating and cooling design condi- weather format is provided in (Crawley et
tions, holidays, daylight savings period, al 1999).
and typical and extreme periods. The data In summary, all the data files associ-
contain much of the same data in the ated with EnergyPlus—input, output, and
TMY2 weather data set. EnergyPlus does weather—have simple, self-contained
not require a full year (8,760 or 8,784 formats which can be easily read and in-
hours) for its weather files. In fact, terpreted by other programs—spread-
EnergyPlus allows and reads subsets of sheets, databases, or custom programs.
years and even sub-hourly (5 minute, 15
minute) data because the weather format Adding A New Module
includes a “minutes” field. EnergyPlus One of the main goals for EnergyPlus
comes with a utility that reads standard is to make it easy for developers to add
54 ASHRAE Journal April 2000
ENERGY SIMULATION