Grasshopper

algorithmic modeling for Rhino

I recently received multiple questions about the orientation study and I hope this discussion answers the majority of them.

WHAT + WHEN?

Orientation study is a feature integrated to the analysis components (radiation, sunlight-hours and view analysis) which let you study the effect of the orientation of your building and the analysis result. When you come to a question similar to "what is the orientation that the building receives the most/least amount of radiation?" is probably the right time to use this component.

HOW?

I'll try to explain the steps using a simple example. Here is my design geometries. The building in the center is the building to be designed and the rest of the buildings are context. I want to see the effect of orientation on the amount of the radiation on the test building surfaces from the start of Oct. to the end of Feb. for Chicago.

First I need to set up the normal radiation analysis and run it for the building as it is right now. [I'm not going to explain how you can set up this since you can find it in the sample file (Download the sample file from here)]

Now I need to set up the parameters for orientation study using orientationStudyPar component. You can find it under the Extra tab:

At minimum I need to input the divisionAngle, and the totalAngle and set runTheStudy to True. In this case I put 45 for divisionAngle and 180 for the totalAngle which means I want the study to be run for angles 0, 45, 90, 135 and 180.

[Note1: The divisionAngle should be divisible by totalAngle.]

[Note 2: If you don't provide any point for the basePoint, the component will use the center of the geometry as the center of the rotation.]

[Note 3: You can also rotate the context with the geometry! Normally you don't have the chance to change the context to make your design work but if you got lucky the rotateContext input is for you! Set it to True. The default is set to False.]

You're all set for the orientation study, just connect the orientationStudyPar output to OrientationStudyP input in the component and wait for the result!

The component will run the study for all the orientations and preview the latest geometry. To see the result just grab a quick graph and connect it to totalRadiation. As you can see in the graph 135 is the orientation that I receive the maximum radiation. Dang!

If you want to see all the result geometries set bakeIt to True, and the result will be baked under LadyBug> RadaitionStudy>[projectname]>  . The layer name starts with a number which is the totalRadiation.

Mostapha

Views: 8621

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Hi Leonardo, I'm taking a look at this. It looks like a bug.

Leonardo, Check the attached file. It is fixed now.

Attachments:

Now it works perfectly! Thank you indeed Mostapha :D

Hi Mostapha

Can you document what was wrong and/or update the component? I've copied the new orientation study node into my document where I am running a sunlight hour analysis and there is still the bug. Same error. So presumably you only updated the radiation analysis component.

Thanks

Hi Paul. You are right. SunlightHours analysis should have the same issue and also the view analysis component. Here is the changes:

https://github.com/mostaphaRoudsari/ladybug/commit/8190ecb63e930663...

It would be great if you can get it fixed and send a pull request on github.

Hi Mostapha

I had a look at the gitHub code. I tried to fix it but couldn't get it to work. Are you able to take a look? If/when you update, are you just updating gitHub or are you creating a new version in foor4rhino?

The other thing that I would like to do (but can't), is for the sunlight hours analysis component to not join/weld the sunlightHoursMesh output. It would be great if they could be color coded based on all the faces (so legend applies to all meshes) but that separate colored meshes are returned. Otherwise its near impossible to split meshes in Grasshopper. Basically I have rooms (surfaces) and I want to know which rooms comply and which don't. I think to fix this, its the ‘ladybug_ResultVisualization’ function?

Thanks for your help.

Hi Paul,

I fixed the bug. We only update the files on food4Rhino for every release so you need to download it from github (or use update component).

Back to your question for each surface, the results are grafted for each input surface. So if you already break the test surfaces for each room you only need to average the results and you will have a single number for each. You can match them with original input surfaces or use "analysisMesh" output which is unjoined meshes.

I hope it helps,

Mostapha

Here is an example:

Hi Mostapha

After updating the code the problem persists when connecting the Orientation Study component:


Runtime error (UnboundNameException): global name 'legenPar' is not defined
Traceback:
line 364, in main, "<string>"
line 446, in script

do you think I'm making something wrong? thanks,

Juan

*it is solved if I disconnect the LegendParameters component, but still a minor bug, thank you.

Hi Juan. Thanks for reporting. I added and issue (https://github.com/mostaphaRoudsari/ladybug/issues/144). We will check this soon.

Hi Mostapha, How do you use update component? Is this via GH or GitHub?

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