We need your help! 🔥
Please consider disabling your ad-blocker to support this website! 🔑
We are a free, community-supported website! 🥰
We only display small unobtrusive ads which help us stay online! 💯
Thank you in advance! ❤️
0 | Ladybug
1 | AnalyzeWeatherData
2 | VisualizeWeatherData
3 | EnvironmentalAnalysis
4 | Renewables
5 | Extra
6 | Developers
7 | WIP

Sunlight Hours Analysis

This component calculates the number of hours of direct sunlight received by input geometry using sun vectors from the sunPath component.
This component can be used to evaluate the number of hours of sunlight received by vegetation in a park or the hours where direct sunlight might make a certain outdoor space comfortable or uncomfortable.
It can also be used for coarsely-gridded shadow studies in the Rhino scene . For finer and more detailed shadow studies with simple input geometry, the Ladybug ShadowStudy component can be used. For detailed shadow studies with complex geometry, the Honeybee daylight tools are recommended.

Inputs

NameIDDescriptionType
Northnorth_Input a vector to be used as a true North direction for the sun path or a number between 0 and 360 that represents the degrees off from the y-axis to make North. The default North direction is set to the Y-axis (0 degrees). In case you have provided rotation value for the North in the Sunpath component, there's no need to provide the same rotation value here. Doing this will give you erroneous results.Goo
Geometry_geometryGeometry for which sunlight hours analysis will be conducted. Geometry must be either a Brep, a Mesh or a list of Breps or Meshes.Goo
Contextcontext_Context geometry that could block sunlight to the test _geometry. Conext geometry must be either a Brep, a Mesh or a list of Breps or Meshes.Goo
Grid Size_gridSize_A number in Rhino model units that represents the average size of a grid cell for sunlight hours analysis on the test _geometry. This value should be smaller than the smallest dimension of the test _geometry for meaningful results. Note that, the smaller the grid size, the higher the resolution of the analysis and the longer the calculation will take.Goo
Dis From Base_disFromBaseA number in Rhino model units that represents the offset distance of the test point grid from the input test _geometry. Usually, the test point grid is offset by a small amount from the test _geometry in order to ensure that sunlight hours analysis is done for the correct side of the test _geometry. If the resulting testPts of this component are offset to the wrong side of test _geometry, you should use the "Flip" Rhino command on the test _geometry before inputting it to this component.Goo
Orientation Study PorientationStudyP_Optional output from the "Orientation Study Parameter" component.Goo
Sun Vectors_sunVectorsSun vectors from the sunPath component, which will be used to determine the number of hours of direct sunlight received by the test _geometry.Goo
Time Step_timeStep_The number of timesteps per hour used by the sunPath component that generated the sun vectors. This number should be smaller than 60 and divisible by 60. The default is set to 1 such that one ssun vector is generated for each hour.Goo
___________________...Goo
Legend ParlegendPar_Optional output from the "Orientation Study Parameter" component. You can use an Orientation Study input here to answer questions like "What orientation of my building will give me the highest or lowest hours of direct sunlight for my analysis period?" An Orientation Study will automatically rotate your input _geometry around several times and record the sunlight hours results each time in order to output a list of values for totalSunlightHours and a grafted data stream for sunlightHoursResult.Goo
Parallelparallel_Set to "True" to run the sunlight hours analysis using multiple CPUs. This can dramatically decrease calculation time but can interfere with other intense computational processes that might be running on your machine.Goo
Run It_runItSet to "True" to run the component and perform sunlight hours analysis on the input _geometry.Goo
Bake ItbakeIt_An integer that tells the component if/how to bake the bojects in the Rhino scene. The default is set to 0. Choose from the following options: 0 (or False) - No geometry will be baked into the Rhino scene (this is the default). 1 (or True) - The geometry will be baked into the Rhino scene as a colored hatch and Rhino text objects, which facilitates easy export to PDF or vector-editing programs. 2 - The geometry will be baked into the Rhino scene as colored meshes, which is useful for recording the results of paramteric runs as light Rhino geometry.Goo
Working DirworkingDir_Use this input to change the working directory of the sunlight hours analysis on your system. Input here must be a valid file path location on your computer. The default is set to "C:\Ladybug" and it is from this file location that sunlight hours results are loaded into grasshopper after the analysis is done.Goo
Project NameprojectName_Use this input to change the project name of the files generated in the working directory. Input here must be a string without special characters. If "bakeIt_" is set to "True", the result will be baked into a layer with this project name.Goo

Outputs

NameIDDescriptionType
OutreadMe!...String
Context MeshcontextMeshAn uncolored mesh representing the context_ geometry that was input to this component. Connect this output to a "Mesh" grasshopper component to preview this output seperately from the others of this component. Note that this mesh is generated before the analysis is run, allowing you to be sure that the right geometry will be run through the analysis before running this component.Goo
Analysis MeshanalysisMeshAn uncolored mesh representing the test _geometry that will be analyzed. Connect this output to a "Mesh" grasshopper component to preview this output seperately from the others of this component. Note that this mesh is generated before the analysis is run, allowing you to be sure that the right geometry will be run through the analysis before running this component.Goo
Test PtstestPtsThe grid of test points on the test _geometry that will be used to perform the sunlight hours analysis. Note that these points are generated before the analysis is run, allowing you to preview the resolution of the result before you run the component.Goo
Test VectestVecVectors for each of the test points on the test _geometry, which indicate the direction for which sunlight hours analysis is performed. Hook this and the test points up to a Grasshopper "Vector Display" component to see how analysis is performed on the test _geometry.Goo
_____________________...Goo
Sunlight Hours ResultsunlightHoursResultThe number of hours of direct sunlight received by each of the test points of the input test _geometry. Note that is is the number of hours out of the total number of connected _sunVectors.Goo
Sunlight Hours MeshsunlightHoursMeshA colored mesh of the test _geometry representing the hours of direct sunlight received by this input _geometry for the input sunVectors.Goo
Sunlight Hours LegendsunlightHoursLegendA legend for the sunlight hours study showing the number of hours that correspond to the colors of the sunlightHoursMesh. Connect this output to a grasshopper "Geo" component in order to preview the legend separately in the Rhino scene. Goo
Legend Base PtlegendBasePtThe legend base point, which can be used to move the legend in relation to the sunlight hours mesh with the grasshopper "move" component.Goo
Total Sunlight HourstotalSunlightHoursThe average number of hours of direct sunlight received by the test _geometry.Goo
Sun Is VisiblesunIsVisibleA grafted data stream for each test point with a "1" for each hour of the sunVectors that the sun is visible and a "0" for each hour of the sunVectors when the sun is blocked.Goo

Video Tutorials

Site design © Robin Rodricks.   Site co-created by Andrew Heumann.   Ladybug and associated data © 2024 Ladybug Tools.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service