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

Revision history [back]

Ok. So I was able to recreate this error.

It occurs if there is only one thermal zone to add the system to on a given building story. This can happen if you only select a few spaces types in your model, or you have few zones in your model

Specifically, in the file OsLib_HVAC.rb in the resources folder, you need to change line #1181 from this:

vrfAirConditioner.setZoneforMasterThermostatLocation(thermalZonesToAdd[1])

to this:

vrfAirConditioner.setZoneforMasterThermostatLocation(thermalZonesToAdd[0])

If there is only one zone in the array thermalZonesToAdd, then there isn't a [1] object to access. Remember that ruby arrays start at index 0.

@david-goldwasser seems to be the author and can probably fix this in the OsLib_HVAC.rblibrary.