santoshphilip / eppy

scripting language for E+, Energyplus
MIT License
157 stars 67 forks source link

Adding a psychrometric chart on eppy #161

Open wta12 opened 7 years ago

wta12 commented 7 years ago

I tried to create psychrometric chart by bokeh or matplotlib with CoolProp Module example. While psychrometric module/libs are pretty popular, the psychrometric chart on python is not such easy to find. I have done some templates base on matplotlib and bokeh (better interactive capabilities). Would like to know if could have a method to call directly from eppy object (run result) to get exported chart based on template. First is basic, second would be good for bin check but need to use shapely lib basic_psy rh_e_psy

santoshphilip commented 7 years ago

@wta12 Sorry for the slow response. Simbuild 2017 was taking all my time. Here is my understanding

I am really interested in the code that makes the psychrometric chart. Where did you find it. What was the license. I have been looking for such code for a long time.

I would be happy include such a function in eppy (in the useful scripts folder). Can you take a stab at writing it. Actually best if you could mock up a documentation (even before writing it) for it describing how it works and how it can be used.

I am good at crafting good API, and can help to stub out the code that would fit into eppy.

Climate Consultant has a great use case for psychrometrics from the weather data. In eppy we can do the psychrometrics for interior conditions of zones

wta12 commented 7 years ago

Hi Santoshphilip,

  1. i used example from CoolProp library link. However, it was broken at the time i checked so i decided to do it my selves. The key components are psychrometric functions (i use CoolProp lib but any equivalent lib is ok) and a visualization library (matplotlib or bokeh etc...). As far as i know, CoolProp is open-source but you can check at its site.
  2. The basic one is pretty easy to get if you have anaconda (even mini) installed while nearly all required libs are included. With fixed values, i dont see any difficult to get sub zones likes climate consultant if you can point out all boundary points. The second one is more complex with shapely library (for bin zoning) and bokeh chart but it could be developed to be more powerful than berkley comfort chart. I would interest if anyone can show me some useful psychart chart templates with explanation.
  3. i can send you my prototype which could generate 2 psychrometrics i showed above. How i can upload to eppy github or send directly to you ? The second one is pretty cryptic and has RH vs enthalpy bins - it's the hardest one. i can create zoned bins of any 2 from 5 values (RH, dry bulb, wetbulb, dewpoint and enthalpy) in similar ways. Need convert my code to modules and functions then adding interactive features.