Open Access
11 January 2021 Ray-tracing simulation of gravitational lensing using a gradient-index model
Nicole J. Moore, Yang Zhao, Greg Schmidt, Duncan T. Moore
Author Affiliations +
Abstract

We present a method for modeling gravitational lensing as gradient-index lenses in the ray-tracing software CODE V. When applied to gravitational lensing by the Sun, these models yield results in agreement with theoretical and experimental results. The extension of this type of model to “lumpy” astronomical objects whose lensing behavior is difficult to predict with traditional methods is discussed.

1.

Introduction

The techniques and insights particular to optical engineering have been applied to a variety of disciplines beyond optics.1 In particular, the analysis of “ray” paths in analogs to gradient-index (GRIN) media2 has yielded interesting results in fields as diverse as oceanography and coastal engineering,3,4 acoustics,5 seismic waves,6 and chemical physics.7 In this paper, we apply the tools of optical engineering to a problem that is, at once, familiar—since the rays here are indeed light rays—and unfamiliar—since the rays are bent not by materials but by the presence of massive gravitating bodies.

Gravitational lensing (i.e., the bending of light rays by a massive object) was one of the first predictions of Einstein’s General Theory of Relativity to be experimentally confirmed. Eddington et al.8 measured the gravitational deflection of light rays by the Sun during the total eclipse of the Sun in 1919. Results from these measurements (1.61±0.30  arcsec and 1.98±0.12  arcsec) were consistent with the value predicted by General Theory of Relativity of 1.75 arc sec, differing from the Newtonian prediction of 0.87 arc sec by a factor of nearly two. In the intervening years, agreement between theoretical and experimental values for ray deflection by the sun has been refined through the use of radio astronomy to better than three parts in ten thousand.9

Knowledge of the lensing effects allows for estimation of the total mass of the galaxy acting as the lens.10 Given that the amount of light (visible) matter in those galaxies is substantially less than the predicted mass of the galaxies, this method provides an estimate for the amount of dark matter present in them. Since the galaxies forming the lenses are typically several orders of magnitude further away from Earth and from the source of the light rays than they are thick, astronomers typically treat them as thin lenses (i.e., they assume that all the bending takes place in a single plane11), using the models often taught in introductory physics courses to describe ray bending.

This method is, however, poorly suited to situations when a group of galaxies forms a “lumpy” lens, as is the case with visually striking examples such as the Cheshire Cat,12 which consists of three galaxies acting as a lens for the light produced by several more distant galaxies. (The Cheshire Cat indeed takes its name from the grinning cat in Lewis Carroll’s Alice in Wonderland. See it at NASA’s Astronomy Picture of the Day, 2015 November 2713.) In addition to the simple deflection of light rays by gravitating bodies, astronomers have observed gravitational lensing of very distant galaxies by a somewhat less distant galaxy, including the production of multiple images.14 In these cases, ray tracing cannot be accomplished by the simple application of the law of refraction since the index of refraction cannot be modeled as homogeneous. Instead, Fermat’s principle governs ray propagation in such media: rays travel along paths of stationary optical path length, where the optical path length is the product of the refractive index and the path length. For example, the existence of four stationary paths is demonstrated in the four images formed by the lensing galaxy in the famous case of the Einstein Cross (see it at NASA’s Astronomy Picture of the Day, 2017 December 1715).

One solution to this difficulty is to model gravitational lenses as GRIN lenses.16,17 In this paper, we present a method for modeling gravitational lenses as GRIN lenses in the ray tracing software CODE V. Although there are several methods to numerically integrate ray paths in a gradient index medium, CODE V uses a standard Runge–Kutta method.18 Practical considerations, including the algorithmic efficiency and accuracy, of ray tracing in GRIN materials with this software are well documented.19 We demonstrate that the method presented herein produces results consistent with theory and experiment for the case of gravitational deflection of grazing rays by the Sun. Then we discuss its potential for use for modeling a group of galaxies that form a lumpy lens.

2.

Implementation of Models in CODE V

In this work, the Sun is simulated as a Schwarzschild gravitating body (i.e., a static, spherical mass distribution). For such a body, the index of refraction in spherical coordinates is

Eq. (1)

n(r)=rrrg,
where r is the radial distance from the center of mass of the object causing the gravitational field and rg is the Schwarzschild radius (i.e., the radius of the largest black hole with the same mass as the the object).17 This index distribution is plotted in Fig. 1. For the purpose of numerical evaluation, the unit for simulation of solar gravitational lensing is selected as the solar radius (SR), which is 6.957×108  m. The Schwarzschild radius of the Sun is 2.95×103  m, which is equivalent to 4.24×106 SR. The change of index of refraction from unity decreases as the point of interest moves away from the center of the Sun. At an infinite distance, the index of refraction reduces to unity.

