First time here? Check out the Help page!
1 | initial version |
I don't think it occurs on "any measure". This is a logic error, clearly, as indicated by the Optional not initialized
.
In this specific example, it's happening here: https://github.com/NREL/openstudio-extension-gem/blob/7819e99c43810bc518e8d050180fcc8cf7c4ab86/lib/openstudio/extension/core/os_lib_hvac.rb#L750-751
Meaning your Space
does not have a ThermalZone
attached to it...
And you're hitting it on any measure that does use that os_lib_hvac.rb
's createPrimaryAirLoops
function.
Unfortunately, the function is wrong (openstudio-extension-gem 0.7.0 and 0.7.1 are affected at least, but that function was removed for the forthcoming release...):
if space.thermalZone
thermal_zone = space.thermalZone.get
Should actually be
if space.thermalZone.is_initialized # alternative: !space.thermalZone.empty?
thermal_zone = space.thermalZone.get
Anyways: to work around your issue, please assign a ThermalZone to all of your Spaces. A Space must have a thermal zone in order to be simulated by E+.