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

Electricity cost definition - Export to the *.eso file

asked 2016-05-11 10:43:16 -0500

Wilson's avatar

updated 2016-05-12 15:17:01 -0500

Hi! It is possible to define, in OpenStudio or EnergyPlus, the price of electricity [Kwh] for each hour(like a schedule)? It is possible this information to be available in the *.eso file in a way that we can access the electricity costs, for each hour, for output variables like Zone Lights Electric Power, Zone Electric Equipment Electric Power and Facility Total HVAC Electric Demand Power?

Thank you

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2016-05-11 11:56:40 -0500

updated 2016-05-11 13:45:24 -0500

In EnergyPlus, you can use the UtilityCost:Tariff object and set the RealTimePricingSchedule field to your $/kWh schedule, as described here. You could add this tariff via a Measure. You could probably modify the tariff_selection_generic measure.rb file.

For the second part, you could add assign a copy of your real-time tariff to each of these Meters (look in the *.mdd file that comes out of the simulation for a list of Meters). Another option would be to export the output variables and the $/kWh schedule to .csv and then multiply after running the simulation.

Caveat (pointed out by @Chris Jones below): If your tariff has peak demand charges, for part 2, you'd need to report out the demand and the consumption and then split up the charges correctly.

edit flag offensive delete link more


Thank you for your answer aparker.In this question you can see what I'm trying to do.I will do some hundreds of jobs using jEPlus.I need that the "SimResults.csv", that jEPlus provides in the end of the simulation, gives me the "Facility Total HVAC Electric Demand Power" and the cost related to HVAC electric energy for the run period so then I can go to the job folder with the best results to pick the data(HVAC setpoints).Due the amount of jobs it's difficult to multiply the variables after running the simulation.

Wilson's avatar Wilson  ( 2016-05-12 10:40:29 -0500 )edit

Thats why I'm trying to put the tariffs data and the related electric energy costs of the HVAC system in the same *.eso file

Wilson's avatar Wilson  ( 2016-05-12 10:45:48 -0500 )edit

answered 2016-05-11 12:29:06 -0500

Chris Jones's avatar

One issue would arise if the electric utility has demand and energy block charges. In this case would would have to report the whole building demand and energy charge at each hour then prorate that amount to each end use.

edit flag offensive delete link more


good point. I added a caveat to my answer.

aparker's avatar aparker  ( 2016-05-11 13:43:53 -0500 )edit

Thank you for your answer Chris Jones.

Wilson's avatar Wilson  ( 2016-05-12 10:46:22 -0500 )edit

answered 2016-05-11 11:57:45 -0500

This page describes how to add tariffs for different fuels. I'll let someone else address timeseries output of the costs. Not sure how you would want to handle monty fees in this approach.

edit flag offensive delete link more


Thank you for your answer David Goldwasser.

Wilson's avatar Wilson  ( 2016-05-12 10:51:31 -0500 )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: 2016-05-11 10:43:16 -0500

Seen: 292 times

Last updated: May 12 '16