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

custom unit conversion from GJ to Kwh

asked 2018-06-06 03:18:43 -0500

Sourav Ganguli gravatar image

updated 2018-06-07 19:36:59 -0500

Hello Everyone, I am trying to make a reporting measure to display things like EUI and Energy use in Kill-watt Hour(Kwh) but the openstudio unit conversion is limited to GJ and J. How do I convert the unit to Kwh?

https://nrel.github.io/OpenStudio-use...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2018-06-07 17:27:19 -0500

OpenStudio unit converter does do GJ to kWh:

OpenStudio.convert(1,"GJ","kWh").get
#=> 277.77777777777777

Or you can hardcode it since you aren't changing unit systems. A watt is a joule per second, so a kilowatt-hour is (1000 joules / second) * (3600 seconds / hour) = 3.6*10^6 joules = 0.0036 gigajoules. (1/0.0036) = 277.77. So just divide GJ by 0.0036 to get kWh.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2018-06-06 03:18:43 -0500

Seen: 22 times

Last updated: Jun 07