First time here? Check our help page!
1

How to sum the zone output:variable in energyPlus

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)

dalin_si's avatar
496
dalin_si
asked 2017-03-10 14:53:48 -0500
Julien Marrec's avatar
29.7k
Julien Marrec
updated 2017-03-12 11:52:44 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

5

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

mdahlhausen's avatar
9.5k
mdahlhausen
answered 2017-03-13 12:37:06 -0500, updated 2017-03-13 12:40:04 -0500
edit flag offensive 0 remove flag delete link

Comments

is that key_name for name of each PTHP?

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

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

mdahlhausen's avatar mdahlhausen (2017-03-13 14:28:11 -0500) edit
add a comment see more comments
4

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.

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2017-03-12 11:59:21 -0500, updated 2017-03-14 04:11:58 -0500
edit flag offensive 0 remove flag delete link

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 -0500) 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 -0500) 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 -0500) edit

Good point thx, I just copy pasted without checking.

Julien Marrec's avatar Julien Marrec (2017-03-14 04:13:05 -0500) edit
add a comment see more comments