NREL's Building Component Library is a growing database of measures that make modeling building energy efficiency with OpenStudio much easier. In 2014, the measures are only coded in Ruby. Documentation and code logic below shows how to call OpenStudio Ruby Measures from Node.js. This will make it possible to use the measures as off-the-shelf code and build your fully JavaScript web application around it.
For this project, we focused on 3 measures:
- Reduce Lighting Loads by Percentage, (code)
- Set Window to Wall Ratio by Facade, (code)
- Add Output Variable, (code)
The main logic for adding energy efficiency measures with OpenStudio API Node.js bindings is here:
From this current 'jason' directory, in command line, run:
node openstudio-run.js
This will simulate the model default described in buildingData.json.
Before:
- WITHOUT Measures = 98.34 kBTU/ft2
After:
- WITH Measures = 93.67 kBTU/ft2