Grasshopper

algorithmic modeling for Rhino

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

Views: 550

Replies are closed for this discussion.

Replies to This Discussion

Hello Dan,

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

  • connect a slider 1-8760 to _HOY
  • connect the output you want to read to a 'data recorder' component
  • animate the slider

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:

  • hour 1 - point 1
  • hour 1 - point 2
  • hour 1 - point 3
  • ..
  • ..
  • hour 1 - point n
  • hour 2 - point 1
  • hour 2 - point 2
  • hour 2 - point 3
  • ...
  • ...
  • ...
  • ...
  • ...
  • hour 8760 - point n

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

Attachments:

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 :)

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

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service