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

how to report "Facility Net Purchased Electric Energy" when PV is not specified?

asked 2017-12-03 23:16:51 -0600

oat gravatar image

updated 2017-12-05 15:14:31 -0600

It seems that Facility Net Purchased Electric Energy is not reported in the csv or sql output files when there is no PV module specified. My understanding is that this is due to the absence of generator object.

However, Net Electricity From Utility is still shown in the html report:

Although Net Electricity From Utility can be manually calculated as the sum of the electricity used by lights and equipment in this case, may I ask if there is a way to "force" EnergyPlus to report its value in the csv and sql files?

Thank you.

image description

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2017-12-04 14:41:35 -0600

updated 2017-12-04 14:52:05 -0600

If you're using the Output:SQLite object to write EnergyPlus outputs to an SQLite file, then you should set the Option input field to 'SimpleAndTabular' to include time-series and tabular reports found in the HTML file. After doing that, you should be able to find within the SQL file the Net Electricity From Utility output that you highlighted above.

For adding info to the CSV output file, you have a few options using Output:Variable and Output:Meter objects.

Output:Variable options from the .rdd output file

Output:Variable,*,Facility Total Purchased Electric Energy,hourly; !- HVAC Sum [J]
Output:Variable,*,Facility Total Produced Electric Energy,hourly; !- HVAC Sum [J]

Output:Meter options from the .mdd output file

Output:Meter,Electricity:Building,hourly; !- [J]
Output:Meter,ElectricityNet:Facility,hourly; !- [J]
Output:Meter,ElectricityPurchased:Facility,hourly; !- [J]

Each Output:Meter option also has a reciprocal Output:Meter:Cumulative object in the .mdd output file. If you add a cumulative meter, that will show a running total of electricity use instead of only electricity use for your chosen reporting frequency (timestep, hourly, etc.) in the variables output CSV file that contains Output:Variable results, as well as the meter output CSV file EnergyPlus generates with the same name as your input IDF file.

Output:Meter:Cumulative,Electricity:Building,hourly; !- [J]
Output:Meter:Cumulative,ElectricityNet:Facility,hourly; !- [J]
Output:Meter:Cumulative,ElectricityPurchased:Facility,hourly; !- [J]

Note that "Building" meters sum each zone's energy use while "Facility" meters sum ALL the energy (building + HVAC + exterior) of a given fuel type.

edit flag offensive delete link more


Dear Aaron, one more question. May I ask what's the difference between the following three output variables?

Output:Variable,*,Facility Total Purchased Electric Energy



oat gravatar image oat  ( 2017-12-04 22:01:03 -0600 )edit

answered 2017-12-04 21:10:12 -0600

oat gravatar image

updated 2017-12-04 21:43:53 -0600

Thank you very much, Aaron, for you detailed advice!

However, I didn't find the Facility Net Purchased Electric Energy output variable in the .sql output file following your suggestion by adding the following line in the IDF file:

Output:SQLite, SimpleAndTabular;

image description

... and it seems Facility Net Purchased Electric Energy is not shown in the sql database when it's opened and queried in SQLiteStudio.

image description

Nevertheless, as your suggested, once the purchased electricity related variables are specified through output:variable and output:meter, they are shown in the sql database, although I haven't figured out how the cumulative values are calculated and reported.

image description

image description

Thank you, again, for your invaluable advice!

  • Ji
edit flag offensive delete link more

answered 2017-12-04 14:17:45 -0600

I think you can do this by putting it as a request variable in the meters output (I know meters has building total electricity and other options similar to that). I am not sure if that is what you are looking for. It will report in the meters file and I think in the SQL file but not 100% about that.

edit flag offensive delete link more


The same thanks to you, Annie, for your kind advice!

oat gravatar image oat  ( 2017-12-04 21:44:55 -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

Question Tools

1 follower


Asked: 2017-12-03 23:16:51 -0600

Seen: 186 times

Last updated: Dec 04 '17