alfalfa
alfalfa copied to clipboard
Review notebook for loading res/comstock models
@tanushree04 can you link here please?
Currently in the alfalfa-notebook repository (WIP) : https://github.com/NREL/alfalfa-notebooks/blob/enduseloads/enduseprofiles.ipynb
Tasks from 12/18 meeting:
- Factor library functions from the example workbook and commit to NREL/Alfalfa repo. Suggest
<project_root>/workflow
- Create a Python based example workflow with test assertions to confirm all of the key points in the workflow.
- Develop the following steps, factoring out library functions as needed.:
- Define input in the form of two lists of building IDs, corresponding to ComStock and ResStock buildings.
- Group building ID lists of increasing size. (2 buildings, 5 buildings, 50 buildings, 100 buildings)
- Define functions for...
- Download weather data
- Download building model
- Create a user defined OpenStudio Workflow that will be applied to every building ID.
- Define a workflow Measure directory, where specific OpenStudio Measures can be added to every stock model.
- Create a user defined Measure(s) that will add at least one sensor and one coresponding actuator.
- Create a function to run the OpenStudio Workflow on every building ID.
- Identify an Alfalfa resource that can run every building ID in parallel. (maybe the example workflow should receive an Alfalfa URL as an input or env var)
- Assume the Alfalfa resource has capacity for the nunber of building IDs, or assume that it has the ability to autoscale to achieve capacity. @tijcolem
- Run local simulation of all buildings and confirm a) simulation does not have fatal error b) any Measure tests pass (Measure tests should not depend on Alfalfa)
- Upload completed buildings to Alfalfa and confirm success
- Define Alfalfa simulation parameters. Start Alfalfa runs. confirm "running" status
- Advance in loop for 24 hours.
- Read sensor (from example Measure) and confirm that Alfalfa returns the expected value for every building.
- Actuate corresponding actuator and confirm success.
- Read sensor again and confirm actuator worked.
- Stop Alfalfa runs for each building.
Created branch and initial commit to download models from end use load profiles URL : https://github.com/NREL/alfalfa/tree/buildstock/workflow/lib
@tijcolem when you're ready can you link us to your documentation for the list of input and output control points that you are expecting for each of these models?
@kbenne are we ready to close this?