OCHRE: The Object-oriented Controllable High-resolution Residential Energy Model
OCHRE™ is a Python-based energy modeling tool designed to model end-use loads and distributed energy resources in residential buildings. It can model flexible devices---including HVAC equipment, water heaters, electric vehicles, solar PV, and batteries---and the thermal and electrical interactions between them. OCHRE has been used to generate diverse and high-resolution load profiles, examine the impacts of advanced control strategies on energy costs and occupant comfort, and assess grid reliability and resilience through building-to-grid co-simulation.
More information about OCHRE can be found in our documentation, on NREL's website, and from the Powered By OCHRE webinar recording.
If you use OCHRE for your research or other projects, please fill out our user survey.
Installation
OCHRE can be installed using pip from the command line:
pip install ochre-nrel
Alternatively, you can install a specific branch, for example:
pip install git+https://github.com/NREL/OCHRE@dev
Note that OCHRE requires Python version >=3.9 and <3.13.
Usage
OCHRE can be used to simulate a residential dwelling or an individual piece of equipment. In either case, a python object is instantiated and then simulated. A set of input parameters and/or input files must be defined.
Below is a simple example of simulating a dwelling:
import os
import datetime as dt
from ochre import Dwelling
from ochre.utils import default_input_path # for using sample files
dwelling = Dwelling(
start_time=dt.datetime(2018, 1, 1, 0, 0),
time_res=dt.timedelta(minutes=10),
duration=dt.timedelta(days=3),
hpxml_file=os.path.join(default_input_path, "Input Files", "bldg0112631-up11.xml"),
hpxml_schedule_file=os.path.join(default_input_path, "Input Files", "bldg0112631_schedule.csv"),
weather_file=os.path.join(default_input_path, "Weather", "USA_CO_Denver.Intl.AP.725650_TMY3.epw"),
)
df, metrics, hourly = dwelling.simulate()
This will return 3 variables:
df: a Pandas DataFrame with 10 minute resolutionmetrics: a dictionary of energy metricshourly: a Pandas DataFrame with 1 hour resolution (verbosity >= 3 only)
For more examples, see:
- The OCHRE User Tutorial Jupyter notebook
- Python example scripts to:
- Run a single dwelling
- Run a single piece of equipment
- Run a fleet of equipment
- Run multiple dwellings
- Run a OCHRE with an external controller
- Run a OCHRE in co-simulation using HELICS
Metadata
Release files for ochre-nrel 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ochre_nrel-0.9.2.tar.gz | 45.7 MB | Without provenance | Details for ochre_nrel-0.9.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ochre_nrel-0.9.2-py3-none-any.whl | Python 3 | none | any | Details for ochre_nrel-0.9.2-py3-none-any.whl |
Total release size: 90.5 MB
Release files / ochre_nrel-0.9.2.tar.gz
| Download URL | ochre_nrel-0.9.2.tar.gz |
|---|---|
| Size | 45.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11e2b4b8bfbb36d43f16555770b4e5c8875c27a94d0907e8362c72b5568a56c5
|
|
BLAKE2b-256 checksum How to use checksums |
58606f7fcaab8d858ee2339577d40df40dc086fc735076dd9d4dba60f18dccab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Release files / ochre_nrel-0.9.2-py3-none-any.whl
| Download URL | ochre_nrel-0.9.2-py3-none-any.whl |
|---|---|
| Size | 44.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2c36aadfb3808535fd8ad230af3bb91d24a3098e072636172c02eb3b261f5db
|
|
BLAKE2b-256 checksum How to use checksums |
ff52372fd10adb2b29bf2830e1b385a693b1d0b7e14c84f27ed49b4bf50cd421
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Security for ochre-nrel 0.9.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.