Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page

# Occupancy Sensor Measure Error

I applied the this measure, occupancy_sensors_for_lighting and received following errors, any ideas how to solve ?

Besides is there any way to specify which spaces or thermal zones will be controlled by the sensor ? Now it seems like that it will be applied to the entire building.

Thanks

edit retag close merge delete

@Eric Ringold Do you have any idea how to solve this ?

( 2017-05-22 10:48:55 -0500 )edit

Looks like you're tripping the error here. I would start by investigating why lpd_area_change might be returning NaN.

( 2017-05-22 11:54:26 -0500 )edit

Hi @Eric Ringold , can you provide more information to solve ? I defined all space lighting energy as watt/sq ft.

( 2017-05-22 12:53:59 -0500 )edit

Sort by » oldest newest most voted

@Bo_Lin, looks like an issue in the measure that isn't cleanly handing space type that don't have any spaces assigned (or more specifically have a floor area of 0.0), that are flagged as one of these standard space types. As a result we end up dividing by 0 and getting NaN error (Not a Number).

# standards space types
affected_space_types << "BreakRoom"
affected_space_types << "Conference"
affected_space_types << "Office"
affected_space_types << "Restroom"
affected_space_types << "Stair"


I'll file an issue document this so the measure can be updated, but in the mean time try one of these two approaches to resolve the error.

1. Remove un-used space types from the model, in particular the types listed above.
2. Instead of removing the space type change the standard type to something else. The measure already has a check to skip it if it isn't one of these types.

Just as a note, if lights in the model are per person, and a space doesn't have any people (as many stairs or restrooms may not, you would hit a similar error, but hopefully those spaces don't have lights defined per person.

more