Grasshopper

algorithmic modeling for Rhino

Hi everybody, 

I've got a bunch of buildings and I'd like to modulate their height in function of the solar exposition (the buildings nearest to the south-est will be lower and the other on the north side will be higher). 

Any suggestion?

Thanks

Views: 944

Replies to This Discussion

Can I just ask few things?

By solar exposition, you mean the area of the outline projected to a plane normal to solar rays, right?

Why the building near to the south-est should be more/less exposed to another on the north side?

Are they casting shadows to each others? You mean this?

Also, by modulating their heights, don't this change also their exposition again?

Should this be an iterative method?

Help us help you.

Hi Riccardo, thank you for your questions.

I would like to model the surface of the roofs, to maximize their exposure to the sun (because those roofs have to produce photovoltaic electricity).

The buildings that are located in the southern part of the site will have to be lower than the height of buildings located further north, this in order to avoid cast shadows on their roofs.

I'll try to make a quick sketch to simplify what I mean ;)  

In other words, my idea is to create an attraction/repulsion script, in which the sun is the repeller agent, so the buildings nearest to the sun will be more affected by it and they will result lower than the buildings more distant.. 

This is just a newbie-simple idea, other suggestions are well accepted!

Attachments:

(siamo ita XD)

..."the buildings nearest to the sun" you said.

Maybe there is a wrong assumption here.

You can't make an attractor definition based on the distance here.

The earth is 149.6 million kilometers away from the sun, I don't think some meters or even kilometers make any difference...

Also sun rays come to us parallel each-others...

But you can make a definition that sort the center of the buildings along a given direction;

and then use that value to determine the height of your buildings.

Here, with a simple remap, I've made a "linear function" about that:

Attachments:

Ciao Riccardo!

Thanks a lot for this definition. I didn't tried it yet, but from this screenshot it seems exactly what I meant! I'm gonna put it immediately on GH.

Obviously my previous assumption was scientifically wrong.. The distance between the Earth and the Sun is so large that the distance between two points on the earth's surface and the sun is even more irrelevant. My idea was to set a point in Rhino and let it simulate the position of the Sun.. 

Now I start to work on your def.. I'll post the result asap!
Thanks again

Here I am.. but there's something wrong.. As you can see in the screenshot, there buildings height seems randomized without a logic behind (apparently). 

For ex, the very first building on the left should be the lower of all, but is not so.. And if you watch at the others, their height isn't scalar.
Do you understand why?

Attachments:

That's  because the position of the building outlines has no relation to the calculated heights.

Use Area or PolylineCetroid on the building outlines to replace Pop3d.

I've got it... and now it works!

Thanks Hannes and thanks again Riccardo

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service