Sunlight Hours Analysis output

Hello,

I have a suggestion, if it is possible to make, for a new output (or a modification of the existing one) for the Sunlight Hours Analysis component. Often is important to calculate on a facade the direct sunlight hours per node per day. With the actual component it is not possible (I think). You can calculate only totals (per node=sunlightHoursResult output and all the nodes=totalSunlightHours output). What is interesting the existing output sunIsVisible but the thing is that it considers the hours of sun from the sunrise to the sunset so when you try to split the list using the 24h it doesn’t work (fig 1). So if you don’t know for every day of the analysis period the duration of the day you cannot split the list coming from the output sunIsVisible (Fig 1). To overpass this I had to calculate the actual hours of the day for every day of the analysis period from the sunPositionInfo of the SunPath component (Fig 2) but it is very tricky. So what I suggest is to add a second sunIsVisible outup but on the 24 hours. Thank you!!

Fig 1

Fig 2

Francesco,

The separation of the “hour of the year” data from the sunlight hours component is critical to its flexibility and power to take any vector you want as input. So I would be opposed to making such hourly information a required input for the component just to get the data out of the sunlight hours component in a daily format.

However, this type of situation is definitely something that the “Ladybug_Branch Data” component should be taking care of for you. Accordingly, I have modified the dataEachDay output of this component to be a “dataEachDayOfYear” so that you only need one component to get the results you need instead of 9:

You can find this more elegant way of getting daily values in the attached file and on the LB Github.

-Chris

ImprovedDayMonthHour.gh (398 KB)

Hello Chris,

indeed I tried also to use the DMH component but I didn’t manage to get what I needed. I’ll try this new version. Thank you very much!

Francesco

Francesco,

That’s great to hear that was your thought process as well as mine. Hopefully, it will be the same for others trying to address this type of issue too.

Stay awesome,

-Chris