Fig. 1

Semilog plot of the index variation of vacuum as a function of distance from the center of the Sun.

OE_60_1_015104_f001.png

It can be concluded that, in the case of solar gravitational lensing, the majority of the index of refraction variation from the Sun’s gravity occurs within 100 SR from the center of the Sun. For a numerical ray tracing simulation with finite computational resources, this conclusion provides an important guideline for setting up the simulation in CODE V. However, the gravitational field GRIN does not follow any of the existing GRIN conventions in CODE V. In order to define this kind of arbitrary gradient in a material, we employ the most rapid and robust method to allow ray tracing through arbitrary GRIN materials—the user-defined gradient (UDG) subroutine in CODE V. The UDG subroutine must be programmed to compute the index of refraction at any point in space as well as the explicit derivatives of the index of refraction. For a gravitational field that is represented by a GRIN material, the GRIN coefficients are related to the astronomical constants and coefficients of the body that is under simulation, such as its Schwarzschild radius.

To simulate the light deflection due to the gravitational lensing of the Sun, a user-defined GRIN material representing as a Schwarzschild gravitating body with the Schwarzschild radius equal to that of the Sun is programmed. Additional details regarding this GRIN material are provided in the Appendix. The simulation region is programmed to be a cylindrical region, 2 SR in diameter and 1000 SR in length, symmetrically positioned around the center of the Sun. A schematic of this simulation is presented in Fig. 2. When a geometrical ray, aimed to graze the surface of the Sun, is traced through the simulation region, the ray deflection angle between the input and output rays is recorded as 1.749 arc sec, in agreement with theoretical (1.75 arc sec) and experimental results, which, as noted in the introduction, agree with theoretical predictions to three parts in a thousand. (The advent of radio astronomy has obviated the need to look only for grazing rays during solar eclipses, and hence these measurements have been made for rays traveling at various distances from the Sun’s center. For a grazing ray, this would be equivalent to 1.750±0.005  arcsec.) Sen’s computational model using the same expression for the index of refraction yields a ray deflection angle of 1.78 arc sec, so we see that the robust and well-tested codes of the UDG subroutine in CODE V yield better agreement with theory and experiment.

Fig. 2

Schematic diagram of the ray-tracing simulation of gravitational lensing by the Sun.

OE_60_1_015104_f002.png

In addition to the simulation of the Sun, the ray deflection angles of Schwarzschild gravitating bodies with differing ratios between Schwarzschild radius and physical radius are evaluated. Note that this ratio is 1 for black holes. The relationship between the deflection angle and the Schwarzschild-physical-radius-ratio is linear when the Schwarzschild radius is very small compared to the physical radius of the gravitational body (as is the case for main sequence stars and even galaxies), as shown in Fig. 3. However, as the Schwarzschild radius becomes a noticeable fraction of the physical radius (or equivalently, as the density becomes very high, as it does for objects like neutron stars), the deflection angle becomes nonlinear with the Schwarzschild radius, as shown in Fig. 4.

Fig. 3

Plot of deflection angle versus ratio of Schwarzchild radius to physical radius of a gravitating body. This relationship is linear when this ratio is small, as for most stars.

OE_60_1_015104_f003.png

Fig. 4

Log–log plot of deflection angle versus ratio of Schwarzchild radius to physical radius of a gravitating body. This relationship is no longer linear as the Schwarzchild radius becomes an appreciable fraction of the physical radius. The ratios for common astronomical objects, including the Sun, the Milky Way, a white dwarf, and a neutron star are indicated for reference.

OE_60_1_015104_f004.png

It is also possible to model a Kerr (i.e., rotating spherical) body in a similar fashion,20 although several simplifying assumptions are necessary to reduce the complexity of that problem, as discussed in the Appendix. Note that treating the Sun as a Kerr body does not make a meaningful difference in the ray deflection angle.

3.

Limitations of the Model

The programmed GRIN model for both Schwarzschild and Kerr bodies can be applied to different gravitational bodies by tuning the parameters. Additionally, more complex models can be programmed by combining multiple displaced bodies with appropriate parameters. However, some limitations must be addressed before more complex systems can be simulated usefully using the aforementioned methodology.

