Shadow range study example

Here is the result:

Great tip
just a quick question
I didn’t find the location component, It’s useful :slight_smile:
Maybe it appear in future version, right?
Best

Hi Mohammad,

You’re right. I attached decompose Location userObject. Drag and drop it into grasshopper canvas.

Mostapha

Ladybug_Decompose Location Data.ghuser (3.26 KB)

Thanks Mostapha
I really need it :slight_smile:
Best

Hi, Mostapha!

I am trying to make shadows for my projects in the university but I have the new version of ladybug and some components not the same…so it is difficult to understand what to connect because components differ now. Could you please help me to find the problem in my definition?

shadows.gh (91.2 KB)
boxes.3dm (2.02 MB)

This is also jpg file of definition


You need to connect the location output from the importEPW component to the location input of the sunPath.
-A.

Thank you, Abraham! It works now…but too slow…and one more question. If I set up the grid size even to 0.5 it really can not work, it is loading the system too much…so I can work only with a grid size of 4 but shadows becoming with a lot of pixels. Is it possible to adjust this situation?

Nothing much to do about this Yana, but …
Pick the geometry you really need to get the shadows on. Maybe not always you need all of it.
Reduce as much as you can the ground surface. Sometimes you don’t need to go so far.
Use for the ground a single surface instead of a box.

-A.

Hi Yana, I would also set Parallel to False. It takes so much extra memory. Technically there should be no limitation for grid size. It can take long but it should produce the results.

Mostapha

Hi,

I saw the youtube video you posted of this definition, just wondering where you plugged in the panel showing the area of the shadow cast??

Ian

Not sure what you are asking, but just in case, you mean the “geometry” input in the LB_sunlightHours?

-A.

Sorry I didn’t realise the youtube video isn’t linked…

https://www.youtube.com/watch?v=mx_C7OqtklQ

In the definition in the video there is a panel in the bottom right which seems to be showing the area in m2 of the shadows on the ground surface. It has a receiver and I can’t see which output it’s gathering its data from. Any chance you might be able to help?

Hi Ian.

Did you find out how to find the total area of shadow?

  • Emil

You can calculate the area using a workflow similar to this one!

Hi Mostapha.

Thank you very much for your answer.

I am new to Ladybug and I don’t understand how the workflow discussed in that group can be used to determine the area of the shadow in an analysis. I am sorry if the connection seems obvious.

KR, Emil

Emil,

Attached a file that calculates averages areas/hours of shaded hours and area of shaded area according to the amount of exposed area (for instance the area of 2 hours of exposure).

Hope you can understand the file.

-A.

And now the file attached.

-A.

04_SunlightHourAnalysis_SumUpAreas.gh (450 KB)

Hi Abraham.

Thank you very much for the file, it works very well and provides me with a lot of other information i need as well.

Thank you!