Skip to main content

An energy modeling tool designed to model residential end-use loads and DERs

Project description

OCHRE

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
house = Dwelling(
    simulation_name, 
    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 resolution
  • metrics: a dictionary of energy metrics
  • hourly: a Pandas DataFrame with 1 hour resolution (verbosity >= 3 only)

For more examples, see:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ochre_nrel-0.9.1.tar.gz (45.7 MB view details)

Uploaded Source

Built Distribution

ochre_nrel-0.9.1-py3-none-any.whl (44.8 MB view details)

Uploaded Python 3

File details

Details for the file ochre_nrel-0.9.1.tar.gz.

File metadata

  • Download URL: ochre_nrel-0.9.1.tar.gz
  • Upload date:
  • Size: 45.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.4

File hashes

Hashes for ochre_nrel-0.9.1.tar.gz
Algorithm Hash digest
SHA256 71423fd7564fd3912837fdc0538b8b1343d53906e5cbe89b567eb0c8c96f7c27
MD5 5ac0e3de563eaac9c056e293991085cf
BLAKE2b-256 6c8260f8842058e4a3b1de7cb43a2f9608cd4197bc58ec0345651ca639efb56c

See more details on using hashes here.

File details

Details for the file ochre_nrel-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: ochre_nrel-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 44.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.4

File hashes

Hashes for ochre_nrel-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c274abcbe4bb88b6ce814a6ead2eec5502f9cd65ee123b252357fc98189ef36c
MD5 2c763d520bbec401bbc89384b6d2cd81
BLAKE2b-256 6ef9882220c195e88e9d94c2cd7666bdae5d0cc857022ad6181dba3a81cde95d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page