When modeling the gravitational lensing effect in imaging optical-design software such as CODE V or OpticStudio, there is an intrinsic trade-off between the range and the precision, because the software is primarily designed for the purpose of modeling imaging lenses for which an extraordinarily large dynamic range is not required. Although optical values can be evaluated with 12 significant digits in CODE V in double-precision floating-point format, ray tracing can be problematic when simulating gravitational lensing because the object is often very far from the lens compared with its spatial extent. It is, therefore, difficult to simulate the propagation of light on a large scale while simultaneously modeling the lensing effects that occur on a small spatial scale. When modeling imaging optics, it is common to consider objects that are far away as objects at infinity, in which case the accurate representation of very large object distance is not critical to the ray tracing results. This is true because the object distance is usually much greater than the effective focal length of the lens. However, in the scenario of modeling gravitational lensing, the lensing effect from an astronomical body is usually very weak, creating an exceptionally large effective focal length for the lens. Thus although the object is far away on an absolute scale, it cannot be treated as object at infinity. The accurate representation of these extraordinarily large numbers becomes more important, and in some cases, this can become a challenge when the software has limited dynamic range in its data structure.

4.

Concluding Remarks

Our current models using existing imaging optical design software are capable and accurate in forward calculations of the lensing effect. The simulation method described is dependent on accurate knowledge of the astronomical configurations and parameters of the gravitational system. This information is often unknown or needs to be derived based on observations of the gravitational lensing effects. Performing backward calculations to solve for astronomical facts from the observed data is not practical using the GRIN model within existing optical design software.

Ideally, custom ray tracing software must be developed to fully exploit the potential of the GRIN model for simulation of gravitational lensing, allowing for modeling of “lumpy” lenses and other complex phenomena. Recent work on the modeling of freeform GRIN in two dimensions to achieve a predetermined and complex irradiance distribution21 is an interesting inverse problem, whose solution in three dimensions may prove useful to the inverse problem of determining the dark matter composition of these lumpy astronomical lenses. Additionally, biological media have many similarities to complex astronomical lenses, consisting as they do of many elements of different compositions and shapes, despite the large differences in scale.22,23 Similarly, propagation of light through the atmosphere presents many related challenges.24,25 Continued work to improve and expand optical engineering codes will make problems from across science and engineering disciplines more tractable.

5.

Appendix: Gradient-Index Models for Spherical Gravitating Objects

In this section, we consider both Schwarzschild (static spherical) and Kerr (rotating spherical) gravitating objects.

5.1.

Schwarzschild Gravitating Body

For a static, spherically symmetric gravitational field, the index of refraction in spherical coordinates is

Eq. (2)

n(r)=rrrg,
where r is the radial distance from the center of mass of the object causing the gravitational field and rg is the Schwarzschild radius.17 This can be rewritten in terms of the Cartesian coordinates for ease of use in CODE V

Eq. (3)

n(x,y,z)=x2+y2+z2x2+y2+z2rg.
For CODE V to treat this index distribution as a GRIN, nn is also necessary; due to the symmetry of this index distribution the three terms will be fundamentally similar. A bit of algebra after taking the partial derivatives yields

Eq. (4a)

nnx=xrg(x2+y2+z2rg)3,

Eq. (4b)

nny=yrg(x2+y2+z2rg)3,

Eq. (4c)

nnz=zrg(x2+y2+z2rg)3.

5.2.

Kerr Gravitating Body

For a Kerr gravitating body (i.e., a rotating spherically symmetric object), the index of refraction in spherical coordinates is given in Refs. 16 and 20. Here, it has been converted to Cartesian coordinates

Eq. (5)

n(x,y,z)=x2+y2+z2x2+y2+z2rg(1+2αrgx2+y2+z2rg1cdϕdt),
where α is the rotation parameter and 1cdϕdt describes the frame dragging. In the equatorial plane20

Eq. (6)

dϕdt=rgα+(x2+y2+z2rg)b(x2+y2+z2)3/2[1+α2x2+y2+z2+rgα2(x2+y2+z2)3/2]rgαbc,
where the impact parameter b=Lc/E0 (Here, L is the angular momentum and E0 the conserved energy of the light.) In the far field of the equatorial plane, this simplifies to20

Eq. (7)

dϕdt=rgα+(x2+y2+z2rg)b(x2+y2+z2)3/2rgαbc.
Therefore, for light incident on the equatorial plane of the gravitating body, in the far field, the index of refraction simplifies to

Eq. (8)

n(x,y,z)=x2+y2+z2x2+y2+z2rg×[1+2αrgx2+y2+z2rgrgα+(x2+y2+z2rg)b(x2+y2+z2)3/2rgαb]1/2.
Here, nx is given by

Eq. (9)

