Grasshopper

algorithmic modeling for Rhino

Hi

I have some questions regarding the analysis period in Ladybug. If I enter in the hours from 9-15 with a 4 (15min) time step the last item in the sunPositionInfo output displays 14:45. Does this mean that the 3pm vector isn't being calculated? Is this a bug or is this intended to work this way?

Thanks

Views: 4316

Replies are closed for this discussion.

Replies to This Discussion

Hi Paul,

This is one of my favorite topics actually. I have changed this couple of time and still I'm not sure if it is the best solution. The last hour is not intended to be there.

So here is the concept. Let's say you want to generate sun vectors for working hours. Let's say that people are working in an office  from 8 to 17. It means they will leave at 5pm so the data for hour 5 shouldn't be generated. Does it make any sense to you! I tried to match Ladybug sunpath with daysim logic but I agree that it's not what comes to mind first when you hear 8 to 5.

Mostapha

PS: I like the time-saving component up there. How do you deal with the cutting hour?

Hi Paul,

Thanks. I think what you said make sense and maybe for cases like this we should add the last hour.

Back to changing the time zone, I assume you know that your solution will move all the sun positions for all the hours (and not only daylight saving period). The reason that we haven't applied daylight saving hours is the fact that it is different in different countries. Maybe we should add it in a simplified version and give the user the chance to overwrite it similar to your Boolean option (https://github.com/mostaphaRoudsari/ladybug/issues/118).

Mostapha

Hi Mostapha,

I think there should be an option to include sun vectors up to and including the end of the period as this is required when doing say solar access analysis.

I've just been tripped up by this when creating a Solar Fan for a solar access exclusion zone to a public space between 11am-4pm. An initial pass using only hourly intervals effectively only calculated a solar envelope for 11am-3pm as the last vector (4pm) was not included!

It did not seem right to me the i realised the last vector was missing, so i increased the intervals to 12 (i.e 5min intervals) which then means the last vector is 3:55pm.

Ideally the sun vectors produced from a sunpath would include the last period, and components would include or exclude this depending on their purpose (e.g Solar Fan would include, Shading would exclude but perhaps with an option to include, etc). But this would mess up existing definitions so understand it might not be the way to go

Hi Owen,

We had a lot of back and forth on this topic. Paul has raised the questions a couple of times himself. I agree with both of you. Not including the last hour is not a good idea even if it's technically correct in some case. We are changing this in the new version of Ladybug so the last hour is included.

Meanwhile you need to use list management in Grasshopper to add/remove extra hours.

Mostapha

Hi Paul, It will be implemented to the new Ladybug (ladybugX) which will be under a separate tab. We'll leave the current Ladybug as it is to avoid confusion and breaking current workflows.

It's the new ladybug library which is what Ladybug for Dynamo is using. It's not released yet for Grasshopper.

It will be a new Ladybug. LadybugX to Ladybug is similar to what Kangaroo2 is to Kangaroo.

Yes. It's more than just to get it to work for both platforms. There are major code and performance enhancements plus an API.

Hi Paul,

I would say the best solution in this case is to use timeStep in both sunpath and sunlight hours. You can generate several sun positions for the single hour and use them instead of using two sun vectors.

Mostapha

Hi Paul,

This is great! I had just come across this issue within ladybug when my colleague raised a question as to why the sun position is an hour off during our summer here in the southern hemisphere. 

Mostapha, can I please request the option to edit whether or not we are in a daylight saving zone for these purposes? 

Thanks again guys!

Hi Elzine. It has been implemented and will be available in ladybugX.

Paul, I appreciate it if you can update this discussion based on our conversations offline.

It might be a bit too late now but having experienced the same problem, this little cluster helped to solve the issue. It uses Heliotrope and Julian day to feed Ladybug+Honeybee with the generated sun vectors.

For month or year analysis it only uses a timestep of 1 as too reduce computation time..

RSS

About

Translate

Search

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service