Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
3

Beopt, additional hourly output variables

asked 2019-01-23 13:48:02 -0600

graham-s-wright's avatar

updated 2019-01-23 14:17:04 -0600

Hello, back on the old forum we got some instructions for modifying the energyplus.py script so as to access additional output for hourly internal gains. We can't get this to work any more in version 2.8. Here is the old script fragment below. Should this still work? Should it go in someplace else now?

def _processReportHourly(self, sim):

    if not sim.simulation.GenerateHourlyOutput and not sim.simulation.CalculateUtilityBills:
        return
    # New lines here. -gw 4/2015
    self.addblock('Output:Variable')
    self.addline('*', 'Key Value')
    self.addline('Zone Total Internal Radiant Heating Rate', 'Variable Name')
    self.addline('Hourly', 'Reporting Frequency')
    self.addblock('Output:Variable')
    self.addline('*', 'Key Value')
    self.addline('Zone Total Internal Convective Heating Rate', 'Variable Name')
    self.addline('Hourly', 'Reporting Frequency')
    self.addblock('Output:Variable')
    self.addline('*', 'Key Value')
    self.addline('Zone Total Internal Latent Gain Rate', 'Variable Name')
    self.addline('Hourly', 'Reporting Frequency')
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-01-23 14:40:53 -0600

updated 2019-01-23 14:41:00 -0600

This approach will still work in BEopt 2.8, nothing has changed. Note that for this to work:

  1. You still need to check the "DView" box on the Run Simulations dialog.
  2. The hourly results will be available in, e.g., the TEMP1/1.csv file found after going to the menu Tools > Open Data Dir. The results will not show up in the DView program.

I just tested it myself in BEopt 2.8 and it produced the correct outputs.

edit flag offensive delete link more

Comments

Also, when you use your code snippet above in energyplus.py, make sure that the new lines you're adding are indented identically to the if not sim.simulation.GenerateHourlyOutput ... line. Correct indentation in python is important.

shorowit's avatar shorowit  ( 2019-01-23 14:44:03 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2019-01-23 13:48:02 -0600

Seen: 587 times

Last updated: Jan 23 '19