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

Revision history [back]

The method is failing at this line:

minz = z_points.min + space.zOrigin

In this piece of code:

z_points = []
space.surfaces.each do |surface|
  surface.vertices.each do |vertex|
    z_points << vertex.z
  end
end
minz = z_points.min + space.zOrigin

z_points.min is nil, which means the were no z_points for a surface. Running this check on the model shows that space 'Space 150_Non' doesn't have any surfaces.

You need to simplify the model geometry. You have 667 spaces over 46 thermal zones and 8025 surfaces. This will take a while to run and render, and makes debugging in the OS App nearly impossible. Try reducing the number of spaces down to as close to 46 as possible. EnergyPlus simulates at the thermal zone level with a mixed air model anyways, so separating out this many spaces doesn't increase model fidelity. You can keep separate spaces in the same thermal zone if the two spaces have different internal loads.