nx=x1+2αrg+b(x2+y2+z2rg)(x2+y2+z2rg)[(x2+y2+z2)3/2αbrg]{1(x2+y2+z2rg)2+αrg[(x2+y2+z2)2+rg(2α2rg+(x2+y2+z2)3/2+αb(rgx2+y2+z2))]1×[α2brg2αrg(x2+y2+z2)(3rg+4x2+y2+z2)3b(x2+y2+z2)(x2+y2+z2rg)2]+1x2+y2+z2rgx2+y2+z2},
where the y and z derivatives are similar, simply replacing the x in the numerator of the factor outside the braces with y and z, respectively.

Acknowledgments

The authors would like to acknowledge Synopsys Inc. for kindly providing an academic license for CODE V®.

References

1. 

D. T. Moore, “Unusual optical forms,” Proc. SPIE, 0531 256 –263 (1985). https://doi.org/10.1117/12.946517 PSISDG 0277-786X Google Scholar

2. 

D. T. Moore, “Gradient-index optics: a review,” Appl. Opt., 19 1035 –1038 (1980). https://doi.org/10.1364/AO.19.001035 APOPAI 0003-6935 Google Scholar

3. 

Z. Wang et al., “Focusing of surface liquid waves by gradient-index lens,” Europhys. Lett., 108 024003 (2014). https://doi.org/10.1209/0295-5075/108/24003 EULEEJ 0295-5075 Google Scholar

4. 

H. Medwin and C. S. Clay, Fundamentals of Acoustical Oceanography, Academic Press, Cambridge, MA (1998). Google Scholar

5. 

Y. Jin et al., “Flat acoustics with soft gradient-index metasurfaces,” Nat. Commun., 10 143 (2019). https://doi.org/10.1038/s41467-018-07990-5 NCAOBW 2041-1723 Google Scholar

6. 

K. Aki and P. G. Richards, Quantitative Seismology: Theory and Methods, W. H. Freeman and Co., San Francisco (1981). Google Scholar

7. 

J. B. Delos, “Semiclassical calculation of quantum mechanical wavefunctions,” Advances in Chemical Physics, 161 –213 Wiley Interscience, New York (1986). Google Scholar

8. 

F. W. Dyson et al., “A determination of the deflection of light by the Sun’s gravitational field from observations made at the total eclipse of May 29, 1919,” Philos. Trans. R. Soc. London A, 220 291 –333 (1920). https://doi.org/10.1098/rsta.1920.0009 Google Scholar

9. 

E. Fomalant et al., “Progress in measurements of the gravitational bending of radio waves using the VLBA,” Astrophys. J., 699 1395 –1402 (2009). https://doi.org/10.1088/0004-637X/699/2/1395 ASJOAB 0004-637X Google Scholar

10. 

H. Hoekstra et al., “Masses of galaxy glusters from gravitational lensing,” Space Sci. Rev., 177 75 –118 (2013). https://doi.org/10.1007/s11214-013-9978-5 SPSRA4 0038-6308 Google Scholar

11. 

R. Gavazzi et al., “The Sloan lens ACS survey. VI. Discovery and analysis of a double Einstein ring,” Astrophys. J., 677 1046 –1059 (2008). https://doi.org/10.1086/529541 ASJOAB 0004-637X Google Scholar

12. 

J. A. Irwin et al., “The Cheshire cat gravitational lens: the formation of a massive fossil group,” Astrophys. J., 806 268 (2015). https://doi.org/10.1088/0004-637X/806/2/268 ASJOAB 0004-637X Google Scholar

13. 

R. Nermioff and J. Bonnell, “Gravity’s Grin,” (2015) https://apod.nasa.gov/apod/ap151127.html Google Scholar

14. 

M. J. Nandor and T. M. Heliwell, “Fermat’s principle and imaging by multiple gravitational lenses,” Am. J. Phys., 64 45 –49 (1996). https://doi.org/10.1119/1.18291 AJPIAS 0002-9505 Google Scholar

15. 

R. Nermioff and J. Bonnell, “The Einstein Cross gravitational lens,” (2017) https://apod.nasa.gov/apod/ap171217.html Google Scholar

16. 

P. M. Alsing, “The optical-mechanical analogy for stationary metrics in general relativity,” Am. J. Phys., 66 779 –790 (1998). https://doi.org/10.1119/1.18957 AJPIAS 0002-9505 Google Scholar

17. 

A. K. Sen, “A more exact expression for the gravitational deflection of light, derived using a material medium approach,” Astrophysics, 53 560 –569 (2010). https://doi.org/10.1007/s10511-010-9148-3 Google Scholar

18. 

