3

Beopt, additional hourly output variables

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')
graham-s-wright's avatar
31
graham-s-wright
asked 2019-01-23 13:48:02 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2019-01-23 14:17:04 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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.

shorowit's avatar
11.8k
shorowit
answered 2019-01-23 14:40:53 -0500, updated 2019-01-23 14:41:00 -0500
edit flag offensive 0 remove flag delete link

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 -0500) edit
add a comment see more comments