How to read all hourly grid illuminance throughout the year?

Hello everyone,

I want to know how to solve the problem as title says. Because I want to calculated the percentage of hours with illuminance uniformity over 0.7 occupying the total working hours. So firstly I need all the illuminance values to calculate the hourly uniformity. The method in the figure can only read one hour once.

Thank you for help.

Bests,

Dan

Hello Dan,

I had your problem too and I solved it by this way:

It takes quite a lot (10 minutes), but you get all the data you need. I had a 72-point grid, so I had 72*8760 numbers. It’s up to you manage the database you create: if you have a n-point grid the record you create is:

than you can manage all your record as you want. I used it to find the trend during the year to calculate with genetic algorithm the electrical light requirement and see if it matched to Daysim. But actually, you can do whatever you want.

Good luck,

Claudio

Hi Claudio,

Your method is very helpful for me. Thanks!

And do you have any idea to animate the slider automaticlly? Because I also want to take the result as one objective. In every interation the result will be different.

Bests,

Dan

Hi Dan and Claudio,

I modified the component and created a new one that returns annual results grafted for all the hours of the year similar to what Claudio mentioned and it is faster than using the component with multiple inputs. Still it takes some time as it has to generate all the branches. Took 1.3 minutes for 360 points on my laptop.

Mostapha

importAnnualResultsForWholeYear.gh (17.3 KB)

Hi Mostapha,

Thank you for your work. I used it to read the data I said before and it works great! And it is a more practical way to do it.

Thank you again,

Claudio

PS: Dan, to animate the slider you have just to set it at ‘1’, then right click>animate. Anyway you don’t need it anymore :slight_smile:

Hi Mostapha, sorry to be a little late. Your method worked well in my file. Thanks a lot.

And also thank you for help, Claudio. You help me to learn how to animate slider. I think it will be very useful in my future work.

Bests,

Dan

Hi Mostapha,

Would you mind adding your file again?

Thanks,
Raed

@rsalelwani, that file is still available for download from the Old Forum here: