 Research
 Open access
 Published:
Sequential and nonsequential simulation of volume holographic gratings
Journal of the European Optical SocietyRapid Publications volume 14, Article number: 15 (2018)
Abstract
Background
In the development process of holographic displays like holographic HeadMounted Displays (hHMD) the simulation of the complete optical system is strongly required. This especially includes the correct behaviour of the volume holographic grating (VHG) in terms of its optical function and its diffraction efficiency. The latter is not supported by the current version of Zemax®; OpticStudio 17, one of the most popular optic simulation tools.
Methods
To solve this problem we implemented a C++ code for each raytracing mode of Zemax®;, namely the sequential and nonsequential. The C++ code calculates the grating vector for every single ray traced. Based on the ksphere formalism the propagation direction of the diffracted light is determined. Furthermore, its diffraction efficiency is defined according to Kogelnik’s coupledwave theory. The C++ code is compiled and linked into Zemax®; using the Windows Dynamic Link Library (DLL).
Results and discussion
The aforementioned DLL enables the simulation of planar and arbitrarily spherical curved VHG and their diffraction efficiency within Zemax®; OpticStudio. This allows the fast, easy and reliable simulation of optical systems which include holograms or holographic optical elements, e.g. hHMD. Especially the simulation of VHG in nonsequential mode can be helpful in order to identify possible stray light paths.
Conclusion
The implemented C++ code enables the user to simulate VHG and its diffraction efficiency within Zemax®; Optic Studio.
Background
Recently, new display technologies using holographic approaches have been reported [1–4]. VHG have several advantages compared to conventional optics: they can be spacesaving, lightweight and they offer a high degree of freedom in the optical design process. On the other hand their strong dependency on wavelength and incidence angle can be problematic if a robust and reliable optical design is required. Additionally, holographic optical systems tend to suffer from stray light due to reflections at glassair boundaries and multiple interactions with the VHG. In order to avoid disturbing stray light paths it is crucial to simulate VHG and their diffraction efficiencies during the design process. Unfortunately, most of the commercially available optic simulation tools like Zemax®; OpticStudio don’t provide this possibility. There have been different approaches to overcome this problem. In Ref [5–7] the Born approximation is used to estimate the diffraction efficiency. This approximation assumes a weak interaction of the lightfield with the VHG. As in display technologies high diffraction efficiencies are favourable, simulations based on the Born approximation lead to inaccurate results. A suitable description of highly efficient (planar) VHG is given by Kogelnik’s coupledwave theory [8]. In Ref [9] aperiodic and multiplexed VHG are analyzed based on the coupledwave theory within Zemax®;. In order to simulate nonplanar gratings the hologram plane is split into a large number of sampling zones. For every sampling zone the assumption of a planar grating holds [10] if the grating vector is slowly varying. Finally, the diffraction efficiency is averaged over all sampling zones.
This paper describes a simple method of simulating arbitrarily spherical curved and planar VHG. For every ray traced the grating vector is calculated locally and the diffraction efficiency is calculated based on coupledwave equations. The new method is integrated into the commercially available optic simulation tool Zemax®; using a DLL for each, the sequential and nonsequantial raytracing mode. Thereby, it enables the use of a manifold of optimization tools included in Zemax®; during the design process of optical systems like hHMD. In Fig. 1 an exemplary hHMD system is shown. A laser unit is used as the light source and a deflector (e.g. mirror) guides the light to an holographic optical element (HOE), which is described in greater detail in the following section. In this example the HOE is used to diffract the light into the direction of the observer. As the HOE is transparent, the observer is able to see the surroundings and the information provided by the hHMD simultaneously.
Methods
Holographic optical elements
HOE are (V)HG utilized as optical elements like lenses or mirrors. They are spacesaving, lightweight, wavelength and angleselective, transparent and potentially lowcost. Additionally HOE do have the advantage of adding freedom to the optical design process, as incidence and exit angle can be chosen independently. In the recent past new holographic materials have been introduced to the market [11–15]. They allow the recording of color VHG without the need of chemical or thermal processing, which makes them suitable for massproduction. Therefore, HOE could be the key to satisfy the growing demand for compact and lightweight HMD systems.
HOE can work in transmission or reflection, as depicted in Fig. 2a and b. The reference wave used to reconstruct the HOE (red, dashed) is defined by its wave vektor k_{R} and hits the HOE from the left hand side. Inside the HOE the reference wave interacts with the plane VHG, which itself is defined by the grating vector k_{G}. Some part of the reference wave is diffracted into the object wave (k_{O}, green, solid). The notdiffracted part propagates undisturbed (blue, dotted). When k_{R} and k_{G} are known, k_{O} can be calculated using the ksphere formalism [6]
with \(\hat {{\mathbf {x}}}\) and \(\hat {{\mathbf {y}}}\) denoting the unit base vectors in the hologram plane. Based on these equations the propagation direction of the diffracted light rays is calculated within the DLL.
Kogelnik’s coupledwave theory
Besides the propagation direction the diffraction efficiency has to be calculated. The diffraction efficiency η is defined as the fraction I_{1} of the incident reference wave I_{0} which is diffracted into the object wave
For plane VHG the rigorous coupledwave analysis can accurately predict the diffraction efficiency. Unfortunately, solving these equations can be very time consuming. Instead, Kogelnik’s coupledwave theory is an approximate solution of the coupledwave theory and is frequently used to predict the diffraction efficiencies of VHG. The approximate solutions accurately predict the diffraction efficiency if the following requirements are fulfilled [8]

hologram thickness d ≫λ, the used wavelength,

the light field is monochromatic,

reconstruction of the hologram near the Bragg angle,

only reference and object wave are present,

the holographic grating is sinusoidal,

the light field is polarized perpendicular to the plane of incidence.
These requirements are fulfilled for the use of VHG as HOE in display technologies like hHMD. In the case of planar reference and object recording waves, the grating vector is constant within the entire hologram volume and is defined by
which is also visualized in the subset of Fig. 3. If one or both waves do have a spherical shape, the grating vector will vary over the hologram volume: k_{G} = k_{G} (x,y,z). But if only a small enough area is investigated, even for strong curvatures the assumption of a planar grating holds and Eq. 3 can be used to locally calculate the grating vector. With the assumptions made above, Kogelnik was able to find analytical solutions for the the coupledwave equations [8, 9, 16]. As different boundary conditions are used for transmission and reflection holograms, these cases have to be treated seperately. However, to allow for a clear representation of the diffraction efficiency in both cases, the following auxiliary parameters are defined [8, 16]
where n is the surface normal of the hologram plane and Δn is the refractive index modulation of the holographic material.
Transmission holograms
According to Kogelnik the diffraction efficiency η_{ T } of a lossless transmissiontype volume HOE is given by [8]
A diffraction efficiency of 1 is possible if ξ = 0 holds, which implies that the detuning parameter 𝜗=0. This is the case if the VHG is reconstructed under perfect Braggcondition [17]:
with the reconstruction ray impinging on the VHG with an angle Θ, the grating spacing \(\Lambda = \frac {2\pi }{ \mathbf {K}_{G}}\) and integer value m, specifying the diffraction order. In Kogelnik’s coupled wave theory higher diffraction orders are neglected, therefore m equals 1.
Equation 4 will be used to calculate the diffraction efficiency of transmissiontype HOE in the C++code for sequential and nonsequential mode.
Reflection holograms
For lossless reflectiontype volume HOEs the diffraction efficiency η_{ R } is given by [8]
Here, special attention has to be paid as the argument of the square root can be negative. In these cases, the hyperbolic sine has a complex argument and therefore will transfer into a sinefunction with a realvalued argument. Similarly to transmission HOE, reflection HOE are most efficient if 𝜗=ξ=0 holds. Equation 6 will be used to calculate the diffraction efficiency of reflectiontype HOE in the C++code for sequential and nonsequential mode.
Implementation of the DLL
The goal of this work is to enhance the commercially available optic simulation tool Zemax®; OpticStudio to allow the fast and easy simulation of optical systems which include arbitrarily spherical curved VHG. Therefore, for the sequential and nonsequential raytracing mode a C++code has been implemented which is compiled to a DLL and linked into Zemax®;.
When integrating a DLL into Zemax®; this gives access to a manifold of parameters as described in Ref [18]. The following will be used in this work

unit vector \(\hat {{\mathbf {k}}}_{\mathrm {R}}\) of the incoming ray,

wavelength λ of incoming ray (note that \({\mathbf {k}}_{\mathrm {R}} = \frac {2\pi }{\lambda } \cdot \hat {{\mathbf {k}}}_{\mathrm {R}}\)),

interception point (x_{ H },y_{ H },z_{ H }) of the incoming ray with the hologram surface (see Fig. 3),

refractive index of the materials surrounding the hologram surface.
Additionally, userdefined paramters specify the optical function and the material properties of the hologram. The coordinates (x_{ R,rec },y_{ R,rec },z_{ R,rec }) and (x_{ O,rec },y_{ O,rec },z_{ O,rec }) define the point sources of spherical reference and object wave used during recording. Note that if a plane wave is preferred, the distance of the point source should be located in great distance to the hologram surface (e.g. \(\sqrt {x_{R,rec}^{2}+y_{R,rec}^{2}+z_{R,rec}^{2}} \gg 10^{6}{mm}\) for a plane reference wave). Furthermore, the wavelength λ_{ rec } used during recording, the thickness d of the hologram as well as the average refractive index n and its modulation Δn need to be specified.
When all parameters are set the simulation can be started. Everytime the DLL is called the following steps are performed

Based on the geometry depicted in Fig. 3 k_{ R,rec } and k_{ O,rec } are calculated as follows
$${}\begin{aligned} {\mathbf{k}}_{\text{i,rec}} \cdot \hat{{\mathbf{x}}} &= (x_{H}x_{i,rec})/N_{i}, \\ {\mathbf{k}}_{\text{i,rec}} \cdot \hat{{\mathbf{y}}} &= (y_{H}y_{i,rec})/N_{i}, \\ {\mathbf{k}}_{\text{i,rec}} \cdot \hat{{\mathbf{z}}} &= (z_{H}z_{i,rec})/N_{i}, \\ N_{i} &= \frac{\lambda_{rec}}{2\pi}\sqrt{\!(x_{H}\,\,x_{i,rec})^{2}\,+\,(y_{H}\,\,y_{i,rec})^{2}\,+\,(z_{H}\,\,z_{i,rec})^{2}}, \end{aligned} $$with i=R,O.

k_{R},k_{ R,rec } and k_{ O,rec } are refracted according to Snell’s law,

k_{G} is calculated based on Eq. 3,

k_{O} is calculated based on Eq. 1,

depending on the position of the given point sources a distinction of cases between transmission and reflection holograms is made,

the diffraction efficiency is calculated based on Eq. 4 in case of a transmission and Eq. 6 in case of a reflection hologram,

k_{O} is refracted according to Snell’s law,

