This repository contains the code and input files used to simulate a price-responsive control strategy for Heat Pump Water Heaters (HPWHs) using the OCHRE simulation framework.
To begin, install the OCHRE platform by following the steps in the official user tutorial:
OCHRE User Tutorial (Google Colab)
Note: It is highly recommended to install OCHRE locally (e.g., in Visual Studio Code) rather than running it in Colab. All simulations in this repository were performed using a local setup.
The repository includes input files required to run the simulations:
.xml: Defines the building and equipment properties..csv: Contains the water usage schedule..epw: Includes weather data in EnergyPlus Weather format.
Make sure to place these files in the correct directories as specified in each script.
hpwh_model.py: HPWH model script that has to be placed in the same directory as therun_dwelling.pyscript placed in the default path of OCHRE
The controller includes both single-day and multi-day simulation options:
sd_price_based_control.py: A basic script that runs a simulation using one water draw profile.
md_price_based_control.py: Simulates using a single water draw profile across multiple days.md_large_scale_simulations.py: Simulates using eight diverse water draw profiles for a broader evaluation.
Once a simulation is complete:
- Move the output results to your preferred analysis environment.
- Run the appropriate result analysis script (provided in this repo) to assess:
- Energy savings
- Cost reduction
- Load shifting performance
- Statistical significance
For more information about OCHRE, visit the following links: