NREL / openstudio-common-measures-gem

Other
8 stars 15 forks source link

Add Rooftop PV Measure #31

Open GurneetMonga opened 4 years ago

GurneetMonga commented 4 years ago

The measure adds shading surface and assign PV object to shading surface however it does not take into account building north axis and hence results in this kind of output. Request to kindly include building north axis and assign directionofRelativeNorth to the surface group. Add Rooftop PV measure(1)

GurneetMonga commented 4 years ago

I added the following code and it worked for me, so thought of sharing the same.

if (model.building.get.northAxis == 0.0) shading_surface_group.setDirectionofRelativeNorth(surface.space.get.directionofRelativeNorth) else shading_surface_group.setDirectionofRelativeNorth(model.building.get.northAxis) end