Ladybug Grasshopper Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments

I've been following your pages, great stuff!

👍︎︎ 2 👤︎︎ u/static121 📅︎︎ Nov 19 2018 🗫︎ replies

Subscribed. Btw I'm looking forward to this plug-in, I've been experimenting with GECO as of now. Making the analysis in Ecotect and importing the data in GH.

👍︎︎ 1 👤︎︎ u/ElNicho30 📅︎︎ Nov 20 2018 🗫︎ replies
👍︎︎ 1 👤︎︎ u/darsehole 📅︎︎ Nov 20 2018 🗫︎ replies
Captions
in this ladybug grasshopper tutorial I want to show you how you can use the ladybug plugin to produce graphs like this and produce the Sun path based on temperature based on speed of the wind and you can also have different results based on the total radiation diffuse radiation and direct radiation so first we are going to explain these things in the ladybug plugin then we are going to also talk about the wind so you can also see how the wind is affecting your project and see the profile of the wind based on the height and at the end we are going to give a simple example of a building and optimize it based on the orientation for radiation so this building will be calculated the orientation of the building will be calculated based on the surroundings of those buildings okay to start from scratch what I want to do is to explain how we can install ladybug in your grasshopper and start modeling so first you can go to the website and download this plug-in and what you have to do is to unzip this ladybug and honeybee folder into file special folder and okay here we go file special folder and user object folder so open the user object folder and unzip that or put that folder into the okay let me just show you you can see that I have this ladybug and honeybee in my user object folder and then we start your rhino and grasshopper then you will have this ladybug menu up here which we want to have a quick overview of the plugin it's going to take a while so ladybug is a great plugin and it's a huge one it has many functions and you can also see that this ladybug primer is about 468 pages I will also put this if you want to download this so the problem is that the plot the components on the plug-in is really complicated but for now we're going to focus on the basics and how fast you can get to the radiation analysis based on the orientation so what I want to do is to first go to the ladybug in the ladybug and put this on the canvas this will make the ladybug run and basically it will fly so when you just put this okay let me just put the bifocals plugin so you can see the commands and if I just put a panel to this output you can see that this is saying hi baby was flying and that is a success so the first step is to put the ladybug ladybug on the screen and the next step is to go to the ladybug and use the ladybug import EPW you can also use the download EP weather files or other things but the best way and the fast way you can do that is to ladybug import a PW that is energy plus data files so let's just put that on the canvas and for the EPW have to go to the palms menu the primitive and put the file path on the canvas and set that to the file so to download this EPW or energy energy plus weather file you have to go to the EPW map so the address is the ladybug tools back and such APW map I will also put this on the website post so check out the post on the website and after that you can choose a city okay so after going and zooming in you can also zoom in right click on a city and you will see this you have to hit ctrl C to copy it so ctrl C then we can simply just paste this and download the file so after downloading this file you can unzip those files in a folder so let me just show you and here you can see we have three files here and the most important one is the EPW file so what you want to do is to go here and right click and set select one existing file and we just put that EPW file and then you can see that this is running you can also see that the output is saying successful so what we want to do is to first understand the Sun path in ladybug so what we have to go what we have to do is to go to the visualize where the data we are going to use this menu in this tutorial most of the time but we have to also use the analyse period for the time and we are going to just talk about one of those tools in the environmental analyze this so stay tuned so what we have to do is to go here and use the ladybug Sun path okay and if I just put this on the canvas the north is the y-direction you can change that but for now we can simply connect the location of the EPW output to the location of the Sun path and here we go let's just zoom in and you can see that this is showing you the Sun path based on the file we just gave to that okay the next thing you can do is to define the location of the Sun based on two ways one is to define our day and month and another one is to define the analyzes period so this is really important and most of the ladybug tools means this analyzes period so we are going to talk about this tool so if you just want an hour you can say maybe 8:00 and you can see that this is showing nothing because at the 8th there the Sun is not on the path so if I just increase that you can see that the Sun is coming up and on the day we can change that to maybe day 20 and a month can be simply eight okay you can see the location is going up so you can define those they hour and month or you can simply go to the analyzes where the data and use this ladybug analyzes periods so remember this one is really important and we always use that to define the range of the days we want to get the analyzes so what I want to do is to define the month you can see that this is the start this is the end so we can say from month one to maybe month three okay so let's just do that maybe we want to define that for month one to month 3 and you can also change those things you can see from day it's 1 to 31 and from our it's 1 to 24 so remember you can always time and define another Isis period to make that happen so we have to connect that to the analyzes period okay so if I connect that you can see that those some locations will update and show you based on month 1 2 3 ok the next thing you can do with the Sun path and this is really important because other tools also operate as similar to this is to define annual hourly data but before that remember you can change the center point if you want you can simply define a point okay let's just do that it can define a center point and set that point to somewhere so the Sun path will just change location you can scale the Sun path with scale the Sun this is the default is 1 you can give this maybe 2 or something if you want to scale that up ok the projection is you can see that the projection is 0 1 2 that means the 3d view which we will have now this 0 and 1 or 2 let's just check this out 1 will just give you projection and sometimes really need that so you can just project that on the ground and have the Sun path as a 2d graph okay so the next thing we have to do and the most important thing which you will always see is this annual hourly data and conditional statements those will happen in ladybug because you have to maybe sometimes we want to compare things so if I just go here and check out the output of the EPW you can see that there are several outputs which are important the dry bulb temperature the dew point temperature the temperature that you will just be produced but that's not really important the most important are dry bulb temperature relative humidity if you want that wind speed wind direction if you want to show the wing so these four are really important and we can just give this temperature to the annual hourly data because we want to see that on the Sun okay and now you can see that the Sun has different colors based on the temperature we just gave to the data so if we want to show that the Sun based on humidity we can give humidity to that and the Sun will just be colored based on the humidity from 30% to 100% so this is really great if you want to see the location of the Sun based on something immediately wind speed and so on so for now I'm going to give the temperature and compare that I want to show you how you can compare that to okay may be wind speed I'm going to use the shift key and add this to the Anna annual hourly data and just wait so you can see that it's adding something here so now what is conditional statements the first we just gave was the first is called a and the second is called B and so on C and so on so this is temperature and this is wind speed I think so if you want to define a conditional statement you can eh maybe I want a temperature between maybe zero to ten right and you have to type this and because you want to say whenever the temperature is between zero and ten we want a speed between maybe I don't know one so it's going to be B and three so you can just combine things or you can just type or here okay so these are the two statements you can type so let's just do this I'm going to put a panel on the canvas and type the temperature between zero okay smaller than and bigger than zero smaller than 10 let's just do that give this to the conditional statement and now you can see that this is going to change it's going to start from zero to ten and one of those series of the sons are gone and you will see those times which the temperature is above zero and less than ten so you can also combine that so let's say we want to check the wind between two and eight we want that and between two entry mehmed's has has to be a B and it's an and between that you can combine those conditional statements to produce the results and the last step you can do is to just bake it so for the bacon you can see that we have two options zero is the default it's not giving any output but one is giving you hatches and two is giving you miche's but I prefer the mesh because it's faster so let's just give this a tool and wait to see the results okay so now you can see if I close this we don't have anything here but we have a layer called Sun path and we can define this you can see dry bulb temperature wind speed and if I just this on you can see that this is for the wind speed and you have all those meshes of the Sun and you have this text here that's really great you can just double click this and change the text if you want and you can also see that there's a legend here and you can also change that if you want so remember you will always have that in the layer so let's just turn this back and go to the grasshopper okay so this was the first step you have to know because this is really important that we have to understand these things if we want to produce the radiation so let's just make this from I'm going to change this and show you okay so what I have done there is that I put that from 0 to 20 degrees and we want to make a study on our building but those times which it's between that so you can have that lady was some path ok let's go to the next step what you want to do for the Sun is to define a ladybug radiation rose okay you can see that that's a great graph if you want to show you the show the radiation of the Sun and again we have this North here which is in the y direction that's already important but now another power meter will show you that it's a selected sky matrix this is really also important it's really similar to that analyze this period because you can see that many times and that is the sky which you have to calculate before you have to calculate the radiation rose so we always need that and it's really easy you can go to the visualize weather data and take these two steps let's just make this happen you have to make the ladybug generate cumulative sky matrix for the first step and then go to ladybug select sky matrix as the second step to produce the sky so remember you have to make the sky too then make the radiation analyze this happen so we have to just put those two steps here and you have to connect that cumulative sky matrix to this and now you have to connect the EPW file because we need the location that's fine and the sky density you can change that from zero you can see that the tens did it also explains everything if you just hover on it you can see that the set is set to zero to generate it dragons sky don't know what that means but you can also look at those explanation if you want to change that okay another thing we will need is to run it so what is run it it means that should I run it or not so always when you see a run it you need a toggle okay so if you want to just run this analyzes we need a toggle and double click is to make it true and give it to run it so these are really simple steps but you have to know before you go to the next level which is defining radiation so after waiting to get the results okay so if we just go to grasshopper and here it is you can see that it has run the generative cumulative sky matrix and now we have the selected sky matrix so we just made those steps to keep that to the selected sky matrix and we will have that for any radiation analysis so now let's just turn this off on the preview and now what we want to do is also give a center of the center point for that graph which we just dismiss that because we it is zero zero zero and scale you can scale that the most important thing is run it again let's just connect a toggle and put that to true so we can see the results here okay and another thing which is important about the sky matrix which I have to explain now is this is for the whole year okay you can see that that's total radiation and diffuse radiation and direct radiation okay and you can see that the radiation mode is most distributed at the south and we have less routes radiation at the north and what we want to do is to define this radiation in two ways one is the hour of the year or the analyzes period so if you want to have that in a day month and year you can give this hour of the year or just define a period but I prefer this one because it's easy and we just talked about this before we can simply give this three-month analyzes period and see the results so remember you can always I give that and see the results of that so this was the radiation rose and you can see that you can change the number of arrows the default is 36 which you can see here and you will always have the outputs you can bake that you can also bake it here if you want you can simply just put it true to that bake it and get the results so it's going to take a while but you will have that in mmm okay it's again you can see that there's a one for hatches and a two for missha's I prefer mesh but now let's just see this again in the wind boundary profile okay radiation rose and now you can see this is a hatch it adds 11 hatches to the collection so you can also have those hatches and here we go and we have those results you have to make those numbers smaller so here it is and ladybug is really great and manages data easily put those who want to just analyze it okay so that was the step for radiation rose so you can also give this wind rose if you want so I want to also show you how you can give it up in rows and can simply again for the wind rose you have to give this a wind direction and wind speed if you want to define annual hourly data that's going to compare wind with temperature and other things was full now we don't need anything of that you can also define analyzes period so let's just again give that three months period to this and we have to give this wind direction and speed and we had that in the EPW file here we have this wind speed and direction I'm going to connect the speed to the speed and the direction here to the direction okay okay I guess that I just made the connection wrong so let's just connect the direction to the direction and again let's just make a preview of that and turn this off we need to run it so here we go so ladybug is really easy with that you can see how how easy it is and if you want to produce that by yourself it's really hot because you have to send that to different softwares and get their graphs because those software's are going to manage your EPW fault but ladybug is really great and gives you the output you can see that the wind is always most of the south south and the north okay so the next step is to show you the example so we talked about this to show you a simple example of how you can optimize buildings so assume that this is our building and this building maybe is surrounding buildings let's just draw this just take that and give this another box we just draw a complicated building something like this and extrude that and bring that up okay that's a big building so let's just bring this a little bit down okay so and let's just join these two by bullion Union and here we go so what we have to do is to go to the environment Sun rises and these are great tools if you want to have radiation on all these analyzers if you want sunlight hours which is great for parks if you want to optimize a park you can also use the view analyzers I will also give these tutorials in the future or maybe I just add these in the courses for those who want to know more you can also check out the course maybe in the future I will add those in the courses you can see the solar envelope that's really great you can use that to define the shading designer and use that to optimize things for now what we want to focus is to go for ladybug irradiation analyzers because this is a really great tool and we want that radiation analyzers so the north is the y-direction we have two sets of geometries the first is the building which is this one and the context is the buildings surrounding this okay so these are the buildings which are surrounding the geometry so let's just do that go to the palms menu and use a B rep setup set that to the building and give this the geometry another one is going to go to the context set multiple and I'm going to choose all the buildings and we're good to go the next step is to define a grid size because ladybug has to define a grid on those surfaces and buildings to define that so maybe I give this this is 5 meters on here I just saw that so maybe a grid size of 5 is 4 but if you just decrease that number remember it's going to take a while to calculate the results and the distance from the base is also important okay I think that was from another example there let's just delete this and if I go to the main building and use this analyze Direction thing okay you can see that this is the upwards of the buildings so if I define a distance from the base it's going to go upwards and it will calculate the radiation of the facade okay but if you want to calculate the radiation inside that you have to flip that before getting the results so let's just turn everything off and define a distance maybe something like 0.5 small distance from the facade the next thing we have to talk about ok the selected me sky matrix is what we talked about before and we just produced that remember we gave that analyse period so we make the sky from month one two three and now this is the cool part of the radiation Allah so you can study the orientation of this building and rotate that so you can have the best results and for that you have to go to the ladybug and go to the extra tab and head down okay head down here ladybug orientation study parameters and use that one so we have to use this ladybug orientation study and give this to this and now what we want to talk about is what is this orientation study what it does is that it's assumed that this is the building we are just studying you have to let me just draw this for you so maybe this is 360 degrees this is the steps so I don't know maybe that's ten degrees and then we need let me show you with yellow that's the center okay so the blue one the total angle is the total angle you want to study so if you want to rotate that in a full rotation which is I think it's fine 360 degree is okay the division angle is basically the angle or the steps you want to study so if I give this a 10 and the total degree is 360 it's going to be 36 steps right so you can have 36 different radiations and see which one is better and the last one is the base point which is the rotation the Z rotation of the building so let's just give this the base point we can simply define a point okay I guess that we have to give this in Rhino so let's set this right now you can also make a parametric point there the division angle is 10 and the whole angle is 360 so this is the inputs and now we have to give a toggle to the run the study okay true and now we have this orientation study and it will just rotate all the building from 0 10 20 and 2 up to 360 degrees okay the next thing we have to consider this is not really important legend parameters so the default is fine the parallel is that if you want to use multiple CPUs you can do that it's going to run it faster but remember it's going to slow down other softwares you're running so I'm going to give this yes I want a parallel running computation and then we just run it so we're going to wait and see the results okay so after 2 or 3 minutes let's just turn off the building you can see that this is the results and we have the radiation analysis here and the most important thing is that you can see the grid size which I defined here five is the grid size which is giving us the results so the most important things that these okay this part is not really important because these are the information ladybug used you can see that this is the test points on the building these are the vectors that it's using the analyzed mesh but what we need here is this part so you can focus on this one the radiation results you can see that we have two different results but I guess that the best thing is radiation mesh and total radiation these are the two things we prefer to have because the radiation mesh if I connect a mesh from the Palms menu is the building itself and the total radiation if I connect a panel you can see that this is giving us 36 37 okay excuse me that was 37 37 different results and that is because we connected orientation study parameters here so what we did is we divided we made a 360 and degrees and steps of 10 so let's just make a range we talked about range in different tutorials but for now we need a domain so the domain was from 0 to 360 connect that to the domain it will just automatically add that to the end of the domain and the steps are 36 because if you just count up 10 20 30 to 360 that's simply a math 360 divided by 10 that means 36 steps and now you can see that these are the numbers 0 10 20 to 360 and that's 337 results so why did I do that because we want to find which one which degrees here is the best results and you can simply do that by sorting okay with that let's go and sort the list the key that's total radiation and give that here so you can see that sorting this from smaller to bigger and I'm going to reverse the source because I want that from bigger just smaller okay again you have to also reverse the outputs here so when it's going to mix and sort the list of total radiation we also want to sort the degrees here so if you connect another panel to the values a you can see that that's the equivalent of the radiation so the best result is coming up by twenty degree rotation and then it's going by forty degrees and so on and worse the result is going by 300 degrees so what we wanted to do is to simply use a list item which we had that before and pick the first result of the key and the first result of the value a and here we have it so this is the maximum radiation and this is the best so let's just type this the best orientation right and this is the best radiation so what we want to do is to rotate our building 20 degrees and so we just rotate that building around its center we just gave it here in the orientation study parameters let's just give this to the center the axis is Z and the angle is going to be degrees and that's 20 degrees and this off turn this off and here we have the best results you can see that the building orientation is here and you can see that the most radiation we had before in the radiation rose was in the south of the south of the building and we have less radiation at the North so here you can see also the radiation rose on the building if I just put that in the center it was better so we can also scale that a little bit up maybe three times so we can see that make make that a little bit bigger so this was the way you can do that but to prove that you can see if I change the location of these buildings it's also going to change the orientation to another degree so let's just do that what I'm going to do is to change the orientation and I'm going to maybe move this a little bit further okay okay that is running and okay it took a while so I'm going to turn everything off and you can see that this is making it 180 degrees so it's basically changing the radiation because we've blocked it maybe and it's trying to have more radiation at this point because it's just being blocked by this building so you can always change the building but remember you can always in the middle click of the button you can just lock this solar change the location and again unlock it so because if you just move it you can see that it's going to take maybe five minutes to just calculate this on a regular basis okay thank you for watching and that was a ladybug grasshopper tutorial and like this video to support us and subscribe to our Channel and also comment your ideas and your opinion about this video tutorial and see you later thank you for watching and subscribe to our Channel and you can also watch something that is related to this video that corner and see you next time [Music] [Music]
Info
Channel: Rhino Grasshopper
Views: 206,210
Rating: undefined out of 5
Keywords: Ladybug Grasshopper, ladybug, grasshopper, tutorial, grasshopper3d, parametric design, parametric modeling, parametric architecture, optimization
Id: XaNSy9-LEpc
Channel Id: undefined
Length: 35min 2sec (2102 seconds)
Published: Mon Nov 19 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.