Coder Social home page Coder Social logo

openstudio_to_energyplusapi's Introduction

Python: using OpenStudio Bindings, EnergyPlus API, and matplotlib

Written By Julien Marrec of EffiBEM, circa 2021-01-05.

Purpose

This notebook aims to demonstrate the use of:

  • The OpenStudio Python Bindings.

    • This is used to efficiently create and customize a model to be simulated

    • Note: Until a version > 3.1.0 (eg 3.1.1 or 3.2.0) is out on pypi, I recommend using the testpypi version where I made usability adjustments. You can do pip install -i https://test.pypi.org/simple/ openstudio for that one.

  • The EnergyPlus Python API, and how to use callbacks to retrieve data

  • Updating a live matplotlib plot during E+ simulation via the EnergyPlus Python API callback.

Several options and examples are shown below. I strongly recommend you encapsulate your data inside a class (see section 3.4) instead of relying on python global data, but it does bring a sligthly higher complexity level so for simple stuff you can ommit that and use 3.1 to 3.3 instead (which are also used as an entry point to demonstrate the API)


Resources:

Demo

openstudio_to_energyplusapi's People

Contributors

jmarrec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

openstudio_to_energyplusapi's Issues

Plots not displaying output for EnergyPlus API

Hi,

I don't know what the cause of this issue is, but I have followed instructions on running the notebook. I have tried JupyterLab and Jupyter Notebook, which both result in empty graphs being returned, is there something i'm missing?

I am currently running:

OpenStudio Version 3.2.1
EnergyPlus 9.4.0
IPython version 7.22.0

Running on MACOS Big Sur

image

this is currently the output of the cells, I believe the date/time format is not being interpreted correctly. Do you have any ideas of what may be causing this? I'm not the most experiences with programming so I may just be missing something small.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.