lighting simulations: a parametric perspective...lighting simulations: a parametric perspective...
TRANSCRIPT
1
Lighting Simulations: A Parametric Perspective
Sarith Subramaniam
2
Thinking parametrically
1 2 4 6
How many reflections are required to simulate venetian blinds?
Should I use venetian blinds?
3
Which luminaire should be used?
4
I got interested in Parametric Design in late 2014……
5
…and got introduced to Grasshopper and Honeybee
6
(Rhino (Grasshopper (Honeybee )))
7
Daylighting simulation in Rhino with Honeybee through Radiance
Simulation Results
8
Daylighting simulation in Rhino with Honeybee through Radiance
Input
Output
9
Daylighting can be analyzed and visualized in different ways
10
There is more to Honeybee than Daylighting
Energy
Computational Fluid Dynamics
Photovoltaics
Thermal Comfort
11
food4rhino.com/grasshopper-addons/most-downloaded
12
Hacking
13
github.com/mostaphaRoudsari/Honeybee/graphs/contributors
is an Open Source Software
Mostapha Sadeghipour Roudsari(UPenn, Thornton Tomasetti)
14
github.com/mostaphaRoudsari/Honeybee/blob/master/License_Honeybee_GPL.txt
15
What is the total radiation when the HVAC system is cooling? Or heating?
What is the total radiation on weekdays only? etc …
Solar radiation on a façade between two time intervals
1 Jan to 31 Dec
3 Apr to 19 Nov …etc.
2 Jan, 3 Mar, 6 Nov …etc.
16
Solar radiation between two time intervals for specific hours
Additions and Deletions to the source-code (excerpt)
17
The hacked component extended the functionality of the original
18
Some of the hacked components
Calculates Annual Sunlight Exposure
Automates Glazing Placement
Filters Weather Data and creates sky definitions
Locates Results
19
14th International Radiance Workshop, Philadelphia – August 2015
20
We weren’t the only ones interested in Honeybee….
(GSD 6480)*
(A4792) *(ARCH 754) *
(ARCH 407-507) *
*(Refers to the course being taught this academic year that incorporates Honeybee in the syllabus).
21
….and I wasn’t the only one trying to hack it.
22
….and I wasn’t the only one trying to hack it.
23
One of the issues with hacking a “live” software: keeping up!
Hacked Component
24
Hacking Developing
25
github.com/mostaphaRoudsari/Honeybee/graphs/contributors
26
Some hacked components got integrated into the source-code
27
Wrote source-code for incorporating luminaires
https://github.com/mostaphaRoudsari/Honeybee/pull/445
28
facebook.com/Rhinoceros4point0/posts/10154466953877598
29
Limitations……..
30
Hacking Developing Rewriting
31
github.com/ladybug-analysis-tools/honeybee/graphs/contributors
32
Hacking Developing Rewriting
Support Revit, Rhino (and everything else)
33
The beta-version already works on Revit and Rhino
youtube.com/watch?v=61GdhCy3RMA
34
Hacking Developing Rewriting
Support Revit, Rhino (and everything else)
Cross OS Compatibility
35
*
The beta-version works on Windows and Unix-based systems…..
36
……. but Revit and Rhino are only Windows-based*. So why bother?
37
oconv -w materials.rad LfWl.rad
rpict -t 0 -e logfiles/LfWl.log -S 1 -PP pfVOKkZD -x 5532 -y 2718 -dp 4096 -ar 5 -ms 11 -ds .1 -dj
.9 -dt .05 -dc .75 -dr 3 -ss 16 -st .01 -ab 6 -af ambfiles/LfWl.amb -aa .075 -av 2 2 2 -lr 12 -lw
1e-5 -ps 1 -pt .04 -as 5000 -ad 50000 -av 2.5 2.5 2.5
1 core on an 8 core i7 processor (Parallel Processing)
19 hrs, 37 min
Illuminance Luminance
38
oconv -w materials.rad LfWl.rad
rpict -t 0 -e logfiles/LfWl.log -S 1 -PP pfVOKkZD -x 5532 -y 2718 -dp 4096 -ar 5 -ms 11 -ds .1 -dj
.9 -dt .05 -dc .75 -dr 3 -ss 16 -st .01 -ab 6 -af ambfiles/LfWl.amb -aa .075 -av 2 2 2 -lr 12 -lw
1e-5 -ps 1 -pt .04 -as 5000 -ad 50000 -av 2.5 2.5 2.5
8 cores on an 8 core i7 processor
19 hrs, 37 min
3 hrs, 14 min
39
oconv -w materials.rad LfWl.rad
rpict -t 0 -e logfiles/LfWl.log -S 1 -PP pfVOKkZD -x 5532 -y 2718 -dp 4096 -ar 5 -ms 11 -ds .1 -dj
.9 -dt .05 -dc .75 -dr 3 -ss 16 -st .01 -ab 6 -af ambfiles/LfWl.amb -aa .075 -av 2 2 2 -lr 12 -lw
1e-5 -ps 1 -pt .04 -as 5000 -ad 50000 -av 2.5 2.5 2.5
40 cores on a non-dedicated 288 core Xeon cluster
19 hrs, 37 min
3 hrs, 14 min
1 hr, 18 min
40
aws.amazon.com/ec2/
19 hrs, 37 min
3 hrs, 14 min
1 hr, 18 min
19 hrs or a few minutes(user’s choice)
“commission one, hundreds or even thousands of server instances simultaneously”
“…complete control of your instances. You haveroot access to each one…”
41
Hacking Developing Rewriting
Support Revit, Rhino (and everything else)
Cross OS Compatibility
Optimize lighting simulation methods
Simplify syntax with abstractions
Type and Error Checking
Apply Object Oriented Programming (OOP)
Implement Recipes
Leverage Python to Reduce Effort
42
Ambient Caching
(Ward, Rubinstein, Clear 1988)A ray tracing solution for diffuse interreflection
(Ward 1994)The RADIANCE lighting simulation and rendering system
(Ward 2007)Implementation of irradiance caching in RADIANCE
(Grynberg 1989)Validation of Radiance
43
This “scene” has direct and diffused light.
1844 x 966 pixels
1 Pixel: Red Channel, Green Channel, Blue Channel, Luminance
The model inside Rhino
44
Reflections for diffused(ambient) sampling: 0
45
Reflections for diffused(ambient) sampling: 0, 1
46
Reflections for diffused(ambient) sampling: 0, 1, 2
47
Reflections for diffused(ambient) sampling: 0, 1, 2, 3
48
Reflections for diffused(ambient) sampling: 0, 1, 2, 3, 4
49
Reflections for diffused(ambient) sampling: 0, 1, 2, 3, 4, 5
Convergence(almost)
50
Strategy: Store and reuse ambient calculations to reduce computation
51
Photon Caching
(Ward, Rubinstein, Clear 1988)A ray tracing solution for diffuse interreflection
(Ward 1994)The RADIANCE lighting simulation and rendering system
(Ward 2007)Implementation of irradiance caching in RADIANCE
(Grynberg 1989)Validation of Radiance
(Jensen 2000)Global illumination using photon maps
(Schregle 2007)Daylight simulation with photon maps
(Schregle, Wienold 2004)Physical validation of global illumination methods: measurement and analysis
Caustics
52
Same image with higher exposure
Ambient Photons Caustic Photons
Caustics
Photon distribution depends on diffused light and caustics
53
Ambient Photons Caustic Photons
Caustics
Photon distribution depends on diffused light and caustics
54
Strategy: Pre-calculate photons and use them for multiple simulations
55
Daylight Coefficients
(Ward, Rubinstein, Clear 1988)A ray tracing solution for diffuse interreflection
(Ward 1994)The RADIANCE lighting simulation and rendering system
(Ward 2007)Implementation of irradiance caching in RADIANCE
(Grynberg 1989)Validation of Radiance
(Tregenza 1983)Daylight coefficients
(Reinhart, Herkel 2000)The simulation of annual daylight illuminance distributions – a state-of the-art comparison of six RADIANCE-based methods
(Reinhart, Walkenhorst 2004)Validation of dynamic RADIANCE-based daylight simulations for a test office with external blinds
56
Assumption1: Daylighted spaces are surrounded by a discretized hemispherical sky
57
Assumption2: Building geometry and surfaces do not change with time. Sky brightness changes.
58
Assumption2: Building geometry and surfaces do not change with time. Sky brightness changes.
59
Strategy: Save the geometric relationship between sky patches and the daylighted space in a file.
DC x Sky at 8 AM
DC
60
DC x Sky at 9 AM
61
DC x Sky at 10 AM
62
DC x Sky at 11 AM
63
DC x Sky at 12 PM
64
DC x Sky at 1 PM
65
DC x Sky at 2 PM
66
DC x Sky at 3 PM
67
DC x Sky at 4 PM
68
DC x Sky at 5 PM
69
Matrix based methods
(Ward, Rubinstein, Clear 1988)A ray tracing solution for diffuse interreflection
(Ward 1994)The RADIANCE lighting simulation and rendering system
(Ward 2007)Implementation of irradiance caching in RADIANCE
(Grynberg 1989)Validation of Radiance
(Tregenza 1983)Daylight coefficients
(Ward, Mistrick, Lee, McNeil, Jonsson 2011)Simulating the daylight performance of complex fenestration systems using bidirectional scattering distribution functions within Radiance
(McNeil, Lee 2013)A validation of the Radiance three-phase simulation method for modelling annual daylight performance of optically complex fenestration systems.
70
The path between the space and the sky is split into multiple phases or files.
Entire calculation is repeated each time. Calculation time can be reduced by reusing phases
71
The split is accomplished by hemispherical sampling.
72
The challenge in implementation
oconv –f materials.rad room.rad > room.oct
rfluxmtx –v –o matrices/%s.vmx –I+ -ab 2 –ad 50000 –lw 2e-5 –n 4 –y 100 – objects/glazing.rad –iroom.oct <points.txt
rfluxmtx –v –ff -ab 4 –ad 10000 –lw 1e-5 –c 5000 –n 4 objects/Glazing.rad skyglow.rad –i room.oct > matrices/Glazing.dmx
epw2wea skies/USA_NY_New.York.City-Central.Park.94728_TMY_3.epw skies/NYC.weagendaymtx –m 4 skies/NYC.wea > skies/NYC.smx
dctimestep –h matrices/Glazing.vmx tmatrix/Clear.xml matrices/Glazing.dmx skies/NYC.smx> illuminance_annual.txt
73
74
We started implementing matrix based methods in Honeybee a few months ago.
Dissertation research
Reviewing simulation methods
Software development
Test hypotheses
75
Future work: Investigate relevance through hypotheses driven studies
76
Thank you
77