We develop a phase reconstruction algorithm for the Shack–Hartmann wavefront sensor (SHWFS) that is tolerant to phase discontinuities, such as the ones imposed by shock waves. In practice, this algorithm identifies SHWFS locations where the resultant tilt information is affected by the shock and improves the tilt information in these locations using the local SHWFS observation-plane irradiance patterns. The algorithm was shown to work well over the range of conditions tested with both simulated and experimental data. In turn, the reconstruction algorithm will enable robust wavefront sensing in transonic, supersonic, and hypersonic environments. |
1.IntroductionThe Shack–Hartmann wavefront sensor (SHWFS) is a common tool used to measure optical-path difference (OPD) for a variety of applications. The sensor consists of an array of lenslet sub-apertures that focus portions of the incident light onto a camera detector. Phase tilts in the sub-aperture’s pupil plane manifest as irradiance patterns shifted from their on-axis locations in the observation plane. These shifts, along with the focal length of the lenslets, are then used to estimate the corresponding tilt across each sub-aperture pupil. Using a least-squares reconstructor allows these measured tilts to be used to estimate the continuous OPD.1–3 For the purposes of this paper, all findings will be reported in terms of phase, , which can be related to OPD by . It has been shown that least-squares reconstruction of SHWFS slope data struggles with correctly estimating phase when discontinuities are present within the measurement aperture.4–8 Shock waves, such as ones that form due to locally supersonic flow, can be modeled as near-instantaneous increases in density which, consequently, result in near-instantaneous changes in the optical phase for light propagating through the shocks. Recent studies on the effects of aperture-intersecting shock waves on SHWFS data revealed that least-squares reconstruction yields accurate estimates of the change in phase across a shock, , when the magnitude of the phase discontinuity is between 0 and approximately .9,10 When the magnitude of the phase discontinuity across the shock was greater than , the shock-induced tilt across the measurement sub-apertures did not result in a proportional shift of the observation-plane irradiance pattern. Consequently, this led to an incorrect estimation of the OPD. This discrepancy was caused by the bifurcation of the irradiance pattern peaks in the observation plane resulting from the shock-induced phase discontinuity in the pupil plane. In other words, this bifurcation causes discrepancies between the pupil-plane tilt and the so-called centroid tilt (C-tilt) measured from the irradiance pattern shift in the observation plane. This behavior has also been observed experimentally.11,12 In the past, SHWFS data have been collected through shock waves;13 however, the incorrect estimation of resulting from the sub-aperture irradiance pattern bifurcation was not addressed. The purpose of this paper is to develop a first-of-its-kind, shock-tolerant phase reconstruction algorithm for the SHWFS utilizing findings presented in Ref. 10. This algorithm shows tremendous potential in extending the usefulness of the SHWFS into optical-turbulence environments where shock waves are present. In practice, the algorithm uses the following steps:
Each of these steps are discussed in Sec. 2. Simulated and experimental data are then used to demonstrate the algorithm, the results of which are presented in Sec. 3. Section 4 summarizes the paper. 2.ApproachIn this section, each step of the algorithm is described in earnest. 2.1.Traditional Tilt CalculationThe first step of this algorithm, as outlined above, is to calculate the pupil-plane tilts from the SHWFS data in the traditional sense. Here, the observation-plane irradiance pattern shifts for each sub-aperture are calculated from their on-axis position and used along with the focal length of lenslets to estimate the local pupil-plane tilts. Without any extensions, these tilts are then used in a least-squares reconstructor to estimate continuous . Hereafter, this approach will be referred to as the “traditional” approach to which the “tolerant” approach, discussed in the next few sections, will be compared. 2.2.Identify Affected Sub-AperturesAs shown in Ref. 10, when the caused by a shock wave intersecting the measurement aperture exceeds , the shock-induced phase discontinuity in the pupil-plane of the SHWFS sub-aperture lenslets causes appreciable beam spreading in the resulting observation-plane irradiance patterns. Therefore, in order to identify which sub-aperture lenslets are affected by the shock, beam spread can be calculated for each of the sub-aperture observation-plane irradiance patterns. In this case, the second-moment beam width, otherwise referred to as , has proven promising. The equation for along the axis, , is given as where is the total number of pixels inside the sub-aperture irradiance image, is the observation-plane irradiance value associated with each pixel, , inside the sub-aperture, and is the centroid pixel location in the direction. Here, the sub-aperture irradiance image has been converted to a raster-ordered vector to simplify the computation of .14 A similar equation can be written for . It is often convenient to report an overall , which can be accomplished byEquation (2) is calculated for each sub-aperture observation-plane irradiance pattern and the results are normalized by the diffraction-limited spot size, . For square apertures, is given as , and for circular apertures, is given as , where is the wavelength of light, is the focal length of the lenslets, and is the diameter of the lenslets. With appropriate thresholding, affected sub-apertures can be identified—i.e., high beam spread identifies a shock-affected sub-aperture, while low beam spread does not. To illustrate this last point, a phase discontinuity of rad was applied to a simulated, uniform, complex-optical field. The phase discontinuity was at a 30 deg angle (measured counterclockwise) from the vertical and offset from the middle of the measurement aperture by half a sub-aperture diameter. This complex-optical field was then applied to an SHWFS model consisting of sub-apertures. The resultant SHWFS imagery is shown in the leftmost plot in Fig. 1. We see that along the line where the simulated shock occurs, the associated SHWFS-irradiance patterns bifurcate. The degree of beam spreading calculated by Eq. (2) is shown in the middle plot of Fig. 1. Irradiance patterns that exhibit sufficient beam spread to qualify for being affected by the shock can be identified by thresholding the beam-spread values presented in the middle plot of Fig. 1. The flagged sub-apertures that met the thresholding criteria are presented in the rightmost plot of Fig. 1. In the sections that follow, we discuss the processing steps required to replace the corrupted tilt information in pupil locations flagged by the beam-spread calculation. 2.3.Calculate Shock AngleAfter the sub-apertures affected by the shock have been identified, the angle that the shock intersects the SHWFS measurement aperture is calculated. This paper explores two methods to achieve this:
2.4.Improve Tilt Estimation Using Irradiance Patterns in Affected Sub-AperturesThis section discusses how the resulting irradiance patterns of the sub-apertures affected by the shock can be used to improve the local tilt information. In Ref. 10, it had been shown that the degree of irradiance pattern bifurcation is related to the pupil-plane . To investigate this, phase discontinuities of varying strengths ranging from to 0 rad in increments of were simulated in the middle of a pupil and a Fresnel propagator was used to map the simulated pupil-plane phase to observation-plane irradiance patterns. For each resultant observation-plane irradiance pattern, the amplitude of the largest peak, , was divided by the amplitude of the second largest peak, . These results are shown in Fig. 2 as black circle markers where the -axis is and the -axis is . When there was no phase discontinuity in the pupil plane, was the diffraction-limited peak ratio for a square aperture, 21.19.17 For this case, a one-dimensional slice of the two-dimensional irradiance pattern is presented in the top-right plot of Fig. 2. Conversely, as increases, decreases. The middle-right plot of Fig. 2 shows the one-dimensional irradiance pattern slice when a phase discontinuity of rad was imposed across the center of the pupil. Here, we see that began to increase in amplitude relative to . When rad, the phase upstream versus downstream of the discontinuity was perfectly out of phase, and a bifurcated irradiance pattern with equal amplitude peaks formed, i.e., . This last point is shown in the bottom-right plot of Fig. 2. Conveniently, it has been shown that for square apertures, can be related to the phase discontinuity in the pupil plane that caused the bifurcation through the following: In this equation, the constant is the diffraction-limited ratio for square apertures.17 Using a fitting algorithm, an equivalent expression was found to work well for circular apertures, given as It is worth noting that in this expression, the constant is not the diffraction-limited ratio for circular apertures. Although these equations were arrived at heuristically, they show good agreement with the numerical results obtained using the Fresnel propagator. The results using Eq. (3) are plotted as a green line in Fig. 2. For different phase discontinuity and SHWFS conditions, such as angled shocks and experimentally collected data, a different method for relating irradiance patterns to will need to be used. However, for the purposes of this paper and for introducing the theoretical construct behind a shock-wave tolerant phase reconstructor, this analytic development will suffice, and alternative approaches continue to be explored. It should be noted that Eqs. (3) and (4) only discern the magnitude of the phase discontinuity in the pupil-plane between 0 and , not whether is positive or negative. As shown in Ref. 10, the same ratio can be accomplished when the secondary peak is on either side of the primary peak. However, it was also shown that the location of the secondary peak in relation to the primary peak is directly related to the direction of the flow for the case of an intersecting shock, as well as whether is between 0 and or and (c.f. figure 7 in Ref. 10). For the case of a shock, the density increases across the shock and in the direction of freestream flow causing the phase of the light downstream of the shock to lag relative to the phase of the light upstream of the shock. Therefore, by knowing the direction of the flow in relation to the SHWFS measurement aperture, the true can be determined. For example, when the flow is moving from left to right across the measurement aperture and the secondary peak in the observation-plane irradiance pattern is to the right of the primary peak, the calculated from either Eq. (3) or Eq. (4) is correct. However, if the secondary peak is to the left of the primary peak, then the true is . These behaviors are flipped if the flow direction is flipped. After using Eq. (3) or Eq. (4) in conjunction with the direction of the flow to determine the phase discontinuity across the shock for the affected sub-apertures, this information can be used to replace the tilt estimates in each sub-aperture. This is accomplished in two steps. First, the calculated change in phase across the discontinuity is converted to a change in OPD using the relation, , which is then used to calculate the overall tilt, , caused by and orthogonal to the shock using Next, the and components of the corrected tilt are calculated as and where and are the global tilts and is the shock wave angle in degrees. Here, the shock wave angle is calculated such that a horizontal shock is considered and a vertical shock is considered . and are calculated by averaging all and local tilts from the traditional approach, respectively.2.5.Replace and ReconstructAfter calculation of the improved and tilts for sub-apertures affected by an intersecting shock from Eqs. (6) and (7), this new tilt information is then used to replace the corrupted and tilt values found using the traditional approach. It is important to note that the tilt estimates for the unaffected sub-apertures remain unchanged. After this replacement is made, a least-squares reconstruction is applied. 3.ResultsThe following sections present the results of employing the algorithm described above on both simulated as well as experimentally collected data. 3.1.Simulated DataIn this section, three simple scenarios were simulated for both square and circular sub-aperture geometries to demonstrate the shock-tolerant approach outlined above. For the results that follow, a phase discontinuity was generated and varied from 0 to rad in increments of . For simplicity, it was assumed that the SHWFS sub-apertures were illuminated by unit-amplitude, collimated light. Furthermore, it was also assumed that the shock intersects the measurement aperture at (perpendicular to the axis) and is located in the middle of a column of sub-apertures. All scenarios outlined in this section follow the procedure described in Ref. 18. The first scenario divided the measurement aperture into a grid of sub-apertures each with diameter cm. The second scenario used sub-apertures each with diameter cm. The third scenario used sub-apertures each with diameter cm. The entire grid size for each scenario was maintained at grid points. For each case, a thin-lens transmittance function was then applied to each sub-aperture, and angular-spectrum propagation was used to obtain an irradiance pattern at focus. These conditions were simulated for both square and circular SHWFS lenslet shapes. After generating simulated SHWFS frames for various , multiple thresholding steps were taken to ensure minimal contamination from ambient light and diffraction inside the SHWFS sub-aperture locations. Next, both traditional and shock-tolerant approaches were used to generate and tilt matrices. The resulting tilts calculated using both approaches were then used in a least-squares reconstructor, in this case using the Southwell geometry,3 to obtain a continuous OPD. The reconstructed OPD was then used to estimate the continuous from which was calculated by subtracting the phase values on either side of the shock () for both the traditional and modified approaches. Figure 3 presents the results of the traditional and shock-tolerant approaches plotted as blue circle and red square markers, respectively. Here, the axes are the input of the created phase discontinuities and the axes are the output resulting from reconstructing the tilt values obtained using the traditional and modified approaches. Also plotted are black, dashed lines that represent the expected . The top row of Fig. 3 presents the results obtained using square sub-apertures and the bottom row presents the results obtained using circular sub-apertures. Each column presents results obtained using a different number of sub-apertures. Specifically, the , , and sub-aperture results are presented in columns from left to right, respectively. As mentioned earlier and described in Ref. 10, when the induced by the shock wave becomes greater than , the traditional phase reconstruction begins to underestimate the true across the shock. This is evident for all cases presented in Fig. 3. When the shock-tolerant reconstruction algorithm was employed, we see that across all cases, the reconstructed is in better agreement with the true . Furthermore, the results presented in Fig. 3 also reveal that as the number of sub-apertures increase, both the shock-tolerant and traditional least-squares reconstruction algorithms deliver better estimations of , in their own regard. With more sub-apertures, there is more local tilt information available and least-square fitting error is minimized. The sinusoidal behavior of the traditional method, shown in blue circles in Fig. 3, is a direct result of the observation-plane irradiance pattern bifurcation. When this bifurcation increases, the irradiance pattern centroid deflection and the corresponding pupil-plane tilt are no longer in agreement for shock-affected sub-apertures. Rather, the energy associated with the pupil-plane phase discontinuity leads to beam spreading in the observation plane. For the case of a shock-wave-induced phase discontinuity, the beam spreading is predictable, as shown in Sec. 2.4. When the modified approach described above was employed, which leverages the predictability of the shock-induced observation-plane irradiance pattern beam spread, the reconstructed was in fair agreement with the input until , depending on the sub-aperture geometry. Above , the thresholding algorithm cannot discern which sub-aperture irradiance patterns are affected by the shock due to low beam spread. Therefore, the and tilt values calculated using the traditional approach are used instead. 3.2.Experimental DataThis section demonstrates the shock-tolerant phase reconstruction algorithm on experimentally collected SHWFS imagery. In order to acquire the experimental data, a 532 nm laser source was first linearly polarized using a wave-plate, expanded, and collimated. The beam was then reflected off a spatial-light modulator (SLM). The SLM was used to impart phase discontinuities ranging from 0 to rad in increments of rad at a 0 deg angle in the middle of the beam. In combination with an iris and collimating lens after the SLM, a focus and tilt term were also applied to the SLM in order to decouple the zeroth-order diffractive term from the first-order diffractive term which contains the applied phase information. After which, the beam was re-imaged onto an SHWFS using a relay consisting of two 300 mm lenses. A schematic of this experimental setup is presented in Fig. 4. The SHWFS used square, sub-apertures with a diameter of and a focal length of . The detector screen size was pixels, so each lenslet was comprised of pixels. The beam-spread threshold used for this data was . Figure 5 shows the resultant SHWFS imagery for phase discontinuities of 0, , and as well as the sub-apertures that qualify, which are highlighted by red squares. Due to realistic experimental factors such as non-uniform pupil illumination and camera measurement noise, Eq. (3) could not be used to estimate the shock-induced from the ratio of bifurcated irradiance pattern peaks. Instead, another equation was developed using a fitting algorithm to empirically collected data. After which, the experimental SHWFS measurements were processed using the traditional and shock-tolerant reconstruction approaches. These results are presented in Fig. 6. Here, it can be seen that the traditional reconstruction results exhibit the same behavior observed in Fig. 3 as well as in Ref. 10. Furthermore, we see that the shock-tolerant reconstruction results presented in Fig. 6 are in fair agreement with the results presented in the top-right plot of Fig. 3, where the number of sub-apertures was comparable to the number of sub-apertures used in the experiment. We expect that if the number of sub-apertures increased, the measured after employing the shock-tolerant reconstruction algorithm would likely be closer to the expected . It is also worth noting that for values close to 1.35, the shock-tolerant reconstructed begins to level off. This is a result of the Gaussian beam used for the experiment. At values where the beam spread is low, the algorithm cannot discern between affected and unaffected sub-apertures based on the observation-plane irradiance pattern. This is especially true for those lenslets that lie close to the edge of the beam. The non-uniform illumination caused by the Gaussian beam profile leads to fewer detections of sub-apertures affected by the shock and consequently, more fitting error in the least-squares reconstruction. Nonetheless, the shock-tolerant algorithm is in fair agreement with the known until rad, where past this, the traditionally collected and tilt values were used. 4.ConclusionsThis paper utilized recent developments which described the effects of shock-induced, phase discontinuities on SHWFS measurements to introduce an SHWFS-based, shock-tolerant phase reconstruction algorithm. This algorithm first thresholds the beam spread calculated for each SHWFS irradiance pattern to identify sub-apertures affected by the shock. The shock-affected SHWFS irradiance patterns were then used to obtain a better estimate of the local tilt across the sub-aperture pupils. The corrupted tilt information was replaced with these improved tilt estimates and reconstructed. This algorithm was demonstrated on both simulated as well as experimental data obtained using an SLM. The results presented in Figs. 3 and 6 demonstrate that with the extensions presented in this paper, we can improve SHWFS-based wavefront sensing when phase discontinuities are present across the measurement pupil. The promising developments presented here will enable robust wavefront sensing in transonic, supersonic, and hypersonic environments using an SHWFS. Code and Data AvailabilityData underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request. AcknowledgmentsThe authors would like to thank the Joint Directed Energy Transition Office (JDETO) as well as the Air Force Research Lab Scholars Program for sponsoring this work. The authors would also like to thank NSWCDD’s NISE Adaptive-Optics Testbed effort for providing the experimental facilities used to collect the data presented in this paper. Distribution Statement A. Approved for public release: distribution is unlimited. Public Affairs release approval #: AFRL-2023-3830. ReferencesD. Fried,
“Least-square fitting a wave-front distortion estimate to an array of phase-difference measurements,”
J. Opt. Soc. Am., 67 370
–375 https://doi.org/10.1364/JOSA.67.000370 JOSAAH 0030-3941
(1977).
Google Scholar
R. Hudgin,
“Wave-front reconstruction for compensated imaging,”
J. Opt. Soc. Am., 67 375
–378 https://doi.org/10.1364/JOSA.67.000375 JOSAAH 0030-3941
(1977).
Google Scholar
W. Southwell,
“Wave-front estimation from wave-front slope measurements,”
J. Opt. Soc. Am., 70
(8), 998
–1006 https://doi.org/10.1364/JOSA.70.000998 JOSAAH 0030-3941
(1980).
Google Scholar
D. L. Fried,
“Branch point problem in adaptive optics,”
J. Opt. Soc. Am., 15 2759 https://doi.org/10.1364/JOSAA.15.002759 JOSAAH 0030-3941
(1998).
Google Scholar
T. Brennan,
“Estimation of atmospheric parameters from the slope discrepancy,”
(2003). Google Scholar
M. Kalensky,
“Branch-point identification using second-moment Shack–Hartmann wavefront sensor statistics,”
Appl. Opt., 62 G101
–G111 https://doi.org/10.1364/AO.489891 APOPAI 0003-6935
(2023).
Google Scholar
M. Kalensky et al.,
“Comparison of branch-point detection approaches using a Shack–Hartmann wavefront sensor,”
Opt. Eng., 62
(12), 123101 https://doi.org/10.1117/1.OE.62.12.123101
(2023).
Google Scholar
T. E. DeFoor et al.,
“Shock-wave tolerant phase reconstructor for the Shack–Hartmann wavefront sensor,”
Proc. SPIE, 12694 126930R https://doi.org/10.1117/12.3003722 PSISDG 0277-786X
(2023).
Google Scholar
M. Kalensky, M. R. Kemnetz and M. F. Spencer,
“Effects of shock-related discontinuities on shwfs measurements: modeling and simulation,”
Proc. SPIE, 12239 122390J https://doi.org/10.1117/12.2633526 PSISDG 0277-786X
(2022).
Google Scholar
M. Kalensky, M. R. Kemnetz and M. F. Spencer,
“Effects of shock waves on Shack–Hartmann wavefront sensor data,”
AIAA J., 61 1
–13 https://doi.org/10.2514/1.J062783 AIAJAH 0001-1452
(2023).
Google Scholar
J. Panda and G. Adamovsky,
“Laser light scattering by shock waves,”
Phys. Fluids, 7 2271
–2279 https://doi.org/10.1063/1.868475
(1995).
Google Scholar
M. R. Kemnetz et al.,
“Effects of shock-related discontinuities on SHWFS measurements: experimental results,”
Proc. SPIE, 12239 122390I https://doi.org/10.1117/12.2633536 PSISDG 0277-786X
(2022).
Google Scholar
J. Morrida et al.,
“Shock-related effects on aero-optical environment for hemisphere-on-cylinder turrets at transonic speeds,”
Appl. Opt., 56 4814 https://doi.org/10.1364/AO.56.004814 APOPAI 0003-6935
(2017).
Google Scholar
A. E. Siegman,
“How to (maybe) measure laser beam quality,”
in DPSS (Diode Pumped Solid State) Lasers: Appl. and Issues,
(1998). Google Scholar
K. Tikuišis,
“peaks2 - find peaks in 2D data without additional toolbox,”
(2023). Google Scholar
R. O. Duda and P. E. Hart,
“Use of the hough transformation to detect lines and curves in pictures,”
Commun. ACM, 15 11
–15 https://doi.org/10.1145/361237.361242 CACMA2 0001-0782
(1972).
Google Scholar
J. Goodman, Introduction to Fourier optics, Roberts & Co, Englewood, Colorado
(2005). Google Scholar
M. Kalensky et al.,
“Estimation of atmospheric optical turbulence strength in realistic airborne environments,”
Appl. Opt., 61 6268 https://doi.org/10.1364/AO.459461 APOPAI 0003-6935
(2022).
Google Scholar
BiographyThomas E. DeFoor is an undergraduate senior student at The Ohio State University in Columbus, Ohio. He is pursuing an engineering physics degree with a specialization in aerospace engineering with plans of graduating in May of 2024. In addition, he was a directed energy intern through the Air Force Research Lab (AFRL) Scholars Program at Kirtland AFB in Albuquerque, New Mexico, as a part of the Universities Space Research Association. Matthew Kalensky is an engineer at the Naval Surface Warfare Center Dahlgren Division. He received his BS degree in mechanical and materials engineering from Loyola University Maryland in 2017 and his MS and PhD degrees in aerospace engineering from the University of Notre Dame in 2020 and 2022, respectively. He actively runs a cross-service adaptive-optics working group, is a chair for the Unconventional Imaging, Sensing, and Adaptive Optics conference at SPIE Optics and Photonics, and is the webinar officer for Optica’s Laser System’s Technical Group. His expertise and research interests are in beam control, deep-turbulence characterization, and aero effects. Matthew R. Kemnetz is the principal investigator of the Laser Beam Control (formerly Aero-Effects and Beam Control) Program at the Air Force Research Laboratory Directed Energy Directorate, AFRL/RDLTS. He came to the Air Force after graduating from the University of Notre Dame in 2019 with his PhD in aerospace and mechanical engineering. His dissertation work focused on aero-effects in directed energy. More specifically, the dissertation produced a novel algorithm for first ever direct experimental measurements of aero-optical jitter. For the Air Force, he leads the Aero-Effects Laboratory at Kirtland Air Force Base. In addition, he manages a diverse research portfolio across aero-effects, beam control, and atmospheric propagation. Timothy J. Bukowski is a current graduate student in the Aero-Optics group at the University of Notre Dame. Here, he works on many problems related to laser propagation systems. He has also worked as an SSEP intern at the Naval Surface Warfare Center Dahlgren Division within the Integrated Engagement Systems Department and the Optics and Beam Control Branch, where he worked on problems related to beam propagation through distributed-volume turbulence. He is an Arthur J. Schmitt Leadership Fellow and was recently awarded the NDSEG fellowship. Mark F. Spencer is the director of the Joint Directed Energy Transition Office within the Office of the Under Secretary of Defense for Research and Engineering. He is also an adjunct associate professor of optical sciences and engineering at the Air Force Institute of Technology within the Department of Engineering Physics. He is a fellow of SPIE. |