comstock
National scale modeling of the U.S. commercial building stock supported by U.S. DOE, LADWP, and others and maintained by NREL
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 24 committers (4.2%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.9%) to scientific vocabulary
Repository
National scale modeling of the U.S. commercial building stock supported by U.S. DOE, LADWP, and others and maintained by NREL
Basic Info
- Host: GitHub
- Owner: NREL
- License: other
- Language: Ruby
- Default Branch: main
- Size: 425 MB
Statistics
- Stars: 42
- Watchers: 16
- Forks: 27
- Open Issues: 63
- Releases: 6
Metadata Files
README.md
ComStock
ComStock is an NREL model of the U.S. commercial building stock. The model takes some building characteristics from the U.S. Department of Energy's (DOE's) Commercial Prototype Building Models and Commercial Reference Building. However, unlike many other building stock models, ComStock also combines these with a variety of additional public- and private-sector data sets. Collectively, this information provides high-fidelity building stock representation with a realistic diversity of building characteristics.
This repository contains the source code used to build and execute ComStock models, including upgrade scenarios. In addition, the sampling of buildings characteristics used for the initial ComStock (V1.0) release is provided. The ComStock model is under active calibration and development, which is publicly visible on this repository.
Execution of the ComStock workflow is managed through the buildstockbatch repository, a shared asset of ResStock and ComStock, specifically developed to scale to execution of tens of millions of simulations through multiple infrastructure providers.
The dataset output from the initial ComStock (V1.0) release can be found at the accompanying ComStock data viewer website and additional information about ComStock found on the NREL Buildings Website. For more details about ongoing model development please consult the End Use Load Profiles website.
ComStock is a direct result of the NREL residential stock modeling tool ResStock (recipient of a R&D100 award) and was inspired by the high-fidelity solar & storage adoption model dGen. Additionally, this tool would not be possible without the decades of work undertaken by the OpenStudio and EnergyPlus visionaries and contributors, significant funding, feedback and support from the Los Angeles Department of Water and Power, and the Department of Energy's Building Technology Office ongoing support of and investment in building energy modeling software.
Directories
/buildcontains instructions for building Apptainer images for running ComStock on HPC systems./documentationcontains LaTeX documentation and instructions for building the documentation./measurescontains the high-level "meta" measures used to call other measures, and the reporting measures used to summarize outputs./nationalcontains seed directories necessary for a ComStock run using buildstockbatch./postprocessingcontains postprocessing scripts to create graphics for viewing results and comparing to other data sources./resourcescontains workflow and upgrade measures/samplescontains sample buildstock.csv files, which describe the set of models included in a run./samplingcontains instructions and code to generate buildstock.csv files./ymlscontains sample .yml files, which are the configuration files used to execture a ComStock run with buildstockbatch.
Usage
ComStock is under an open source license. See LICENSE.txt in this directory. You are welcome to use this repository for your own use. However, we do not provide technical support. Please refer to our technical assistance documentation instead. We strongly suggest and support using the public datasets instead of attempting to run millions of building energy models yourself.
Developer Installation
This is needed if you are a developer making changes to openstudio-standards or openstudio-geb gems or are running simulations locally using BuildStock Batch.
- Install the latest version of OpenStudio. ComStock requires OpenStudio 3.8.0 or newer.
Install the Ruby version that corresponds to your OpenStudio install. See the OpenStudio SDK Version Compatibility Matrix.
- On Mac:
- Install Ruby 3.2.2 using rbenv (
ruby -vfrom command prompt to check installed version). - On Windows:
- Install Ruby+Devkit 3.2.2 (
ruby -vfrom command prompt to check installed version).
Connect Ruby to OpenStudio:
- On Mac:
- Create a file called
openstudio.rb - Contents:
require "/Applications/openstudio-3.8.0/Ruby/openstudio.rb"Modify3.8.0to 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:/openstudio-3.8.0/Ruby/openstudio.rb"Modify3.8.0to the version you installed. - Save it here:
C:/Ruby32-x64/lib/ruby/site_ruby/openstudio.rb
gem install bundlerThis installs thebundlerruby gem.Install Git.
Install GitHub desktop or another GUI that makes Git easier to use.
Clone the ComStock source code using GitHub desktop (easier) or Git (harder).
Run all commands below from the top level
/ComStockdirectorymkdir .custom_gemsThis makes a temp directory to install required gems inside.copy /Y .\resources\Gemfile .\.custom_gems\GemfileThis copies the Gemfile to the temp directory.gem install bundler:2.4.10This installs the version of bundler needed by OpenStudio.bundle _2.4.10_ install --path "C:/GitRepos/ComStock/.custom_gems" --gemfile "C:/GitRepos/ComStock/.custom_gems/Gemfile" --without testThis will install all ruby gems necessary to develop this code.If running simulations locally, install BuildStock Batch
Add the following additional Python packages into your
buildstockbatchenvironment:bash conda activate buildstockbatch pip install GHEDesigner==1.0 pip install NREL-PySAM==4.2.0
Measure Tests
- Follow the developer installation instructions above. In particular,
GHEDesigner==1.0must be installed withpip install GHEDesigner==1.0. - Run the measure tests with the rake command:
bundle exec rake unit_tests:all_teststo run all measure tests.bundle exec rake unit_tests:reporting_measure_teststo run all reporting measure tests.bundle exec rake unit_tests:workflow_measure_teststo run all workflow measure tests.bundle exec rake unit_tests:upgrade_measure_teststo run allupgrade_measure tests.
Running Rubocop
- Follow the developer installation instructions above
- navigate to the
.custom_gemsdirectory - run
bundle exec rake rubocop:showin terminal - review results by opening the
rubocop-results.htmlin the.rubocop/directory - rubcop can automatically fix errors by running
rubocop --autocorrect. This will fix some, but not all errors, so you still need to check and make manual fixes.
Owner
- Name: National Renewable Energy Laboratory
- Login: NREL
- Kind: organization
- Location: Golden, CO
- Website: http://www.nrel.gov
- Repositories: 599
- Profile: https://github.com/NREL
GitHub Events
Total
- Fork event: 18
- Create event: 137
- Commit comment event: 2
- Release event: 2
- Issues event: 59
- Watch event: 13
- Delete event: 106
- Member event: 3
- Issue comment event: 86
- Push event: 946
- Pull request review comment event: 154
- Pull request review event: 234
- Pull request event: 215
Last Year
- Fork event: 18
- Create event: 137
- Commit comment event: 2
- Release event: 2
- Issues event: 59
- Watch event: 13
- Delete event: 106
- Member event: 3
- Issue comment event: 86
- Push event: 946
- Pull request review comment event: 154
- Pull request review event: 234
- Pull request event: 215
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| JanghyunJK | j****m@n****v | 265 |
| Praprost | m****s@n****v | 185 |
| Matthew Dahlhausen | m****n@g****m | 174 |
| Landan Taylor | l****r@n****v | 104 |
| Eric Ringold | e****d@g****m | 96 |
| Andrew Parker | a****2@g****m | 86 |
| Wenyi Kuang | w****g@n****v | 80 |
| Xiong | j****g@n****v | 74 |
| JieXiong9119 | 6****9@u****m | 68 |
| Ry Horsey | h****y@g****m | 54 |
| Chris CaraDonna | 5****a@u****m | 40 |
| Andrew Parker | A****r@n****v | 38 |
| CaraDonna | c****n@n****v | 37 |
| christophercaradonna | c****a@n****v | 35 |
| Allen | a****n@n****v | 15 |
| David Goldwasser | d****r@n****v | 13 |
| Amy Van Sant | 4****r@u****m | 13 |
| Alex Swindler | A****r@n****v | 6 |
| wenyikuang | 1****g@u****m | 5 |
| asparke2 | a****r@n****v | 4 |
| carlobianchi89 | c****i@u****u | 4 |
| Marley Praprost | 4****t@u****m | 3 |
| Landan Taylor | 1****T@u****m | 2 |
| Lauren Klun | 6****n@u****m | 2 |
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 119
- Total pull requests: 444
- Average time to close issues: 8 months
- Average time to close pull requests: 19 days
- Total issue authors: 19
- Total pull request authors: 15
- Average comments per issue: 0.34
- Average comments per pull request: 0.47
- Merged pull requests: 308
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 47
- Pull requests: 238
- Average time to close issues: about 2 months
- Average time to close pull requests: 15 days
- Issue authors: 13
- Pull request authors: 14
- Average comments per issue: 0.26
- Average comments per pull request: 0.45
- Merged pull requests: 152
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- mdahlhausen (39)
- asparke2 (19)
- eringold (17)
- mpraprost (7)
- wenyikuang (7)
- ChristopherCaradonna (5)
- mcpigman (4)
- JanghyunJK (4)
- JieXiong9119 (3)
- laurenklun (2)
- amylebar (2)
- natbprice (2)
- DavidGoldwasser (2)
- invisibleroads (1)
- amyeallen1 (1)
Pull Request Authors
- JanghyunJK (71)
- ChristopherCaradonna (68)
- mpraprost (59)
- mdahlhausen (49)
- wenyikuang (35)
- eringold (32)
- JieXiong9119 (30)
- LandanT (28)
- asparke2 (21)
- rHorsey (17)
- amyeallen1 (16)
- amylebar (12)
- laurenklun (3)
- ekpresent (2)
- kflemin (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
- Total downloads: unknown
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 0
(may contain duplicates) - Total versions: 2
proxy.golang.org: github.com/NREL/ComStock
- Documentation: https://pkg.go.dev/github.com/NREL/ComStock#section-documentation
- License: other
-
Latest release: v1.0.0
published over 5 years ago
Rankings
proxy.golang.org: github.com/nrel/comstock
- Documentation: https://pkg.go.dev/github.com/nrel/comstock#section-documentation
- License: other
-
Latest release: v1.0.0
published over 5 years ago
Rankings
Dependencies
- boto3 *
- requests *