A. Sharma et al., “Tracing rays through graded-index media: a new method,” Appl. Opt., 21 984 –987 (1982). https://doi.org/10.1364/AO.21.000984 APOPAI 0003-6935 Google Scholar

19. 

B. Stone, “Practical considerations for GRIN raytracing with commercial software,” Proc. SPIE, 11484 1148402 (2020). https://doi.org/10.1117/12.2570790 PSISDG 0277-786X Google Scholar

20. 

S. Roy and A. K. Sen, “Trajectory of a light ray in Kerr field: a material medium approach,” Astrophys. Space Sci., 360 23 (2015). https://doi.org/10.1007/s10509-015-2538-6 APSSBE 0004-640X Google Scholar

21. 

D. H. Lippman and G. R. Schmidt, “Prescribed irradiance distributions with freeform gradient-index optics,” Opt. Express, 28 29132 –29147 (2020). https://doi.org/10.1364/OE.404456 OPEXFF 1094-4087 Google Scholar

22. 

P. Y. Liu et al., “Cell refractive index for cell biology and disease diagnosis: past, present and future,” Lab Chip, 16 634 –644 (2016). https://doi.org/10.1039/C5LC01445J LCAHAM 1473-0197 Google Scholar

23. 

Y. K. Park et al., “Refractive index maps and membrane dynamics of human red blood cells parasitized by plasmodium falciparum,” Proc. Natl. Acad. Sci. U. S. A., 105 13730 –13735 (2008). https://doi.org/10.1073/pnas.0806100105 Google Scholar

24. 

A. Malahov and A. McDaniel, “Long-range propagation through inhomogeneous turbulent atmosphere: analysis beyond phase screens,” Physica Scripta, 94 034003 (2019). https://doi.org/10.1088/1402-4896/aaf32c PHSTBO 0031-8949 Google Scholar

25. 

S. Basu et al., “Comparison of atmospheric refractive index gradient variations derived from time-lapse imagery and mesoscale modeling,” in Imaging and Appl. Opt., (2015). Google Scholar

Biography

Nicole J. Moore received her BS degree in physics from Harvey Mudd College in 2003 and her PhD in optics from The Institute of Optics at the University of Rochester in 2009. She is an associate professor in the Department of Physics at Gonzaga University. Her current research interests include models for high NA optical beams and the scattering of the same, as well as the application of optical models to other subfields of physics and engineering.

Yang Zhao graduated in 2018 with his PhD in optics from The Institute of Optics at the University of Rochester. His PhD research involved optical metrology and lens design related to gradient-index optics, including the work in this paper. He is currently working as an optical scientist at Facebook Reality Labs, focusing on development of optical systems for virtual and augmented reality applications.

Greg Schmidt received his BS and PhD degrees from The Institute of Optics. He is an assistant professor at The Institute of Optics of the University of Rochester. His primary focus involves research in freeform gradient index (GRIN) materials, enveloping modeling, design, fabrication, and metrology of freeform (3D) GRIN optics. Other significant research efforts have focused on nonimaging designs for illumination and high-concentration solar photovoltaic systems.

Duncan T. Moore received his PhD in optics from The Institute of Optics in 1974. He is the Rudolph and Hilda Kingslake professor of optical engineering at The Institute of Optics of the University of Rochester. He is the author of numerous patents, papers, proceedings, and other documents. He received the Gold Medal of SPIE in 2006, among many other honors.

CC BY: © The Authors. Published by SPIE under a Creative Commons Attribution 4.0 Unported License. Distribution or reproduction of this work in whole or in part requires full attribution of the original publication, including its DOI.
Nicole J. Moore, Yang Zhao, Greg Schmidt, and Duncan T. Moore "Ray-tracing simulation of gravitational lensing using a gradient-index model," Optical Engineering 60(1), 015104 (11 January 2021). https://doi.org/10.1117/1.OE.60.1.015104
Received: 21 July 2020; Accepted: 18 December 2020; Published: 11 January 2021
Advertisement
Advertisement
KEYWORDS
Sun

GRIN lenses

Code v

Galactic astronomy

Refraction

Astronomy

Gradient-index optics

RELATED CONTENT

Ray Tracing In Inhomogeneous Media
Proceedings of SPIE (October 26 1983)
Imaging characteristics of radial gradient index lenses
Proceedings of SPIE (November 25 1993)
Exact ray tracing formulas for parabolic axial GRIN lenses
Proceedings of SPIE (September 17 1999)
Advantage of nonlinear axial gradients in optical design
Proceedings of SPIE (November 25 1993)
Physical Optics Analysis Of Gradient Index Optics
Proceedings of SPIE (December 22 1989)

Back to Top