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 6 years ago

Sourav Ganguli's avatar

updated 6 years ago

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...

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
4

answered 6 years ago

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.

Preview: (hide)
link

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

1 follower

Stats

Asked: 6 years ago

Seen: 785 times

Last updated: Jun 07 '18