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

How to sum the zone output:variable in energyPlus

asked 2017-03-10 14:53:48 -0600

dalin_si's avatar

updated 2017-03-12 11:52:44 -0600

I have a CHP case, and I want to track the electric consumption excluded each apartment, so in Meter:CustomDecrement I exclude each apartment zone electric meter (such as:Electricity:Zone:1-LOFT ZN). however, I notice that these kind of electric meter don't include its HVAC (PTPH in each apartment). From rdd and mdd file, I only can find Zone Package Terminal Heat Pump Electric Energy, but it is a variable which have each zone PTHP result, rather than sum.

So I just wonder is there have any method to get the electric energy of all PTHP in output:variable or output:meter. So I can exclude it from total electric consumption (Electricity:Facility)

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
5

answered 2017-03-13 12:37:06 -0600

updated 2017-03-13 12:40:04 -0600

You can use the Meter:Custom object in EnergyPlus to create a meter for all PTHP units.

Meter:Custom,
  PTHPEnergy,
  Electricity,
  Zone1_PTHP,
  Zone Packaged Terminal Heat Pump Electric Energy,
  Zone2_PTHP,
  Zone Packaged Terminal Heat Pump Electric Energy;

I've created an OpenStudio measure where you can define a Meter:Custom object in a .csv file and it will add it for you, described in the answer to this Unmet hours question. For your application, the .csv would look something like this:

key_name,output_variable_or_meter_name
Zone1_PTHP,Zone Packaged Terminal Heat Pump Electric Energy
Zone2_PTHP,Zone Packaged Terminal Heat Pump Electric Energy

edit flag offensive delete link more

Comments

is that key_name for name of each PTHP?

dalin_si's avatar dalin_si  ( 2017-03-13 13:22:28 -0600 )edit

yes, it is keyed off the HVAC name, not the zone

mdahlhausen's avatar mdahlhausen  ( 2017-03-13 14:28:11 -0600 )edit
4

answered 2017-03-12 11:59:21 -0600

updated 2017-03-14 04:11:58 -0600

There's no easy way to get tenant HVAC in a single variable.

Loop on all apartments (hint: spaceType.spaces.each), find all PTHPs in the space and and add "Zone Packaged Terminal Heat Pump Electric Energy" for each PTHP into the customDecrement Meter (or create an Output:Meter via MeterCustom for that and include it into the CustomDecrement Meter).

Yes, it's going to potentially get really large. And yes, if you try to open it using the E+ IDF Editor, it's likely to crash and complain about too large number of fields, which can be fixed by editing the Energy+.idd and expand the number of extensible groups.

edit flag offensive delete link more

Comments

Thank you, but the only meter I can got is Zone Package Terminal Heat Pump Electric Energy, this one variable for all zones, how do I get each zone PTHP electric meter? is that means each key name for Zone Package Terminal Heat Pump Electric Energy should be a space name?

dalin_si's avatar dalin_si  ( 2017-03-13 09:17:28 -0600 )edit

Also, seems like I can't type a variable output in custom meter, otherwise, following warning would come up: * Warning * Meter:Custom="PTHP1", invalid Output Variable or Meter Name 1="ZONE PACKAGE TERMINAL HEAT PUMP ELECTRIC ENERGY". * ~~~ * ...will not be shown with the Meter results.

dalin_si's avatar dalin_si  ( 2017-03-13 09:51:24 -0600 )edit
1

it should be "Zone Packaged Terminal Heat Pump Electric Energy", not "Zone Package Terminal Heat Pump Electric Energy"

mdahlhausen's avatar mdahlhausen  ( 2017-03-13 12:40:51 -0600 )edit

Good point thx, I just copy pasted without checking.

Julien Marrec's avatar Julien Marrec  ( 2017-03-14 04:13:05 -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: 2017-03-10 14:53:48 -0600

Seen: 493 times

Last updated: Mar 14 '17