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

Revision history [back]

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.