This project was developed for the Building Technologies Office at the U.S. Department of Energy. The goal was to create an analysis platform that enables the program to compare different technologies on an equal footing using identical assumptions about the building stock.
The approach was to use OpenStudio to run energy simulations of the DOE Commercial Prototype Building Models and DOE Commercial Reference Buildings with and without different technologies applied to estimate savings. Each technology is applied to the models through an OpenStudio Measure.
This analysis is designed to be updated as the building stock and technology changes. If you review the assumptions and find something that does not make sense, at a minimum, please report the issue on the issues page. If you have a proposed solution, you can install the code (instructions below), make modifications, and run the analysis yourself to review your changes.
The starting points for the analysis are the OpenStudio versions of the the DOE Commercial Prototype Building Models and DOE Commercial Reference Buildings. These are detailed energy models that represent buildings common in the U.S. building stock. Their respective sites link to extensive background information.
The design_docs
directory contains Word documents that describe each technology (Measure) and its assumptions at a high level. This should be sufficient to get a general understanding of the assumptions being made.
The measures
directory contains a series of subdirectories for each technology (Measure) in the analysis. The measure.rb
file contains the actual logic used to modify the energy model. Because each Measure is self-contained, it may be updated without an understanding of how the entire analysis infrastructure works.
-
Install the latest version of OpenStudio
-
On Windows, install {http://rubyinstaller.org/ Ruby 2.0} (
ruby -v
from command prompt to check installed version). -
On Mac Ruby 2.0 is already installed.
-
Connect Ruby to OpenStudio:
- On Mac:
- Create a file called
openstudio.rb
- Contents:
require "/Applications/OpenStudio\ 1.9.0/Ruby/openstudio.rb"
Modify1.9.0
to the version you installed. - Save it here:
/usr/lib/ruby/site_ruby/openstudio.rb
- On Windows:
- Create a file called
openstudio.rb
- Contents:
require "C:/Program Files/OpenStudio 1.9.3/Ruby/openstudio.rb"
Modify1.9.0
to the version you installed. - Save it here:
C:/MyRuby200/lib/ruby/site_ruby/openstudio.rb
-
Install the
bundler
ruby gem. (gem install bundler
from command prompt) -
Install Git, a tool used to download source .
-
Clone or download the OpenStudio Standards Project source code.
-
Clone or download the OpenStudio PTool Project source code.
-
The source code should be placed in the same parent folder (folder names matter)
- C:/Somewhere/OpenStudio-PTool
- C:/Somewhere/openstudio-standards
- On Windows, use the Git Bash instead of the default command prompt.
- On Mac the default terminal is fine.
- In Git Bash/terminal, navigate to the
/OpenStudio-PTool
directory. - In Git Bash/terminal:
bundle install
. - This analysis is run on the cloud. Create an Amazon AWS account. This requires a credit card.
- From your Amazon AWS account, create an access key and secret key and copy/paste to a text file somewhere on your computer. Do not lose these keys because you only get these keys once!
- The first time you run an analysis, you will need to enter these keys into the
C:/Users/username/aws_config.yml
file.
In the Git Bash/terminal:
- Navigate to the
/OpenStudio-PTool
directory. rake run
- Type the number of the analysis you want to run, ENTER
- If this is your first run, enter your AWS keys into
C:/Users/username/aws_config.yml
- After the analysis starts, you will get a URL. Go to this URL in a web browser.
- Open your Amazon AWS Console
- Make sure you are in the N. Virginia region (dropdown in upper right corner).
- Click Instances in the left column. This will show you all the servers and workers that are running.
- To get the URL of the server, click on the server and the URL shows up toward the bottom. You can copy/paste this into a browser. This is the same URL that showed up in the terminal.
- Important: after you finish running the analysis and downloading the results, make sure you go to your Amazon AWS Console and Terminate any running instances. Amazon charges by the hour, and you will be charged until you shut them down. NREL and DOE are not responsible for any charges you may incur. To terminate instances, click Instances, check them, right click > instance state > terminate (ok).
- In your web browser, click on the name of your analysis
- You will see a list of the simulations being run. Refresh the page occasionally to check the status.
- You can click on an individual simulation to see more details about the run, including which Measures were applied (1 = measure was applied).
- After all simulations complete, click on the
CSV
files in theDownloads
section at the top right of the page. - Use your data processing tool of choice to parse the results. The
data_processing
folder contains some examples that may be useful. Typically, savings are calculated by finding a run with a particular building type/climate zone/vintage combination, then comparing that to the same combination with one Measure applied. - Important: after you finish running the analysis and downloading the results, make sure you go to your Amazon AWS Console and Terminate any running instances. Amazon charges by the hour, and you will be charged until you shut them down. NREL and DOE are not responsible for any charges you may incur. To terminate instances, click Instances, check them, right click > instance state > terminate (ok).
Running large-scale energy modeling analyses can be difficult because of the overhead required to set up and maintain the insfrastructure. However, the OpenStudio Analysis Spreadsheet, which the PTool project is based on, makes this process much easier. If you want to modify this project for your own analysis, we suggest the following approach.
- Read the README for the OpenStudio Analysis Spreadsheet to get a general overview of the possibilities.
- Read the documentation on how the spreadsheet is structured.
- Fork the OpenStudio-PTool Repository.
- Modify the Measures in the
measures
directory. - Run your own large-scale analysis!
If you just created your Amazon Web Service account and try to run the analysis, you may notice an error regarding verification of the account (see below).
Aws::EC2::Errors::PendingVerification: Your account is currently being verified.
Verification normally takes less than 2 hours. Until your account is verified,
you may not be able to launch additional instances or create additional volumes.
If you are still receiving this message after more than 2 hours, please let us
know by writing to aws-verification@amazon.com. We appreciate your patience.
If this happens, wait a couple hours and try again. You can also contact Amazon to check if they have verified your account.
When you first create an Amazon AWS Account, Amazon temporarily limits the number of instance you can enable. This is automatically increased to these normal limits after some amount of time (a day or two?). You can view your current limits (OS only uses the N. Virginia region) by following these instructions. Contact Amazon if the limit doesn't increase after a few days.