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

Is there a way to set the unit for energy related output variables as kWh in the csv result file?

asked 2017-11-03 06:23:11 -0600

oat's avatar

updated 2020-03-14 11:24:44 -0600

The unit for energy related output variables is J by default as shown in the csv result file.

Is there a way to set the unit for these variables as kWh by adding a line of code in the IDF file?

I do understand that the following only change the unit for the HTML summary report, not the csv file:

OutputControl:Table:Style,CommaAndHTML,JtoKWH;
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2017-11-03 06:56:25 -0600

updated 2017-11-03 07:04:37 -0600

If you are using EP-Launch, go to VIEW .. OPTIONS .. MISCELLANEOUS and check "Convert ESO/MTR to IP Units" and that will convert all output variables that have the string "elec" in their name to be output in kWh.

That option calls a program called convertESOMTR.exe which is located in the directory:

\EnergyPlusV8-8-0\PostProcess\convertESOMTRpgm

and uses a file called convert.txt in the same directory which you can open with a text editor to do what ever conversions you want. It is documented in the AuxiliaryPrograms.pdf file and also here.

You could change the convert.txt file to make all J values convert to kWh. To do this move the line:

conv,J,kWh,2.77778E-07,0

to before the line:

conv,J,kBtu,9.4845E-07,0

edit flag offensive delete link more

Comments

Hi Jason, Your tip worked,thanks. But I have just cooling energy results in ton-hour and all others in kWh, is it an error? And sometimes I am getting the temperature in F. Is it possible to just change the units of energy in kW and keep all others in SI units,like kg,m,C etc.

Thank you :)

nvm's avatar nvm  ( 2018-07-18 07:50:51 -0600 )edit

It is possible that you could delete all the lines in the convert.txt file other than the ones you need and that the other units will flow through without change. That is how I expect it should work. So the entire convert.txt file would just be:

conv,J,kWh,2.77778E-07,0

Please let me know if that works.

JasonGlazer's avatar JasonGlazer  ( 2018-07-19 09:43:53 -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

Stats

Asked: 2017-11-03 06:23:11 -0600

Seen: 1,186 times

Last updated: Nov 03 '17