a new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข convergence is 1/n instead of 1/...

17
1 CASA-day April 6, 2016 A new ray tracing method based on phase space Carmela Filosa Jan ten Thije Boonkkamp Wilbert IJzerman

Upload: others

Post on 17-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

1 CASA-day April 6, 2016

A new ray tracing method

based on phase space

Carmela Filosa

Jan ten Thije Boonkkamp

Wilbert IJzerman

Page 2: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications 2

Phase space based ray tracing

โ€ข Introduction of ray tracing

โ€“ A two-dimensional optical system: the TIR-collimator

โ€“ Physical background

โ€“ Issues with ray tracing

โ€ข The idea: phase space based ray tracing

โ€“ How to improve ray tracing

โ€“ Boundaries are mapped onto boundaries

โ€ข Implementation

โ€“ Refinement procedure

โ€“ Boundary detection

โ€“ Calculation of intensity

โ€ข Results

โ€“ Speed of convergence

โ€ข Conclusion and outlook

Outline

Page 3: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

3

Ray tracing is like playing billiards

Page 4: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications 4

Ray tracing for a TIR-collimator

Page 5: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications 5

Background

๐‘ 2 =๐‘›1๐‘›2๐‘ 1 + 1 โˆ’

๐‘›1๐‘›2

2

+๐‘›1๐‘›2

2

๐‘›, ๐‘ 1 2 โˆ’๐‘›1๐‘›2๐‘›, ๐‘ 1 ๐‘› ๐‘›

๐‘ก2 = ๐‘ก1 โˆ’ 2 ๐‘ก1, ๐‘› ๐‘›

Law of reflection::

Law of refraction::

I = ๐‘‘ฯ•

๐‘‘๐‘ก ๐‘๐‘‘ = ๐‘™๐‘š/๐‘Ÿ๐‘Ž๐‘‘

L = ๐‘‘2ฯ•

cos(๐‘ก) ๐‘‘๐‘Ž๐‘‘๐‘ก ๐‘๐‘‘/๐‘š

Intensity::

Luminance::

ร‰tendue:: ๐‘‘๐ธ = ๐‘› ๐‘‘๐‘Ž cos(๐‘ก) ๐‘‘๐‘ก ๐‘š ๐‘Ÿ๐‘Ž๐‘‘

Flux:: Measure of the perceived power of light by the human eye, (ฯ• = ๐‘™๐‘š ) .

n reflected ray incident ray

Page 6: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

โ€ข Shoot rays from source to target randomly

Centre for Analysis, Scientific computing and Applications 6

What is ray tracing?

Our model

โ€ข Intensity calculated by counting the rays in bins

Convergence (Compared to a simulation with a large number of rays)

Page 7: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

7

โ€ข Full system is characterized by phase space

โ€ข ๐’ซ๐‘ : ๐’ฎ๐—‘ โˆ’1,1 (position ๐‘ฅโˆŠ๐’ฎ and angle ฯ„ = sin ๐‘ก) ๐’ซ๐‘ก: ๐’ฏ๐—‘ โˆ’1,1 (position ๐‘žโˆŠ๐’ฏ and angle ฮท = sin ฮธ).

โ€ข The optical map โ„ณ:๐’ซ๐‘  ๐’ซ๐‘ก maps region to region and

boundary to boundary (Riesz)

How to improve ray tracing?

๐’ซ๐‘  ๐’ซ๐‘ก

Page 8: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

8

Implementation: How to find the boundaries on source phase space?

โ€ข On source phase space: take a coarse grid

โ€ข If paths are different refine unless already fine enough

Page 9: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

9

Implementation: How to find the boundaries on target phase space?

Method 1: use alpha-shapes 1

For a cloud of points, like eating stracciatella ice-cream with a spoon without eating the chocolate

1 F. Bernardini and C. L. Bajaj, โ€œSampling and reconstructing manifolds using alpha-shapes,โ€ (1997)

Issue: how to choose the size of your spoon? (We used an ร‰tendue argument)

Page 10: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

10

Method 2: use that boundary is mapped on boundary for regions of phase space 1

Implementation: How to find the boundaries on target phase space?

1 H. Ries and A. Rabl, โ€œEdge-ray principle of nonimaging optics,โ€ JOSA A 11, 2627โ€“2632 (1994)

Page 11: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

11

Implementation: How to find the boundaries on target phase space?

1 H. Ries and A. Rabl, โ€œEdge-ray principle of nonimaging optics,โ€ JOSA A 11, 2627โ€“2632 (1994)

Method 2: use that boundary is mapped on boundary for regions of phase space 1

More points around the boundaries

Page 12: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

12

Implementation: How to find the boundaries on target phase space?

To calculate intensity: integrate along a line If we assume constant brightness (Lambertian source) We obtain:

๐ผ๐‘ƒ๐‘† ฮท = ๐ฟ๐‘ก ๐‘ž, ฮท ๐‘‘๐‘ž๐‘žฮ ๐‘—,2๐‘– ฮท

๐‘žฮ ๐‘—,2๐‘–โˆ’1 ฮท๐‘–,๐‘—

๐ฟ๐‘† ๐‘ฅ, ๐œ = ๐ฟ๐‘ก ๐‘ž, ฮท = 1

๐ผ๐‘ƒ๐‘† ฮท = ๐‘žฮ ๐‘—,2๐‘– ฮท โˆ’ ๐‘žฮ ๐‘—,2๐‘–โˆ’1 ฮท

๐‘–,๐‘—

Page 13: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

13

โ€ข Method calculates intensity correctly

Results

โ€ข Convergence is 1/N instead of 1/ ๐‘

PS intensity with around 105 rays.

Reference intensity: MC ray tracing with 108 rays.

Using ray tracing on PS far fewer rays need to be traced to obtain the same accuracy.

Page 14: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

14

Conclusions and outlook

โ€ข This method is 2D only (meridional plane) but can be extended to 3D as well

โ€ข More rapid convergence 1/N versus 1/ ๐‘

โ€ข Future work: include Fresnel reflection and scattering phenomena

Acknowledgement:

I would like to thank Jorg Portegies for helpful discussions and providing his master thesis on which this work is based.

Page 15: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with
Page 16: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

16

How to choose the parameter ฮฑ for the ฮฑ-shapes method

Page 17: A new ray tracing method based on phase space...2016/04/06 ย ยท โ€ข Convergence is 1/N instead of 1/ ๐‘ Using ray tracing on PS far fewer rays need to be traced to PS intensity with

Centre for Analysis, Scientific computing and Applications

17

Stopping criterion for the triangulation refinement