Guide For Interface Developers: Everything You Need To Know About Energyplus Input and Output
Guide For Interface Developers: Everything You Need To Know About Energyplus Input and Output
COPYRIGHT 1998-2013 The Board of Trustees of the University of Illinois and the Regents of the University of California through the Ernest Orlando Lawrence Berkeley National Laboratory. All Rights Reserved. No part of this material may be reproduced or transmitted in any form or by any means without the prior written permission of the University of Illinois or the Ernest Orlando Lawrence Berkeley National Laboratory. EnergyPlus is a Trademark of the US Department of Energy.
TABLE OF CONTENTS
Introduction ......................................................................................................................................1 Figure 1. EnergyPlus Input/Output Overview ........................................................ 1 Interface Expectations..................................................................................................... 2 Input Interface Attributes ........................................................................................... 2 Post-processing Interface Attributes .......................................................................... 2 EnergyPlus Install Contents ............................................................................................................3 Input Overview .................................................................................................................................5 General Input Rules ........................................................................................................ 5 Input Data Dictionary....................................................................................................... 6 Rules specific to the Input Data Dictionary ................................................................ 6 Input Data File................................................................................................................. 6 Rules specific to Input Data file:................................................................................. 6 Input Details .....................................................................................................................................7 IDD Conventions ............................................................................................................. 7 IDD IP Units.......................................................................................................... 10 Example Object ....................................................................................................... 13 Using the Input-Output Reference Document .......................................................... 14 Figure 2. Using IDFEditor to find the latest groups and objects for the Energy+.idd ........................................................................................................ 15 Standard EnergyPlus Units ........................................................................................... 16 Table 1. Standard EnergyPlus Units ................................................................... 16 EnergyPlus Reports ...................................................................................................... 17 Output ............................................................................................................................................18 Figure 3. Example Chart from Standard Output File........................................... 19 Weather Data.................................................................................................................................20 Running EnergyPlus......................................................................................................................21 Table 2. EnergyPlus Output Files....................................................................... 21
4/1/13 i
TABLE OF CONTENTS
Table 3. EnergyPlus Errors ................................................................................ 22 Table 4. Timings Comparison (EnergyPlus vs. BLAST) ..................................... 22 Licensing ........................................................................................................................................23 Appendix A. Simple IDF file..........................................................................................................24
4/1/13
ii
Introduction
Interface Expectations
Introduction
This document is intended for developers who are creating user interfaces for EnergyPlus. It provides an overview of the essentials of the input-output structure of EnergyPlus and describes the parts of each in detail.
Input
File Types Data Dictionary File (IDD)
File produced by Energy Plus developers.
EnergyPlus Program
Main Program Module Module
Output
File Types: Standard Reports Standard Reports (Detail) Optional Reports Optional Reports (Detail) Initialization Reports Overview of File Format: Header Data Dictionary Data Note: These files will created by EnergyPlus.
Module
Module
Module
Module
Figure 1. EnergyPlus Input/Output Overview The diagram shown above should give the reader an overall picture of input-output in EnergyPlus. It can be seen as a linear process that includes the following steps:
1) The
user enters building description (including internal space gains, HVAC arrangements, and Plant equipment properties) using the interface of their choice. In addition, the user specifies which non-default reports are desired and any optional variables from a predefined list of available simulation quantities. specification of any report items desired by the user.
2) The interface program writes the Input Data File (IDF) file, which includes the 3) EnergyPlus processes both the Input Data Dictionary (IDD) and the Input Data File (IDF)
files with the InputProcessor. The InputProcessor uses the specifications/rules defined in the IDD and interprets the IDF raw data. The InputProcessor is really quite dumb and only understands a few things about each field (alpha or numeric) qualified by certain key elements in the IDD (\ comments which are discussed later).
4) Each module in EnergyPlus has one or several routines (normally called GetInput
routines) that obtain the information from the IDF file data. These subroutines decode the portion of the IDF file that is pertinent to the local module. These GetInput routines are more context sensitive than the InputProcessor and may perform further error detection. For example, the cooling coil module may read in the coil type and its associated parameters (number of rows, tube diameter, fin spacing, etc.).
5) EnergyPlus performs the simulation elements specified in the IDF. Output is generated
as a continuous stream (for the most part) and must be interpreted into a more cohesive form by output processing. The user has control over which outputs are produced and when/how often.
6) EnergyPlus produces output as required by the user into one of the output files. These
files can be readily processed into spreadsheet formats for graphing and other summarizing.
4/1/13
Introduction
Interface Expectations
Interface Expectations
The input-output interfaces may be combined into a single program or may be available separately. The following attributes are expected from these interfaces. Input Interface Attributes The input interface agents will be expected to fulfill two main requirements: Ability to produce the input file for the simulation. Perform the consistency and value checks necessary to assure that the input file conforms to EnergyPlus requirements. Additionally, the input interface agent might: Ability to warn users about potential output file size. It is expected that the data files generated by the EnergyPlus program will be significantly larger than the output files from its parent programs. As a result, users may be unaware that selecting too many reports could lead to enormous output files. It is recommended that some sort of checking be done to alert users when the term of the simulation and the number of reports selected eclipse some reasonable file size limit. Ability to perform parametric runs. The method used by the input interface agent to accomplish these goals is left to the discretion of the interface developer. Post-processing Interface Attributes The post-processing agents will be expected to fulfill the main requirement: Ability to read all or selected output formats. Additionally, a post-processing agent might: Ability to combine and summarize data (average, peak, total, etc.) and produce the various text and graphical reports requested by the user. Ability to handle multiple output files. The method used by the post-processing agent to accomplish these goals is left to the discretion of the interface developer.
4/1/13
Interface Expectations
4/1/13
Interface Expectations
Weather Converter: The WeatherConverter program can process raw weather data in several formats into the EnergyPlus weather data format (epw). In addition, the WeatherConverter program can be used to generate a simple report of the weather data as well as produce a .csv file of the format. The .csv (comma separated variable) format can easily be imported into spread sheet programs or other tables. This program is installed in the Parent \ PreProcess \ WeatherConverter folder. The WeatherConverter also has a DLL file which could be used directly by an external interface. BLAST Translator: The BLAST translator program can be used to convert a BLAST input file into a format that can be executed from EnergyPlus. Extensive system translation is not done with this program mostly geometry and other space gain elements as well as zone oriented (i.e. People) schedules. If the BLAST input file contains thermostatic controls in the zones, then the EnergyPlus IDF file will include a purchased-air solution of that BLAST input file. This program is no longer part of the EnergyPlus install but is available with each new release. DOE-2 Translator: The DOE-2 translator program is similar to the BLAST Translator program but for DOE-2 files. DOE-2 translator output must be processed by the EPMacro program prior to running in EnergyPlus (the EP-Launch program/EPL-Run procedure does this automatically for all .imf files). This program is no longer part of the EnergyPlus install but is available with each new release.
4/1/13
Input Overview
Input Overview
The general structure of the input files for EnergyPlus is plain text. Fields are comma delimited and each line is terminated with a semicolon. This allows for a very rudimentary input processor that can be instantly flexible to developers needs. However, it puts more burdens on the EnergyPlus developers to process the input information, supply defaults as needed, and perform validity checks. Guidelines were established for the input: Input will be a flat ASCII file with comma-delimited columns and each line (where each line can run over several physical file records) terminated with a semicolon. Input should be readable, editable, simply parsed with few value checks or consistency checks. Input, to the extent possible, should be easily maintainable and extendable. Input will be object based. Definitions in a data dictionary will define the input. The data dictionary should be selfdocumenting. All input units will be metric (SI). Conversions from user units will be done in the interface agents. Two input files are necessary for the input processing. The first is the data dictionary which will specify the requirements for each item. The EnergyPlus Input Processor uses these requirements to process the input data file and report any anomalies found. Both input files have similar structures: 1) Sections single lines/commands, which may help group the simulation input for readability and 2) Classes/Objects data attributes for the simulation. Classes are the term used in the data dictionary each class will specify the kind of data (alpha or numeric) that will be included in the simulation input. Objects are instances of these classes and appear in the IDF with appropriate data.
Input Overview
automatically map to UPPER case for finding the item. The primary drawback with this is that error messages coming out of the input processor will be in UPPER case and may not appear exactly as input. Special characters, such as tabs, should NOT be included in the file. However, tabs can be accommodated and are turned into spaces.
Each Alpha string in the input data file can be up to 100 characters in length. Anything beyond that is truncated. A special combination of characters !- indicates a comment that contains the name and units of the field after each field value. These, like normal comments, are ignored by EnergyPlus. This type of comment containing the field names are created automatically with IDF Editor, IDF Version Updater (transition) and other user interfaces. Comments added by the user should not use !- because they are deleted and replaced with the field name when the file is saved using IDF Editor. For an example of this syntax, see the example file in Appendix A.
4/1/13
Input Details
IDD Conventions
Input Details
This document does not cover the input classes in detail. For details on each class and examples of both input and output resulting from that class/object, please view the Input Output Reference document. In this document, we will show the conventions used in the IDD and provide limited examples for illustration purposes. Even the list of objects is dynamic, so we give you a method to see them from the IDFEditor. An intelligent editor (IDFEditor) has been written and can be used as an illustration of how the comments in the IDD might be used by Interface Developers to guide their developments. IDFEditor is described in the Getting Started document. A full example of a very simple IDF is included in Appendix A to this document.
IDD Conventions
The following is a basic description of the structure of the IDD (its actually taken directly from the IDD file). As noted within, ! signifies a comment character as does the \. \ has also been adopted as a convention for including more specific comments about each field in an object. These have been used with success in the IDFEditor and it is hoped the flexibility will provide other interface developers with useful information.
!IDD_Version VERSION NUMBER ! ************************************************************************** ! This file is the Input Data Dictionary (IDD) for EnergyPlus. ! The IDD defines the syntax and data model for each type of input "Object." ! Lines in EnergyPlus input files (and IDD) are limited to 500 characters. ! ! Object Description ! -----------------! To define an object (a record with data), develop a key word that is unique ! Each data item to the object can be A (Alphanumeric string) or N (numeric) ! Number each A and N. This will show how the data items will be put into the ! arrays that are passed to the Input Processor "Get" (GetObjectItem) routines. ! All alpha fields are limited to 100 characters. Numeric fields should be ! valid numerics (can include such as 1.0E+05) and are placed into double ! precision variables. ! ! NOTE: Even though a field may be optional, a comma representing that field ! must be included (unless it is the last field in the object). Since the ! entire input is "field-oriented" and not "keyword-oriented", the EnergyPlus ! Input Processor must have some representation (even if blank) for each ! field. ! ! Object Documentation ! -------------------! In addition, the following special comments appear one per line and ! most are followed by a value. Comments may apply to a field or the object ! or a group of objects. ! ! Field-level comments: ! ! \field Name of field ! (should be succinct and readable, blanks are encouraged) ! ! \note Note describing the field and its valid values. If multiple lines, ! start each line with \note. Limit line length to 100 characters. ! ! \required-field To flag fields which may not be left blank ! (this comment has no "value")
4/1/13
Input Details ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
IDD Conventions
\begin-extensible Marks the first field at which the object accepts an extensible field set. A fixed number of fields from this marker define the extensible field set, see the object code \extensible for more information. \units Units (must be from EnergyPlus standard units list) EnergyPlus units are standard SI units IP-Units (for use by input processors with IP units) This is only used if the default conversion is not appropriate.
\ip-units
\unitsBasedOnField For fields that may have multiple possible units, indicates the field in the object that can be used to determine the units. The field reference is in the A2 form. \minimum \minimum> \maximum \maximum< \default \deprecated Minimum that includes the following value Minimum that must be > than the following value Maximum that includes the following value Maximum that must be < than the following value Default for the field (if N/A then omit entire line) This field is not really used and will be deleted from the object. The required information is gotten internally or not needed by the program. Flag to indicate that this field can be used with the Auto Sizing routines to produce calculated results for the field. If a value follows this, then that will be used when the "Autosize" feature is flagged. To trigger autosizing for a field, enter Autosize as the field's value. Only applicable to numeric fields.
\autosizable
\autocalculatable Flag to indicate that this field can be automatically calculated. To trigger auto calculation for a field, enter Autocalculate as the field's value. Only applicable to numeric fields. \type Type of data for the field integer real alpha (arbitrary string), choice (alpha with specific list of choices, see \key) object-list (link to a list of objects defined elsewhere, see \object-list and \reference) external-list (uses a special list from an external source, see \external-list) node (name used in connecting HVAC components) Retains the alphabetic case for alpha type fields Possible value for "\type choice" (blanks are significant) use multiple \key lines to indicate all valid choices Name of a list of user-provided object names that are valid entries for this field (used with "\reference") see Zone and BuildingSurface:Detailed objects below for 8
\retaincase \key
\object-list
4/1/13
Input Details
IDD Conventions
! examples. ! ** Note that a field may have multiple \object-list commands. ! ! \external-list The values for this field should be selected from a special ! list generated outside of the IDD file. The choices for the ! special lists are: ! autoRDDvariable ! autoRDDmeter ! autoRDDvariableMeter ! When one of these are selected the options for the field ! are taken from the RDD or MDD file or both. ! ! \reference Name of a list of names to which this object belongs ! used with "\type object-list" and with "\object-list" ! see Zone and BuildingSurface:Detailed objects below for ! examples: ! ! Zone, ! A1 , \field Name ! \type alpha ! \reference ZoneNames ! ! BuildingSurface:Detailed, ! A4 , \field Zone Name ! \note Zone the surface is a part of ! \type object-list ! \object-list ZoneNames ! ! For each zone, the field "Name" may be referenced ! by other objects, such as BuildingSurface:Detailed, so it is ! commented with "\reference ZoneNames" ! Fields that reference a zone name, such as BuildingSurface:Detailed's ! "Zone Name", are commented as ! "\type object-list" and "\object-list ZoneNames" ! ** Note that a field may have multiple \reference commands. ! ** This is useful if the object belongs to a small specific ! object-list as well as a larger more general object-list. ! ! Object-level comments: ! ! \memo Memo describing the object. If multiple lines, start each line ! with \memo. ! Limit line length to 100 characters. ! ! \unique-object To flag objects which should appear only once in an idf ! (this comment has no "value") ! ! \required-object To flag objects which are required in every idf ! (this comment has no "value") ! ! \min-fields Minimum number of fields that should be included in the ! object. If appropriate, the Input Processor will fill ! any missing fields with defaults (for numeric fields). ! It will also supply that number of fields to the "get" ! routines using blanks for alpha fields (note -- blanks ! may not be allowable for some alpha fields). ! ! \obsolete This object has been replaced though is kept (and is read) ! in the current version. Please refer to documentation as ! to the dispersal of the object. If this object is ! encountered in an IDF, the InputProcessor will post an ! appropriate message to the error file. ! usage: \obsolete New=>[New object name] 4/1/13 9
Input Details ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
IDD Conventions
\extensible:<#> This object is dynamically extensible -- meaning, if you change the IDD appropriately (if the object has a simple list structure -- just add items to the list arguments (i.e. BRANCH LIST). These will be automatically redimensioned and used during the simulation. <#> should be entered by the developer to signify how many of the last fields are needed to be extended (and EnergyPlus will attempt to auto-extend the object). The first field of the first instance of the extensible field set is marked with \begin-extensible. \begin-extensible See previous item, marks beginning of extensible fields in an object. \format The object should have a special format when saved in the IDF Editor with the special format option enabled. The options include SingleLine, Vertices, CompactSchedule, FluidProperties, ViewFactors, and Spectral. The SingleLine option puts all the fields for the object on a single line. The Vertices option is used in objects that use X, Y and Z fields to format those three fields on a single line. The CompactSchedule formats that specific object. The FluidProperty option formats long lists of fluid properties to ten values per line. The ViewFactor option formats three fields related to view factors per line. The Spectral option formats the four fields related to window glass spectral data per line.
\reference-class-name Adds the name of the class to the reference list similar to \reference. Group-level comments: \group Name for a group of related objects
Notes on comments ----------------1. If a particular comment is not applicable (such as units, or default) then simply omit the comment rather than indicating N/A. 2. Memos and notes should be brief (recommend 5 lines or less per block). More extensive explanations are expected to be in the user documentation
IDD IP Units In addition, the IDD contains indications of IP (inch-pound) units for the EnergyPlus standard SI (Systems International) units. These may be used by input and output interfaces to display values in the IP system. As noted, if the IP units are standard (first block below), then no \ipunits is expected in the field. Note that for some fields due to their multiple use (for example, schedule values) there cannot be a ip-unit designation.
! Default IP conversions (no \ip-units necessary) ! $/(m3/s) => $/(ft3/min) ! $/(W/K) => $/(Btu/h-F) ! $/kW => $/(kBtuh/h) ! $/m2 => $/ft2 ! $/m3 => $/ft3 ! (kg/s)/W => (lbm/sec)/(Btu/hr) ! 1/K => 1/F ! 1/m => 1/ft 0.000472000059660808 0.52667614683731 0.293083235638921 0.0928939733269818 0.0283127014102352 0.646078115385742 0.555555555555556 0.3048
4/1/13
10
Input Details ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! 4/1/13 A/K C cm cm2 deltaC deltaJ/kg g/GJ g/kg g/MJ g/mol g/m-s g/m-s-K GJ J J/K J/kg J/kg-K J/kg-K2 J/kg-K3 J/m2-K J/m3 J/m3-K K K/m kg kg/J kg/kg-K kg/m kg/m2 kg/m3 kg/m-s kg/m-s-K kg/m-s-K2 kg/Pa-s-m2 kg/s kg/s2 kg/s-m kJ/kg kPa L/day L/GJ L/kWh L/MJ lux m m/hr m/s m/s m/yr m2 m2/m m2/person m2/s m2-K/W m3 m3 m3/GJ m3/hr m3/hr-m2 m3/hr-person m3/kg m3/m2 m3/MJ => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => => A/F F in inch2 deltaF deltaBtu/lb lb/MWh grains/lb lb/MWh lb/mol lb/ft-s lb/ft-s-F ton-hrs Wh Btu/F Btu/lb Btu/lb-F Btu/lb-F2 Btu/lb-F3 Btu/ft2-F Btu/ft3 Btu/ft3-F R F/ft lb lb/Btu lb/lb-F lb/ft lb/ft2 lb/ft3 lb/ft-s lb/ft-s-F lb/ft-s-F2 lb/psi-s-ft2 lb/s lb/s2 lb/s-ft Btu/lb psi pint/day gal/kWh pint/kWh gal/kWh foot-candles ft ft/hr ft/min miles/hr inch/yr ft2 ft2/ft ft2/person ft2/s ft2-F-hr/Btu ft3 gal ft3/MWh ft3/hr ft3/hr-ft2 ft3/hr-person ft3/lb ft3/ft2 ft3/kWh
IDD Conventions 0.555555555555556 1.8 (plus 32) 0.3937 0.15500031000062 1.8 0.0004299 0.00793664091373665 7 7.93664091373665 0.0022046 0.000671968949659 0.000373574867724868 78.9889415481832 0.000277777777777778 526.565 0.00042986 0.000239005736137667 0.000132889924714692 7.38277359526066E-05 4.89224766847393E-05 2.68096514745308E-05 1.49237004739337E-05 1.8 0.54861322767449 2.2046 2325.83774250441 0.555555555555556 0.67196893069637 0.204794053596664 0.062428 0.67196893069637 0.373316072609094 0.207397818116164 1412.00523459398 2.20462247603796 2.2046 0.67196893069637 0.429925 0.145038 2.11337629827348 0.000951022349025202 2.11337629827348 0.951022349025202 0.092902267 3.28083989501312 3.28083989501312 196.850393700787 2.2369362920544 39.3700787401575 10.7639104167097 3.28083989501312 10.764961 10.7639104167097 5.678263 35.3146667214886 264.172037284185 127.13292 35.3146667214886 3.28083989501312 35.3146667214886 16.018 3.28083989501312 127.13292 11
Input Details
IDD Conventions ! m3/person => ft3/person 35.3146667214886 ! m3/s => ft3/min 2118.88000328931 ! m3/s-m => ft3/min-ft 645.89 ! m3/s-m2 => ft3/min-ft2 196.85 ! m3/s-person => ft3/min-person 2118.6438 ! m3/s-W => (ft3/min)/(Btu/h) 621.099127332943 ! N-m => lbf-in 8.85074900525547 ! N-s/m2 => lbf-s/ft2 0.0208857913669065 ! Pa => psi 0.000145037743897283 ! percent/K => percent/F 0.555555555555556 ! person/m2 => person/ft2 0.0928939733269818 ! s/m => s/ft 0.3048 ! V/K => V/F 0.555555555555556 ! W => Btu/h 3.4121412858518 ! W/(m3/s) => W/(ft3/min) 0.0004719475 ! W/K => Btu/h-F 1.89563404769544 ! W/m => Btu/h-ft 1.04072 ! W/m2 => Btu/h-ft2 0.316957210776545 ! W/m2 => W/ft2 0.09290304 ! W/m2-K => Btu/h-ft2-F 0.176110194261872 ! W/m2-K2 => Btu/h-ft2-F2 0.097826 ! W/m-K => Btu-in/h-ft2-F 6.93481276005548 ! W/m-K2 => Btu/h-F2-ft 0.321418310071648 ! W/m-K3 => Btu/h-F3-ft 0.178565727817582 ! W/person => Btu/h-person 3.4121412858518 ! ! Other conversions supported (needs the \ip-units code) ! ! kPa => inHg 0.29523 ! m => in 39.3700787401575 ! m3/s => gal/min 15850.3222370511 ! Pa => ftH2O 0.00033455 ! Pa => inH2O 0.00401463 ! Pa => inHg 0.00029613 ! Pa => Pa 1 ! W => W 1 ! W/m2 => W/m2 1 ! W/m-K => Btu/h-ft-F 0.577796066000163 ! W/person => W/person 1 ! ! Units fields that are not translated ! $ ! 1/hr ! A ! Ah ! A/V ! Availability ! Control ! cycles/hr ! days ! deg ! dimensionless ! eV ! hr ! J/J ! kg/kg ! kg-H2O/kg-air ! kmol ! kmol/s ! m3/m3 ! minutes ! Mode ! ms
4/1/13
12
Input Details
IDD Conventions ! ohms ! percent ! ppm ! rev/min ! s ! V ! VA ! W/m2 or deg C ! W/m2, W or deg C ! W/s ! W/W ! years ! **************************************************************************
First, the object name is given. (Site:Location) This is followed by a comma in both the definition (IDD) and in an input file (IDF). In fact, all fields except the terminating field of an IDD class object and IDF object are followed by commas. The final field in an IDD class object or in an IDF object is terminated by a semi-colon. Next is an alpha field, the location name. As noted above, for input, spaces are significant in this field. The main inputs for Location are numeric fields. These are numbered (as is the alpha field) for convenience. The \ designations will show various information about the objects as described above in the IDD conventions discussion. Of importance for reading this document are the units and possible minimum and maximum values for a field. Defaults are produced if applicable and if the field is blank in the IDF. For this example, that wont work because there is no default AND the Location name is a required field. The \minimum, \maximum and \default comments are automatically processed in the Inptu Processor for numeric fields. Any infractions of the \minimum, \maximum fields will be
4/1/13 13
Input Details
IDD Conventions
automatically detected and messages will appear in the standard error file. After all the input is checked, infractions will cause program termination (before the bulk of the simulation is completed). Defaults are also enforced if you leave the numeric field blank. \min-fields deserves some explanation. This has object level enforcement. When min-fields is specified for an object, it has meaning to the InputProcessor telling the IP the number of fields that must be returned to a GetInput routine regardless of how many fields may actually appear in the IDF. So, min-fields is actually an automatic assistance in most instances. Some objects need all the parameters listed by the definition; some do not. In the descriptions that are contained in the Input Output Reference, we try to indicate which parts are optional. Usually, these will be the last fields in the object input or definition. Using the Input-Output Reference Document To assist you in using the Input Output Reference document, it is grouped similarly to the IDD file. To determine the latest set of groups and objects, it will be useful for you to open the IDFEditor (an intelligent editor that is installed with EnergyPlus) and write out the current object list. The following figure shows the screen shot of the IDFEditor and the help menu to select the objectlist. Select create objectlist.txt to create the object list it will be put into the IDFEditor program folder.
4/1/13
14
Input Details
IDD Conventions
Figure 2. Using IDFEditor to find the latest groups and objects for the Energy+.idd The produced list will look something like:
Simulation Parameters --------------------------[------] Version [------] SimulationControl [------] Building [------] ShadowCalculation [------] SurfaceConvectionAlgorithm:Inside [------] SurfaceConvectionAlgorithm:Outside [------] HeatBalanceAlgorithm [------] ZoneCapacitanceMultiplier [------] Timestep [------] ConvergenceLimits Location - Climate - Weather File Access --------------------------[------] Site:Location [------] SizingPeriod:DesignDay [------] SizingPeriod:WeatherFileDays [------] SizingPeriod:WeatherFileConditionType [------] RunPeriod [------] RunPeriodControl:SpecialDays
4/1/13
15
Simulation Parameters and Location Climate Weather File Access are groups. Version, Building, etc are objects.
4/1/13
16
Input Details
EnergyPlus Reports
electric potential electric current illuminace luminous flux luminous intensity luminance vapor diffusivity viscosity porosity thermal gradient coeff for moisture capacity isothermal moisture capacity
volts Amperes lux lumen candelas candelas per square meter m2/s -------------------------
EnergyPlus Reports
Several items are used to specify what will appear in the output file(s). The output is described in the next section of this document. What appears here is a sample of outputs more detailed and complete versions can be found in the Output Details and Examples document. In addition to the individual reports, there are sets of predefined reports that can appear. View the Input for Output section and the Tabular reports section in the Input Output Reference document for more details.
4/1/13
17
Output
EnergyPlus Reports
Output
EnergyPlus produces several output files as shown in the section on Running EnergyPlus. This section will discuss the data contained in the standard output file (eplusout.eso). It, too, has a data dictionary but unlike the input files, the output data dictionary is contained within the output file. Thus, the basic structure of the standard output file is:
Data Dictionary Information End of Data Dictionary Data Data End of Data
As with the IDF structure, there are rules associated with the interpretation of the standard output data dictionary. These rules are summarized as follows: The first item on each line is an integer which represents the report code. This report code will be listed in the data section where it will also be the first item on each line, identifying the data. Only 2 lines in the output file will not have an integer as the first item (End of Data Dictionary and End of Data lines). The second item on each line is also an integer. This integer corresponds to the number of items left on the dictionary line. Each string consists of a variable name and units in square brackets. Square brackets are required for all strings. If there are no units associated with a particular variable, then there are no characters between the brackets. Six standard items appear at the start of every EnergyPlus Standard Output File Data Dictionary:
Program Version,EnergyPlus, 1.0, Beta 2, Build 017 1,5,Environment Title[],Latitude[degrees],Longitude[degrees],Time Zone[],Elevation[m] 2,6,Day of Simulation[],Month[],Day of Month[],DST Indicator[1=yes 0=no], Hour[], StartMinute[], EndMinute[], DayType 3,3,Cumulative Day of Simulation[],Month[],Day of Month[],DST Indicator[1=yes 0=no],DayType 4,2,Cumulative Days of Simulation[],Month[] 5,1,Cumulative Days of Simulation[]
Item 0 is the program version statement. Item 1 is produced at the beginning of each new environment (design day, run period). Item 2 is produced prior to any variable reported at the timestep or hourly intervals. Hourly intervals will be shown with a start minute of 0.0 and an end minute of 60.0. Timestep intervals will show the appropriate start and end minutes. Item 3 is produced prior to any variable reported at the daily interval. Item 4 is produced prior to any variable reported at the monthly interval. Item 5 is produced prior to any variable reported at the end of the environment. Following these five standard lines will be the variables requested for reporting from the input file (ref. Report Variable). For example:
6,2,Environment,Outdoor Dry Bulb [C] !Hourly 21,2,ZONE ONE,Mean Air Temperature[C] !Hourly 22,2,ZONE ONE,Zone-Total Latent Gain[J] !Hourly 26,2,ZONE ONE,Zone-Total Electric Consumption[J] !Hourly
This example illustrates the non-consecutive nature of the report codes. Internally, EnergyPlus counts each variable that could be reported. This is the assigned report code. However, the user may not request each possible variable for reporting. Note that, currently, the requested reporting frequency is shown as a comment (!) line in the standard output file. The data is produced when the actual simulation is performed (after the warmup days). Data output is simpler in format than the data dictionary lines. From the dictionary above:
4/1/13
18
Output
1,DENVER COLORADO WINTER, 39.75,-104.87, 2, 1, 1,21, 0, 1, 0.00,60.00,Monday 6,-17.22222 21,-17.22219 22,0.0000000E+00 26,0.0000000E+00 2, 1, 1,21, 0, 2, 0.00,60.00,Monday 6,-17.22222 21,-17.22219 22,0.0000000E+00 26,0.0000000E+00 2, 1, 1,21, 0, 3, 0.00,60.00,Monday 6,-17.22222 21,-17.22219 22,0.0000000E+00 26,0.0000000E+00 -7.00,1610.26
EnergyPlus Reports
This output file can be easily turned into a form that is read into commonly used spreadsheet programs where it can be further analyzed, graphed, etc.
Solar Shading Test
Temperature [C]
ZONE 1 Air Temperature ZONE 2 Air Temperature ZONE 3 Air Temperature ZONE 4 Air Temperature ZONE 5 Air Temperature ZONE 6 Air Temperature ZONE 7 Air Temperature ZONE 8 Air Temperature ZONE 9 Air Temperature
Time
4/1/13
19
Weather Data
EnergyPlus Reports
Weather Data
Weather data in EnergyPlus is a simple text-based format, similar to the input data and output data files. The weather data format includes basic location information in the first eight lines: location (name, state/province/region, country), data source, latitude, longitude, time zone, elevation, peak heating and cooling design conditions, holidays, daylight saving period, typical and extreme periods, two lines for comments, and period covered by the data. The data are also comma-separated and contain much of the same data in the TMY2 weather data set (NREL 1995). EnergyPlus does not require a full year or 8760 (or 8784) hours in its weather files. In fact, EnergyPlus allows and reads subsets of years and even sub-hourly (5 minute, 15 minute) datathe weather format includes a minutes field. EnergyPlus comes with a utility that reads standard weather service file types such as TMY2, IWEC and WYEC2 files, as examples, as well as being able to read a user defined custom format. The data dictionary for EnergyPlus Weather Data is shown in the Auxiliary Programs document please review that document for further information.
4/1/13
20
Running EnergyPlus
EnergyPlus Reports
Running EnergyPlus
EnergyPlus is written in language conforming to Fortran Standard 90/95. It runs as a 32 bit console (non-Windows) application on Intel compatible computers (Windows NT, Windows 95/98). More explicit details on running EnergyPlus are available in a separate document (Running EnergyPlus in Auxiliary Programs document). The following files are used to run EnergyPlus:
EnergyPlus.exe (the executable file) Energy+.ini (described below) Energy+.idd (the input data dictionary file) In.idf (the input file) In.epw optional (weather data file)
The input data dictionary and input data file have been discussed in the previous sections of this document. For weather simulations, EnergyPlus accepts EnergyPlus weather files. Previous versions accepted BLAST formatted weather files and now a BLASTWeatherConverter program is provided. The actual file name is in.epw. The Energy+.ini file is a standard Windows ini file and can be manipulated using the Windows API calls though EnergyPlus uses standard Fortran to manipulate it. It is a very simple ini file and is fully described in the Auxiliary Programs document. Energy+.ini and in.idf file should be in the directory from which you are running EnergyPlus.exe. For the advanced user, there is also the EPMacro program, described in the Auxiliary Programs Document. You run it as a separate program before EnergyPlus (the batch file included in the install and shown in the GettingStarted document contains the commands). EnergyPlus creates the following files (plus more): Table 2. EnergyPlus Output Files FileName Audit.out Eplusout.err Eplusout.eso Eplusout.eio Eplusout.rdd Eplusout.dxf Eplusout.end Error file Standard Output File One time output file Report Variable Data Dictionary DXF (from Report,Surfaces,DXF;) A one line summary of success or failure Description Echo of input
4/1/13
21
Running EnergyPlus
EnergyPlus Reports
The eplusout.err file may contain three levels of errors (Warning, Severe, Fatal) as well as the possibility of just message lines. These errors may be duplicated in other files (such as the standard output file). Table 3. EnergyPlus Errors Error Level Warning Severe Fatal Action Take note Should Fix Program will abort
EnergyPlus produces several messages as it is executing, as a guide to its progress. For example, the run of the 1ZoneUncontrolled input file from Appendix A produces:
EnergyPlus Starting EnergyPlus 1.3.0.011, 4/5/2006 2:59 PM Initializing New Environment Parameters Warming up {1} Initializing Response Factors Initializing Window Optical Properties Initializing Solar Calculations Initializing HVAC Warming up {2} Warming up {3} Warming up {4} Starting Simulation at 12/21 for DENVER_STAPLETON ANN HTG 99% CONDNS DB Initializing New Environment Parameters Warming up {1} Warming up {2} Warming up {3} Starting Simulation at 07/21 for DENVER_STAPLETON ANN CLG 1% CONDNS DB=>MWB EnergyPlus Run Time=00hr 00min 1.00sec
Extensive timing studies and fine-tuning of EnergyPlus is NOT complete. To give you an idea of comparable run times, we present the following (does not include HVAC) with an early version of EnergyPlus running on a 450MHZ machine. Remember, BLAST would be 1 calculation per hour, EnergyPlus (in this case) was 4 calculations per hour. Obviously, these are quite out of date. However, a recent change in a developers test machine illustrates the importance of maximum memory. A 5 zone full year run on a 1.8GHZ, 1GB machine was running about 8 minutes with a new 2.1GHZ, 2GB machine the same file takes about 2 minutes. Table 4. Timings Comparison (EnergyPlus vs. BLAST) File GeometryTest (5 Zones, 2 Design Day, Full Weather Year) SolarShadingTest (9 Zones, Full Weather Year) BLAST Per Zone 13 sec 7 sec EnergyPlus Per Zone 33 sec 25 sec
4/1/13
22
Licensing
EnergyPlus Reports
Licensing
In order to make efficient distribution of your interface, you should consider licensing EnergyPlus. First, you must license/register to use EnergyPlus. Since we are distributing EnergyPlus via the World Wide Web, at no charge, it will be easy to get your hands on a copy for testing out your interface. However, you may wish to understand more of the internals and, to make a complete distribution package, will need to at least execute a distribution license. http://www.eere.energy.gov/buildings/energyplus/energyplus_licensing.html contains the details on licensing EnergyPlus for commercial or non-commercial use.
4/1/13
23
EnergyPlus Reports
4/1/13
24
EnergyPlus Reports
Variable Dictionary, Surfaces (dxf-wireframe), Meter File Hourly and Daily None None None None
Output:PreprocessorMessage, No Preprocessor Used, !- Preprocessor Name Information, !- Error Severity Illustrative Message, !- Message Line 1 No problems for processing; !- Message Line 2 Version, 3.0; Timestep, 4;
!- Version Identifier
Building, Simple One Zone (Wireframe DXF), !- Name 0.0000000E+00, !- North Axis {deg} Suburbs, !- Terrain .04, !- Loads Convergence Tolerance Value .004, !- Temperature Convergence Tolerance Value {deltaC} MinimalShadowing, !- Solar Distribution 30; !- Maximum Number of Warmup Days HeatBalanceAlgorithm, ConductionTransferFunction;
!- Algorithm
SurfaceConvectionAlgorithm:Inside, Detailed; !- Algorithm SurfaceConvectionAlgorithm:Outside, Detailed; !- Algorithm SimulationControl, No, No, No, Yes, Yes; RunPeriod, 1, 1, 12, 31, Tuesday, Yes, Yes, No, Yes, Yes; Site:Location,
!!!!!-
Do Zone Sizing Calculation Do System Sizing Calculation Do Plant Sizing Calculation Run Simulation for Sizing Periods Run Simulation for Weather File Run Periods
!!!!!!!!!!-
Begin Month Begin Day of Month End Month End Day of Month Day of Week for Start Day Use Weather File Holidays and Special Days Use Weather File Daylight Saving Period Apply Weekend Holiday Rule Use Weather File Rain Indicators Use Weather File Snow Indicators
4/1/13
25
EnergyPlus Reports
WMO=724690 Time Zone=NAM (GMT-07:00) Mountain Time (US & Canada) Data Source=ASHRAE 2005 Annual Design Conditions Using Design Conditions from "Climate Design Data 2005 ASHRAE Handbook" DENVER_STAPLETON_CO_USA Extreme Annual Wind Speeds, 1%=10.9m/s, 2.5%=8.8m/s, 5%=7.7m/s DENVER_STAPLETON_CO_USA Extreme Annual Temperatures, Max Drybulb=37.2C Min Drybulb=-24.6C DENVER_STAPLETON_CO_USA Annual Heating Design Conditions Wind Speed=2.3m/s Wind Dir=180 Coldest Month=December DENVER_STAPLETON_CO_USA Annual Heating 99%, MaxDB=-16C
SizingPeriod:DesignDay, DENVER_STAPLETON Ann Htg -16, 0.0, -16, 83411., 2.3, 180, 0.00, 0, 0, 21, 12, WinterDesignDay, 0, WetBulb;
99% Condns DB, !- Name !- Maximum Dry-Bulb Temperature {C} !- Daily Temperature Range {deltaC} !- Humidity Indicating Conditions at Maximum Dry-Bulb !- Barometric Pressure {Pa} !- Wind Speed {m/s} !- Wind Direction {deg} !- Sky Clearness !- Rain Indicator !- Snow Indicator !- Day of Month !- Month !- Day Type !- Daylight Saving Time Indicator !- Humidity Indicating Type
! DENVER_STAPLETON Annual Cooling Design Conditions Wind Speed=4m/s Wind Dir=120 ! Hottest Month=July ! DENVER_STAPLETON_CO_USA Annual Cooling (DB=>MWB) 1%, MaxDB=32.6C MWB=15.5C SizingPeriod:DesignDay, DENVER_STAPLETON Ann Clg 32.6, 15.2, 15.5, 83411., 4, 120, 1.00, 0, 0, 21, 7, SummerDesignDay, 0, WetBulb; Material:NoMass, R13LAYER, Rough, 2.290965, 0.9000000, 0.7500000, 0.7500000; Material:NoMass, R31LAYER, Rough, 5.456, 0.9000000, 0.7500000, 0.7500000; Material, C5 - 4 IN HW CONCRETE,
1% !!!!!!!!!!!!!!-
Condns DB=>MWB, !- Name Maximum Dry-Bulb Temperature {C} Daily Temperature Range {deltaC} Humidity Indicating Conditions at Maximum Dry-Bulb Barometric Pressure {Pa} Wind Speed {m/s} Wind Direction {deg} Sky Clearness Rain Indicator Snow Indicator Day of Month Month Day Type Daylight Saving Time Indicator Humidity Indicating Type
!!!!!!-
Name Roughness Thermal Resistance {m2-K/W} Thermal Absorptance Solar Absorptance Visible Absorptance
!!!!!!-
Name Roughness Thermal Resistance {m2-K/W} Thermal Absorptance Solar Absorptance Visible Absorptance
!- Name
4/1/13
26
EnergyPlus Reports
Site:GroundTemperature:BuildingSurface, 18.89, !- January Ground Temperature {C} 18.92, !- February Ground Temperature {C} 19.02, !- March Ground Temperature {C} 19.12, !- April Ground Temperature {C} 19.21, !- May Ground Temperature {C} 19.23, !- June Ground Temperature {C} 19.07, !- July Ground Temperature {C} 19.32, !- August Ground Temperature {C} 19.09, !- September Ground Temperature {C} 19.21, !- October Ground Temperature {C} 19.13, !- November Ground Temperature {C} 18.96; !- December Ground Temperature {C} Zone, ZONE ONE, 0.0000000E+00, 0.0000000E+00, 0.0000000E+00, 0.0000000E+00, 1, 1, autocalculate, autocalculate; ScheduleTypeLimits, Fraction, 0.0 : 1.0, CONTINUOUS; GlobalGeometryRules, UpperLeftCorner, CounterClockWise, WorldCoordinateSystem;
!!!!!!!!!-
Name Direction of Relative North {deg} X Origin {m} Y Origin {m} Z Origin {m} Type Multiplier Ceiling Height {m} Volume {m3}
BuildingSurface:Detailed, Zn001:Wall001, !- Name Wall, !- Surface Type R13WALL, !- Construction Name ZONE ONE, !- Zone Name Outdoors, !- Outside Boundary Condition , !- Outside Boundary Condition Object SunExposed, !- Sun Exposure WindExposed, !- Wind Exposure 0.5000000, !- View Factor to Ground 4, !- Number of Vertices 0.0000000E+00,0.0000000E+00,4.572000, !- X,Y,Z ==> Vertex 1 0.0000000E+00,0.0000000E+00,0.0000000E+00, !- X,Y,Z ==> Vertex 2 15.24000,0.0000000E+00,0.0000000E+00, !- X,Y,Z ==> Vertex 3 15.24000,0.0000000E+00,4.572000; !- X,Y,Z ==> Vertex 4
4/1/13
27
EnergyPlus Reports
BuildingSurface:Detailed, Zn001:Wall002, !- Name Wall, !- Surface Type R13WALL, !- Construction Name ZONE ONE, !- Zone Name Outdoors, !- Outside Boundary Condition , !- Outside Boundary Condition Object SunExposed, !- Sun Exposure WindExposed, !- Wind Exposure 0.5000000, !- View Factor to Ground 4, !- Number of Vertices 15.24000,0.0000000E+00,4.572000, !- X,Y,Z ==> Vertex 1 15.24000,0.0000000E+00,0.0000000E+00, !- X,Y,Z ==> Vertex 2 15.24000,15.24000,0.0000000E+00, !- X,Y,Z ==> Vertex 3 15.24000,15.24000,4.572000; !- X,Y,Z ==> Vertex 4 BuildingSurface:Detailed, Zn001:Wall003, !- Name Wall, !- Surface Type R13WALL, !- Construction Name ZONE ONE, !- Zone Name Outdoors, !- Outside Boundary Condition , !- Outside Boundary Condition Object SunExposed, !- Sun Exposure WindExposed, !- Wind Exposure 0.5000000, !- View Factor to Ground 4, !- Number of Vertices 15.24000,15.24000,4.572000, !- X,Y,Z ==> Vertex 1 15.24000,15.24000,0.0000000E+00, !- X,Y,Z ==> Vertex 2 0.0000000E+00,15.24000,0.0000000E+00, !- X,Y,Z ==> Vertex 3 0.0000000E+00,15.24000,4.572000; !- X,Y,Z ==> Vertex 4 BuildingSurface:Detailed, Zn001:Wall004, !- Name Wall, !- Surface Type R13WALL, !- Construction Name ZONE ONE, !- Zone Name Outdoors, !- Outside Boundary Condition , !- Outside Boundary Condition Object SunExposed, !- Sun Exposure WindExposed, !- Wind Exposure 0.5000000, !- View Factor to Ground 4, !- Number of Vertices 0.0000000E+00,15.24000,4.572000, !- X,Y,Z ==> Vertex 1 0.0000000E+00,15.24000,0.0000000E+00, !- X,Y,Z ==> Vertex 2 0.0000000E+00,0.0000000E+00,0.0000000E+00, !- X,Y,Z ==> Vertex 3 0.0000000E+00,0.0000000E+00,4.572000; !- X,Y,Z ==> Vertex 4 BuildingSurface:Detailed, Zn001:Flr001, Floor, FLOOR, ZONE ONE, Surface, Zn001:Flr001, NoSun, NoWind, 1.000000, 4, 15.24000,0.000000,0.0, 0.000000,0.000000,0.0, 0.000000,15.24000,0.0, 15.24000,15.24000,0.0; BuildingSurface:Detailed, Zn001:Roof001, Roof, ROOF31, ZONE ONE, Outdoors,
!- Name !- Surface Type !- Construction Name !- Zone Name !- Outside Boundary Condition !- Outside Boundary Condition Object !- Sun Exposure !- Wind Exposure !- View Factor to Ground !- Number of Vertices !- X,Y,Z ==> Vertex 1 !- X,Y,Z ==> Vertex 2 !- X,Y,Z ==> Vertex 3 !- X,Y,Z ==> Vertex 4
!!!!!-
Name Surface Type Construction Name Zone Name Outside Boundary Condition
4/1/13
28
EnergyPlus Reports
Output:Variable, *, !- Key Value Daylight Saving Time Indicator, !- Variable Name daily; !- Reporting Frequency Output:Variable, *, DayType Index, daily;
Output:Variable, *, !- Key Value Zone Mean Air Temperature, !- Variable Name hourly; !- Reporting Frequency Output:Variable, *, !- Key Value Zone Total Internal Latent Gain, !- Variable Name hourly; !- Reporting Frequency Output:Variable, *, !- Key Value Zone Mean Radiant Temperature, !- Variable Name hourly; !- Reporting Frequency Output:Variable, *, !- Key Value Zone Air Balance Surface Convection Rate, !- Variable Name hourly; !- Reporting Frequency Output:Variable, *, !- Key Value Zone Air Balance Air Energy Storage Rate, !- Variable Name hourly; !- Reporting Frequency Output:Variable, *, !- Key Value Surface Inside Temperature, !- Variable Name daily; !- Reporting Frequency Output:Variable, *, !- Key Value Surface Outside Temperature, !- Variable Name daily; !- Reporting Frequency Output:Variable, *, !- Key Value Surface Int Convection Coeff, !- Variable Name daily; !- Reporting Frequency Output:Variable, *, !- Key Value Surface Ext Convection Coeff, !- Variable Name daily; !- Reporting Frequency Output:Reports,
4/1/13
29
EnergyPlus Reports
!- Type of Report
Output:Meter:MeterFileOnly, ExteriorLights:Electricity, !- Name hourly; !- Reporting Frequency Output:Meter:MeterFileOnly, Carbon Equivalent:Facility, !- Name hourly; !- Reporting Frequency Output:Meter:MeterFileOnly, EnergyTransfer:Building, !- Name hourly; !- Reporting Frequency Output:Meter:MeterFileOnly, EnergyTransfer:Facility, !- Name hourly; !- Reporting Frequency OutputControl:Table:Style, HTML; !- Column Separator Output:Table:SummaryReports, AllSummary; !- Report 1 Name Exterior:Lights, ExtLights, AlwaysOn, 5250, AstronomicalClock, Grounds Lights; ScheduleTypeLimits, On/Off, 0:1, DISCRETE; Schedule:Day:Hourly, On, On/Off, 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.;
!!!!!-
Name Schedule Name Design Level {W} Control Option End-Use Subcategory
!!!!!!!!!!!!!!!!!!!!!!!!!!-
Name Schedule Type Limits Name Hour 1 Hour 2 Hour 3 Hour 4 Hour 5 Hour 6 Hour 7 Hour 8 Hour 9 Hour 10 Hour 11 Hour 12 Hour 13 Hour 14 Hour 15 Hour 16 Hour 17 Hour 18 Hour 19 Hour 20 Hour 21 Hour 22 Hour 23 Hour 24
4/1/13
30
EnergyPlus Reports
Schedule:Week:Daily, On Weeks, On, On, On, On, On, On, On, On, On, On, On, On; Schedule:Year, AlwaysOn, On/Off, On Weeks, 1, 1, 12, 31;
!!!!!!!!!!!!!-
Name Sunday Schedule:Day Name Monday Schedule:Day Name Tuesday Schedule:Day Name Wednesday Schedule:Day Name Thursday Schedule:Day Name Friday Schedule:Day Name Saturday Schedule:Day Name Holiday Schedule:Day Name SummerDesignDay Schedule:Day Name WinterDesignDay Schedule:Day Name CustomDay1 Schedule:Day Name CustomDay2 Schedule:Day Name
!!!!!!!-
Name Schedule Type Limits Name Schedule:Week Name 1 Start Month 1 Start Day 1 End Month 1 End Day 1
4/1/13
31