the diffraction efficiency and the unit vector \(\hat {{\mathbf {k}}}_{\mathrm {O}}\) are transferred to Zemax®;.
The data transfer between the DLL and Zemax®; differs for sequential and nonsequential mode, as different data structures are predefined by Zemax®;. The parameters UD → rel_surf_tran and UD → l,m,n serve to transfer the diffraction efficiency and the propagation direction of the diffracted light in sequential mode, respecively. In the nonsequential mode, we made use of the parameters data[30], data[32], data[33] and data [34]. Note that the whole procedure is repeated for every single ray that interacts with the hologram surface. In Zemax®; rays interact with a surface at a single (intercept) point. To model the behaviour of a volume hologram, a single incident ray’s interaction with the VHG is assumed to be limited to a small suface region of the VHG, in which the grating can be assumed to be plane. However, the orientation of the grating vector can vary across the hologram surface. As previously mentioned this enables us to simulate not only plane, but also any spherical curved VHG.
Results and discussion
In this section examples of use of the DLL in the sequential and nonsequential mode of Zemax®; are given. They prove the benefits of the developed DLL when designing holographic optical systems in sequential mode and evaluating their behaviour in terms of parasitic effects in nonsequential mode.
Sequential raytracing mode
The sequential mode is used to design and optimize optical systems, for example hHMD systems. By the use of the DLL the design process is greatly accelerated, as the characteristica of the HOE can be considered instantly.
The DLL is integrated into Zemax®; as a User Defined Surface (UDS). Once loaded the userdefined parameters have to be set.
In Fig. 4 two examples of Zemax®; Shaded Models are depicted: a transmission a) and reflection b) HOE which are defined by the parameters given in Table 1. For example, the refleciontype HOE could be used in a hHMD system as depicted in Fig. 1. The Zemax®; operand IMAE gives access to the transmission of a surface. Therefore, it allows to read out the overall diffraction efficiency of the hologram. Various analysis and optimization tools integrated into Zemax®; enable the fast and easy investigation of the HOE. Exemplary a selction of Zemax®; Universal Plots is depicted in Fig. 5. In Fig. 5a the diffraction efficiency η_{ T } of the transmissiontype HOE is plotted against its thickness d when reconstructed under perfect Braggcondition. The expected sinusoidal behaviour is observed, with maximum efficiency η_{ T }=1 for d≈5µm,15µm,25µm,... (compare Eq. 4). Figure 5b shows that the diffraction efficiency decreases if the reconstruction wavelength λ differs from the recording wavelength (λ_{ rec }=0.55µm), when all other parameters are fixed. In Fig. 5c and d the same plots are depicted for the reflection hologram. In accordance with the Braggreflection the diffraction efficiency of a reflection holograms increases with its the thickness d (see Fig. 5c). Finally, when comparing Fig. 5b and d a much steeper slope can be found for reflection holograms. In fact, that’s the reason why reflection holograms are named to be wavelengthselective. All simulation results are as expected and prove that the DLL enables the reliable simulation of VHG.
The examples should give the reader an idea how the DLL can be used to optimize HOEs in sequential mode. Integration of the HOE into a more complex optical system is very straightforward. By the use of the userdefined parameters and the operand IMAE meritfunctions can be defined. This enables the user to simultaneously optimize the optical system and the HOE.
Nonsequential raytracing mode
In the nonsequential mode of Zemax®; rays don’t hit the optical surfaces in a predefined order, but can intersect the same surface many times and multiple surfaces in any order. Furthermore, an intersecting ray can split up into many rays according to the laws of refraction, reflection and diffraction. This enables us to consider the notdiffracted part, by adding an additional order with efficiency η_{ nd }=1−η_{ i }, i=T,R. The nonsequential mode can be used to identify possible parasitic effects of the optical system previously developed in the sequential mode. That means we focus on effects like double images and stray light.
To include the DLL into the nonsequential mode it is used as a diffractive property of an existing surface, e.g. the Hologram Lens. As an example, a reflection hologram defined by the same parameters as in the sequential mode is used (see Table 1).
A NSC Shaded Model is shown in Fig. 6a. In addition to the diffracted light the reflected and transmitted part is visible. Furthermore, a possible stray light path is identified in transmission. It occurs due to a reflection at the front airhologram boundary after the interaction with the HOE. To display rays with less intensity we reduced the Minimum Relative Ray Intensity from 8,0000E03 to 8,0000E07. Subsequently, a lot of additional ray paths become visible (see Fig. 6b). Without the nonsequential investigation of an optical system it is nearly impossible to think of all possible stray light paths, even for a simple example like the one presented. With the Detector Rectangle, also shown in Fig. 6b as an orange line, the reflected light is displayed. For a hHMD system this could be the light which is seen by the observer. For the discussed setup the results are shown in Fig. 7. The big red spot on the right hand side is the diffracted light, which is the useful light. It is surrounded by a blurred double image (green). This double image is generated due to multiple reflections of the diffracted light at the hologramair boundaries. The central spot is the (fresnel) reflected light. On the left hand side a large tail of stray light is observed. It occurs due to light that is reflected from the rear hologramair boundary and afterwards diffracted by the hologram in reverse geometry. In case of a hHMD systems the stray light, the double image and even the fresnel reflected part could be a potential problem. By changing the parameters or the geometry of the hologram, by using anti reflection coatings or adding apertures into the optical setup, these effects could be suppressed.
It has been shown that the implemented DLL enables the simulation of parasitic effects like double images and stray light in the nonsequential mode. This is a crucial task when evaluating holographic optical system like hHMD.
Conclusions
This paper dealt with an extension written for the optical simulation tool Zemax®; OpticStudio. For both raytracing modes, namely the sequential and the nonsequential mode, a DLL has been implemented which mimics the behaviour of an HOE including its diffraction efficiency. The basic concept of the underlying coupledwave theory has been introduced. It was shown how to integrate the DLL into Zemax®; and examples of use for both raytracing modes were given. Especially the possibility of simulating HOEs with proper diffraction efficiencies in the nonsequential mode, which enables the simulation of stray light effects or double images, can be of great use for future work. It also should be mentioned that combining the DLL with the useful optimization tools of Zemax®; simplifies the design process of holographic optical systems. The presented DLL is restricted to simulate HOEs defined by diverging waves or plane (TypeIHOE). For the case of a converging reference or object wave (TypeIIHOE) an additional DLL has been implemented. It can be used exactly in the same manner as the described DLL with the only difference that one point source is now treated as a point sink (compare to TypeI and TypeIIHOE of Zemax®;, mentioned in ref. [18]).
It is left for the future to adapt the DLL to spherical or cylindrical surfaces as currently the surface of the HOE needs to be plane. Furthermore, defining the optical function of the HOE by the use of Zernike polynomials instead of two spherical waves could lead to more complex optical functions for the simulated HOE. Subsequently, aberrations of the optical system could be simulated and corrected by adjusting the HOE function.
Abbreviations
 DLL:

Dynamic link library
 hHMD:

Holographic headmounted display
 HOE:

Holographic optical element
 VHG:

Volume holographic grating
 UDS:

User defined surface
References
Kasai, I, Tanijiri, Y, Endo, T, Ueda, H: A practical seethrough head mounted display using a holographic optical element. Opt. Rev. 8(4), 241–244 (2001).
Maimone, A, Georgiou, A, Kollin, JS: Holographic neareye displays for virtual and augmented reality. ACM Trans. Graph. 36(4), 85–18516 (2017).
Hsieh, PY, Oi, R, Senoh, T, Sasaki, H, Ichihashi, Y, Okui, M, Huang, YP, Yamamoto, K, Wakunami, K: Projectiontype seethrough holographic threedimensional display. Nat. Commun. 7, 12954–12961 (2016).
Hong, J, Yeom, J, Kim, Y, Park, J, Cho, J, Hong, S, Jung, KM, Kang, H, Lee, B: Seethrough threedimensional display using printed holographicopticalelement. In: Digital Holography & 3D Imaging Meeting, pp. 2–4. Optical Society of America (2015).
Sinha, A, Barbastathis, G: Broadband volume holographic imaging. Appl. Opt. 43(27), 5214–5221 (2004).
Wissmann, P, Oh, SB, Barbastathis, G: Simulation and optimization of volume holographic imaging systems in zemax®;,. Opt. Express. 16(10), 7516–7524 (2008).
Kalkum, F: Fast numerical simulation of diffraction from large volume holograms. J. Opt. Soc. Am. A. 26(11), 2393–2397 (2009).
Kogelnik, H: Coupled wave theory for thick hologram gratings. Bell Syst. Tech. J. 48(9), 2909–2947 (1969).
Luo, Y, Castro, J, Barton, JK, Kostuk, RK, Barbastathis, G: Simulations and experiments of aperiodic and multiplexed gratings in volume holographic imaging systems. Opt. Express. 18(18), 19273–19285 (2010).
Syms, R, Solymar, L: Localized onedimensional theory for volume holograms. Optical & Quantum Electronics. 13(5), 415–419 (1981).
Jurbergs, D, Bruder, FK, Deuber, F, Fäcke, T, Hagen, R, Hönel, D, Rölle, T, Weiser, MS, Volkov, A: New recording materials for the holographic industry. In: Proc. SPIE 7233, Practical Holography XXIII: Materials and Applications, pp. 72330–7233010 (2009).
Jurbergs, D, Bruder, FK, Deuber, F, Fäcke, T, Hagen, R, Hönel, D, Rölle, T, Weiser, MS, Volkov, A: Reactiondiffusion model applied to high resolution bayfol ®;hx photopolymer. In: Proc. SPIE 7619, Practical Holography XXIV: Materials and Applications, pp. 76190–7619015 (2010).
Berneth, H, Bruder, FK, Fäcke, T, Hagen, R, Hönel, D, Rölle, T, Weiser, MS, Jurbergs, D: Holographic recording aspects of highresolution bayfol ®;hx photopolymer. In: Proc. SPIE 7957, Practical Holography XXV: Materials and Applications, pp. 79570–7957015 (2011).
Berneth, H, Bruder, FK, Fäcke, T, Hagen, R, Hönel, D, Rölle, T, Walze, G, Weiser, MS: Holographic recordings with high beam ratios on improved bayfol ®;hx photopolymer. In: Proc. SPIE 8776, Holography: Advances and Modern Trends III, vol. 8776, pp. 877603–87760312 (2013).
Berneth, H, Bruder, FK, Fäcke, T, Hagen, R, Hönel, D, Rölle, T, Walze, G, Jurbergs, D: Bayfol hx photopolymer for fullcolor transmission volume bragg gratings. In: Proc. SPIE 9006, Practical Holography XXVIII: Materials and Applications, vol. 9006, pp. 900602–90060210 (2014).
Lindlein, N: Analyse und optimierung diffraktiver optischer systeme. FriedrichAlexanderUniversität ErlangenNürnberg (1996). PhD thesis.
Bragg, WL: The diffraction of short electromagnetic waves by a crystal. In: Proceedings of the Cambridge Philosophical Society, pp. 43–57 (1913).
Zemax: OpticStudio 16 SP2 Help Files (2016).
Acknowledgements
This work was supported by Prof. Dr. Norbert Lindlein (Universität Erlangen) and Patrick Wissmann [6].
Availability of data and materials
The data has been provided in the manuscript.
Author information
Authors and Affiliations
Contributions
MK implemented the C++code and wrote the manuscript. WS and RF made contribution to the development of the idea and read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Kick, M., Fieß, R. & Stork, W. Sequential and nonsequential simulation of volume holographic gratings. J. Eur. Opt. Soc.Rapid Publ. 14, 15 (2018). https://doi.org/10.1186/s414760180082z
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s414760180082z