원시데이터 수집 시스템
선정목록으로

Coupled optoelectronic simulation and optimization of thin-film photovoltaic solar cells

관련 필름·전자재료 · (15) 디스플레이 패널재료

기본 정보

저자
  1. Tom H. Anderson — University of Delaware, Department of Mathematical Sciences, Newark, DE 19716, USA
  2. Benjamin J. Civiletti — University of Delaware, Department of Mathematical Sciences, Newark, DE 19716, USA
  3. Peter Monk — University of Delaware, Department of Mathematical Sciences, Newark, DE 19716, USA
  4. Akhlesh Lakhtakia — Pennsylvania State University, Department of Engineering Science and Mechanics, University Park, PA 16802, USA
DOI
10.1016/j.jcp.2020.109242
저널
Journal of Computational Physics
발행년도
2020
발행기관
Elsevier BV
피인용수
28
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.jcp.2020.109242
토픽
Optical Coatings and Gratings
OpenAlex ID
W2998964254

평가 내용

관련도
관련
사업분야
필름·전자재료 · (15) 디스플레이 패널재료
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 디스플레이 패널재료' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

초록이 없습니다.

본문 105,542자

본문 펼치기
Coupled Optoelectronic Simulation and Optimization of Thin-Film Photovoltaic Solar Cells Tom H. Anderson, Benjamin J. Civiletti, Peter B. Monk _University_ _of_ _Delaware,_ _Department_ _of_ _Mathematical_ _Sciences,_ _Newark,_ _DE_ _19716,_ _USA_ Akhlesh Lakhtakia _Pennsylvania_ _State_ _University,_ _Department_ _of_ _Engineering_ _Science_ _and_ _Mechanics,_ _University_ _Park,_ _PA_ _16802,_ _USA_ Abstract A design tool was formulated for optimizing the efficiency of inorganic, thin-film, photovoltaic solar cells. The solar cell can have multiple semiconductor layers in addition to antireflection coatings, passivation layers, and buffer layers. The solar cell is backed by a metallic grating which is periodic along a fixed direction. The rigorous coupled-wave approach is used to calculate the electron-hole-pair generation rate. The hybridizable discontinuous Galerkin method is used to solve the drift-diffusion equations that govern charge-carrier transport in the semiconductor layers. The chief output is the solar-cell efficiency which is maximized using the differential evolution algorithm to determine the optimal dimensions and bandgaps of the semiconductor layers. ## 1 Introduction The simulation of thin-film photovoltaic solar cells requires the coupling of (i) an optical model capable of capturing the absorption of photons with (ii) an electrical model capable of simulating the transport of charge carriers throughout the solar cell [1, 2]. To optimize solar cell designs, both models needed to be tailored to be rapidly computable, accurate, and robust across the relevant parameter space. To this end, we have developed a coupled optoelectronic simulation technique for thin-film photovoltaic solar cells containing periodic structures, and we have used this simulation technique together with the differential evolution algorithm (DEA) [3, 4] to optimize device performance. The solar cell is assumed to be infinitely extended in the _xy_ -plane, periodic in the _x_ -direction, translation invariant in the _y_ -direction, and of finite extent in the _z_ -direction. These assumptions allow the simulation to be limited to two-dimensional (2D) space. However, we emphasize that our approach will work in threedimensional (3D) space at the cost of greater computational complexity and cost. The first step of the coupled optoelectronic simulation involves modeling the photonic characteristics of the solar cell. In the photonic step, the rigorous coupled-wave approach (RCWA) [5, 6, 7] is used to determine the electromagnetic fields in the solar cell due to incident solar radiation. The RCWA is an efficient computational technique to solve the frequency-domain Maxwell equations and determine the electric field in a representative subsection of the periodic (2D or 3D) domain. The frequency-domain electric field is used to determine the photon absorption rate, and therefore the generation rate of electron–hole pairs, throughout the solar cell. Rapid calculation across the solar spectrum [8, 9] is possible due to RCWA being a pseudo-spectral method, i.e., it avoids spatial meshing in the periodic dimensions. The second step of the coupled optoelectronic simulation involves modeling the electronic characteristics of the solar cell. In the electronic step, the electron-hole-pair generation rate is used as the input to a driftdiffusion electronic (DDE) model in order to calculate the current-voltage curve of the solar cell and, hence, the efficiency of the solar cell. Because of the cost of solving the DDE model, we average the generation rate across one period in the _xy_ -plane and implement the DDE model for variations of the electric potential and charge-carrier transport along the _z_ -axis. The resulting one-dimensional (1D) DDE model consists of six coupled differential equations. The nonlinear Shockley–Read–Hall, Auger, and radiative terms are included to model electron-hole recombination [1, 2]. A hybridizable discontinuous Galerkin (HDG) method [10, 11, 12, 13] is developed, and the Newton–Raphson method [14] is used to find a solution of the resulting nonlinear system. A version of the HDG method has already been used to simulate organic solar cells [10], based on the work of Lehrenfeld [11]. We use a similar scheme based on the classical HDG method [12], following Fu _et_ _al._ [13] who have analyzed the method for a linear convection-diffusion system. Our study points to the 1 advantages of this method in simulating _inorganic_ solar cells having a spatially variable electron-hole-pair generation rate in the presence of semiconductor heterojunctions. Anderson _et_ _al._ [15] recently reported a coupled optoelectronic simulation of a Schottky-barrier thin-film solar cell, with the finite-element method (FEM) [16] used for both the photonic and the electronic steps of the simulation. Later, Anderson _et_ _al._ [17] used the RCWA for the photonic step and the standard FEM for the electronic step for simulating the same Schottky-barrier thin-film solar cell (which is not considered in this paper). Other researchers have also developed techniques for optoelectronic simulation [18, 19, 20]. Our emphasis in this paper is different in two ways: first, our simulations lead to optimization of thinfilm photovoltaic solar cells containing periodic structures; second, we concentrate on understanding the numerical performance of each of the two steps in the coupled optoelectronic simulation. For example, we investigate the convergence rate of RCWA for two model problems. We also propose, test, and use a highorder HDG scheme using fifth-degree polynomials for the DDE model, quite possibly the first time that such a high-order scheme has been used. Since the use of DEA for optimization of solar cells has been investigated elsewhere by us [8, 17], we devote little space to it in this paper. The photonic and electronic steps described in this paper are closely related to components of the Solcore software package described recently by Alonso-Alvarez <sup>´</sup> _et_ _al._ [20]. That software package includes an RCWA solver as well as a 1D DD solver based on quasi-Fermi levels. In contrast, our DD solver uses the density of holes and electrons and is based on a high-order HDG scheme. The ultimate goal is to maximize the efficiency of the solar cell, and this goal distinguishes our work from that of Alonso-Alvarez <sup>´</sup> _et_ _al._ [20]. Because of the presence of local minima, we use the DEA [3, 4] for optimization. This requires the evaluation of the efficiency of solar-cell designs from all regions of the multidimensional space encompassing appropriate parameters, which thus necessitates the development of a robust and efficient solver. See [https://www.pvlighthouse.com.au](https://www.pvlighthouse.com.au) for a list of other available photovoltaic-design software. Our work here should be seen as a complement to those efforts by extending the use of coupled optoelectronic simulation to the optimal design of solar cells as well as testing new simulation techniques. In this paper, we assume that the solar cell occupies the region _X_ : _{r_ _≡_ ( _x, y, z_ ) _|_ _−∞_ _< x < ∞,_ _−∞_ _< y_ _< ∞,_ _−L_ m _< z_ _< L_ t _}_ (1) in R <sup>3</sup>, with air occupying the region R <sup>3</sup> _\X_ . As stated previously, the device is assumed to be periodic along the _x_ -direction with period _L_ x and translation invariant along the _y_ -direction. Solely for illustrating various simulation issues, we performed calculations for the device shown Fig. 1(a). The current-generating region of this device comprises a thin layer of _p_ -type semiconductor, a thicker layer of _i_ -type semiconductor, and a thin layer of _n_ -type semiconductor [1, 2]. The plane _z_ = 0 is taken to be the bottom face of the _n_ -type semiconductor and the plane _z_ = _L_ z is taken to be the top face of the _p_ -type semiconductor. Below the plane _z_ = 0 is a grating formed by infinitely long strips of a metal and a dielectric material, the grating period being _L_ x. Below the grating is a metal layer that is sufficiently thick to prevent light from escaping into air below it. Above the _p_ -type semiconductor is an antireflection coating. The plane _z_ = _L_ t is the top face of the antireflection coating and the plane _z_ = _−L_ m is the bottom face of the metal layer below the grating. The grating shape in Fig. 1(a) is an academic example. A triangular grating used to test RCWA is shown in Fig. 1(b). The layout of the paper is as follows. In Section 2, we start by describing the optical model solved in the photonic step, summarize the 2D RCWA, and define the charge-carrier generation rate that is used as the input to the DDE model solved in the electronic step. In Section 2.2 we show two examples of RCWA convergence to illustrate the advantages and drawbacks of this approach for solar cells. Section 3 is devoted to the electronic step. The DDE model is described in Section 3.1. The boundary conditions derived from local quasi-thermal equilibrium (LQTE) are discussed in Section 3.2, while the electron-hole recombination terms are presented in Section 3.3. We discuss heterojunctions in Section 3.4, and summarize a non-dimensionalized DDE model in Section 3.5. Then we proceed to describe the HDG method in Section 4, starting with the formulation of a generalized transport system in Section 4.1, followed by the discretization of 1D space (along the _z_ axis) in Section 4.2 and implementational aspects of the convection term in Section 4.3. Next, in Section 4.4, we present the upwinding strategy needed to stabilize the DDE model, followed in Section 4.5 by the interpolation method for implementing the non-linear recombination terms. The implementation of jump conditions is presented in Section 4.6. The numerical model is completed by discussing the homotopy (or continuation) method for solving the nonlinear system in Section 4.7. A numerical test is presented in 2 (a) (b) Figure 1: (a) An academic model of a metal-backed _p-i-n_ solar cell used as an example throughout this paper. The dimensions shown are simply for illustration. (b) A triangular metal grating in air used to test RCWA (of course, this is not a solar cell). Figures are not to scale. Section 5. Together, the photonic and electronic steps provide information used by the DEA optimization scheme, which is described briefly in Section 6. The paper culminates in a presentation of results for the model solar cell presented in Fig. 1(a). We end with some conclusions in Section 8. A note about notation: Underlined quantities represent vectors, with _<u>x</u>_ <u>ˆ,</u> _<u>y</u>_ <u>ˆ</u> and _<u>z</u>_ <u>ˆ</u> being the unit vectors along the _x_ -, _y_ -, and _z_ -axes. The ˘ mark is used to denote quantities emerging from the implementation of the spatial Fourier transform [21] with respect to _x_ . For the frequency-domain calculations carried out in the photonic step (Section 2), electromagnetic <u>fields</u> are taken to vary with time _t_ harmonically as exp( _−iωt_ ), where _ω_ is the angular frequency and _i_ = <sup>_√_</sup> _−_ 1. Air is assumed to have the same electromagnetic properties as free space or vacuum. The wavenumber in air is denoted by _k_ 0 = _ω/c_ 0 where _c_ 0 is the speed of light in air, and _λ_ 0 = 2 _π/k_ 0 is the wavelength of light in air. The permittivity and permeability of free <u>space</u> are denoted, respectively, by _ε_ 0 = 8 _._ 854188 _×_ 10 <sup>_−_</sup> <sup>12</sup> F m <sup>_−_</sup> <sup>1</sup> and _µ_ 0 = 4 _π ×_ 10 <sup>_−_</sup> <sup>7</sup> H m <sup>_−_</sup> <sup>1</sup>, and _η_ 0 = - _µ_ 0 _/ε_ 0 is the intrinsic impedance of free space. ## 2 Photonic Step In this section, first we summarize the RCWA for solving the frequency-domain Maxwell equations, and then we present some numerical results to quantify the performance of RCWA, which is the workhorse for computational investigations of optical gratings [22, 23]. The adequacy of this approach for solar cells has been established by comparison to other approaches [24, 25, 26]. Oddly, the numerical convergence of this method has not been investigated before; hence, a part of this section is devoted to a numerical investigation of RCWA convergence. 2.1 RCWA Formulation The solar cell is taken to be illuminated from the half space _z_ _> L_ t by a normally incident plane wave whose electric field phasor is denoted by _<u>E</u>_ ~~i~~ nc( _x, z, λ_ 0) = _E_ 0 _a_ p _<u>x</u>_ <u>ˆ +</u> _a_ s ˆ _<u>y</u>_ ~~<u>�</u>~~ _a_ <sup>2</sup> p + _a_ <sup>2</sup> s 3 exp( _−ik_ 0 _z_ ) _._ (2) The parameters _a_ s and _a_ p determine the polarization state of the incident light; thus, _a_ p = 1 and _a_ s = 0 for _p_ -polarized light, but _a_ s = 1 and _a_ p = 0 for _s_ -polarized light. For solar-cell calculations, we set _a_ p = _a_ s = 1 because direct sunlight can be assumed to be unpolarized. Due to the periodicity of the solar cell in the _x_ -direction, the optical relative permittivity _ε_ rel( _x, z, λ_ 0) is represented everywhere by the Fourier series - _iκ_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> _x_ - _,_ _|z| < ∞,_ _|x| < ∞,_ (3) - _iκ_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> _x_ _ε_ rel( _x, z, λ_ 0) = _∞_ _ℓ_ = _−∞_ _ε_ <sup>(</sup> rel <sup>_ℓ_</sup> <sup>)(</sup> <sup>_z, λ_</sup> <sup>0) exp</sup> _ε_ <sup>(</sup> rel <sup>_ℓ_</sup> <sup>)</sup> where _ε_ <sup>(</sup> rel <sup>_ℓ_</sup> <sup>)(</sup> <sup>_z, λ_</sup> <sup>0)</sup> <sup>are</sup> <sup>Fourier</sup> <sup>coefficients</sup> <sup>and</sup> <sup>_κ_</sup> <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> <sup>=</sup> <sup>2</sup> <sup>_πℓ/L_</sup> <sup>x.In</sup> <sup>a</sup> <sup>similar</sup> <sup>way,</sup> <sup>the</sup> <sup>optical</sup> <sup>relative</sup> <sup>impermit-</sup> tivity _β_ rel( _x, z, λ_ 0) = 1 _/ε_ rel( _x, z, λ_ 0) is repesented everywhere by the Fourier series _∞_ _ℓ_ = _−∞_ - _iκ_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> _x_ - _,_ _|z| < ∞,_ _|x| < ∞,_ (4) _β_ rel( _x, z, λ_ 0) = _β_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> rel <sup>(</sup> <sup>_z, λ_</sup> <sup>0) exp</sup> _β_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> rel where _β_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> rel <sup>(</sup> <sup>_z, λ_</sup> <sup>0) are Fourier coefficients.</sup> <sup>We can also express the</sup> <sup>_x_</sup> <sup>-dependences of the electric and magnetic</sup> field phasors by their Fourier series as _<u>E</u>_ <u>(</u> _x, z, λ_ 0) = _<u>H</u>_ <u>(</u> _x, z, λ_ 0) = _∞_ - _<u>e</u>_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> ( _z, λ_ 0) exp _ℓ_ = _−∞_ _∞_ - _<u>h</u>_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> ( _z, λ_ 0) exp _ℓ_ = _−∞_ - _iκ_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> _x_ - _,_ _|z| < ∞,_ _|x| < ∞,_ (5) - _iκ_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> _x_ - _,_ _|z| < ∞,_ _|x| < ∞,_ (6) <sup>(</sup> _y_ <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>y</u>_</sup> <sup><u>ˆ</u></sup> <sup>+</sup> <sup>_h_</sup> <sup>(</sup> _z_ <sup>_ℓ_</sup> <sup>)</sup> where _<u>e</u>_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> _≡_ _e_ <sup>(</sup> _x_ <sup>_ℓ_</sup> <sup>)</sup> <sup>(</sup> _y_ <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>y</u>_</sup> <sup><u>ˆ</u></sup> <sup>+</sup> <sup>_e_</sup> <sup>(</sup> _z_ <sup>_ℓ_</sup> <sup>)</sup> <sup>(</sup> _x_ <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>x</u>_</sup> <sup><u>ˆ</u></sup> <sup>+</sup> <sup>_e_</sup> <sup>(</sup> _y_ <sup>_ℓ_</sup> <sup>)</sup> <sup>(</sup> _z_ <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>z</u>_</sup> <sup><u>ˆ</u></sup> <sup>and</sup> <sup>_<u>h</u>_</sup> <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> <sup>_≡_</sup> <sup>_h_</sup> _x_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> _x_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>x</u>_</sup> <sup><u>ˆ</u></sup> <sup>+</sup> <sup>_h_</sup> <sup>(</sup> _y_ <sup>_ℓ_</sup> <sup>)</sup> where _<u>e</u>_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> _≡_ _e_ <sup>(</sup> _x_ <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>x</u>_</sup> <sup><u>ˆ</u></sup> <sup>+</sup> <sup>_e_</sup> <sup>(</sup> _y_ <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>y</u>_</sup> <sup><u>ˆ</u></sup> <sup>+</sup> <sup>_e_</sup> <sup>(</sup> _z_ <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>z</u>_</sup> <sup><u>ˆ</u></sup> <sup>and</sup> <sup>_<u>h</u>_</sup> <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> <sup>_≡_</sup> <sup>_h_</sup> _x_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>x</u>_</sup> <sup><u>ˆ</u></sup> <sup>+</sup> <sup>_h_</sup> <sup>(</sup> _y_ <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>y</u>_</sup> <sup><u>ˆ</u></sup> <sup>+</sup> <sup>_h_</sup> <sup>(</sup> _z_ <sup>_ℓ_</sup> <sup>)</sup> <sup>_<u>z</u>_</sup> <sup><u>ˆ</u></sup> <sup>are Fourier coefficients and normal incidence</sup> is implicit. For computational tractability, all four of the foregoing series are truncated to include only _ℓ_ _∈{−N_ t _, ..., N_ t _}_, _N_ t _≥_ 0. The Fourier coefficients are collected in the (2 _N_ t + 1)-column vectors - _ε_ <sup>(</sup> rel <sup>_−N_</sup> <sup>t)</sup> rel <sup>(</sup> <sup>_−N_</sup> <sup>t+1)</sup> ( _z, λ_ 0) _, ..., ε_ <sup>(</sup> rel <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> <sup>(</sup> rel <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> ( _z, λ_ 0) _, ε_ <sup>(</sup> rel <sup>_N_</sup> <sup>t)</sup> <sup>(</sup> rel <sup>_N_</sup> <sup>t)(</sup> <sup>_z, λ_</sup> <sup>0)</sup> - _T_ _,_ _ε_ ˘rel( _z, λ_ 0) = _β_ ˘rel( _z, λ_ 0) = <sup>(</sup> rel <sup>_−N_</sup> <sup>t)</sup> ( _z, λ_ 0) _, ε_ rel <sup>(</sup> <sup>_−N_</sup> <sup>t+1)</sup> rel <sup>(</sup> <sup>_−N_</sup> <sup>t)</sup> ( _z, λ_ 0) _, β_ rel <sup>(</sup> <sup>_−N_</sup> <sup>t+1)</sup> (7) (8) - _β_ rel <sup>(</sup> <sup>_−N_</sup> <sup>t)</sup> rel <sup>(</sup> <sup>_−N_</sup> <sup>t+1)</sup> ( _z, λ_ 0) _, ..., β_ rel <sup>(</sup> <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> rel <sup>(</sup> <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> ( _z, λ_ 0) _, β_ rel <sup>(</sup> <sup>_N_</sup> <sup>t)</sup> rel <sup>(</sup> <sup>_N_</sup> <sup>t)(</sup> <sup>_z, λ_</sup> <sup>0)</sup> - _T_ _,_ <sup>(</sup> _σ_ <sup>_−N_</sup> <sup>t+1)</sup> ( _z, λ_ 0) _, ..., e_ <sup>(</sup> _σ_ <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> <sup>(</sup> _σ_ <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> ( _z, λ_ 0) _, e_ <sup>(</sup> _σ_ <sup>_N_</sup> <sup>t)</sup> <sup>(</sup> _σ_ <sup>_N_</sup> <sup>t)</sup> ( _z, λ_ 0) - _T_ _,_ _e_ ˘ _σ_ ( _z, λ_ 0) = _h_ ˘ _σ_ ( _z, λ_ 0) = - _e_ <sup>(</sup> _σ_ <sup>_−N_</sup> <sup>t)</sup> <sup>(</sup> _σ_ <sup>_−N_</sup> <sup>t)</sup> ( _z, λ_ 0) _, e_ <sup>(</sup> _σ_ <sup>_−N_</sup> <sup>t+1)</sup> <sup>(</sup> _σ_ <sup>_−N_</sup> <sup>t)</sup> ( _z, λ_ 0) _, h_ <sup>(</sup> _σ_ <sup>_−N_</sup> <sup>t+1)</sup> _σ_ _∈{x, y, z},_ (9) - _h_ <sup>(</sup> _σ_ <sup>_−N_</sup> <sup>t)</sup> <sup>(</sup> _σ_ <sup>_−N_</sup> <sup>t+1)</sup> ( _z, λ_ 0) _, ..., h_ <sup>(</sup> _σ_ <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> <sup>(</sup> _σ_ <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> ( _z, λ_ 0) _, h_ <sup>(</sup> _σ_ <sup>_N_</sup> <sup>t)</sup> <sup>(</sup> _σ_ <sup>_N_</sup> <sup>t)</sup> ( _z, λ_ 0) - _T_ _σ_ _∈{x, y, z},_ (10) where the superscript _T_ denotes the transpose. Furthermore, the (2 _N_ t + 1) _×_ (2 _N_ t + 1) matrix _K_ ˘ = diag - _κ_ <sup>(</sup> <sup>_−N_</sup> <sup>t)</sup> _,_ _κ_ <sup>(</sup> <sup>_−N_</sup> <sup>t+1)</sup> _,_ _..., κ_ <sup>(</sup> <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> _,_ _κ_ <sup>(</sup> <sup>_N_</sup> <sup>t)�</sup> (11) is defined for convenience. Finally, the Toeplitz matrix of the Fourier coefficients _{ξ_ <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> _}_ <sup>_∞_</sup> _ℓ_ = _−∞_ <sup>of</sup> <sup>a</sup> <sup>periodic</sup> function _ξ_ ( _x_ ) = _ξ_ ( _x ± L_ x) is defined as _ξ_ <sup>(0)</sup> _ξ_ <sup>(</sup> <sup>_−_</sup> <sup>1)</sup> _..._ _ξ_ <sup>(</sup> <sup>_−_</sup> <sup>2</sup> <sup>_N_</sup> <sup>t+1)</sup> _ξ_ <sup>(</sup> <sup>_−_</sup> <sup>2</sup> <sup>_N_</sup> <sup>t)</sup> _ξ_ <sup>(1)</sup> _ξ_ <sup>(0)</sup> _..._ _ξ_ <sup>(</sup> <sup>_−_</sup> <sup>2</sup> <sup>_N_</sup> <sup>t+2)</sup> _ξ_ <sup>(</sup> <sup>_−_</sup> <sup>2</sup> <sup>_N_</sup> <sup>t+1)</sup> ... ... ... ... ... _ξ_ <sup>(2</sup> <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> _ξ_ <sup>(2</sup> <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>2</sup> <sup>_,λ_</sup> <sup>0)</sup> _..._ _ξ_ <sup>(0)</sup> _ξ_ <sup>(</sup> <sup>_−_</sup> <sup>1)</sup> _ξ_ <sup>(2</sup> <sup>_N_</sup> <sup>t)</sup> _ξ_ <sup>(2</sup> <sup>_N_</sup> <sup>t</sup> <sup>_−_</sup> <sup>1)</sup> _..._ _ξ_ <sup>(1)</sup> _ξ_ <sup>(0)</sup> 4   _T_ _N_ t( _ξ_ ) =   _._ (12) Substitution of the four Fourier series into the frequency-domain Maxwell curl equations yields two matrix ordinary differential equations [7, Sec. 2.3.4]. The equation _<u>d</u>_ _dz_ - _e_ ˘ _x_ ( _z, λ_ 0) _h_ ˘ _y_ ( _z, λ_ 0) = (13) (14) _i_ - ˘0 _ωµ_ 0 _I_ <sup>˘</sup> _−_ ( _ωε_ 0) <sup>_−_</sup> <sup>1</sup> _K_ <sup>˘</sup> _N_ <sup>˘</sup> ( _z, λ_ 0) _K_ <sup>˘</sup> _ωε_ 0 _M_ <sup>˘</sup> ( _z, λ_ 0) ˘0 �� _e_ ˘ _x_ ( _z, λ_ 0) _h_ ˘ _y_ ( _z, λ_ 0) must be solved if _a_ p _̸_ = 0, and the equation _<u>d</u>_ _dz_ _−i_ - _e_ ˘ _y_ ( _z, λ_ 0) _h_ ˘ _x_ ( _z, λ_ 0) - ˘0 _ωµ_ 0 _I_ <sup>˘</sup> _ωε_ 0 _M_ <sup>˘</sup> ( _z, λ_ 0) _−_ ( _ωµ_ 0) <sup>_−_</sup> <sup>1</sup> _K_ <sup>˘</sup> <sup>2</sup> ˘0 = �� _e_ ˘ _y_ ( _z, λ_ 0) _h_ ˘ _x_ ( _z, λ_ 0) if _a_ s _̸_ = 0. In these equations, <sup>˘</sup> 0 is the (2 _N_ t + 1) _×_ (2 _N_ t + 1) null matrix, and _I_ <sup>˘</sup> is the (2 _N_ t + 1) _×_ (2 _N_ t + 1) identity matrix. As a corollary to the mutual independence of Eqs. (13) and (14), _p_ -polarized light does not interact with _s_ -polarized light and _vice_ _versa_ . We solved both Eqs. (13) and (14) because direct sunlight can be assumed to be unpolarized. Thereafter, the Fourier coefficients of the _z_ -components of the electric and magnetic field phasors were obtained as _e_ ˘ _z_ ( _z, λ_ 0) = _−_ ( _ωε_ 0) <sup>_−_</sup> <sup>1</sup> _N_ <sup>˘</sup> ( _z, λ_ 0) _K_ <sup>˘</sup> _h_ <sup>˘</sup> _y_ ( _z, λ_ 0) _h_ ˘ _z_ ( _z, λ_ 0) = ( _ωµ_ 0) <sup>_−_</sup> <sup>1</sup> _K_ ˘ _e_ ˘ _y_ ( _z, λ_ 0) _._ (15) The matrices _M_ <sup>˘</sup> and _N_ <sup>˘</sup> in Eqs. (13) and (14) encode the Fourier series provided in Eqs. (3) and (4) for _ε_ rel and _β_ rel. There are four choices possible for the combination of _M_ <sup>˘</sup> and _N_ <sup>˘</sup>, the best choice depending on the polarization state of the incident plane wave [27]. Following Lalanne and Morris [5], we first define the Toeplitz matrices _E_ ˘( _z, λ_ 0) = _TN_ t[˘ _ε_ rel( _z, λ_ 0)] (16) and _B_ ˘( _z, λ_ 0) = _TN_ t[˘ _β_ rel( _z, λ_ 0)] _._ (17) Then the four possible choices are identified as follows: Choice 1: The most _direct_ choice is for _M_ <sup>˘</sup> to encode _ε_ rel and _N_ <sup>˘</sup> to encode _ε_ <sup>_−_</sup> rel <sup>1</sup> <sup>so</sup> <sup>that</sup> _M_ <sup>˘</sup> = _E_ <sup>˘</sup> and _N_ <sup>˘</sup> = _B_ <sup>˘</sup> . Choice 2: We can write _ε_ rel = 1 _/β_ rel and arrive at the choice _M_ <sup>˘</sup> = _B_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> and _N_ <sup>˘</sup> = _B_ <sup>˘</sup> . Choice 3: In contrast to Choice 2, we can write _β_ rel = 1 _/ε_ rel to choose _M_ <sup>˘</sup> = _E_ <sup>˘</sup> and _N_ <sup>˘</sup> = _E_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> . Choice 4: The final choice is _M_ <sup>˘</sup> = _B_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> and _N_ <sup>˘</sup> = _E_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup>, in direct contrast to Choice 1. Choices 1 and 3 are identical on the one hand, and Choice 2 is the same as Choice 4 on the other, for _s_ -polarized illumination. All four choices are distinct for _p_ -polarized illumination. In order to solve Eqs. (13) and (14), it is usual to discretize in the _z_ -direction by subdividing the solar cell into thin slices of infinite extent in the _xy_ -plane [7]. In each slice, _ε_ rel is uniform in the _z_ -direction, but it is either uniform or piecewise uniform in the _x_ -direction. Depending on the profile of the grating, this may require piecewise-uniform approximations of _ε_ rel and _β_ rel. Equations (13) and (14) can then be solved exactly in each slice using a stabilized stepping algorithm [7, 23] akin to Gaussian elimination without pivoting [14], so that _e_ ˘ _x_, _e_ ˘ _y_, _h_ <sup>˘</sup> _x_, and _h_ <sup>˘</sup> _y_ are determined everywhere in the solar cell. Equations (15) then let us determine _e_ ˘ _z_ and _h_ <sup>˘</sup> _z_ throughout the solar cell. 5 The convergence rates for the Fourier series of _ε_ rel and _β_ rel are limited by the discontinuities in the relative permittivity in the slices in the grating region. Additionally, approximating the interfaces of general grating profiles using stairstepping can also give low-order convergence with respect to the slice thickness. However, if the grating is in fact a superposition of a finite number of square waves, the only approximation is due to the truncation of the Fourier series. 2.1.1 Electron-Hole-Pair Generation Rate With the assumption that the absorption of every photon in any semiconductor layer excites an electronhole pair, the electron-hole-pair generation rate in the semiconductor region _{|x| < L_ x _/_ 2 _,_ 0 _< z_ _< L_ z _}_ can be calculated as 2 _S_ ( _λ_ 0) d _λ_ 0 _,_ (18) ���� <u>1</u> _G_ ( _x, z_ ) = ℏ _c_ 0 - _λ_ 0 _max_ _λ_ 0 _min_ Im _{ε_ rel( _x, z, λ_ 0) _}_ ���� _<u>E</u>_ <u>(</u> _<u>x, z, λEo</u>_ 0) where ℏ is the reduced Planck constant and _S_ ( _λ_ 0) is the incident power spectrum. We chose _S_ ( _λ_ 0) to be the standard AM1.5G spectrum [28]. As _S_ ( _λ_ 0) falls off rapidly at shorter free-space wavelengths, _λ_ 0 _min_ = 350 nm was fixed. Once the free-space wavelength becomes too large, the energy in a photon is not capable of exciting an electron sufficiently to cross the bandgap. Consequently, the upper cut off was taken to be _λ_ 0 _max_ = 1240 nm V _/_ Eg _,_ min, where Eg _,_ min (in V) is the minimum value of the bandgap Eg in the solar cell. These choices are typical values for studies on solar cells. After assuming full quantum efficiency, i.e. each excited electron or hole is collected at the appropriate terminal, the optical short-circuit current density can be calculated as - _L_ z� _L_ x _/_ 2 0 _J_ SC <sup>Opt</sup> <sup>=</sup> <sup>_q_</sup> <sup>e</sup> <u>1</u> _L_ x _G_ ( _x, z_ ) d _x_ d _z,_ (19) _−L_ x _/_ 2 where _q_ e = 1 _._ 60218 _×_ 10 <sup>_−_</sup> <sup>19</sup> C is the elementary charge. Let us note that _J_ SC <sup>Opt</sup> provides only a rough benchmark for the device efficiency, although it is often used to assess the efficiency of solar cells [29, 30, 31]. However, as recombination is neglected, _J_ SC <sup>Opt</sup> is necessarily larger than the attainable short-circuit current density _J_ SC, which is the density of current that flows when the solar cell is illuminated and no external bias is applied (i.e., when _V_ ext = 0). We have already shown that, when the bandgap is one of the simulation parameters, optimizing Eq. (19) can lead to designs with high values of _J_ SC <sup>Opt</sup> but low values of extractable electrical power [8]. A better approach is to complement the photonic step by the electronic step, as accomplished in Section 3. 2.2 RCWA Convergence There are two sources of approximation error in the RCWA. The first is the truncation of the Fourier series to include only _ℓ_ _∈{−N_ t _, ..., N_ t _}_, while the second is through the discretization of space in the _z_ -direction whenever there is a need to approximate the relative permittivity slice by slice. As it is not possible to solve Eqs. (13) and (14) analytically, in order to investigate the convergence of RCWA, the electric field phasor _<u>E</u>_ <u>(</u> _x, z, λ_ 0) was calculated using an FEM code [24, 25] and compared with the RCWA results for various values of _N_ t, the slice thickness being fixed at a sufficiently low value. The FEM data were obtained using an adaptive method implemented in NGSolve [32]. The adaptive algorithm uses mesh bisection and the Zienkiewicz–Zhu _a-posteriori_ error estimator [33]. The FEM calculations were carried out using 5th-order continuous finite elements. Mesh adaptivity was terminated whenever the algorithm reached 100,000 degrees of freedom. The simulated domain was sandwiched between two perfectly matched layers (PMLs). Both of the PMLs were taken to be one-wavelength thick and with a constant PML parameter of (1 _._ 5 + 2 _._ 5 _i_ ) [34], the reflection coefficient of the PMLs being then _∼_ 3 _×_ 10 <sup>_−_</sup> <sup>12</sup> . 2.2.1 Global Convergence of Electric Field Phasor In order to investigate the global convergence of the RCWA, a simple but adequate problem was chosen: reflection by the grating shown in Fig. 1(b). The region above the grating was taken to be occupied by air with relative permittivity _ε_ rel = 1+10 <sup>_−_</sup> <sup>9</sup> _i_, the minuscule imaginary part needed for the stability of the RCWA 6 algorithm. The grating, made from a fictitious metallic material with relative permittivity _ε_ rel = _−_ 22+0 _._ 4 _i_, comprises triangular protrusions on a 50-nm-thick film. Each protrusion is of height 50 nm and base 250 nm. Calculations were made with _λ_ 0 = 600 nm and _L_ x = 500 nm. The triangular profile was chosen for the grating, because it is approximated by a stairstep when the piecewise-uniform approximation is used to solve Eqs. (13) and (14). In addition, the true solution has a singularity in the field at the tip of the triangle which tests the algorithm’s ability to handle such behavior. As the only non-zero Cartesian component of _<u>E</u>_ ( _x, z, λ_ 0) for _s_ -polarized illumination is the _y_ -component, a relative global error was defined as _eEs_ ( _N_ t) = <sup>_<u>∥Ey,RCW A</u>_</sup> <sup><u>(</u></sup> <sup>_<u>N</u>_</sup> <sup><u>t)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>Ey,F E∥</u>_</sup> <sup><u>2</u></sup> _∥Ey,F EM_ _∥_ 2 (20) as a function of _N_ t, with _Ey,RCW A_ denoting the value of _Ey_ yielded by RCWA, and _Ey,F EM_ the value yielded by FEM. In addition, for any function _f_ ( _x, y_ ), <sup>2</sup> 2 <sup>=</sup> _∥f_ _∥_ <sup>2</sup> 2 _|f_ ( _x, y_ ) _|_ <sup>2</sup> d _z_ d _x_ (21) Ωph and where Ωph is the entire simulation domain in the photonic step except the two PMLs. For _p_ -polarized illumination, the relative global error was analogously defined as _eEp_ ( _N_ t) = - _<u>∥Ex,RCW A</u>_ <u>(</u> _<u>N</u>_ <u>t)</u> _<u>−</u>_ _<u>Ex,F EM</u>_ _<u>∥</u>_ <sup>2</sup> <u>2</u> <u>)</u> _<u>−</u>_ _<u>Ex,F EM</u>_ _<u>∥</u>_ <sup>2</sup> <u>2</u> <sup><u>+</u></sup> <sup>_<u>∥Ez,RCW A</u>_</sup> <sup><u>(</u></sup> <sup>_<u>N</u>_</sup> <sup><u>t)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>Ez,F EM</u>_</sup> <sup>_<u>∥</u>_</sup> <u>2</u> <sup>2</sup> <u>�</u> _∥Ex,F EM_ _∥_ <sup>2</sup> 2 <sup>+</sup> <sup>_∥Ez,F EM_</sup> <sup>_∥_</sup> 2 <sup>2</sup> <u>2</u> _,_ (22) <sup>2</sup> 2 <sup>+</sup> <sup>_∥Ez,F EM_</sup> <sup>_∥_</sup> 2 <sup>2</sup> because only the _y_ -component of _<u>E</u>_ <u>(</u> _x, z, λ_ 0) is null valued. - _M,_ ˘ _N_ <sup>˘</sup> Four different choices of - _M,_ ˘ _N_ <sup>˘</sup> <u>�, as described after Eq. (17), are possible when implementing the RCWA.</u> Accordingly, four different studies were conducted to investigate the relative global error in the electric field phasor for _s_ - and _p_ -polarized illuminations. Four different choices of 10 <sup>0</sup> 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> Choice 1 Choice 2 Choice 3 Choice 4 O(N-2.1t ) 10 <sup>-1</sup> 10 <sup>-2</sup> Choice 1 Choice 2 Choice 3 Choice 4 O(N-0.82t ) (b) (a) 10 <sup>0</sup> 10 <sup>1</sup> 10 <sup>2</sup> Fourier discretization parameter Nt 10 <sup>-3</sup> 10 <sup>0</sup> 10 <sup>1</sup> 10 <sup>2</sup> Fourier discretization parameter Nt Figure 2: Global relative errors (a) _eEs_ and (b) _eEp_ vs. _N_ t for the simple problem depicted in Fig. 1(b). Choice 1: _M_ ˘ = _B_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> and _N_ <sup>˘</sup> = _E_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> ; Choice 2: _M_ ˘ = _B_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> and _N_ <sup>˘</sup> = _B_ <sup>˘</sup> ; Choice 3: _M_ ˘ = _E_ <sup>˘</sup> and _N_ <sup>˘</sup> = _E_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> ; Choice 4: _M_ ˘ = _E_ <sup>˘</sup> and _N_ <sup>˘</sup> = _B_ <sup>˘</sup> . A straight line shows the empirical order of convergence. . For _s_ -polarized Plots of _eEs_ and _eEp_ vs. _N_ t are presented in Fig. 2 for each of the four choices of - _M,_ ˘ _N_ <sup>˘</sup> illumination, the relative global error reduces as _∼_ _N_ t <sup>_−_</sup> <sup>2</sup> <sup>_._</sup> <sup>1</sup> illumination, the relative global error reduces as _∼_ _N_ t <sup>_−_</sup> <sup>2</sup> <sup>_._</sup> <sup>1</sup> until _N_ t _≈_ 8 and saturates thereafter in Fig. 2(a), when _M_ <sup>˘</sup> = _E_ <sup>˘</sup> (i.e., for Choices 1 and 3). The error saturation may be due to the limited accuracy of the FEM solution and/or due to stairstepping error. In contrast, _eEs_ reduces as _∼_ _N_ t <sup>_−_</sup> <sup>1</sup> when _M_ <sup>˘</sup> = _B_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> (i.e., FEM solution and/or due to stairstepping error. In contrast, _eEs_ reduces as _∼_ _N_ t <sup>_−_</sup> <sup>1</sup> when _M_ <sup>˘</sup> = _B_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> (i.e., for Choices 2 and 4). For _p_ -polarized illumination, the relative global error decays slower than the reciprocal of _N_ t in Fig. 2(b), when _M_ <sup>˘</sup> = _E_ <sup>˘</sup> . The decay is somewhat faster when _M_ <sup>˘</sup> = _B_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> . 7 These results suggest that for calculating the electric field phasor due to _s_ -polarized illumination, it is advantageous to choose _M_ ˘ = _E_ <sup>˘</sup> because that should give second-order convergence to the true solution. For _p_ -polarized illumination, it is preferable to choose _M_ <sup>˘</sup> = _B_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> and _N_ <sup>˘</sup> = _E_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup>, as that should give almost first-order convergence to the true solution even with stairstepping. The choice of Fourier representations for - _M,_ ˘ _N_ <sup>˘</sup> - thus has a profound effect on the accuracy of the RCWA [5, 27]. thus has a profound effect on the accuracy of the RCWA [5, 27]. - _M,_ ˘ _N_ <sup>˘</sup> 2.2.2 Convergence of Electric Field Phasor in the Semiconductor Region Correct calculation of the electric field phasor in the semiconductor region is paramount for photovoltaic solar cells, as is clear from Eq. (18). This motivated the second convergence study using the device in Fig. 1(a). The chosen device contains a grating made from a representative metal with relative permittivity _ε_ rel = _−_ 22 + 0 _._ 4 _i_ and has period _L_ x = 500 nm. The grating comprises rectangular protrusions on a 100-nm-thick film. Each protrusion is of height 50 nm and base 250 nm. The grooves of the grating are entirely filled with a dielectric material with relative permittivity _ε_ rel = 3 _._ 33 + 0 _._ 016 _i_ . Above this structure lies a 240-nmthick semiconductor region with relative permittivity _ε_ rel = 9 _._ 5 + 1 _._ 25 _i_, which is a representative value for a semiconductor at _λ_ 0 = 680 nm. Above this region is a 75-nm-thick layer of a dielectric material with relative permittivity _ε_ rel = 3 _._ 33 + 0 _._ 016 _i_, which acts as an anti-reflection coating. The top layer is again air-like, with relative permittivity _ε_ rel = 1 + 10 <sup>_−_</sup> <sup>9</sup> _i_ . For this study, we used the definition - _L_ x _/_ 2 <sup>2</sup> 2 <sup>=</sup> - _L_ z _z_ =0 _∥f_ _∥_ <sup>2</sup> 2 _|f_ ( _x, y_ ) _|_ <sup>2</sup> d _z_ d _x_ (23) _x_ = _−L_ x _/_ 2 in Eqs. (20) and (22). Four different choices of - _M,_ ˘ _N_ <sup>˘</sup> �, as described after Eq. (17), were used in four different studies, whose results are presented in Fig. 3. in Eqs. (20) and (22). Four different choices of - _M,_ ˘ _N_ <sup>˘</sup> 10 <sup>0</sup> 10 <sup>-1</sup> 10 <sup>-2</sup> Choice 1 Choice 2 Choice 3 Choice 4 O(N-1.6t ) 0.45 0.4 0.35 0.3 0.25 0.2 0.15 0.1 Choice 1 Choice 2 Choice 3 Choice 4 O(N-1.6t ) (b) 10 <sup>0</sup> 10 <sup>1</sup> 10 <sup>2</sup> Fourier discretization parameter Nt (a) 10 <sup>-3</sup> 10 <sup>0</sup> 10 <sup>1</sup> 10 <sup>2</sup> Fourier discretization parameter Nt Figure 3: Relative errors (a) _eEs_ and (b) _eEp_ vs. _N_ t in the semiconductor region of the solar cell depicted in Fig. 1(a). Choice 1: _M_ ˘ = _B_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> and _N_ <sup>˘</sup> = _E_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> ; Choice 2: _M_ ˘ = _B_ <sup>˘</sup> <sup>_−_</sup> <sup>1</sup> and _N_ <sup>˘</sup> = _B_ <sup>˘</sup> ; Choice 3: _M_ ˘ = _E_ <sup>˘</sup> and _N_ ˘ = _E_ ˘ <sup>_−_</sup> <sup>1</sup> ; Choice 4: _M_ ˘ = _E_ <sup>˘</sup> and _N_ <sup>˘</sup> = _B_ <sup>˘</sup> . A straight line shows the empirical order of convergence. Convergence rates for the second study are much slower than in the first study. The best observed rates are _O_ ( _N_ t <sup>_−_</sup> <sup>1</sup> <sup>_._</sup> <sup>6</sup> ) for _s_ -polarized illumination and _O_ ( _N_ t <sup>_−_</sup> <sup>0</sup> <sup>_._</sup> <sup>35</sup> ) for _p_ -polarized illumination. The slower convergence is due to the strong singularities in the solution near the corners of the grating. Those singularities lead to slower convergence of the Fourier series. It should be noted that these same singularities are also observed in the adaptive FEM solution. Figure 3(a) contains a split in _eEs_ between successive odd and even values of _N_ t, when _M_ <sup>˘</sup> = _E_ <sup>˘</sup> and _N_ ˘ = _E_ ˘ <sup>_−_</sup> <sup>1</sup> (Choice 3). This split is also present, although less extreme, in an earlier work [5]. It is also 8 present for _p_ -polarized illumination but dramatically reduced, especially when _M_ <sup>˘</sup> = _E_ <sup>˘</sup> and _N_ <sup>˘</sup> = _B_ <sup>˘</sup> (Choice 1). Lalanne [6] has already discussed in detail the complex issues behind RCWA convergence. Our contribution is to suggest that stairstepping is not a major cause of error in RCWA, but it is necessary to examine convergence for different grating morphologies. Also, RCWA is reliably convergent for _s_ -polarized illumination of solar cells, and provides slower convergence for _p_ -polarized illumination. We agree with previous studies [24, 25, 26] that RCWA can provide the accuracy needed for photonics simulations, but our studies also show that the convergence rates can be quite low. With an appropriate choice of parameters we can achieve almost 10% error with _N_ t = 10, which became our choice for the optimization study reported in Section 6. ## 3 Electronic Step Taking into account the size of the features in the solar cell, and under standard assumptions on the electron transport, such as the device being in quasi-thermal equilibrium (QTE), the transport of electrons and holes in semiconductors can be modeled using the drift-diffusion equations [1, 2, 35]. To speed up the calculations, we neglected variations with respect to _x_ and therefore used the 1D electron-hole-pair generation rate _G_ ( _z_ ) = <sup><u>1</u></sup> _L_ x - _L_ x _/_ 2 _−L_ x _/_ 2 _G_ ( _x, z_ ) d _x._ (24) 3.1 Drift-Diffusion Electronic Model The DDE model comprises the following three differential equations holding in the semiconductor region Ωel = - _z_ �� 0 _< z_ _< L_ z�: - _z_ �� 0 _< z_ _< L_ z�: _<u>d</u>_ _dz_ <sup>_J_</sup> <sup>n(</sup> <sup>_z_</sup> <sup>) =</sup> <sup>_−q_</sup> <sup>e [</sup> <sup>_G_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_R_</sup> <sup>(</sup> <sup>_n, p_</sup> <sup>;</sup> <sup>_z_</sup> <sup>)]</sup> <sup>_,_</sup> (25) _<u>d</u>_ _dz_ <sup>_J_</sup> <sup>p(</sup> <sup>_z_</sup> <sup>) =</sup> <sup>_q_</sup> <sup>e [</sup> <sup>_G_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_R_</sup> <sup>(</sup> <sup>_n, p_</sup> <sup>;</sup> <sup>_z_</sup> <sup>)]</sup> <sup>_,_</sup> (26) = _−q_ e [ _N_ f ( _z_ ) + _p_ ( _z_ ) _−_ _n_ ( _z_ )] _._ (27) - _εdc_ ( _z_ ) <sup>_<u>d</u>_</sup> <sup>_<u>d</u>_</sup> _dz_ <sup>_φ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> _ε_ 0 _<u>d</u>_ _dz_ In these equations, the gradients of the electron current density _Jn_ ( _z_ ), hole current density _J_ p( _z_ ), and electric potential _φ_ ( _z_ ) are related to the electron density _n_ ( _z_ ), hole density _p_ ( _z_ ), fixed charge (charged traps and doping) density _N_ f ( _z_ ), electron-hole-pair generation rate _G_ ( _z_ ), and electron-hole-pair recombination rate _R_ ( _n, p_ ; _z_ ). The zero-frequency (dc) relative permittivity is denoted by _εdc_ ( _z_ ). The two current densities are defined as _J_ n( _z_ ) = _q_ e _µ_ n( _z_ ) _n_ ( _z_ ) <sup>_<u>d</u>_</sup> (28) _dz_ <sup>EFn(</sup> <sup>_z_</sup> <sup>)</sup> and _J_ p( _z_ ) = _q_ e _µ_ p( _z_ ) _p_ ( _z_ ) <sup>_<u>d</u>_</sup> (29) _dz_ <sup>EFp(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_,_</sup> where _µ_ n( _z_ ) and _µ_ p( _z_ ) are the electron mobility and hole mobility, respectively; - _<u>n</u>_ <u>(</u> _<u>z</u>_ <u>)</u> _N_ c( _z_ ) - _<u>p</u>_ <u>(</u> _<u>z</u>_ <u>)</u> _N_ v( _z_ ) (30) (31) (32) is the electron quasi-Fermi level; and EFn( _z_ ) = Ec( _z_ ) + _V_ th ln EFp( _z_ ) = Ev( _z_ ) _−_ _V_ th ln 9 is the hole quasi-Fermi level. In the expressions for the quasi-Fermi levels, _V_ th = _k_ B _T/q_ e is the thermal voltage of the electrons and holes with _T_ as the temperature and _k_ B = 1 _._ 380649 _×_ 10 <sup>_−_</sup> <sup>23</sup> J K <sup>_−_</sup> <sup>1</sup> as the Boltzmann constant, _N_ c( _z_ ) is the conduction-band density of states, _N_ v( _z_ ) is the valence-band density of states, Ec( _z_ ) is the conduction-band energy, and Ev( _z_ ) is the valence-band energy. The bandgap is defined as Eg( _z_ ) = Ec( _z_ ) _−_ Ev( _z_ ) (33) and the intrinsic energy as - _<u>N</u>_ <u>v(</u> _<u>z</u>_ <u>)</u> _N_ c( _z_ ) �� _._ (34) Ei( _z_ ) = <sup><u>1</u></sup> 2 [Ec( _z_ ) + Ev( _z_ )] + _V_ th ln In the Boltzmann approximation [1] the quasi-Fermi levels are assumed to lie far from the edges of the conduction and valence bands. Accordingly, _n_ ( _z_ ) = _n_ ¯( _z_ ) exp - <u>EFn</u> <u>(</u> _<u>z</u>_ <u>)</u> _<u>−</u>_ <u>Ei(</u> _<u>z</u>_ <u>)</u> _V_ th and _p_ ( _z_ ) = _n_ ¯( _z_ ) exp Here, the intrinsic carrier density is given by - _−_ <sup>EFp(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_−_</sup> <sup>Ei(</sup> <sup>_z_</sup> <sup>)</sup> _V_ th (35) _._ (36) <u>�</u> (37) <u>�</u> <u>Eg(</u> _<u>z</u>_ <u>)</u> _V_ th _n_ ¯( _z_ ) = and the conduction-band energy is given by _N_ c( _z_ ) _N_ v( _z_ ) exp Ec( _z_ ) = E0 _−_ _φ_ ( _z_ ) _−_ _χ_ ( _z_ ) _,_ (38) where _χ_ ( _z_ ) is the electron affinity of the semiconductor, and the (arbitrary) reference energy level E0 is often chosen as [1] E0 = Ec(0) + _φ_ (0) + _χ_ (0) _._ (39) Equations (28) and (29) may now be simplified to _J_ n( _z_ ) = _−q_ e _µ_ n( _z_ ) - _n_ ( _z_ ) _dz_ <sup>_<u>d</u>_</sup> <sup>[</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> <sup>_φ_</sup> <sup>n(</sup> <sup>_z_</sup> <sup>)]</sup> <sup>_−_</sup> <sup>_V_</sup> <sup>th</sup> _<u>d</u>_ _dz_ <sup>_n_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> (40) and respectively. Here, and _<u>d</u>_ _dz_ <sup>_p_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> _,_ (41) _,_ (41) _J_ p( _z_ ) = _−q_ e _µ_ p( _z_ ) - _p_ ( _z_ ) <sup>_<u>d</u>_</sup> _dz_ <sup>[</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> <sup>_φ_</sup> <sup>p(</sup> <sup>_z_</sup> <sup>)] +</sup> <sup>_V_</sup> <sup>th</sup> - _p_ ( _z_ ) <sup>_<u>d</u>_</sup> (42) _φ_ n( _z_ ) = _χ_ ( _z_ ) + _V_ th ln - _<u>N</u>_ <u>c(</u> _<u>z</u>_ <u>)</u> _N_ 0 _φ_ p( _z_ ) = _χ_ ( _z_ ) + Eg( _z_ ) _−_ _V_ th ln - _<u>N</u>_ <u>v(</u> _<u>z</u>_ <u>)</u> (43) _N_ 0 are the built-in potentials for the electrons and holes (due to variations in the material properties), respectively. Both built-in potentials as well as the electron affinity may be discontinuous with respect to position at heterojunctions in the semiconductor region. The baseline number density _N_ 0 is arbitrary because potentials are defined up to a constant. Equations (25), (26), (27), (40), and (41), have to be solved concurrently for _z_ _∈_ (0 _, L_ z), in conjunction with a set of boundary conditions for _n_ ( _z_ ), _p_ ( _z_ ), and _φ_ ( _z_ ). We opted for the Dirichlet choice _n_ (0) = _n_ 0(0) _,_ _n_ ( _L_ z) = _n_ 0( _L_ z) _,_ (44) _p_ (0) = _p_ 0(0) _,_ _p_ ( _L_ z) = _p_ 0( _L_ z) _,_ (45) _φ_ (0) = _φ_ 0(0) _,_ _φ_ ( _L_ z) = _φ_ 0( _L_ z) + _V_ ext _,_ (46) 10 because it models an ideal ohmic contact [1, 2]. Herein, the functions _n_ 0( _z_ ), _p_ 0( _z_ ) and _φ_ 0( _z_ ) are the electron density, hole density and potential at LQTE, as discussed in Section 3.2, while _V_ ext is the externally applied voltage across the terminals at the boundaries of the semiconductor region. Solution of the system of five equations enables the calculation of the current density _J_ = _J_ n( _z_ ) + _J_ p( _z_ ) (47) flowing _uniformly_ through the solar cell. The current density _J_ depends on the choice of _V_ ext, i.e., _J_ _≡_ _J_ ( _V_ ext). Repeating calculations for various values of _V_ ext produces the _JV_ -curve, with the maximum value of the power density _P_ ( _V_ ext) = _J_ ( _V_ ext) _V_ ext (48) indicating the maximum power density _P_ max = max _V_ ext <sup>_P_</sup> <sup>(</sup> <sup>_V_</sup> <sup>ext)</sup> (49) obtainable from the solar cell. This in turn gives the efficiency of the solar cell as _η_ = <sup>_<u>P</u>_</sup> <sup><u>max</u></sup> _P_ in (50) where _P_ in = 1000 W m <sup>_−_</sup> <sup>2</sup> is the incident solar power density. It is the efficiency of the solar cell that we wish to optimize. 3.2 Local Quasi-Thermal Equilibrium If a region containing a homogeneous semiconductor is charge-free and isolated from any external influences (e.g., _G ≡_ 0 and _V_ ext = 0), the distributions of electrons and holes with respect to energy tend to the Fermi distribution, with the Fermi-level lying at the intrinsic energy level, i.e., EFn = EFp = E _F_ . Then, _J_ n = _J_ p are identically zero and the semiconductor is said to be in LQTE. This concept is used to model the ideal ohmic boundary conditions mentioned in Section 3.1. With _n_ 0( _z_ ) and _p_ 0( _z_ ) denoting the electron and hole densities, respectively, at LQTE, Eqs. (35)–(37) can be combined to give the _mass-action_ equation _n_ ¯ <sup>2</sup> ( _z_ ) = _n_ 0( _z_ ) _p_ 0( _z_ ) ; (51) furthermore, _N_ f ( _z_ ) + _p_ 0( _z_ ) _−_ _n_ 0( _z_ ) = 0 _,_ (52) as the semiconductor is charge-free. Combining Eqs. (51) and (52), we get _n_ 0( _z_ ) = <sup>_N_</sup> <sup><u>f</u></sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> ~~�~~ _N_ <u>f</u> ( _z_ ) <sup>2</sup> + 4¯ _n_ ( _z_ ) <sup>2</sup> (53) 2 and _p_ 0( _z_ ) = <sup>_−N_</sup> <sup><u>f</u></sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> - _N_ <u>f</u> ( _z_ ) <sup>2</sup> + 4¯ _n_ ( _z_ ) <sup>2</sup> _._ (54) 2 At LQTE, the electron and hole quasi-Fermi levels coincide and are uniform. Thus, (55) _,_ (56) - _<u>n</u>_ <u>0(</u> _<u>υ</u>_ <u>)</u> _N_ c( _υ_ ) - _<u>p</u>_ <u>0(</u> _<u>ζ</u>_ <u>)</u> _N_ v( _ζ_ ) and EFn ( _υ_ ) = Ec( _υ_ ) + _V_ th ln EFp( _ζ_ ) = Ev( _ζ_ ) _−_ _V_ th ln 11 must be equal to each other for all _υ_ _∈_ (0 _, L_ z) and _ζ_ _∈_ (0 _, L_ z). Substitution of Eqs. (33) and (38) into EFn ( _υ_ ) = EFp ( _ζ_ ) yields _−φ_ 0( _υ_ ) _−_ _χ_ ( _υ_ )+ _V_ th ln - _<u>n</u>_ <u>0(</u> _<u>υ</u>_ <u>)</u> = _N_ c( _υ_ ) - _<u>p</u>_ <u>0(</u> _<u>ζ</u>_ <u>)</u> _−_ _φ_ 0( _ζ_ ) _−_ _χ_ ( _ζ_ ) _−_ Eg( _ζ_ ) + _V_ th ln _N_ v( _ζ_ ) _._ (57) Equation (57) simplifies to _−_ _χ_ (0) + _V_ th ln - _<u>n</u>_ <u>0(0)</u> = _−φ_ 0( _z_ ) _−_ _χ_ ( _z_ ) _−_ Eg( _z_ ) + _V_ th ln _N_ c(0) - _<u>p</u>_ <u>0(</u> _<u>z</u>_ <u>)</u> _N_ v( _z_ ) (58) with the choice _υ_ = 0 and _ζ_ = _z_, and to - _<u>n</u>_ <u>0(</u> _<u>z</u>_ <u>)</u> _−φ_ 0( _z_ ) _−_ _χ_ ( _z_ )+ _V_ th ln _N_ c( _z_ ) = _−χ_ (0) _−_ Eg(0) + _V_ th ln - _<u>p</u>_ <u>0(0)</u> _N_ v(0) (59) with the choice _υ_ = _z_ and _ζ_ = 0, where we have chosen _φ_ 0(0) = 0 without loss of generality. Subtracting Eq. (58) from Eq. (59), we get _φ_ 0( _z_ ) = _−_ [ _χ_ ( _z_ ) _−_ _χ_ (0)] _−_ <sup><u>1</u></sup> 2 <sup>[Eg(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_−_</sup> <sup>Eg(0)]</sup> + <sup><u>1</u></sup> - _<u>n</u>_ <u>0(</u> _<u>z</u>_ <u>)</u> 2 <sup>_V_</sup> <sup>th ln</sup> _n_ 0(0) _−_ <sup><u>1</u></sup> - _<u>N</u>_ <u>c(</u> _<u>z</u>_ <u>)</u> 2 <sup>_V_</sup> <sup>th ln</sup> _N_ c(0) - + <sup><u>1</u></sup> - _<u>p</u>_ <u>0(</u> _<u>z</u>_ <u>)</u> 2 <sup>_V_</sup> <sup>th ln</sup> _p_ 0(0) <sup><u>1</u></sup> - _<u>p</u>_ <u>0(</u> _<u>z</u>_ <u>)</u> 2 <sup>_V_</sup> <sup>th ln</sup> _p_ 0(0) <sup><u>1</u></sup> - _<u>N</u>_ <u>c(</u> _<u>z</u>_ <u>)</u> 2 <sup>_V_</sup> <sup>th ln</sup> _N_ c(0) - _−_ <sup><u>1</u></sup> - _<u>N</u>_ <u>v(</u> _<u>z</u>_ <u>)</u> 2 <sup>_V_</sup> <sup>th ln</sup> _N_ v(0) - _−_ <sup><u>1</u></sup> 2 _._ (60) Equations (53), (54), and (60) give the initial functions needed to specify the boundary data identified in Eqs. (44)–(46). However, in view of the LQTE assumption (52), these initial functions do not satisfy the system of ODEs (25)–(27). 3.3 Recombination Recombination of an electron and a hole can take place through several different mechanisms [1, 2]. The electronic step in our program accommodates three different contributions to _R_ ( _n, p_ ; _z_ ). 3.3.1 Radiative Recombination Radiative recombination occurs when an electrons and a hole recombine across the full bandgap, releasing the energy as a photon with energy equal to the bandgap. At QTE, radiative recombination is identically balanced by electrons being thermally excited across the bandgap. The (net) radiative recombination rate is given by _Rrad_ ( _n, p_ ; _z_ ) = <sup>_<u>αrad</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> _n_ ¯ <sup>2</sup> ( _z_ ) - _n_ ( _z_ ) _p_ ( _z_ ) _−_ _n_ ¯ <sup>2</sup> ( _z_ )� _,_ (61) where _αrad_ ( _z_ ) depends on the semiconductor material. It should be noted that _Rrad_ ( _z_ ) _≡_ 0 _∀z_ _∈_ [0 _, L_ z] at LQTE. 3.3.2 Shockley–Read–Hall (SRH) Recombination The SRH recombination contribution is due to electrons and holes recombining via an intermediate gap state. It is modeled by _<u>n</u>_ <u>(</u> _<u>z</u>_ <u>)</u> _<u>p</u>_ <u>(</u> _<u>z</u>_ <u>)</u> _<u>−</u>_ _<u>n</u>_ <u>¯</u> <sup>2</sup> <u>(</u> _<u>z</u>_ <u>)</u> _RSRH_ ( _n, p_ ; _z_ ) = _τ_ p( _z_ ) [ _n_ ( _z_ ) + _n_ 1( _z_ )] + _τ_ n( _z_ ) [ _p_ ( _z_ ) + _p_ 1( _z_ )] <sup>_,_</sup> (62) where _n_ 1( _z_ ) and _p_ 1( _z_ ) are, respectively, the electron and hole densities at the trap energy level. If this level is the intrinsic energy level Ei( _z_ ), then _n_ 1( _z_ ) = _p_ 1( _z_ ) = _n_ ¯( _z_ ) from Eqs. (35) and (36). The functions _τ_ n( _z_ ) and _τ_ p( _z_ ) are material dependent. 12 3.3.3 Auger Recombination The Auger recombination contribution arises from a three-particle recombination pathway, occurring when an electron and a hole recombine across the bandgap, with the released energy transferred to a third charge carrier which is excited away from both band edges. This recombination rate is given by _RAug_ ( _n, p_ ; _z_ ) = _C_ n( _z_ ) _n_ ( _z_ ) - _n_ ( _z_ ) _p_ ( _z_ ) _−_ _n_ ¯ <sup>2</sup> ( _z_ )� + _C_ p( _z_ ) _p_ ( _z_ ) - _n_ ( _z_ ) _p_ ( _z_ ) _−_ _n_ ¯ <sup>2</sup> ( _z_ )� _,_ (63) where the functions _C_ n( _z_ ) and _C_ p( _z_ ) are material dependent. All three contributions add, so that _R_ ( _n, p_ ; _z_ ) = _Rrad_ ( _n, p_ ; _z_ ) + _RSRH_ ( _n, p_ ; _z_ ) + _RAug_ ( _n, p_ ; _z_ ) _._ (64) It can be seen that the total recombination _R_ = 0 at LQTE irrespective of the choice of the material parameters. For all results reported in this paper, we set _αrad_ ( _z_ ) _≡_ 0 and _C_ n( _z_ ) = _C_ p( _z_ ) _≡_ 0 _∀z_ _∈_ Ωel and only the SRH recombination was activated, in order to present illustrative results without the expenditure of significant computational time. 3.4 Heterojunctions: Continuous Quasi-Fermi Levels When there is a jump in either _χ_ ( _z_ ) or Eg( _z_ ) or both, and thus in _φ_ n( _z_ ) or _φ_ p( _z_ ), then _n_ ( _z_ ) and _p_ ( _z_ ) may also have jumps. A heterojunction is formed at the discontinuity [36]. A commonly used way to model this discontinuity requires the assumption of continuous quasi-Fermi levels, whereas another commonly used way requires consideration of thermionic emission at the discontinuity [37]. We chose to implement the continuous quasi-Fermi level (CQFL) model, although the thermionic-emission model is also compatible with the HDG method. The CQFL model uses the limit of a continuum model to quantify the jump at a heterojunction. To understand the resulting jump conditions, let us examine a small region 0 _<_ _z_ _≤_ _δ_ in which the electron affinity _χ_ ( _z_ ) changes linearly by ∆ _χ_, while _N_ c( _z_ ) is uniform. Then, differentiating Eq. (42) with respect to _z_ yields _<u>d</u>_ (65) _dz_ <sup>_φ_</sup> <sup>n(</sup> <sup>_z_</sup> <sup>) =</sup> <sup><u>∆</u></sup> _δ_ <sup>_<u>χ</u>_</sup> in this region. Furthermore, we assume that _Gδ_ _≈_ _Rδ_ _≈_ 0 in this region so that Eq. (25) simplifies to _<u>d</u>_ _dz_ <sup>_J_</sup> <sup>n(</sup> <sup>_z_</sup> <sup>) = 0 ;</sup> (66) hence, _J_ n( _z_ ) = _J_ n <sup>_◦_</sup> <sup>.</sup> <sup>Finally,</sup> <sup>we</sup> <sup>also</sup> <sup>assume</sup> <sup>that</sup> <sup>both</sup> <sup>_µ_</sup> <sup>n(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_≈_</sup> <sup>_µ◦_</sup> n <sup>and</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_≈_</sup> <sup>_φ◦_</sup> <sup>are</sup> <sup>uniform</sup> <sup>in</sup> <sup>this</sup> <sup>region,</sup> so that Eq. (40) simplifies to hence, _J_ n( _z_ ) = _J_ n <sup>_◦_</sup> n <sup>_◦_</sup> <sup>.</sup> <sup>Finally,</sup> <sup>we</sup> <sup>also</sup> <sup>assume</sup> <sup>that</sup> <sup>both</sup> <sup>_µ_</sup> <sup>n(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_≈_</sup> <sup>_µ◦_</sup> n n _J_ n <sup>_◦_</sup> n <sup>_◦_</sup> <sup>=</sup> <sup>_−q_</sup> <sup>e</sup> <sup>_µ_</sup> n <sup>_◦_</sup> n <sup>_◦n_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup><u>∆</u></sup> <sup>_<u>χ</u>_</sup> _δ_ <sup>_<u>χ</u>_</sup> + _q_ e _V_ th _µ_ <sup>_◦_</sup> n _<u>d</u>_ _dz_ <sup>_n_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_,_</sup> (67) after using Eq. (65). The solution of Eq. (67) is - _<u>J</u>_ <u>n</u> <sup>_◦δ_</sup> _−_ _q_ e _µ_ <sup>_◦_</sup> n∆ _χ_ <sup>_,_</sup> (68) - _<u>J</u>_ <u>n</u> <sup>_◦_</sup> _−_ _n_ ( _z_ ) = _C_ exp - <u>∆</u> _<u>χ</u>_ _V_ th _<u>z</u>_ _δ_ where _C_ is the constant of integration. As _n_ ( _z_ ) = _n_ L at _z_ = 0, we get - _<u>J</u>_ <u>n</u> <sup>_◦δ_</sup> _−_ _q_ e _µ_ <sup>_◦_</sup> n∆ _χ_ <sup>_._</sup> (70) - _<u>J</u>_ <u>n</u> <sup>_◦δ_</sup> _−_ (69) _q_ e _µ_ <sup>_◦_</sup> n∆ _χ_ _n_ ( _z_ ) = - _<u>J</u>_ <u>n</u> <sup>_◦δ_</sup> _n_ L + exp _q_ e _µ_ <sup>_◦_</sup> n∆ _χ_ _<u>z</u>_ _δ_ from Eq. (68). As _n_ ( _z_ ) = _n_ R at _z_ = _δ_, Eq. (69) yields - _<u>J</u>_ <u>n</u> <sup>_◦δ_</sup> _n_ L + _q_ e _µ_ <sup>_◦_</sup> n∆ _χ_ - <u>∆</u> _<u>χ</u>_ _V_ th - <u>∆</u> _<u>χ</u>_ _V_ th _n_ R = exp 13 In the limit of _δ_ _→_ 0, we get the jump condition _n_ R = exp - <u>∆</u> _<u>χ</u>_ _V_ th _n_ L (71) from Eq. (70). The same analysis can be performed for the hole density _p_ ( _z_ ), which results in the jump condition _p_ L _,_ (72) _p_ R = exp - _−_ <sup><u>∆</u></sup> <sup>_<u>χ</u>_</sup> <sup><u>+ ∆Eg</u></sup> _V_ th where ∆Eg is the change in the bandgap over the region with thickness _δ_ . Equations (71) and (72) need to be enforced across any junction over which _χ_ or Eg jump. This is accomplished using the HDG method described in Section 4. 3.5 Dimensionless Formulation The equations of the DDE model are scaled in order to ensure that the internal variables are dimensionless [35], the scaling parameters being provided in Table 1. Equations (25) and (26) are thus non-dimensionalized to <sup>1</sup> _<u>d</u>_ _dz_ <sup>_J_</sup> <sup>n(</sup> <sup>_z_</sup> <sup>) =</sup> <sup>_−G_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> <sup>_R_</sup> <sup>(</sup> <sup>_n, p_</sup> <sup>;</sup> <sup>_z_</sup> <sup>)</sup> (73) and _<u>d</u>_ _dz_ <sup>_J_</sup> <sup>p(</sup> <sup>_z_</sup> <sup>) =</sup> <sup>_G_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_R_</sup> <sup>(</sup> <sup>_n, p_</sup> <sup>;</sup> <sup>_z_</sup> <sup>)</sup> <sup>_,_</sup> (74) respectively, and Eqs. (40) and (41) to _dz_ <sup>_<u>d</u>_</sup> <sup>_n_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> (75) - _n_ ( _z_ ) _dz_ <sup>_<u>d</u>_</sup> _dz_ <sup>_<u>d</u>_</sup> <sup>[</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> <sup>_φ_</sup> <sup>n(</sup> <sup>_z_</sup> <sup>)]</sup> <sup>_−_</sup> _dz_ <sup>_<u>d</u>_</sup> _dz_ <sup>_<u>d</u>_</sup> <sup>[</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> <sup>_φ_</sup> <sup>p(</sup> <sup>_z_</sup> <sup>)] +</sup> _dz_ <sup>_<u>d</u>_</sup> and _J_ n( _z_ ) = _−µ_ n( _z_ ) _J_ p( _z_ ) = _−µ_ p( _z_ ) - _p_ ( _z_ ) _dz_ <sup>_<u>d</u>_</sup> _dz_ <sup>_<u>d</u>_</sup> <sup>_p_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> _,_ (76) respectively. Electing to keep _εdc_ ( _z_ ) _≡_ _ε_ <sup>0</sup> _dc_ <sup>_∀z_</sup> <sup>_∈_</sup> <sup>[0</sup> <sup>_, L_</sup> <sup>z]</sup> <sup>uniform</sup> <sup>in</sup> <sup>the</sup> <sup>semiconductor</sup> <sup>region,</sup> <sup>we</sup> <sup>obtain</sup> <sup>the</sup> non-dimensionalized form of Eq. (27) as _−_ _λ_ <sup>2</sup> _dz_ <sup>_<u>d</u>_</sup> <sup>22</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) =</sup> <sup>_N_</sup> <sup>f</sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> <sup>_p_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_n_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_,_</sup> (77) where the Poisson constant _λ_ <sup>2</sup> = <sup>_<u>ε</u>_</sup> <sup>0</sup> <sup>_<u>ε</u>_</sup> _<u>dc</u>_ <sup>0</sup> <sup>_<u>φ</u>_</sup> <sup><u>s</u></sup> _q_ e _N_ s _L_ <sup>2</sup> s (78) is dimensionless. We define the dimensionless d.c. electric field and transform Eq. (77) to _E_ dc( _z_ ) = _−λ_ <sup>2</sup> <sup>_<u>d</u>_</sup> (79) _dz_ <sup>_φ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> _<u>d</u>_ _dz_ <sup>_E_</sup> <sup>dc(</sup> <sup>_z_</sup> <sup>) =</sup> <sup>_N_</sup> <sup>f</sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> <sup>_p_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_n_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_,_</sup> (80) which has the same form as Eqs. (73) and (74). These three ODEs are discretized using the HDG method, as described in Section 4. 1At the risk of confusion, we have not used new notation for the dimensionless variables in order to keep the text clean. 14 <u>Scaling</u> <u>Symbol</u> <u>Representative</u> <u>Value</u> <u>Variable(s)</u> <u>Length</u> _<u>L</u>_ <u>s</u> _<u>O</u>_ <u>(</u> _<u>L</u>_ <u>z)</u> _<u>≈</u>_ <u>2</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> <u>cm</u> _<u>z</u>_ <u>Mobility</u> _<u>µ</u>_ <u>s</u> <u>1</u> _<u>.</u>_ <u>5</u> <u>cm</u> <sup><u>2</u></sup> <u>V</u> <sup>_<u>−</u>_</sup> <sup><u>1</u></sup> <u>s</u> <sup>_<u>−</u>_</sup> <sup><u>1</u></sup> _<u>µ</u>_ <u>n</u> _<u>,</u>_ <u>p</u> Voltage _φ_ s = _V_ th 0 _._ 0259 V _φ_, _φ_ n _,_ p, _χ_, _V_ ext, <u>Ei</u> _<u>,</u>_ <u>c</u> _<u>,</u>_ <u>Fn</u> _<u>,</u>_ <u>Fp</u> _<u>,</u>_ <u>g</u> _<u>,</u>_ <u>v</u> Density _N_ s max( _|N_ f _|_ ) _≈_ 10 <sup><u>16</u></sup> cm <sup>_<u>−</u>_</sup> <sup><u>3</u></sup> _n_, _p_, _n_ ¯, _<u>n</u>_ <u>0</u> _<u>,</u>_ <u>1,</u> _<u>p</u>_ <u>0</u> _<u>,</u>_ <u>1,</u> _<u>N</u>_ <u>c</u> _<u>,</u>_ <u>f</u> _<u>,</u>_ <u>v</u> <u>Poisson</u> <u>const.</u> _<u>λ</u>_ <sup><u>2</u></sup> <u>4</u> _<u>.</u>_ <u>1717</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> <u>–</u> Density rate _G_ s = <sup>_<u>µ</u>_</sup> <sup><u>s</u></sup> <sup>_<u>N</u>_</sup> <sup><u>s</u></sup> <sup>_<u>φ</u>_</sup> <sup><u>s</u></sup> _<u>L</u>_ <sup>2</sup> <u>s</u> Current _J_ s = <sup>_<u>q</u>_</sup> <sup><u>e</u></sup> <sup>_<u>µ</u>_</sup> <sup><u>s</u></sup> <sup>_<u>N</u>_</sup> <sup><u>s</u></sup> <sup>_<u>φ</u>_</sup> <sup><u>s</u></sup> 9 _._ 6945 _×_ 10 <sup>21</sup> cm <sup>_−_</sup> <sup>3</sup> s <sup>_−_</sup> <sup>1</sup> _G_, _R_ 0 _._ 3106 mA cm <sup>_−_</sup> <sup>2</sup> _J_, _J_ n _,_ p _<u>L</u>_ <u>s</u> Table 1: Table of scaling parameters and applicable variables. <u>Eqs.</u> <u>(73)</u> <u>and</u> <u>(75)</u> <u>Eqs.</u> <u>(74)</u> <u>and</u> <u>(76)</u> <u>Eqs.</u> <u>(79)</u> <u>and</u> <u>(80)</u> J _J_ n _J_ p _E_ m _n_ _p_ _φ_ Z _φ_ _φ_ 0 vm _φ_ n _φ_ p 0 c1 1 _/µ_ n _−_ 1 _/µ_ p _−_ 1 _/λ_ <sup>2</sup> c2 _−_ 1 1 0 <u>c3</u> <u>0</u> <u>0</u> <u>1</u> Table 2: Correspondence between the generalized transport system of Eqs. (81)–(83) and Eqs. (73)–(80) of the dimensionless DDE model. ## 4 Hybridizable Discontinuous Galerkin Formulation The hybridizable discontinuous Galerkin (HDG) method [13, 34] possesses several features which are advantageous for the implementation of the DDE model for solar cells [10]. The relaxation of the requirement that the solution is continuous at the boundaries of elements permits solutions where the variables have strong gradients and second derivatives. It also naturally allows discontinuities in the solution due to discontinuous material parameters, such as those which occur at heterojunctions discussed in Section 3.4. 4.1 Generalized Transport System To simplify the description of the numerical scheme used to solve Eqs. (73)–(76), (79), and (80), it is useful to partition them into three sets, each with the form c1J = c2m _dz_ <sup>_<u>d</u>_</sup> (81) _dz_ <sup>_<u>d</u>_</sup> <sup>m</sup> <sup>_,_</sup> _dz_ <sup>_<u>d</u>_</sup> <sup>(Z + vm) +</sup> _dz_ <sup>_<u>d</u>_</sup> _<u>d</u>_ _dz_ <sup>J = f(</sup> <sup>_n, p_</sup> <sup>) + c3(</sup> <sup>_p −_</sup> <sup>_n_</sup> <sup>)</sup> <sup>_,_</sup> (82) along the associated Dirichlet boundary conditions m(0) = m0(0) m( _L_ z) = m0( _L_ z) _._ (83) Here, Z is either given by the solution of another set or vanishes, vm is a given function of position, and f( _n, p_ ) is also given. To get each of the three sets of equations in the dimensionless DDE model provided in Section 3.5, we choose the parameters and functions as in Table 2. Henceforth, we refer to Eqs. (81)–(83) as the _generalized_ _transport_ _system_ . We now proceed to design a numerical scheme to discretize this system of equations. 15 4.2 Discretization of Electronic Domain The electronic domain Ωel is covered by a mesh _S_ = _{N_ _, T }_ of _N_ z + 1 nodes _N_ and _N_ z elements _T_ . The element _sγ_ = ( _zγ−_ 1 _, zγ_ ) lies between the nodes _zγ−_ 1 and _zγ_, _N_ = _{zγ|zγ_ _∈_ Ωel _, γ_ _∈{_ 0 _, .., N_ z _}} ._ (84) is the set of all nodes, and _T_ = _{sγ|sγ_ = ( _zγ−_ 1 _, zγ_ ) _⊂_ Ωel _, γ_ _∈{_ 1 _, ..., N_ z _}}_ (85) is the set of all elements. The generalized transport system is discretized using the space �� _vh|sγ_ _∈_ P _P_ deg _∀sγ_ _∈T_ - _,_ (86) V _h_ = - _vh_ _∈_ _L_ <sup>2</sup> (Ωel) where P _P_ deg is the set of polynomials of degree _P_ deg in _z_ (and so that V _h_ is a space of discontinuous piecewise polynomials), W _h_ = _{wh_ _∈_ _wh|zγ_ _∈_ R <sup>+</sup> _,_ _∀zγ_ _∈N},_ (87) and R <sup>+</sup> is the set of positive real numbers. Although a different value of _P_ deg may be chosen for each element _sγ_, for simplicity of notation we choose the same value of _P_ deg for all elements. We seek the numerical solutions (J _h,_ <sup>ˆ</sup> J _h,_ m _h,_ mˆ _h_ ) _∈_ V _h ×_ W _h ×_ V _h ×_ W _h_ where <sup>ˆ</sup> J _h_ and mˆ _h_ are the vectors of numerical approximations to J and _m_ at the nodes in _N_ . Multiplying Eq. (81) by a test function _ψ_ _∈_ V _h_ and Eq. (82) by a test function _η_ _∈_ V _h_, and then integrating over Ωel, we obtain _N_ z _γ_ =1 _N_ z (c1J _, ψ_ ) _γ_ = c2 _γ_ =1 �m <sup>_<u>d</u>_</sup> _dz_ <sup>Z</sup> <sup>_, ψ_</sup> �m <sup>_<u>d</u>_</sup> + c2 _γ_ _N_ z _γ_ =1 �m <sup>_<u>d</u>_</sup> _dz_ <sup>vm</sup> <sup>_, ψ_</sup> �m <sup>_<u>d</u>_</sup> _N_ z _γ_ =1 _γ_ _γ_ + - _<u>d</u>_ _dz_ <sup>m</sup> <sup>_, ψ_</sup> (88) and _N_ z _γ_ =1 where the notation _N_ z _γ_ =1 - _<u>d</u>_ _dz_ <sup>J</sup> <sup>_, η_</sup> _γ_ = _N_ z - (f _, η_ ) _γ_ + c3 _γ_ =1 (( _p −_ _n_ ) _, η_ ) _γ,_ (89) ( _η, π_ ) _γ_ = _sγ_ _η_ ( _z_ ) _ψ_ ( _z_ ) d _z._ (90) For functions _η_ _∈_ V _h_, _ψ_ _∈_ V _h_, and _η_ ˆ _∈_ W _h_, we define - _<u>d</u>_ _dz_ <sup>_η, ψ_</sup> _γ_ _γ_ = _<_ _η, ψ_ ˆ _>γ_ _−_ - _η,_ <sup>_<u>d</u>_</sup> _dz_ <sup>_ψ_</sup> (91) via integration by parts, with and Then, Eq. (88) can be written as _<_ _η, ψ_ ˆ _>γ_ = _η_ ˆ _γψ|γ,R −_ _η_ ˆ _γ−_ 1 _ψ|γ,L_ (92) _ψ|γ,L_ = lim _z→zγ_ + _−_ 1 <sup>_ψ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> _._ (93) _ψ|γ,R_ = lim _z→zγ−_ <sup>_ψ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> _N_ z _γ_ =1 _γ_ _−_ c2 _γ_ + _γ_ (c1J _, ψ_ ) _γ_ _−_ c2 �m <sup>_<u>d</u>_</sup> _dz_ <sup>Z</sup> <sup>_, ψ_</sup> �m <sup>_<u>d</u>_</sup> �m <sup>_<u>d</u>_</sup> _dz_ <sup>vm</sup> <sup>_, ψ_</sup> �m _,_ <sup>_<u>d</u>_</sup> _dz_ <sup>_ψ_</sup> _−_ _<_ mˆ _, ψ_ _>γ_ = 0 (94) 16 and Eq. (89) as _γ_ _N_ z _γ_ =1 �� J _,_ <sup>_<u>d</u>_</sup> _dz_ <sup>_η_</sup> + c3 ( _p, η_ ) _γ_ _−_ c3 ( _n, η_ ) _γ_ + (f _, η_ ) _γ −_ _<_ <sup>ˆ</sup> J _, η_ _>γ_ = 0 _._ (95) To complete the discretization, we need to enforce approximate continuity of the discrete flux. Therefore, at each node we define the discrete flux as ˆJ _γ_ = J( _zγ_ ) + _τm_ ( _zγ_ )[m( _zγ_ ) _−_ mˆ _γ_ ] _,_ (96) where _ζ_ ( _zγ_ ) = lim _z→zγ_ <sup>_±_</sup> _γ_ _ζ_ ( _z_ ) and _τm_ ( _zγ_ ) _≥_ 0 is a hybridization (or penalty) function to be chosen. Continuity J _|γ_ +1 _,L_ + _τm_ (m _−_ mˆ _γ_ ) _|γ_ +1 _,L_ = J _|γ,R_ + _τm_ (m _−_ mˆ ) _|γ,R_ (97) of the flux requires at each interior node. Finally, the boundary conditions are enforced by requiring mˆ = m0 (98) at the ends of Ω. By defining the jump operator as [[ _ξ_ ]] _γ_ = _ξ|γ,R −_ _ξ|γ,L,_ (99) the problem becomes that of finding a discrete solution (J _h,_ m _h,_ mˆ ) _∈_ V _h ×_ V _h ×_ W _h_ such that _N_ z _γ_ =1 (c1J _h, ψ_ ) _γ_ _−_ c2 _<u>d</u>_ _dz_ <sup>vm</sup> <sup>_, ψ_</sup> _γ_ m _h_ _<u>d</u>_ _dz_ <sup>Z</sup> <sup>_, ψ_</sup> _γ_ _γ_ _−_ c2 m _h_ + �m _h,_ <sup>_<u>d</u>_</sup> _dz_ <sup>_ψ_</sup> _−_ _<_ mˆ _, ψ_ _>γ_ = 0 _,_ (100) _γ_ _N_ z _γ_ =1 �� J _h,_ <sup>_<u>d</u>_</sup> _dz_ <sup>_η_</sup> + c3 ( _ph, η_ ) _γ_ _−_ c3 ( _nh, η_ ) _γ_ + (f _, η_ ) _γ_ _−_ _<_ J _h, η_ _>γ_ _−_ _< τm_ m _h, η_ _>γ_ + _< τm_ ˆm _, η_ _>γ_ = 0 _,_ (101) [[J _h_ ]] _γ_ + [[ _τm_ m _h_ ]] _γ_ _−_ [[ _τm_ ]] _γ_ mˆ = 0 at all interior nodes _,_ (102) for all ( _ψ, η_ ) _∈_ V _h_ _×_ V _h_, and with mˆ = m0 for _z_ _∈{_ 0 _, L_ z _}_ . Obviously, there are 2 _N_ z( _P_ deg + 1) degrees of freedom for the functions J and m, and _N_ z _−_ 1 degrees for mˆ . In turn, the test functions _ψ_ and _η_ give 2 _N_ z( _P_ deg + 1) equations from Eqs. (100) and (101, while Eqs. (102) give a further _N_ z _−_ 1 equations. For a linear problem of this type, existence and uniqueness of the solution have been proven and the error estimates have been derived, for example, by Fu _et_ _al._ [13]; see also Cockburn _et_ _al._ [12]. The nonlinear problem defined here remains to be analyzed. To help with conditioning and also to provide a useful choice of discretization points for the nonlinear problem, we choose the interpolation points for V _h_ on each element to be the _P_ deg + 1 Gauss–Lobatto points [38]. We now replace functions J _h_, m _h_, Z _h_, _nh_, and _ph_ by their finite-element approximations with the form _ζh_ ( _z_ ) = _N_ z( _P_ deg+1) _ℓ_ =1 _ζℓ_ _ψℓ_ ( _z_ ) _,_ (103) where _ψℓ_ _∈_ V _h_ are piecewise polynomial finite-element basis functions that are each compactly supported on one of the elements _sγ_, and _ζℓ_ _∈_ R are constants to be determined. Upon substitution of these into 17 Eqs. (100)–(102), and choosing the test functions _η_ and _ψ_ to also be the finite-element basis functions _ψj_ _∈_ V _h_ to be piecewise polynomials that are each compactly supported on element _sγ_, we obtain the HDG equations _N_ z _γ_ =1 J _ℓ_ (c1 _ψℓ, ψj_ ) _γ_ _−_ c2m _ℓ_ Z _k_ _γ_ _ψℓ_ _γ_ _−_ c2m _ℓ_ - _<u>d</u>_ _dz_ <sup>vm</sup> <sup>_ψℓ, ψj_</sup> - _ψℓ,_ <sup>_<u>d</u>_</sup> _<u>d</u>_ _dz_ <sup>_ψk, ψj_</sup> + m _ℓ_ <sup>_<u>d</u>_</sup> _dz_ <sup>_ψj_</sup> _γ_ _−_ _<_ mˆ _, ψj_ _>γ_ - _ψℓ,_ <sup>_<u>d</u>_</sup> _dz_ <sup>_ψj_</sup> - _ψℓ,_ <sup>_<u>d</u>_</sup> _N_ z _γ_ =1 _γ_ = 0 _,_ (104) J _ℓ_ _−_ c3 _nℓ_ ( _ψℓ, ψj_ ) _γ_ + _pℓ_ ( _ψℓ, ψj_ ) _γ_ _−_ m _ℓ_ _< τmψℓ, ψj_ _>γ_ + (f _, ψj_ ) _γ_ + _<_ mˆ _, ψj_ _>γ_ = 0 _,_ (105) J _ℓ_ [[ _ψℓ_ ]] _γ_ + m _ℓ_ [[ _τmψℓ_ ]] _γ_ _−_ [[ _τm_ ]] _γ_ mˆ _ℓ_ = 0 at interior nodes _,_ (106) mˆ _γ_ = m0 at the end points of Ωel _.,_ (107) for 1 _≤_ _j_ _≤_ _N_ z( _P_ deg+1), 1 _≤_ _k_ _≤_ _N_ z( _P_ deg+1), and 1 _≤_ _ℓ_ _≤_ _N_ z( _P_ deg+1). In Eqs. (104)–(107) and henceforth, we use the Einstein summation convention (i.e., summation is implied over any duplicated index), column vectors denoted as _<u>v</u>_ comprise elements _vk_, and matrices denoted as _<u>M</u>_ comprise elements _Mk,ℓ_ . The full set of drift-diffusion equations (73)–(80) along with the boundary conditions (44)–(46) is now discretized by three copies of the above equations with function and parameter choices from Table 2. There are two usual ways to solve the resulting nonlinear system: Gummel iteration [35] and Newton’s method [39]. We found that straightforward Gummel iteration did not converge reliably for the parameter values in our simulations. So we elected to use Newton’s method with a scheme of the homotopy type [40] to help provide a good initial guess. 4.3 Nonlinear Convection A practical difficulty with implementing the scheme arises when dealing with the nonlinear term m _ℓ_ Z _k_ _ψℓ_ _<u>d</u>_ _dz_ <sup>_ψk, ψj_</sup> _<u>ψ</u>_ ~~m~~ = _N_ z _γ_ =1 _._ (108) (109) The integral �� _<u>d</u>_ _ψℓ_ _dz_ <sup>_ψk, ψj_</sup> _γ_ _γ_ Ψ <sup>0</sup> _ℓ,j,k_ <sup>_,_</sup> <sup>0</sup> <sup>_,_</sup> <sup>1</sup> <sup>=</sup> _N_ z _γ_ =1 on the right side of Eq. (108) is an element of a [ _N_ z( _P_ deg + 1)] <sup>3</sup> tensor denoted by Ψ <sup>¯</sup> 0 _,_ 0 _,_ 1, where the 0 _,_ 0 _,_ 1 superscript specifies that _ψk_ is differentiated once. The non-linear term can then be seen as the product _<u>ψ</u>_ m _≡_ Ψ _ℓ,j,k_ <sup>0</sup> <sup>_,_</sup> <sup>0</sup> <sup>_,_</sup> <sup>1m</sup> <sup>_ℓ_</sup> <sup>Z</sup> <sup>_k,_</sup> (110) where the indices _ℓ_, _j_, and _k_ select the elements of the tensor. Although manipulation of tensors with rank greater than 2 is not natively supported in Matlab, the tensor Ψ <sup>¯</sup> 0 _,_ 0 _,_ 1 is very sparse as it is block diagonal; hence, the calculation speed can be increased by storing it as a non-square matrix. As each of the finite-element basis functions _ψj_ is compactly supported on just one interval, a _local_ tensor _<u>d</u>_ _dz_ <sup>_ψk, ψj_</sup> _γ_ ¯Φ 0 _γ,_ 0 _,_ 1 _≡_ _ψℓ_ (111) with dimensions [( _P_ deg + 1)] <sup>3</sup> can be formed. This local tensor, which is not necessarily sparse, can be rewritten as a [ _P_ deg + 1] _×_ [( _P_ deg + 1) <sup>2</sup> ] rectangular matrix Ψ <sup>¯</sup> 0 _γ,_ 0 _,_ 1. Finally, a global matrix Ψ <sup>¯</sup> 0 _,_ 0 _,_ 1 with 0 _γ,_ 0 _,_ 1. Finally, a global matrix Ψ <sup>¯</sup> 0 _,_ 0 _,_ 1 with 18 dimension _N_ z( _P_ deg + 1) _×_ ( _N_ z( _P_ deg + 1)) <sup>2</sup> to represent Ψ <sup>¯</sup> 0 _,_ 0 _,_ 1 is formed by repeating the local matrix as a block diagonal. dimension _N_ z( _P_ deg + 1) _×_ ( _N_ z( _P_ deg + 1)) <sup>2</sup> to represent Ψ <sup>¯</sup> In order to calculate the term _<u>ψ</u>_ ~~m~~, the vector of coefficients <u>m</u> _~~ℓ~~_ is reshaped into a [ _N_ z( _P_ deg + 1)] <sup>2</sup> _×_ _N_ z( _P_ deg + 1) matrix _<u>M</u>_ <u>:</u> the block diagonal is formed from _P_ deg + 1 blocks of m _ℓ_, with each block repeated _N_ z times. The required solution is then given by _<u>ψ</u>_ ~~m~~ = _<u>M</u>_ <u>Z</u> _<u>.</u>_ (112) While this is more convoluted than simply performing the tensor multiplication, this matrix multiplication method is comparatively very fast because Ψ <sup>¯</sup> 0 _,_ 0 _,_ 1 is independent of the solution (i.e., constant) and so can be precomputed. 4.4 Upwinding One of the reasons for choosing the HDG method is to include upwinding in a natural way through the choice of hybridization functions _τm_ [13]. Upwinding was included in our simulations as follows. First, the dimensionless effective average electron speed _un_ ( _z_ ) = _−J_ n( _z_ ) _/n_ ( _z_ ) and the effective average hole speed _up_ ( _z_ ) = _J_ p( _z_ ) _/p_ ( _z_ ) were formulated. Next, Eqs. (75) and (76) were used to obtain _un_ ( _z_ ) = _µ_ n( _z_ ) <sup>_<u>d</u>_</sup> (113) _dz_ <sup>_{φ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> <sup>_φ_</sup> <sup>n(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_−_</sup> <sup>ln [</sup> <sup>_n_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)]</sup> <sup>_}_</sup> and _up_ ( _z_ ) = _−µ_ p( _z_ ) <sup>_<u>d</u>_</sup> (114) _dz_ <sup>_{φ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) +</sup> <sup>_φ_</sup> <sup>p(</sup> <sup>_z_</sup> <sup>) + ln [</sup> <sup>_p_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)]</sup> <sup>_}_</sup> <sup>_,_</sup> respectively. The terms containing ln[ _..._ ] are identifiable as the diffusion terms, with the remaining terms modeling drift in the effective electric field. In drift-dominated regions of the solar cell, which often constitute most of Ωel, we therefore get _un_ ( _z_ ) = _−λ_ <sup>_−_</sup> <sup>2</sup> _µ_ n( _z_ ) [ _E_ dc( _z_ ) + _En_ ( _z_ )] (115) and _un_ ( _z_ ) = _λ_ <sup>_−_</sup> <sup>2</sup> _µ_ p( _z_ ) [ _E_ dc( _z_ ) + _Ep_ ( _z_ )] _,_ (116) where _En_ ( _z_ ) = _−λ_ <sup>2</sup> <sup>_<u>d</u>_</sup> (117) _dz_ <sup>_φ_</sup> <sup>n(</sup> <sup>_z_</sup> <sup>)</sup> is the dimensionless effective electric field acting on electrons and _Ep_ ( _z_ ) = _−λ_ <sup>2</sup> <sup>_<u>d</u>_</sup> (118) _dz_ <sup>_φ_</sup> <sup>p(</sup> <sup>_z_</sup> <sup>)</sup> is the dimensionless effective electric field acting on holes. These two fields arise from material nonhomogeneity. Information in this drift-dominated system travels in the directions of the electron and hole velocities. At each node, we therefore want to take values of _n_ ( _z_ ) and _p_ ( _z_ ) from the inflow side and pass them to the outflow side. As _µ_ n( _z_ ) _>_ 0 and _µ_ p( _z_ ) _>_ 0, the respective directions entirely depend on the signs of _E_ dc( _z_ ) + _En_ ( _z_ ) and _E_ dc( _z_ ) + _Ep_ ( _z_ ). While the hybridization function _τm_ ( _z_ ) is defined as a function of position, only the values at the ends of the elements contribute to the model. Consequently, we create _τ_ ¯( _z_ ) as a piecewise linear function, defined by the limiting values at each side of each node. Two possible limiting values _τ_ ¯1 and _τ_ ¯2 are chosen such that _τ_ ¯1 _≪_ _τ_ ¯2. Then, to ensure that the correct information flow is achieved, _•_ _τm|γ,R_ = _τ_ ¯1 and _τm|γ,L_ = _τ_ ¯2 are used if _E_ dc( _z_ ) + _En_ ( _z_ ) _>_ 0, or _•_ _τm|γ,L_ = _τ_ ¯1 and _τm|γ,R_ = _τ_ ¯2 are used _E_ dc( _z_ ) + _En_ ( _z_ ) _<_ 0. Our choices of _τ_ ¯1 and _τ_ ¯2 are given in Table 5. 19 4.5 Recombination The recombination term _R_ ( _n, p_ ; _z_ ) is a nonlinear function of _n_ ( _z_ ) and _p_ ( _z_ ). Consequently, care needs to be taken on how to incorporate this term into the HDG method. For example, if radiative recombination given by Eq. (61) is incorporated in the HDG method, we get _γ_ <sup>_−_</sup> <sup>(</sup> <sup>_αrad, ψj_</sup> <sup>)</sup> <sup>_γ ._</sup> (119) ( _Rrad, ψj_ ) _γ_ = _nℓpk_ - _<u>αrad</u>_ _n_ ¯ <sup>2</sup> <sup>_ψℓψk, ψj_</sup> The first term on the right side is nonlinear in the basis function, giving a third-rank tensor with indices _j_, _k_ and _ℓ_ . Note that _αrad_ and _n_ ¯ are also projected onto V _h_ but, because both are material properties (and are therefore independent of the solution), they do not increase the rank of the tensor produced. The term can thus be implemented in a similar manner to the nonlinear drift term discussed in Section 4.3. The SRH recombination is given by Eq. (62). If we test this term against the standard polynomial basis _ψj_ and integrate over Ωel, we cannot write the result as a tensor, because the SRH term is not a polynomial in the basis functions. Consequently, we integrate using quadrature. For this, we chose Gauss–Lobatto quadrature <sup>2</sup> to maximize the order of the polynomials that can be exactly integrated, while maintaining use of the values at the nodes. In particular, for a general function _f_, the use of Gauss–Lobatto quadrature to integrate over the element _sγ_ gives  _pℓψℓ_ ( _z_ ) _ψj_ ( _z_ ) d _z_ (120) _sγ_ _f_ [ _n_ ( _z_ ) _, p_ ( _z_ )] _ψj_ ( _z_ ) d _z_ = _sγ_ _f_  _I_ deg  _ℓ_ =1 _nℓψℓ_ ( _z_ ) _,_ _I_ deg _ℓ_ =1 _≈_ _wjf_ ( _nj, pj_ ) _,_ (121) where _{wj}_ <sup>_P_</sup> _j_ =1 <sup>deg+1</sup> are the Gauss–Lobatto quadrature weights for the element _sγ_ and _I_ deg is the degree of integration. A computationally quick way is to use _I_ deg = _P_ deg + 1 quadrature points per element [41, 42] as this does not require interpolation of the solution. The Auger recombination is given by Eq. (63). As with the SRH term, we cannot write this as a tensor. Either mass-lumping [41] or quadrature [38] must then be used to calculate the integrals formed when the Auger term is incorporated into the HDG method. 4.6 Heterojunctions To implement the jump conditions (71) or (72), we ensure that a node falls at each discontinuity in the material parameters. Every jump in _n_ ( _z_ ) can be taken into account by redefining the jump operator as [[ _τ_ ]] _γ_ _n_ ˆ _γ_ = [ _τ_ _|γ_ +1 _,L_ exp(∆ _χγ_ ) _−_ _τ_ _|γ,R_ ] ˆ _nγ_ (122) and the difference operator as _<_ _n, ζψ_ ˆ _j_ _>γ_ = ( _ζψj_ ) _|γ,Rn_ ˆ _γ_ _−_ ( _ζψj_ ) _|γ,L_ exp(∆ _χγ−_ 1)ˆ _nγ−_ 1 _,_ (123) where ∆ _χγ_ is the jump in electron affinity _χ_ across node _γ_ and _ζ_ is a place-holder function. This is equivalent to defining to values of _n_ ˆ _γ_ at each node, separated in value by the necessary jump induced by the discontinuous electron affinity. Jumps in _p_ ( _z_ ) can be handled similarly. 4.7 Homotopy In order to aid convergence of the highly nonlinear discrete system, homotopy is employed in our simulation. The fixed charge density _N_ f, recombination rate _R_ ( _n, p_ ; _z_ ), and bandgap non-homogeneity, i.e. _Eg_ ( _z_ ) _−_ _Eg,av_ where _Eg,av_ is the mean bandgap, are all multiplied by a constant _δ_ homo. The simulation is started with _δ_ <sup>(0)</sup> homo <sup>=</sup> <sup>_δ_</sup> <sup>min.</sup> <sup>Once</sup> <sup>the</sup> <sup>simulation</sup> <sup>is</sup> <sup>deemed</sup> <sup>to</sup> <sup>have</sup> <sup>converged,</sup> <sup>a</sup> <sup>larger</sup> <sup>value</sup> _δ_ <sup>(1)</sup> homo <sup>(1)</sup> <sup>= min(</sup> <sup>_δ_</sup> homo <sup>(0)</sup> homo <sup>(0)</sup> <sup>_ε_</sup> <sup>homo</sup> <sup>_,_</sup> <sup>1)</sup> (124) 2The interpolation points for the finite-element basis functions are the Gauss–Lobatto points, as discussed in Sec. 4.2. 20 <u>Parameter</u> <u>Symbol</u> <u>Value</u> Bandgap _Eg_ 1.3 V Electron affinity _χ_ 4.5 V Conduction-band density of states _N_ c 2 _._ 22 _×_ 10 <sup>18</sup> cm <sup>_−_</sup> <sup>3</sup> Valence-band density of states _N_ v 1 _._ 78 _×_ 10 <sup>19</sup> cm <sup>_−_</sup> <sup>3</sup> DC relative permittivity _ε_ <sup>0</sup> relative permittivity _ε_ <sup>0</sup> _dc_ 13.6 Electron mobility _µ_ n 100 cm <sup>2</sup> V <sup>_−_</sup> <sup>1</sup> s <sup>_−_</sup> <sup>1</sup> Hole mobility _µ_ p 25 cm <sup>2</sup> V <sup>_−_</sup> <sup>1</sup> s <sup>_−_</sup> <sup>1</sup> SRH lifetime parameter (electrons) _τ_ n( _z_ ) 1 _×_ 10 <sup>_−_</sup> <sup>9</sup> s <sup>_−_</sup> <sup>1</sup> <u>SRH</u> <u>lifetime</u> <u>parameter</u> <u>(holes)</u> _<u>τ</u>_ <u>p(</u> _<u>z</u>_ <u>)</u> <u>1</u> _<u>×</u>_ <u>10</u> <sup>_−_</sup> <sup>9</sup> <u>s</u> <sup>_−_</sup> <sup>1</sup> Table 3: Electrical parameters of CIGS. is chosen for _δ_ homo, with _ε_ homo _>_ 1 as the homotopy damping relaxation rate. Thus, the iteration _δ_ homo <sup>(</sup> <sup>_ℓ_</sup> <sup>+1)</sup> homo <sup>(</sup> <sup>_ℓ_</sup> <sup>+1)</sup> <sup>= min(</sup> <sup>_δ_</sup> homo <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> homo <sup>(</sup> <sup>_ℓ_</sup> <sup>)</sup> <sup>_ε_</sup> <sup>homo</sup> <sup>_,_</sup> <sup>1)</sup> (125) is employed, full convergence being deemed to occur in the iteration in which _δ_ homo becomes equal to unity. ## 5 Numerical Test of HDG Method As a model test problem to show the behavior of the HDG method (but not to present a solar-cell design), the solar cell was taken to comprise a p-i-n junction made from copper-indium-gallium-(di)selenide (CIGS), as shown in Fig. 1(a). The electrical parameters of CIGS [43] are given in Table 3. For this test problem, the generation rate was taken to be uniform, with _J_ SC <sup>Opt</sup> <sup>= 10</sup> <sup>mA</sup> <sup>cm</sup> <sup>_−_</sup> <sup>2;</sup> <sup>thus</sup> <sup>RCWA</sup> <sup>results</sup> <sup>were</sup> <sup>not</sup> <sup>used.</sup> The _p_ -type layer of thickness _L_ p = 20 nm was taken to be doped with acceptor atoms with concentration specified via _N_ f = _−_ 10 <sup>17</sup> cm <sup>_−_</sup> <sup>3</sup>, and the _n_ -type layer of thickness _L_ n = 20 nm with donor atoms with concentration specified via _N_ f = 10 <sup>17</sup> cm <sup>_−_</sup> <sup>3</sup> . The undoped _i_ -type layer was taken to be _L_ i = 200 nm thick; thus, _L_ z = _L_ p + _L_ i + _L_ n = 240 nm. All three layers were taken to be homogeneous. Neither the radiative nor the Auger recombination mechanism was activated for the test problem. Chiefly, three parameters affect the accuracy of the HDG method: the degree of the interpolating polynomials _P_ deg, the length of each element _dz_, and the degree of quadrature integration _I_ deg. The convergence of the method with respect to each of these parameters was investigated. The parameters used for the convergence study are given in Table 4. The convergences of the short-circuit current density _J_ SC, the open-circuit voltage _V_ OC, the maximum power _P_ max, and the fill factor _FF_ with respect to _P_ deg, _d_ z, and _I_ deg, were investigated. Figure 4 shows the error in each of four electrical characteristics relative to the value for _P_ deg = 9 when _d_ z = 2 nm and _I_ deg = 10. As _P_ deg increases from 2, each of the four errors is seen to decrease exponentially, with a rate approximately proportional to exp( _−_ 3 _P_ deg). This reduction in error is seen to saturate at around _P_ deg = 5. Figure 5 shows the error in each of four electrical characteristics relative to the value for _d_ z = 1 nm when _P_ deg = 5 and _I_ deg = 10. As _d_ z decreases from 20 nm, all four errors decrease as _O_ ( _d_ <sup>4</sup> z <sup>)</sup> <sup>which</sup> <sup>is</sup> <sup>suboptimal.</sup> Finally, Fig. 6 shows the error in each of four electrical characteristics relative to the value for _I_ deg = 12 when _P_ deg = 5 and _d_ z = 2 nm. As _I_ deg increases, each error is seen to decrease exponentially, with a rate approximately proportional to exp( _−_ 4 _I_ deg). This reduction in error is seen to saturate at around _I_ deg = 5. Thus, Figs. 4–6 show that the short-circuit current density _J_ SC, the open-circuit voltage _V_ OC, the maximum power _P_ max, and the fill factor _FF_, all converge at approximately the same rate with respect to _P_ deg, _d_ z, and _I_ deg. The order of convergence is not optimal, as might be expected since we used polynomials of the same degree in all elements. ## 6 Differential Evolution Algorithm for Optimization The differential evolution algorithm [44] is a gradient-free optimization algorithm suited for maximizing an objective function over a high-dimensional parameter space. Given the objective function _C_ : S _→_ R, where 21 <u>Symbol</u> <u>Value</u> <u>Description</u> _P_ deg variable Degree of Lobatto polynomials _N_ zp variable Number of points in _p_ -type layer _N_ zi variable Number of points in _i_ -type layer _N_ zn variable Number of points in _n_ -type layer _<u>I</u>_ <u>deg</u> <u>variable</u> <u>Nonlinear</u> <u>term</u> <u>integration</u> <u>degree</u> _τ_ ¯1 10 <sup>_<u>−</u>_</sup> <sup><u>3</u></sup> First parameter for hybridization _τ_ ¯2 10 <sup>3</sup> Second parameter for hybridization _δV_ 0.01 Maximum step for _V_ ext _δ_ min 10 <sup>_−_</sup> <sup>2</sup> Initial homotopy damping _ε_ homo 1 _._ 2 Homotopy damping relaxation _δ_ num 1 No. of homotopy attempts _δ_ inc 10 Homotopy increase on new attempt _n_ loop 10 Maximum number of iterations for Newton’s method _E_ rel _,_ tol 10 <sup>_−_</sup> <sup>4</sup> Relative change in state vector allowed _E_ abs _,_ tol 10 <sup>_−_</sup> <sup>6</sup> Absolute change in state vector allowed _J_ tol 0 _._ 1 Relative noise allowed in _J_ _P_ ref 100 Max iteration to find _P_ max _<u>P</u>_ <u>tol</u> <u>10</u> <sup>_−_</sup> <sup>6</sup> <u>Allowed</u> <u>variation</u> <u>around</u> _<u>P</u>_ <u>max</u> Table 4: Baseline parameter settings in Sec. 5 for the HDG simulation of the model CIGS p-i-n solar cell in Fig. 1(a). Note that _N_ z = _N_ zp + _N_ zi + _N_ zn. The _state_ _vector_ is the vector of all solution values in the electronic step. 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> P max JSC V OC FF O(Exp[-3P deg]) 2 3 4 5 6 7 8 Pdeg Figure 4: Relative errors in _P_ max, _J_ SC, _V_ OC, and _FF_ against _P_ deg _∈_ [2 _,_ 8], when _d_ z = 2 nm and _I_ deg = 10. 22 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 10 <sup>-12</sup> 10 <sup>-14</sup> P max JSC V OC FF O(d 4z ) 1 2 5 10 20 dz (nm) Figure 5: Relative errors in _P_ max, _J_ SC, _V_ OC, and _FF_ against _d_ z _∈_ [1 _,_ 20] nm, when _P_ deg = 5 and _I_ deg = 10. 10 <sup>-4</sup> 10 <sup>-6</sup> 10 <sup>-8</sup> 10 <sup>-10</sup> 10 <sup>-12</sup> 10 <sup>-14</sup> P max JSC V OC FF O(Exp[-4Ideg]) 1 2 3 4 5 6 7 8 9 10 11 Ideg Figure 6: Relative errors in _P_ max, _J_ SC, _V_ OC, and _FF_ against _I_ deg _∈_ [1 _,_ 11], when _P_ deg = 5 and _d_ z = 2 nm. 23 S _⊂_ R _N_ <sup>˜</sup> is the set of all possible choices of the _N_ ˜ input parameters, the DEA starts by selecting _N_ P points to form an initial population P 0 _⊂_ S. The objective function _C_ is evaluated at each of these points, with the results used by DEA in a mutation-recombination-selection process to build a new population P 1 _⊂_ S. The objective function is then evaluated at each point of this new population to develop a new population P 2 _⊂_ S in the second mutation-recombination-selection step. This process continues iteratively until the objective function appears to stabilize. The efficiency _η_ defined in Eq. (50) is the appropriate objective function for designing solar cells. Following suggestions in the DEA documentation [44], we fix the crossover fraction as _C_ R = 0 _._ 6. The step size _F_ used in the mutation steps is set to be randomly distributed in [0 _._ 5 _,_ 1] uniformly. Allowing _F_ to vary randomly with each iteration has been termed _dither_, and its use has been shown to improve convergence for many problems [4]. ## 7 Numerical Test of DEA As a model test problem, solar cell was taken to comprise a p-i-n junction made from CIGS, as shown in Fig. 1(a). The electrical parameters of CIGS [43] are given in Table 3. The _p_ -type layer of thickness _L_ p = 20 nm was taken to be doped with acceptor atoms with concentration specified via _N_ f = _−_ 10 <sup>17</sup> cm <sup>_−_</sup> <sup>3</sup>, and the _n_ -type layer of thickness _L_ n = 20 nm with donor atoms with concentration specified via _N_ f = 10 <sup>17</sup> cm <sup>_−_</sup> <sup>3</sup> . The thickness _L_ i of the undoped _i_ -type layer was taken as a variable for optimization. All three layers were taken to be homogeneous, with bandgaps Eg _,_ p, Eg _,_ n, and Eg _,_ i taken to be variables for optimization. Neither the radiative nor the Auger recombination mechanism was activated for the test problem. The antireflection coating in Fig. 1(a) was ignored. We fixed _L_ m = 150 nm. The period _L_ x was kept variable. The height _L_ g and base _ζ_ g _L_ x, _ζ_ g _∈_ (0 _,_ 1), of the metallic protuberance in each period were also kept variable. The _N_ <sup>˜</sup> = 7 parameters chosen to be optimized in our test problem thus are: _L_ x, _L_ g, _ζ_ g, _L_ i, Eg _,_ p, Eg _,_ n, and Eg _,_ i. Both the photonic and the electronic steps were implemented. The population number was set as _N_ P = 100. The remaining parameters used for the optimization algorithm were as described in the previous sections, together with values given in Table 5. These values were chosen to maintain reasonable accuracy, aid convergence for a wide range of solar cell designs, and to allow rapid computation of the efficiency at each step of DEA. These choices resulted in very quick evaluation of _η_ at a particular choice of the parameter values in roughly 6 min, with four evaluations running concurrently in MATLAB on a 20-processor (Intel Xeon Gold 61382GHz) Linux (Ubuntu 17.10) computer. The actual time per parameter set depends on the HDG solver (being longer if more homotopy steps are needed). Figure 7 summarizes the progression of the DEA towards an optimal result. Each of panels (a)-(g) in this figure is a graph of the efficiency _η_ as a function of one of the parameters in the optimization. Thus, each point corresponds to a 7-dimensional vector of parameter values used by DEA. The optimal efficiency found is marked by a large red disk. The remaining panel, Fig. 7(h), shows the progress of optimization. In particular it shows the efficiency as a function of DEA step. The optimal values of the seven parameters in this study are given in Table 6 which result in _η_ = 15 _._ 7%. ## 8 Concluding Remarks We have presented details of a design tool for optimizing the efficiency of thin-film photovoltaic solar cells. The solar cell can have multiple semiconductor layers in addition to dielectric layers serving as antireflection coatings, passivation layers, and buffer layers. The solar cell is backed by a metallic grating which is periodic along a fixed direction. The heart of the design tool is a coupled optoelectronic simulation. The photonic step of the simulation delivers the 2D variation of the electron-hole-pair generation rate inside the semiconductor layers of the solar cell. After averaging along the direction of the periodicity of the grating, the electron-hole-pair generation rate becomes the input to the electronic step of the simulation. The chief output of the electronic step is the efficiency of the solar cell. The design tool uses the differential evolution algorithm to determine the dimensions and bandgaps of the semiconductor layers to maximize the efficiency of the solar cell. 24 <u>Symbol</u> <u>Value</u> <u>Description</u> _N_ t 10 Fourier order for RCWA _P_ deg 3 Degree of Lobatto polynomials _N_ zp 10 Number of points in _p_ -type layer _N_ zi 50 Number of points in _i_ -type layer _N_ zn 10 Number of points in _n_ -type layer _<u>I</u>_ <u>deg</u> <u>4</u> <u>Nonlinear</u> <u>term</u> <u>integration</u> <u>degree</u> _τ_ ¯1 10 <sup>_<u>−</u>_</sup> <sup><u>6</u></sup> First parameter for hybridization _τ_ ¯2 10 <sup>6</sup> Second parameter for hybridization _δ_ min 10 <sup>_−_</sup> <sup>2</sup> Initial homotopy damping _ε_ homo 1.1 Homotopy damping relaxation _δ_ num 40 No. of homotopy attempts _δ_ inc 5 Homotopy increase on new attempt _n_ loop 40 Maximum number of iterations for Newton’s method _E_ rel _,_ tol 10 <sup>_−_</sup> <sup>2</sup> Relative change in state vector allowed _E_ abs _,_ tol 10 <sup>_−_</sup> <sup>4</sup> Absolute change in state vector allowed _P_ tol 10 <sup>_−_</sup> <sup>3</sup> Allowed variation around _P_ max _<u>t</u>_ <u>max</u> <u>300</u> <u>s</u> <u>Maximum</u> <u>computer</u> <u>time</u> Table 5: Baseline parameter settings for DEA optimization in Sec. 7. These are laxer than those used in Sec. 5 as rapid computation is necessary. Other settings are the same as in Table 4. <u>Variable</u> <u>Parameter</u> <u>Optimal</u> <u>Value</u> _L_ x 632 nm _L_ g 167 nm _ζ_ g 0.3 _L_ i 596 nm Eg _,_ p 1.62 V Eg _,_ i 1.467 V <u>Eg</u> _<u>,</u>_ <u>n</u> <u>1.618</u> <u>V</u> Table 6: Parameters varied in the optimal design study described in Sec. 6. The optimal value refers to the value at the end of the DEA computation. The design tool can be augmented to incorporate a biperiodic metallic grating at the cost of increased computation time [8]. Whether biperiodicity should be incorporated will depend on the consequent augmentation of the efficiency of the solar cell, and is therefore a matter of further research. Given that the period of the grating is in the 400-to-1000 nm range in order to invoke guided-wave phenomena for increased photon trapping [8, 9, 45, 46, 47, 48] but the electronic step is electrostatic in character, the averaging of the electron-hole-pair generation rate delivered by the photonic step along the periodicity directions of the grating is appropriate; elimination of that averaging will significantly increase computational time without significant gain in the electronic step. We have begun to apply the design tool for diverse types of thin-film photovoltaic solar cells and will report our results in due course of time. ## Acknowledgements A. Lakhtakia thanks the Charles Godfrey Binder Endowment at the Pennsylvania State University for ongoing support of his research. The research of T. H. Anderson, B. J. Civiletti, and P. B. Monk was partially supported by the US National Science Foundation under grant number DMS-1619904. The research of A. Lakhtakia was partially supported by US National Science Foundation under grant number DMS-1619901. 25 ## References References [1] J. Nelson, _The_ _Physics_ _of_ _Solar_ _Cells_, Imperial College Press, London, United Kingdom, 2003. [2] S. J. Fonash, _Solar_ _Cell_ _Device_ _Physics,_ _2nd_ _ed_, Academic Press,, Burlington, MA, USA, 2010. [3] R. Storn and K. Price, “Differential evolution—a simple and efficient heuristic for global optimization over continuous spaces,” _J._ _Global_ _Optim._ 11, pp. 341–359, 1997. [4] S. Das and P. N. Suganthan, “Differential evolution: A survey of the state-of-the-art,” _IEEE_ _Trans._ _Evol._ _Comput._ 15, pp. 4–31, 2011. [5] P. Lalanne and G. M. Morris, “Highly improved convergence of the coupled-wave method for TM polarization,” _J._ _Opt._ _Soc._ _Am._ _A_ 13, pp. 779–784, 1996. [6] P. Lalanne, “Convergence performance of the coupled-wave and the differential methods for thin grat ings,” _J._ _Opt._ _Soc._ _Am._ _A_ 14, pp. 1583–1591, 1997. [7] J. A. Polo Jr., T. G. Mackay, and A. Lakhtakia, _Electromagnetic_ _Surface_ _Waves:_ _A Modern_ _Perspective_, Elsevier, Waltham, MA, USA, 2013. [8] B. J. Civiletti, T. H. Anderson, F. Ahmad, P. B. Monk, and A. Lakhtakia, “Optimization approach for optical absorption in three-dimensional structures including solar cells,” _Opt._ _Eng._ 57, art. no. 057101, 2018. [9] F. Ahmad, T. H. Anderson, B. J. Civiletti, P. B. Monk, and A. Lakhtakia, “On optical-absorption peaks in a nonhomogeneous thin-film solar cell with a two-dimensional periodically corrugated metallic backreflector,” _J._ _Nanophotonics_ 12, art. no. 016017, 2018. [10] D. Brinkman, K. Fellner, P. A. Markowich, and M.-T. Wolfram, “A drift-diffusion-reaction model for excitonic photovoltaic bilayers: Asymptotic analysis and a 2–D HDG finite-element scheme,” _Math._ _Models_ _Methods_ _Appl._ _Sci._ 23, pp. 839–872, 2013. [11] C. Lehrenfeld, _Hybrid_ _Discontinuous_ _Galerkin_ _Methods_ _for_ _Solving_ _Incompressible_ _Flow_ _Problems_, Diplomingenieur Thesis, Rheinisch-Westfa¨alischen Technischen Hochschule, Aachen, Germany, 2010. [12] B. Cockburn, J. Gopalakrishnan, and R. Lazarov, “Unified hybridization of discontinuous Galerkin, mixed, and continuous Galerkin methods for second order elliptic problems,” _SIAM J. Numer. Anal._ 47, pp. 1319–1365, 2009. [13] G. Fu, W. Qiu, and W. Zhang, “An analysis of HDG methods for convection-dominated diffusion problems,” _ESAIM:_ _Math._ _Model._ _Numer._ _Anal._ 49, pp. 225–256, 2015. [14] Y. Jaluria, _Computer_ _Methods_ _for_ _Engineering_, Taylor & Francis, Washington, DC, USA, 1996. [15] T. H. Anderson, T. G. Mackay, and A. Lakhtakia, “Enhanced efficiency of Schottky-barrier solar cell with periodically nonhomogeneous indium gallium nitride layer,” _J._ _Photon._ _Energy_ 7, art. no. 014502, 2017. [16] Z. Chen, _Finite_ _Element_ _Methods_ _and_ _Their_ _Applications_, Springer, Berlin, Germany, 2005. [17] T. H. Anderson, A. Lakhtakia, and P. B. Monk, “Optimization of nonhomogeneous indium-gallium nitride Schottky-barrier thin-film solar cells,” _J._ _Photon._ _Energy_ 8, art. no. 034501, 2018. [18] J. Kr˘c and M. Topi˘c, _Optical_ _Modeling_ _and_ _Simulation_ _of_ _Thin-Film_ _Photovoltaic_ _Devices_, CRC Press, Boca Raton, FL, USA, 2013. 26 [19] N. Saiprasad, S. Castelletto, and A. Boretti, “Optoelectronics modelling of thin film solar cells,” in _Nonlinear_ _Approaches_ _in_ _Engineering_ _Applications_, R. N. Jazar and L. Dai, eds., pp. 331–350, Springer, Cham, Switzerland, 2016. [20] D. Alonso-Alvarez, <sup>´</sup> T. Wilson, P. Pearce, M. Fu¨uhrer, D. Farrell, and N. Ekins–Daukes, “Solcore: a multi-scale, Python-based library for modelling solar cells and semiconductor materials,” _J._ _Comput._ _Electron._ 17, pp. 1099–1123, 2018. [21] J. W. Goodman, _Introduction_ _to_ _Fourier_ _Optics_, McGraw–Hill, New York, NY, USA, 1968. [22] D. Maystre (ed), _Selected_ _Papers_ _on_ _Diffraction_ _Gratings_, SPIE Optical Engineering Press, Bellingham, WA, USA, 1992. [23] M. G. Moharam, D. A. Pommet, E. B. Grann, and T. K. Gaylord, “Stable implementation of the rigorous coupled-wave analysis for surface-relief gratings: enhanced transmittance matrix approach,” _J._ _Opt._ _Soc._ _Am._ _A_ 12, pp. 1077–1086, 1995. [24] M. E. Solano, M. Faryad, A. Lakhtakia, and P. B. Monk, “Comparison of rigorous coupled-wave ap proach and finite element method for photovoltaic devices with periodically corrugated metallic backreflector,” _J._ _Opt._ _Soc._ _Am._ _A_ 31, pp. 2275–2284, 2014. [25] M. V. Shuba, M. Faryad, M. E. Solano, P. B. Monk, and A. Lakhtakia, “Adequacy of the rigorous coupled-wave approach for thin-film silicon solar cells with periodically corrugated metallic backreflectors: spectral analysis,” _J._ _Opt._ _Soc._ _Am._ _A_ 32, pp. 1222–1230, 2015. [26] Z. Lokar, B. Lipovsek, M. Topic, and J. Krc, “Performance analysis of rigorous coupled-wave analysis and its integration in a coupled modeling approach for optical simulation of complete heterojunction silicon solar cells,” _Beilstein_ _J._ _Nanotechnol._ 9, pp. 2315–2329, 2018. [27] L. Li, “Use of Fourier series in the analysis of discontinuous periodic structures,” _J._ _Opt._ _Soc_ _Am._ _A_ 13, pp. 1870–1876, 1996. [28] National Renewable Energy Laboratory, “Reference Solar Spectral Irradiance: Air Mass 1.5.” `[http:](http://rredc.nrel.gov/solar/spectra/am1.5/)` `[//rredc.nrel.gov/solar/spectra/am1.5/](http://rredc.nrel.gov/solar/spectra/am1.5/)` (5 June 2018). [29] R. Dewan, M. Marinkovic, R. Noriega, S. Phadke, A. Salleo, and D. Knipp, “Light trapping in thin-film silicon solar cells with submicron surface texture,” _Opt._ _Exp._ 17, pp. 23058–23065, 2009. [30] M. Solano, M. Faryad, A. S. Hall, T. E. Mallouk, P. B. Monk, and A. Lakhtakia, “Optimization of the absorption efficiency of an amorphous-silicon thin-film tandem solar cell backed by a metallic surfacerelief grating,” _Appl._ _Opt._ 52, pp. 966–979, 2013; erratum: 54, p. 398, 2015. [31] N. Anttu, V. Dagyt˙e, X. Zeng, G. Otnes, and M. Borgstr¨om, “Absorption and transmission of light in III–V nanowire arrays for tandem solar cell applications,” _Nanotechnology_ 28, art. no. 205203, 2017. [32] J. Sch¨oberl, “Netgen/Ngsolv.” `[https://ngsolve.org](https://ngsolve.org)` (5 June 2018). [33] M. Ainsworth, J. Z. Zhu, A. W. Craig, and O. C. Zienkiewicz, “Analysis of the Zienkiewicz–Zhu _a-_ _posteriori_ error estimator in the finite element method,” _Int._ _J._ _Numer._ _Math._ _Eng._ 28, pp. 2161–2174, 1989. [34] Z. Chen and H. Wu, “An adaptive finite element method with perfectly matched absorbing layers for the wave scattering by periodic structures,” _SIAM_ _J._ _Numer._ _Anal._ 41, pp. 799–826, 2003. [35] F. Brezzi, L. D. Marini, S. Micheletti, P. Pietra, R. Sacco, and S. Wang, “Discretization of semiconduc tor device problems (I),” in _Handbook_ _of_ _Numerical_ _Analysis:_ _Numerical_ _Methods_ _for_ _Electrodynamic_ _Problems_, W. H. A. Schilders and E. J. W. ter Maten, eds., pp. 317–342, Elsevier, Amsterdam, The Netherlands, 2005. 27 [36] D. H. Foster, T. Costa, M. Peszynska, and G. Schneider, “Multiscale modeling of solar cells with interface phenomena,” _J._ _Coupled_ _Sys._ _Multiscale_ _Dynam._ 1, pp. 179–204, 2013. [37] K. Yang, J. R. East, and G. I. Haddad, “Numerical modeling of abrupt heterojunctions using a thermionic-field emission boundary condition,” _Solid-State_ _Electron._ 36, pp. 321–330, 1993. [38] A. Stroud and D. Secrest, _Gaussian_ _Quadrature_ _Formulae_, Prentice–Hall, Englewood Cliffs, NJ, USA,1973. [39] E. Isaacson and H. B. Keller, _Analysis_ _of_ _Numerical_ _Methods_, Wiley, New York, NY, USA, 1966. [40] J. Nocedal and S. J. Wright, _Numerical_ _Optimization_, Springer, New York, NY, USA, 2006. [41] G. Cohen and S. Pernet, _Finite_ _Element_ _and_ _Discontinuous_ _Galerkin_ _Methods_ _for_ _Transient_ _Wave_ _Equations_, Springer, Dordrecht, The Netherlands, 2017. [42] J. Douglas Jr. and T. Dupont, “The effect of interpolating the coefficients in nonlinear parabolic Galerkin procedures,” _Math._ _Comput._ 20, pp. 360–389, 1975. [43] C. Frisk, C. Platzer-Bj¨orkman, J. Olsson, P. Szaniawski, J. T. W¨atjen, V. Fj¨allstr¨om, P. Salom´e, and M. Edoff, “Optimizing Ga-profiles for highly efficient Cu(In, Ga)Se2 thin film solar cells in simple and complex defect models,” _J._ _Phys._ _D:_ _Appl._ _Phys._ 47, art. no. 485104, 2014. [44] “Differential Evolution Algorithm.” `www1.icsi.berkeley.edu/~storn/code.html` (6 July 2017). [45] L. M. Anderson, “Harnessing surface plasmons for solar energy conversion,” _Proc._ _SPIE_ 408, pp. 172– 178, 1983. [46] P. Sheng, A. N. Bloch, and R. S. Stepleman, “Wavelength-selective absorption enhancement in thin-film solar cells,” _Appl._ _Phys._ _Lett._ 43, pp. 579–581, 1983. [47] C. Heine and R. H. Morf, “Submicrometer gratings for solar energy applications,” _Appl._ _Opt._ 34, pp. 2476–2482, 1995. [48] T. Khaleque and R. Magnusson, “Light management through guided-mode resonances in thin-film silicon solar cells,” _J._ _Nanophoton._ 8, art. no. 083995, 2014. 28 (a) (c) (e) (g) 16 15 14 13 12 16 15 14 13 12 1.3 1.4 1.5 1.6 Band gap (i-layer) (eV) 16 15 14 13 12 1.5 1.52 1.54 1.56 1.58 1.6 1.62 Band gap (p-layer) (eV) 16 15 14 13 12 400 500 600 700 800 Thickness of i-layer Li (nm) 16 15 14 13 12 50 100 150 200 250 Height of grating Lg (nm) 15.6 15.55 15.5 15.45 15.4 0 20 40 60 DEA Iteration Number 1.5 1.52 1.54 1.56 1.58 1.6 1.62 Band gap (n-layer) (eV) 16 15 14 13 12 300 400 500 600 700 800 Period of grating Lx (nm) 16 15 14 13 12 20 40 60 80 Duty cycle grating g (%) 29 (b) (d) (f) (h)

섹션 본문 201문단 · 54,247자

(제목 없음)

1A design tool was formulated for optimizing the efficiency of inorganic, thin-film, photovoltaic solar cells.The solar cell can have multiple semiconductor layers in addition to antireflection coatings, passivation layers, and buffer layers.The solar cell is backed by a metallic grating which is periodic along a fixed direction.The rigorous coupled-wave approach is used to calculate the electron-hole-pair generation rate.The hybridizable discontinuous Galerkin method is used to solve the drift-diffusion equations that govern charge-carrier transport in the semiconductor layers.The chief output is the solar-cell efficiency which is maximized using the differential evolution algorithm to determine the optimal dimensions and bandgaps of the semiconductor layers.

Introduction

2The simulation of thin-film photovoltaic solar cells requires the coupling of (i) an optical model capable of capturing the absorption of photons with (ii) an electrical model capable of simulating the transport of charge carriers throughout the solar cell [1,2].To optimize solar cell designs, both models needed to be tailored to be rapidly computable, accurate, and robust across the relevant parameter space.To this end, we have developed a coupled optoelectronic simulation technique for thin-film photovoltaic solar cells containing periodic structures, and we have used this simulation technique together with the differential evolution algorithm (DEA) [3,4] to optimize device performance.

3The solar cell is assumed to be infinitely extended in the xy-plane, periodic in the x-direction, translation invariant in the y-direction, and of finite extent in the z-direction.These assumptions allow the simulation to be limited to two-dimensional (2D) space.However, we emphasize that our approach will work in threedimensional (3D) space at the cost of greater computational complexity and cost.

4The first step of the coupled optoelectronic simulation involves modeling the photonic characteristics of the solar cell.In the photonic step, the rigorous coupled-wave approach (RCWA) [5,6,7] is used to determine the electromagnetic fields in the solar cell due to incident solar radiation.The RCWA is an efficient computational technique to solve the frequency-domain Maxwell equations and determine the electric field in a representative subsection of the periodic (2D or 3D) domain.The frequency-domain electric field is used to determine the photon absorption rate, and therefore the generation rate of electron-hole pairs, throughout the solar cell.Rapid calculation across the solar spectrum [8,9] is possible due to RCWA being a pseudo-spectral method, i.e., it avoids spatial meshing in the periodic dimensions.

5The second step of the coupled optoelectronic simulation involves modeling the electronic characteristics of the solar cell.In the electronic step, the electron-hole-pair generation rate is used as the input to a driftdiffusion electronic (DDE) model in order to calculate the current-voltage curve of the solar cell and, hence, the efficiency of the solar cell.Because of the cost of solving the DDE model, we average the generation rate across one period in the xy-plane and implement the DDE model for variations of the electric potential and charge-carrier transport along the z-axis.The resulting one-dimensional (1D) DDE model consists of six coupled differential equations.The nonlinear Shockley-Read-Hall, Auger, and radiative terms are included to model electron-hole recombination [1,2].A hybridizable discontinuous Galerkin (HDG) method [10,11,12,13] is developed, and the Newton-Raphson method [14] is used to find a solution of the resulting nonlinear system.

6A version of the HDG method has already been used to simulate organic solar cells [10], based on the work of Lehrenfeld [11].We use a similar scheme based on the classical HDG method [12], following Fu et al. [13] who have analyzed the method for a linear convection-diffusion system.Our study points to the 1 arXiv:1906.03962v1[math.NA] 10 Jun 2019 advantages of this method in simulating inorganic solar cells having a spatially variable electron-hole-pair generation rate in the presence of semiconductor heterojunctions.

7Anderson et al. [15] recently reported a coupled optoelectronic simulation of a Schottky-barrier thin-film solar cell, with the finite-element method (FEM) [16] used for both the photonic and the electronic steps of the simulation.Later, Anderson et al. [17] used the RCWA for the photonic step and the standard FEM for the electronic step for simulating the same Schottky-barrier thin-film solar cell (which is not considered in this paper).Other researchers have also developed techniques for optoelectronic simulation [18,19,20].

8Our emphasis in this paper is different in two ways: first, our simulations lead to optimization of thinfilm photovoltaic solar cells containing periodic structures; second, we concentrate on understanding the numerical performance of each of the two steps in the coupled optoelectronic simulation.For example, we investigate the convergence rate of RCWA for two model problems.We also propose, test, and use a highorder HDG scheme using fifth-degree polynomials for the DDE model, quite possibly the first time that such a high-order scheme has been used.Since the use of DEA for optimization of solar cells has been investigated elsewhere by us [8,17], we devote little space to it in this paper.

9The photonic and electronic steps described in this paper are closely related to components of the Solcore software package described recently by Alonso-Álvarez et al. [20].That software package includes an RCWA solver as well as a 1D DD solver based on quasi-Fermi levels.In contrast, our DD solver uses the density of holes and electrons and is based on a high-order HDG scheme.

10The ultimate goal is to maximize the efficiency of the solar cell, and this goal distinguishes our work from that of Alonso-Álvarez et al. [20].Because of the presence of local minima, we use the DEA [3,4] for optimization.This requires the evaluation of the efficiency of solar-cell designs from all regions of the multidimensional space encompassing appropriate parameters, which thus necessitates the development of a robust and efficient solver.See https://www.pvlighthouse.com.au for a list of other available photovoltaic-design software.Our work here should be seen as a complement to those efforts by extending the use of coupled optoelectronic simulation to the optimal design of solar cells as well as testing new simulation techniques.

11In this paper, we assume that the solar cell occupies the region

12in R 3 , with air occupying the region R 3 \ X .As stated previously, the device is assumed to be periodic along the x-direction with period L x and translation invariant along the y-direction.Solely for illustrating various simulation issues, we performed calculations for the device shown Fig. 1(a).The current-generating region of this device comprises a thin layer of p-type semiconductor, a thicker layer of i-type semiconductor, and a thin layer of n-type semiconductor [1,2].The plane z = 0 is taken to be the bottom face of the n-type semiconductor and the plane z = L z is taken to be the top face of the p-type semiconductor.Below the plane z = 0 is a grating formed by infinitely long strips of a metal and a dielectric material, the grating period being L x .Below the grating is a metal layer that is sufficiently thick to prevent light from escaping into air below it.Above the p-type semiconductor is an antireflection coating.The plane z = L t is the top face of the antireflection coating and the plane z = −L m is the bottom face of the metal layer below the grating.The grating shape in Fig. 1(a) is an academic example.A triangular grating used to test RCWA is shown in Fig. 1(b).The layout of the paper is as follows.In Section 2, we start by describing the optical model solved in the photonic step, summarize the 2D RCWA, and define the charge-carrier generation rate that is used as the input to the DDE model solved in the electronic step.In Section 2.2 we show two examples of RCWA convergence to illustrate the advantages and drawbacks of this approach for solar cells.Section 3 is devoted to the electronic step.The DDE model is described in Section 3.1.The boundary conditions derived from local quasi-thermal equilibrium (LQTE) are discussed in Section 3.2, while the electron-hole recombination terms are presented in Section 3.3.We discuss heterojunctions in Section 3.4, and summarize a non-dimensionalized DDE model in Section 3.5.Then we proceed to describe the HDG method in Section 4, starting with the formulation of a generalized transport system in Section 4.1, followed by the discretization of 1D space (along the z axis) in Section 4.2 and implementational aspects of the convection term in Section 4.3.Next, in Section 4.4, we present the upwinding strategy needed to stabilize the DDE model, followed in Section 4.5 by the interpolation method for implementing the non-linear recombination terms.The implementation of jump conditions is presented in Section 4.6.The numerical model is completed by discussing the homotopy (or continuation) method for solving the nonlinear system in Section 4.7.A numerical test is presented in Section 5. Together, the photonic and electronic steps provide information used by the DEA optimization scheme, which is described briefly in Section 6.The paper culminates in a presentation of results for the model solar cell presented in Fig. 1(a).We end with some conclusions in Section 8.

13A note about notation: Underlined quantities represent vectors, with x, ŷ and ẑ being the unit vectors along the x-, y-, and z-axes.The ˘mark is used to denote quantities emerging from the implementation of the spatial Fourier transform [21] with respect to x.For the frequency-domain calculations carried out in the photonic step (Section 2), electromagnetic fields are taken to vary with time t harmonically as exp(−iωt), where ω is the angular frequency and i = √ −1.Air is assumed to have the same electromagnetic properties as free space or vacuum.The wavenumber in air is denoted by k 0 = ω/c 0 where c 0 is the speed of light in air, and λ 0 = 2π/k 0 is the wavelength of light in air.The permittivity and permeability of free space are denoted, respectively, by ε 0 = 8.854188 × 10 −12 F m −1 and µ 0 = 4π × 10 −7 H m −1 , and η 0 = µ 0 /ε 0 is the intrinsic impedance of free space.

Photonic Step

14In this section, first we summarize the RCWA for solving the frequency-domain Maxwell equations, and then we present some numerical results to quantify the performance of RCWA, which is the workhorse for computational investigations of optical gratings [22,23].The adequacy of this approach for solar cells has been established by comparison to other approaches [24,25,26].Oddly, the numerical convergence of this method has not been investigated before; hence, a part of this section is devoted to a numerical investigation of RCWA convergence.

RCWA Formulation

15The solar cell is taken to be illuminated from the half space z > L t by a normally incident plane wave whose electric field phasor is denoted by

16The parameters a s and a p determine the polarization state of the incident light; thus, a p = 1 and a s = 0 for p-polarized light, but a s = 1 and a p = 0 for s-polarized light.For solar-cell calculations, we set a p = a s = 1 because direct sunlight can be assumed to be unpolarized.Due to the periodicity of the solar cell in the x-direction, the optical relative permittivity ε rel (x, z, λ 0 ) is represented everywhere by the Fourier series

17where ε ( ) rel (z, λ 0 ) are Fourier coefficients and κ ( ) = 2π /L x .In a similar way, the optical relative impermittivity β rel (x, z, λ 0 ) = 1/ε rel (x, z, λ 0 ) is repesented everywhere by the Fourier series

18where β ( ) rel (z, λ 0 ) are Fourier coefficients.We can also express the x-dependences of the electric and magnetic field phasors by their Fourier series as

19where e ( ) ≡ e ( )

20x + e ( )

21z ẑ and h ( ) ≡ h ( )

22z ẑ are Fourier coefficients and normal incidence is implicit.

23For computational tractability, all four of the foregoing series are truncated to include only ∈ {−N t , ..., N t }, N t ≥ 0. The Fourier coefficients are collected in the (2N t + 1)-column vectors εrel (z, λ 0 ) = ε

24where the superscript T denotes the transpose.Furthermore, the (2N t + 1)

25is defined for convenience.Finally, the Toeplitz matrix of the Fourier coefficients {ξ ( ) } ∞ =−∞ of a periodic function ξ(x) = ξ(x ± L x ) is defined as

26. . . . . . . . . . . . . . .

27Substitution of the four Fourier series into the frequency-domain Maxwell curl equations yields two matrix ordinary differential equations [7,Sec. 2.3.4].The equation

28must be solved if a p = 0, and the equation

29if a s = 0.In these equations, 0 is the (2N t + 1) × (2N t + 1) null matrix, and Ȋ is the (2N t + 1) × (2N t + 1) identity matrix.As a corollary to the mutual independence of Eqs. ( 13) and ( 14), p-polarized light does not interact with s-polarized light and vice versa.

30We solved both Eqs. ( 13) and ( 14) because direct sunlight can be assumed to be unpolarized.Thereafter, the Fourier coefficients of the z-components of the electric and magnetic field phasors were obtained as

31The matrices M and N in Eqs. ( 13) and ( 14) encode the Fourier series provided in Eqs.(3) and (4) for ε rel and β rel .There are four choices possible for the combination of M and N , the best choice depending on the polarization state of the incident plane wave [27].Following Lalanne and Morris [5], we first define the Toeplitz matrices Ȇ(z,

32and

33Then the four possible choices are identified as follows:

34Choice 1: The most direct choice is for M to encode ε rel and N to encode ε −1 rel so that M = Ȇ and N = B. Choices 1 and 3 are identical on the one hand, and Choice 2 is the same as Choice 4 on the other, for s-polarized illumination.All four choices are distinct for p-polarized illumination.

35In order to solve Eqs. ( 13) and (14), it is usual to discretize in the z-direction by subdividing the solar cell into thin slices of infinite extent in the xy-plane [7].In each slice, ε rel is uniform in the z-direction, but it is either uniform or piecewise uniform in the x-direction.Depending on the profile of the grating, this may require piecewise-uniform approximations of ε rel and β rel .Equations ( 13) and ( 14) can then be solved exactly in each slice using a stabilized stepping algorithm [7,23] akin to Gaussian elimination without pivoting [14], so that ȇx , ȇy , hx , and hy are determined everywhere in the solar cell.Equations (15) then let us determine ȇz and hz throughout the solar cell.

36The convergence rates for the Fourier series of ε rel and β rel are limited by the discontinuities in the relative permittivity in the slices in the grating region.Additionally, approximating the interfaces of general grating profiles using stairstepping can also give low-order convergence with respect to the slice thickness.However, if the grating is in fact a superposition of a finite number of square waves, the only approximation is due to the truncation of the Fourier series.

Electron-Hole-Pair Generation Rate

37With the assumption that the absorption of every photon in any semiconductor layer excites an electronhole pair, the electron-hole-pair generation rate in the semiconductor region {|x| < L x /2, 0 < z < L z } can be calculated as

38where is the reduced Planck constant and S(λ 0 ) is the incident power spectrum.We chose S(λ 0 ) to be the standard AM1.5G spectrum [28].As S(λ 0 ) falls off rapidly at shorter free-space wavelengths, λ 0 min = 350 nm was fixed.Once the free-space wavelength becomes too large, the energy in a photon is not capable of exciting an electron sufficiently to cross the bandgap.Consequently, the upper cut off was taken to be λ 0max = 1240 nm V/E g,min , where E g,min (in V) is the minimum value of the bandgap E g in the solar cell.These choices are typical values for studies on solar cells.After assuming full quantum efficiency, i.e. each excited electron or hole is collected at the appropriate terminal, the optical short-circuit current density can be calculated as

39where q e = 1.60218 × 10 −19 C is the elementary charge.Let us note that J Opt SC provides only a rough benchmark for the device efficiency, although it is often used to assess the efficiency of solar cells [29,30,31].However, as recombination is neglected, J Opt SC is necessarily larger than the attainable short-circuit current density J SC , which is the density of current that flows when the solar cell is illuminated and no external bias is applied (i.e., when V ext = 0).We have already shown that, when the bandgap is one of the simulation parameters, optimizing Eq. ( 19) can lead to designs with high values of J Opt SC but low values of extractable electrical power [8].A better approach is to complement the photonic step by the electronic step, as accomplished in Section 3.

RCWA Convergence

40There are two sources of approximation error in the RCWA.The first is the truncation of the Fourier series to include only ∈ {−N t , ..., N t }, while the second is through the discretization of space in the z-direction whenever there is a need to approximate the relative permittivity slice by slice.As it is not possible to solve Eqs. ( 13) and ( 14) analytically, in order to investigate the convergence of RCWA, the electric field phasor E(x, z, λ 0 ) was calculated using an FEM code [24,25] and compared with the RCWA results for various values of N t , the slice thickness being fixed at a sufficiently low value.

41The FEM data were obtained using an adaptive method implemented in NGSolve [32].The adaptive algorithm uses mesh bisection and the Zienkiewicz-Zhu a-posteriori error estimator [33].The FEM calculations were carried out using 5th-order continuous finite elements.Mesh adaptivity was terminated whenever the algorithm reached 100,000 degrees of freedom.The simulated domain was sandwiched between two perfectly matched layers (PMLs).Both of the PMLs were taken to be one-wavelength thick and with a constant PML parameter of (1.5 + 2.5i) [34], the reflection coefficient of the PMLs being then ∼3 × 10 −12 .

Global Convergence of Electric Field Phasor

42In order to investigate the global convergence of the RCWA, a simple but adequate problem was chosen: reflection by the grating shown in Fig. 1(b).The region above the grating was taken to be occupied by air with relative permittivity ε rel = 1+10 −9 i, the minuscule imaginary part needed for the stability of the RCWA algorithm.The grating, made from a fictitious metallic material with relative permittivity ε rel = −22 + 0.4i, comprises triangular protrusions on a 50-nm-thick film.Each protrusion is of height 50 nm and base 250 nm.Calculations were made with λ 0 = 600 nm and L x = 500 nm.

43The triangular profile was chosen for the grating, because it is approximated by a stairstep when the piecewise-uniform approximation is used to solve Eqs. ( 13) and ( 14).In addition, the true solution has a singularity in the field at the tip of the triangle which tests the algorithm's ability to handle such behavior.

44As the only non-zero Cartesian component of E(x, z, λ 0 ) for s-polarized illumination is the y-component, a relative global error was defined as

45as a function of N t , with E y,RCW A denoting the value of E y yielded by RCWA, and E y,F EM the value yielded by FEM.In addition, for any function f (x, y),

46and where Ω ph is the entire simulation domain in the photonic step except the two PMLs.For p-polarized illumination, the relative global error was analogously defined as

47because only the y-component of E(x, z, λ 0 ) is null valued.

48Four different choices of M , N , as described after Eq. ( 17), are possible when implementing the RCWA.Accordingly, four different studies were conducted to investigate the relative global error in the electric field phasor for s-and p-polarized illuminations.Plots of e Es and e Ep vs. N t are presented in Fig. 2 for each of the four choices of M , N .For s-polarized illumination, the relative global error reduces as ∼ N −2.1 t until N t ≈ 8 and saturates thereafter in Fig. 2(a), when M = Ȇ (i.e., for Choices 1 and 3).The error saturation may be due to the limited accuracy of the FEM solution and/or due to stairstepping error.In contrast, e Es reduces as ∼ N −1 t when M = B−1 (i.e., for Choices 2 and 4).For p-polarized illumination, the relative global error decays slower than the reciprocal of N t in Fig. 2(b), when M = Ȇ.The decay is somewhat faster when M = B−1 .

49These results suggest that for calculating the electric field phasor due to s-polarized illumination, it is advantageous to choose M = Ȇ because that should give second-order convergence to the true solution.For p-polarized illumination, it is preferable to choose M = B−1 and N = Ȇ−1 , as that should give almost first-order convergence to the true solution even with stairstepping.The choice of Fourier representations for M , N thus has a profound effect on the accuracy of the RCWA [5,27].

Convergence of Electric Field Phasor in the Semiconductor Region

50Correct calculation of the electric field phasor in the semiconductor region is paramount for photovoltaic solar cells, as is clear from Eq. ( 18).This motivated the second convergence study using the device in Fig. 1(a).

51The chosen device contains a grating made from a representative metal with relative permittivity ε rel = −22 + 0.4i and has period L x = 500 nm.The grating comprises rectangular protrusions on a 100-nm-thick film.Each protrusion is of height 50 nm and base 250 nm.The grooves of the grating are entirely filled with a dielectric material with relative permittivity ε rel = 3.33 + 0.016i.Above this structure lies a 240-nmthick semiconductor region with relative permittivity ε rel = 9.5 + 1.25i, which is a representative value for a semiconductor at λ 0 = 680 nm.Above this region is a 75-nm-thick layer of a dielectric material with relative permittivity ε rel = 3.33 + 0.016i, which acts as an anti-reflection coating.The top layer is again air-like, with relative permittivity ε rel = 1 + 10 −9 i.

52For this study, we used the definition

53in Eqs. ( 20) and (22).Four different choices of M , N , as described after Eq. ( 17), were used in four different studies, whose results are presented in Fig. 3. ) for p-polarized illumination.The slower convergence is due to the strong singularities in the solution near the corners of the grating.Those singularities lead to slower convergence of the Fourier series.It should be noted that these same singularities are also observed in the adaptive FEM solution.

54Figure 3(a) contains a split in e Es between successive odd and even values of N t , when M = Ȇ and N = Ȇ−1 (Choice 3).This split is also present, although less extreme, in an earlier work [5].It is also present for p-polarized illumination but dramatically reduced, especially when M = Ȇ and N = B (Choice 1).

55Lalanne [6] has already discussed in detail the complex issues behind RCWA convergence.Our contribution is to suggest that stairstepping is not a major cause of error in RCWA, but it is necessary to examine convergence for different grating morphologies.Also, RCWA is reliably convergent for s-polarized illumination of solar cells, and provides slower convergence for p-polarized illumination.We agree with previous studies [24,25,26] that RCWA can provide the accuracy needed for photonics simulations, but our studies also show that the convergence rates can be quite low.With an appropriate choice of parameters we can achieve almost 10% error with N t = 10, which became our choice for the optimization study reported in Section 6.

Electronic Step

56Taking into account the size of the features in the solar cell, and under standard assumptions on the electron transport, such as the device being in quasi-thermal equilibrium (QTE), the transport of electrons and holes in semiconductors can be modeled using the drift-diffusion equations [1,2,35].To speed up the calculations, we neglected variations with respect to x and therefore used the 1D electron-hole-pair generation rate

Drift-Diffusion Electronic Model

57The DDE model comprises the following three differential equations holding in the semiconductor region

58In these equations, the gradients of the electron current density J n (z), hole current density J p (z), and electric potential φ(z) are related to the electron density n(z), hole density p(z), fixed charge (charged traps and doping) density N f (z), electron-hole-pair generation rate G(z), and electron-hole-pair recombination rate R(n, p; z).The zero-frequency (dc) relative permittivity is denoted by ε dc (z).The two current densities are defined as

59and

60where µ n (z) and µ p (z) are the electron mobility and hole mobility, respectively;

61is the electron quasi-Fermi level; and

62is the hole quasi-Fermi level.In the expressions for the quasi-Fermi levels, V th = k B T /q e is the thermal voltage of the electrons and holes with T as the temperature and k B = 1.380649 × 10 −23 J K −1 as the Boltzmann constant, N c (z) is the conduction-band density of states, N v (z) is the valence-band density of states, E c (z) is the conduction-band energy, and E v (z) is the valence-band energy.The bandgap is defined as

63and the intrinsic energy as

64In the Boltzmann approximation [1] the quasi-Fermi levels are assumed to lie far from the edges of the conduction and valence bands.Accordingly,

65and

66Here, the intrinsic carrier density is given by

67and the conduction-band energy is given by

68where χ(z) is the electron affinity of the semiconductor, and the (arbitrary) reference energy level E 0 is often chosen as

69Equations ( 28) and ( 29) may now be simplified to

70and

71respectively.Here,

72and

73are the built-in potentials for the electrons and holes (due to variations in the material properties), respectively.Both built-in potentials as well as the electron affinity may be discontinuous with respect to position at heterojunctions in the semiconductor region.The baseline number density N 0 is arbitrary because potentials are defined up to a constant.Equations ( 25), ( 26), ( 27), (40), and (41), have to be solved concurrently for z ∈ (0, L z ), in conjunction with a set of boundary conditions for n(z), p(z), and φ(z).We opted for the Dirichlet choice

74because it models an ideal ohmic contact [1,2].Herein, the functions n 0 (z), p 0 (z) and φ 0 (z) are the electron density, hole density and potential at LQTE, as discussed in Section 3.2, while V ext is the externally applied voltage across the terminals at the boundaries of the semiconductor region.Solution of the system of five equations enables the calculation of the current density

75flowing uniformly through the solar cell.

76The current density J depends on the choice of V ext , i.e., J ≡ J(V ext ).Repeating calculations for various values of V ext produces the JV -curve, with the maximum value of the power density

77indicating the maximum power density

78obtainable from the solar cell.This in turn gives the efficiency of the solar cell as

79where P in = 1000 W m −2 is the incident solar power density.It is the efficiency of the solar cell that we wish to optimize.

Local Quasi-Thermal Equilibrium

80If a region containing a homogeneous semiconductor is charge-free and isolated from any external influences (e.g., G ≡ 0 and V ext = 0), the distributions of electrons and holes with respect to energy tend to the Fermi distribution, with the Fermi-level lying at the intrinsic energy level, i.e., E Fn = E Fp = E F .Then, J n = J p are identically zero and the semiconductor is said to be in LQTE.This concept is used to model the ideal ohmic boundary conditions mentioned in Section 3.1.

81With n 0 (z) and p 0 (z) denoting the electron and hole densities, respectively, at LQTE, Eqs. ( 35)-( 37) can be combined to give the mass-action equation n2 (z) = n 0 (z)p 0 (z) ;

82(51) furthermore,

83as the semiconductor is charge-free.Combining Eqs.(51) and (52), we get

84and

85At LQTE, the electron and hole quasi-Fermi levels coincide and are uniform.Thus,

86and

87must be equal to each other for all υ ∈ (0, L z ) and ζ ∈ (0, L z ).Substitution of Eqs. ( 33) and ( 38) into

88Equation (57) simplifies to

89with the choice υ = 0 and ζ = z, and to

90with the choice υ = z and ζ = 0, where we have chosen φ 0 (0) = 0 without loss of generality.Subtracting Eq. (58) from Eq. ( 59), we get

91Equations ( 53), (54), and (60) give the initial functions needed to specify the boundary data identified in Eqs. ( 44)- (46).However, in view of the LQTE assumption (52), these initial functions do not satisfy the system of ODEs ( 25)-( 27).

Recombination

92Recombination of an electron and a hole can take place through several different mechanisms [1,2].The electronic step in our program accommodates three different contributions to R(n, p; z).

Radiative Recombination

93Radiative recombination occurs when an electrons and a hole recombine across the full bandgap, releasing the energy as a photon with energy equal to the bandgap.At QTE, radiative recombination is identically balanced by electrons being thermally excited across the bandgap.The (net) radiative recombination rate is given by

94where α rad (z) depends on the semiconductor material.It should be noted that R rad (z) ≡ 0 ∀z ∈ [0, L z ] at LQTE.

Shockley-Read-Hall (SRH) Recombination

95The SRH recombination contribution is due to electrons and holes recombining via an intermediate gap state.It is modeled by

96where n 1 (z) and p 1 (z) are, respectively, the electron and hole densities at the trap energy level.If this level is the intrinsic energy level E i (z), then n 1 (z) = p 1 (z) = n(z) from Eqs. (35) and (36).The functions τ n (z) and τ p (z) are material dependent.

Auger Recombination

97The Auger recombination contribution arises from a three-particle recombination pathway, occurring when an electron and a hole recombine across the bandgap, with the released energy transferred to a third charge carrier which is excited away from both band edges.This recombination rate is given by

98where the functions C n (z) and C p (z) are material dependent.All three contributions add, so that

99It can be seen that the total recombination R = 0 at LQTE irrespective of the choice of the material parameters.For all results reported in this paper, we set α rad (z) ≡ 0 and C n (z) = C p (z) ≡ 0 ∀z ∈ Ω el and only the SRH recombination was activated, in order to present illustrative results without the expenditure of significant computational time.

Heterojunctions: Continuous Quasi-Fermi Levels

100When there is a jump in either χ(z) or E g (z) or both, and thus in φ n (z) or φ p (z), then n(z) and p(z) may also have jumps.A heterojunction is formed at the discontinuity [36].A commonly used way to model this discontinuity requires the assumption of continuous quasi-Fermi levels, whereas another commonly used way requires consideration of thermionic emission at the discontinuity [37].We chose to implement the continuous quasi-Fermi level (CQFL) model, although the thermionic-emission model is also compatible with the HDG method.The CQFL model uses the limit of a continuum model to quantify the jump at a heterojunction.To understand the resulting jump conditions, let us examine a small region 0 < z ≤ δ in which the electron affinity χ(z) changes linearly by ∆χ, while N c (z) is uniform.Then, differentiating Eq. ( 42) with respect to z yields

101in this region.Furthermore, we assume that Gδ ≈ Rδ ≈ 0 in this region so that Eq. ( 25) simplifies to

102Finally, we also assume that both µ n (z) ≈ µ • n and φ(z) ≈ φ • are uniform in this region, so that Eq. ( 40) simplifies to

103after using Eq. ( 65).The solution of Eq. ( 67) is

104where C is the constant of integration.As n(z) = n L at z = 0, we get

105from Eq. (68).As n(z) = n R at z = δ, Eq. (69) yields

106In the limit of δ → 0, we get the jump condition

107from Eq. ( 70).The same analysis can be performed for the hole density p(z), which results in the jump condition

108where ∆E g is the change in the bandgap over the region with thickness δ.Equations ( 71) and (72) need to be enforced across any junction over which χ or E g jump.This is accomplished using the HDG method described in Section 4.

Dimensionless Formulation

109The equations of the DDE model are scaled in order to ensure that the internal variables are dimensionless [35], the scaling parameters being provided in Table 1.Equations ( 25) and ( 26) are thus non-dimensionalized to

110and

111respectively, and Eqs. ( 40) and ( 41) to

112and

113respectively.Electing to keep ε dc (z) ≡ ε 0 dc ∀z ∈ [0, L z ] uniform in the semiconductor region, we obtain the non-dimensionalized form of Eq. ( 27) as

114where the Poisson constant

115is dimensionless.We define the dimensionless d.c.electric field

116and transform Eq. (77) to

117which has the same form as Eqs.( 73) and (74).These three ODEs are discretized using the HDG method, as described in Section 4. Eqs. ( 73) and (75) Eqs. ( 74) and (76) Eqs. ( 79) and (80)

Scaling

118Table 2: Correspondence between the generalized transport system of Eqs. ( 81)-( 83) and Eqs. ( 73)-( 80) of the dimensionless DDE model.

Hybridizable Discontinuous Galerkin Formulation

119The hybridizable discontinuous Galerkin (HDG) method [13,34] possesses several features which are advantageous for the implementation of the DDE model for solar cells [10].The relaxation of the requirement that the solution is continuous at the boundaries of elements permits solutions where the variables have strong gradients and second derivatives.It also naturally allows discontinuities in the solution due to discontinuous material parameters, such as those which occur at heterojunctions discussed in Section 3.4.

Generalized Transport System

120To simplify the description of the numerical scheme used to solve Eqs. ( 73)-( 76), (79), and (80), it is useful to partition them into three sets, each with the form

121along the associated Dirichlet boundary conditions

122Here, Z is either given by the solution of another set or vanishes, v m is a given function of position, and f(n, p) is also given.To get each of the three sets of equations in the dimensionless DDE model provided in Section 3.5, we choose the parameters and functions as in Table 2. Henceforth, we refer to Eqs. ( 81)-( 83) as the generalized transport system.We now proceed to design a numerical scheme to discretize this system of equations.

Discretization of Electronic Domain

123The electronic domain Ω el is covered by a mesh S = {N , T } of N z + 1 nodes N and N z elements T .The element s γ = (z γ−1 , z γ ) lies between the nodes z γ−1 and z γ ,

124is the set of all nodes, and

125is the set of all elements.The generalized transport system is discretized using the space

126where P P deg is the set of polynomials of degree P deg in z (and so that V h is a space of discontinuous piecewise polynomials),

127and R + is the set of positive real numbers.Although a different value of P deg may be chosen for each element s γ , for simplicity of notation we choose the same value of P deg for all elements.We seek the numerical solutions

128where Ĵh and mh are the vectors of numerical approximations to J and m at the nodes in N .Multiplying Eq. ( 81) by a test function ψ ∈ V h and Eq. ( 82) by a test function η ∈ V h , and then integrating over Ω el , we obtain

129where the notation

130For functions η ∈ V h , ψ ∈ V h , and η ∈ W h , we define

131via integration by parts, with

132and

133Then, Eq. ( 88) can be written as

134and Eq. ( 89) as

135To complete the discretization, we need to enforce approximate continuity of the discrete flux.Therefore, at each node we define the discrete flux as

136where ζ(z γ ) = lim

137at each interior node.Finally, the boundary conditions are enforced by requiring m = m 0 (98) at the ends of Ω.By defining the jump operator as

138the problem becomes that of finding a discrete solution

139for all (ψ, η) ∈ V h × V h , and with m = m 0 for z ∈ {0, L z }.Obviously, there are 2N z (P deg + 1) degrees of freedom for the functions J and m, and N z − 1 degrees for m.In turn, the test functions ψ and η give 2N z (P deg + 1) equations from Eqs. (100) and (101, while Eqs.(102) give a further N z − 1 equations.For a linear problem of this type, existence and uniqueness of the solution have been proven and the error estimates have been derived, for example, by Fu et al. [13]; see also Cockburn et al. [12].The nonlinear problem defined here remains to be analyzed.

140To help with conditioning and also to provide a useful choice of discretization points for the nonlinear problem, we choose the interpolation points for V h on each element to be the P deg + 1 Gauss-Lobatto points [38].We now replace functions J h , m h , Z h , n h , and p h by their finite-element approximations with the form

141where ψ ∈ V h are piecewise polynomial finite-element basis functions that are each compactly supported on one of the elements s γ , and ζ ∈ R are constants to be determined.Upon substitution of these into Eqs.( 100)-( 102), and choosing the test functions η and ψ to also be the finite-element basis functions ψ j ∈ V h to be piecewise polynomials that are each compactly supported on element s γ , we obtain the HDG equations

142mγ = m 0 at the end points of Ω el .,

143for 1 ≤ j ≤ N z (P deg +1), 1 ≤ k ≤ N z (P deg +1), and 1 ≤ ≤ N z (P deg +1).In Eqs. ( 104)-( 107) and henceforth, we use the Einstein summation convention (i.e., summation is implied over any duplicated index), column vectors denoted as v comprise elements v k , and matrices denoted as M comprise elements M k, .

144The full set of drift-diffusion equations ( 73)-( 80) along with the boundary conditions ( 44)-( 46) is now discretized by three copies of the above equations with function and parameter choices from Table 2.There are two usual ways to solve the resulting nonlinear system: Gummel iteration [35] and Newton's method [39].We found that straightforward Gummel iteration did not converge reliably for the parameter values in our simulations.So we elected to use Newton's method with a scheme of the homotopy type [40] to help provide a good initial guess.

Nonlinear Convection

145A practical difficulty with implementing the scheme arises when dealing with the nonlinear term

146The integral

147on the right side of Eq. ( 108) is an element of a [N z (P deg + 1)] 3 tensor denoted by Ψ0,0,1 , where the 0, 0, 1 superscript specifies that ψ k is differentiated once.The non-linear term can then be seen as the product

148where the indices , j, and k select the elements of the tensor.Although manipulation of tensors with rank greater than 2 is not natively supported in Matlab, the tensor Ψ0,0,1 is very sparse as it is block diagonal; hence, the calculation speed can be increased by storing it as a non-square matrix.

149As each of the finite-element basis functions ψ j is compactly supported on just one interval, a local tensor

150with dimensions [(P deg + 1)] 3 can be formed.This local tensor, which is not necessarily sparse, can be rewritten as a [P deg + 1] × [(P deg + 1) 2 ] rectangular matrix Ψ0,0,1 γ .Finally, a global matrix Ψ0,0,1 with dimension N z (P deg + 1) × (N z (P deg + 1)) 2 to represent Ψ0,0,1 is formed by repeating the local matrix as a block diagonal.

151In order to calculate the term ψ m , the vector of coefficients m is reshaped into a [N z (P deg + 1)] 2 × N z (P deg + 1) matrix M : the block diagonal is formed from P deg + 1 blocks of m , with each block repeated N z times.The required solution is then given by

152While this is more convoluted than simply performing the tensor multiplication, this matrix multiplication method is comparatively very fast because Ψ0,0,1 is independent of the solution (i.e., constant) and so can be precomputed.

Upwinding

153One of the reasons for choosing the HDG method is to include upwinding in a natural way through the choice of hybridization functions τ m [13].Upwinding was included in our simulations as follows.

154First, the dimensionless effective average electron speed u n (z) = −J n (z)/n(z) and the effective average hole speed u p (z) = J p (z)/p(z) were formulated.Next, Eqs. ( 75) and (76) were used to obtain

155and

156respectively.The terms containing ln[...] are identifiable as the diffusion terms, with the remaining terms modeling drift in the effective electric field.In drift-dominated regions of the solar cell, which often constitute most of Ω el , we therefore get

157and

158where

159is the dimensionless effective electric field acting on electrons and

160is the dimensionless effective electric field acting on holes.These two fields arise from material nonhomogeneity.

161Information in this drift-dominated system travels in the directions of the electron and hole velocities.At each node, we therefore want to take values of n(z) and p(z) from the inflow side and pass them to the outflow side.As µ n (z) > 0 and µ p (z) > 0, the respective directions entirely depend on the signs of E dc (z) + E n (z) and E dc (z) + E p (z).While the hybridization function τ m (z) is defined as a function of position, only the values at the ends of the elements contribute to the model.Consequently, we create τ (z) as a piecewise linear function, defined by the limiting values at each side of each node.Two possible limiting values τ1 and τ2 are chosen such that τ1 τ2 .Then, to ensure that the correct information flow is achieved,

162Our choices of τ1 and τ2 are given in Table 5.

Recombination

163The recombination term R(n, p; z) is a nonlinear function of n(z) and p(z).Consequently, care needs to be taken on how to incorporate this term into the HDG method.For example, if radiative recombination given by Eq. ( 61) is incorporated in the HDG method, we get

164The first term on the right side is nonlinear in the basis function, giving a third-rank tensor with indices j, k and .Note that α rad and n are also projected onto V h but, because both are material properties (and are therefore independent of the solution), they do not increase the rank of the tensor produced.The term can thus be implemented in a similar manner to the nonlinear drift term discussed in Section 4.3.

165The SRH recombination is given by Eq. ( 62).If we test this term against the standard polynomial basis ψ j and integrate over Ω el , we cannot write the result as a tensor, because the SRH term is not a polynomial in the basis functions.Consequently, we integrate using quadrature.For this, we chose Gauss-Lobatto quadrature2 to maximize the order of the polynomials that can be exactly integrated, while maintaining use of the values at the nodes.In particular, for a general function f , the use of Gauss-Lobatto quadrature to integrate over the element s γ gives

166where {w j } P deg +1 j=1

167are the Gauss-Lobatto quadrature weights for the element s γ and I deg is the degree of integration.A computationally quick way is to use I deg = P deg + 1 quadrature points per element [41,42] as this does not require interpolation of the solution.

168The Auger recombination is given by Eq. (63).As with the SRH term, we cannot write this as a tensor.Either mass-lumping [41] or quadrature [38] must then be used to calculate the integrals formed when the Auger term is incorporated into the HDG method.

Heterojunctions

169To implement the jump conditions (71) or (72), we ensure that a node falls at each discontinuity in the material parameters.Every jump in n(z) can be taken into account by redefining the jump operator as

170and the difference operator as

171where ∆χ γ is the jump in electron affinity χ across node γ and ζ is a place-holder function.This is equivalent to defining to values of nγ at each node, separated in value by the necessary jump induced by the discontinuous electron affinity.Jumps in p(z) can be handled similarly.

Homotopy

172In order to aid convergence of the highly nonlinear discrete system, homotopy is employed in our simulation.is chosen for δ homo , with ε homo > 1 as the homotopy damping relaxation rate.Thus, the iteration

173is employed, full convergence being deemed to occur in the iteration in which δ homo becomes equal to unity.

Numerical Test of HDG Method

174As a model test problem to show the behavior of the HDG method (but not to present a solar-cell design), the solar cell was taken to comprise a p-i-n junction made from copper-indium-gallium-(di)selenide (CIGS), as shown in Fig. 1(a).The electrical parameters of CIGS [43] are given in Table 3.For this test problem, the generation rate was taken to be uniform, with J Opt SC = 10 mA cm −2 ; thus RCWA results were not used.The p-type layer of thickness L p = 20 nm was taken to be doped with acceptor atoms with concentration specified via N f = −10 17 cm −3 , and the n-type layer of thickness L n = 20 nm with donor atoms with concentration specified via N f = 10 17 cm −3 .The undoped i-type layer was taken to be L i = 200 nm thick; thus, L z = L p + L i + L n = 240 nm.All three layers were taken to be homogeneous.Neither the radiative nor the Auger recombination mechanism was activated for the test problem.

175Chiefly, three parameters affect the accuracy of the HDG method: the degree of the interpolating polynomials P deg , the length of each element d z , and the degree of quadrature integration I deg .The convergence of the method with respect to each of these parameters was investigated.The parameters used for the convergence study are given in Table 4.

176The convergences of the short-circuit current density J SC , the open-circuit voltage V OC , the maximum power P max , and the fill factor F F with respect to P deg , d z , and I deg , were investigated.Figure 4 shows the error in each of four electrical characteristics relative to the value for P deg = 9 when d z = 2 nm and I deg = 10.As P deg increases from 2, each of the four errors is seen to decrease exponentially, with a rate approximately proportional to exp(−3P deg ).This reduction in error is seen to saturate at around P deg = 5.

177Figure 5 shows the error in each of four electrical characteristics relative to the value for d z = 1 nm when P deg = 5 and I deg = 10.As d z decreases from 20 nm, all four errors decrease as O(d 4 z ) which is suboptimal.Finally, Fig. 6 shows the error in each of four electrical characteristics relative to the value for I deg = 12 when P deg = 5 and d z = 2 nm.As I deg increases, each error is seen to decrease exponentially, with a rate approximately proportional to exp(−4I deg ).This reduction in error is seen to saturate at around I deg = 5.

178Thus, Figs.4-6 show that the short-circuit current density J SC , the open-circuit voltage V OC , the maximum power P max , and the fill factor F F , all converge at approximately the same rate with respect to P deg , d z , and I deg .The order of convergence is not optimal, as might be expected since we used polynomials of the same degree in all elements.

Differential Evolution Algorithm for Optimization

179The differential evolution algorithm [44] is a gradient-free optimization algorithm suited for maximizing an objective function over a high-dimensional parameter space.Given the objective function C : S → R, where 4: Baseline parameter settings in Sec. 5 for the HDG simulation of the model CIGS p-i-n solar cell in Fig. 1(a).Note that N z = N zp + N zi + N zn .The state vector is the vector of all solution values in the electronic step.S ⊂ R Ñ is the set of all possible choices of the Ñ input parameters, the DEA starts by selecting N P points to form an initial population P 0 ⊂ S. The objective function C is evaluated at each of these points, with the results used by DEA in a mutation-recombination-selection process to build a new population P 1 ⊂ S. The objective function is then evaluated at each point of this new population to develop a new population P 2 ⊂ S in the second mutation-recombination-selection step.This process continues iteratively until the objective function appears to stabilize.The efficiency η defined in Eq. ( 50) is the appropriate objective function for designing solar cells.Following suggestions in the DEA documentation [44], we fix the crossover fraction as C R = 0.6.The step size F used in the mutation steps is set to be randomly distributed in [0.5, 1] uniformly.Allowing F to vary randomly with each iteration has been termed dither, and its use has been shown to improve convergence for many problems [4].

Numerical Test of DEA

180As a model test problem, solar cell was taken to comprise a p-i-n junction made from CIGS, as shown in Fig. 1(a).The electrical parameters of CIGS [43] are given in Table 3.The p-type layer of thickness L p = 20 nm was taken to be doped with acceptor atoms with concentration specified via N f = −10 17 cm −3 , and the n-type layer of thickness L n = 20 nm with donor atoms with concentration specified via N f = 10 17 cm −3 .The thickness L i of the undoped i-type layer was taken as a variable for optimization.All three layers were taken to be homogeneous, with bandgaps E g,p , E g,n , and E g,i taken to be variables for optimization.Neither the radiative nor the Auger recombination mechanism was activated for the test problem.

181The antireflection coating in Fig. 1(a) was ignored.We fixed L m = 150 nm.The period L x was kept variable.The height L g and base ζ g L x , ζ g ∈ (0, 1), of the metallic protuberance in each period were also kept variable.The Ñ = 7 parameters chosen to be optimized in our test problem thus are: L x , L g , ζ g , L i , E g,p , E g,n , and E g,i .

182Both the photonic and the electronic steps were implemented.The population number was set as N P = 100.The remaining parameters used for the optimization algorithm were as described in the previous sections, together with values given in Table 5.These values were chosen to maintain reasonable accuracy, aid convergence for a wide range of solar cell designs, and to allow rapid computation of the efficiency at each step of DEA.These choices resulted in very quick evaluation of η at a particular choice of the parameter values in roughly 6 min, with four evaluations running concurrently in MATLAB on a 20-processor (Intel Xeon Gold 61382GHz) Linux (Ubuntu 17.10) computer.The actual time per parameter set depends on the HDG solver (being longer if more homotopy steps are needed).

183Figure 7 summarizes the progression of the DEA towards an optimal result.Each of panels (a)-(g) in this figure is a graph of the efficiency η as a function of one of the parameters in the optimization.Thus, each point corresponds to a 7-dimensional vector of parameter values used by DEA.The optimal efficiency found is marked by a large red disk.The remaining panel, Fig. 7(h), shows the progress of optimization.In particular it shows the efficiency as a function of DEA step.The optimal values of the seven parameters in this study are given in Table 6 which result in η = 15.7%.

Concluding Remarks

184We have presented details of a design tool for optimizing the efficiency of thin-film photovoltaic solar cells.The solar cell can have multiple semiconductor layers in addition to dielectric layers serving as antireflection coatings, passivation layers, and buffer layers.The solar cell is backed by a metallic grating which is periodic along a fixed direction.

185The heart of the design tool is a coupled optoelectronic simulation.The photonic step of the simulation delivers the 2D variation of the electron-hole-pair generation rate inside the semiconductor layers of the solar cell.After averaging along the direction of the periodicity of the grating, the electron-hole-pair generation rate becomes the input to the electronic step of the simulation.The chief output of the electronic step is the efficiency of the solar cell.The design tool uses the differential evolution algorithm to determine the dimensions and bandgaps of the semiconductor layers to maximize the efficiency of the solar cell.1.618 V Table 6: Parameters varied in the optimal design study described in Sec. 6.The optimal value refers to the value at the end of the DEA computation.

186The design tool can be augmented to incorporate a biperiodic metallic grating at the cost of increased computation time [8].Whether biperiodicity should be incorporated will depend on the consequent augmentation of the efficiency of the solar cell, and is therefore a matter of further research.Given that the period of the grating is in the 400-to-1000 nm range in order to invoke guided-wave phenomena for increased photon trapping [8,9,45,46,47,48] but the electronic step is electrostatic in character, the averaging of the electron-hole-pair generation rate delivered by the photonic step along the periodicity directions of the grating is appropriate; elimination of that averaging will significantly increase computational time without significant gain in the electronic step.

187We have begun to apply the design tool for diverse types of thin-film photovoltaic solar cells and will report our results in due course of time.Band gap (i-layer) (eV) Duty cycle grating g (%)

Figure 1 :

188Figure 1: (a) An academic model of a metal-backed p-i-n solar cell used as an example throughout this paper.The dimensions shown are simply for illustration.(b) A triangular metal grating in air used to test RCWA (of course, this is not a solar cell).Figures are not to scale.

Choice 2 :Choice 3 : 1 . 4 :

189We can write ε rel = 1/β rel and arrive at the choice M = B−1 and N = B.In contrast to Choice 2, we can write β rel = 1/ε rel to choose M = Ȇ and N = Ȇ−Choice The final choice is M = B−1 and N = Ȇ−1 , in direct contrast to Choice 1.

Figure 2 :

190Figure 2: Global relative errors (a) e Es and (b) e Ep vs. N t for the simple problem depicted in Fig. 1(b).Choice 1: M = B−1 and N = Ȇ−1 ; Choice 2: M = B−1 and N = B; Choice 3: M = Ȇ and N = Ȇ−1 ; Choice 4: M = Ȇ and N = B. A straight line shows the empirical order of convergence.

Figure 3 :

191Figure 3: Relative errors (a) e Es and (b) e Ep vs. N t in the semiconductor region of the solar cell depicted in Fig. 1(a).Choice 1: M = B−1 and N = Ȇ−1 ; Choice 2: M = B−1 and N = B; Choice 3: M = Ȇ and N = Ȇ−1 ; Choice 4: M = Ȇ and N = B. A straight line shows the empirical order of convergence.

η) γ + c 3

192Nz γ=1

193and τ m (z γ ) ≥ 0 is a hybridization (or penalty) function to be chosen.Continuity of the flux requires

Figure 4 :

194Figure 4: Relative errors in P max , J SC , V OC , and F F against P deg ∈ [2, 8], when d z = 2 nm and I deg = 10.

Figure 5 :

195Figure 5: Relative errors in P max , J SC , V OC , and F F against d z ∈ [1, 20] nm, when P deg = 5 and I deg = 10.

Figure 6 :

196Figure 6: Relative errors in P max , J SC , V OC , and F F against I deg ∈ [1, 11], when P deg = 5 and d z = 2 nm.

Figure 7 :

197Figure 7: Projections of the results from DEA optimization study of Sec. 7 onto the plane containing η and (a) L x , (b) L g , (c) ζ g , (d) L i , (e) E g,p , (f) E g,i , (g) E g,n , and (h) DEA iteration number.

Table 1 :

198Table of scaling parameters and applicable variables.

199The fixed charge density N f , recombination rate R(n, p; z), and bandgap non-homogeneity, i.e.E g (z) − E g,av where E g,av is the mean bandgap, are all multiplied by a constant δ homo .The simulation is started with δ

Table 3 :

200Electrical parameters of CIGS.

Table 5 :

201Baseline parameter settings for DEA optimization in Sec.7.These are laxer than those used in Sec. 5 as rapid computation is necessary.Other settings are the same as in Table4.

참고문헌 51건

  1. Discretization of Semiconductor Device Problems (I) Handbook of numerical analysis · Elsevier BV · 2005 10.1016/s1570-8659(04)13004-4
  2. Solar Cell Device Physics 2010 10.1002/9780470636886.ch4
  3. <i>Analysis of Numerical Methods</i> Physics Today · AIP Publishing · 1967 10.1063/1.3034415
  4. Differential Evolution – A Simple and Efficient Heuristic for global Optimization over Continuous Spaces Journal of Global Optimization · Springer Science+Business Media · 1997 10.1023/a:1008202821328
  5. The physics of solar cells 2003
  6. Solar Cell Device Physics Elsevier eBooks · Elsevier BV · 2010 10.1016/c2009-0-19749-0
  7. Introduction to Fourier optics 1968
  8. Convergence performance of the coupled-wave and the differential methods for thin gratings Journal of the Optical Society of America A · Optica Publishing Group · 1997 10.1364/josaa.14.001583
  9. Unified Hybridization of Discontinuous Galerkin, Mixed, and Continuous Galerkin Methods for Second Order Elliptic Problems SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2009 10.1137/070706616
  10. Gaussian quadrature formulas Prentice Hall eBooks · Prentice Hall · 1966
  11. Stable implementation of the rigorous coupled-wave analysis for surface-relief gratings: enhanced transmittance matrix approach Journal of the Optical Society of America A · Optica Publishing Group · 1995 10.1364/josaa.12.001077
  12. An Adaptive Finite Element Method with Perfectly Matched Absorbing Layers for the Wave Scattering by Periodic Structures SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2003 10.1137/s0036142902400901
  13. The effect of interpolating the coefficients in nonlinear parabolic Galerkin procedures Mathematics of Computation · American Mathematical Society · 1975 10.1090/s0025-5718-1975-0502033-7
  14. Use of Fourier series in the analysis of discontinuous periodic structures Journal of the Optical Society of America A · Optica Publishing Group · 1996 10.1364/josaa.13.001870
  15. Comparison of rigorous coupled-wave approach and finite element method for photovoltaic devices with periodically corrugated metallic backreflector Journal of the Optical Society of America A · Optica Publishing Group · 2014 10.1364/josaa.31.002275
  16. Wavelength-selective absorption enhancement in thin-film solar cells Applied Physics Letters · American Institute of Physics · 1983 10.1063/1.94432
  17. Light trapping in thin-film silicon solar cells with submicron surface texture Optics Express · Optica Publishing Group · 2009 10.1364/oe.17.023058
  18. Numerical modeling of abrupt heterojunctions using a thermionic-field emission boundary condition Solid-State Electronics · Elsevier BV · 1993 10.1016/0038-1101(93)90083-3
  19. Analysis of the Zienkiewicz–Zhu <i>a‐posteriori</i> error estimator in the finite element method International Journal for Numerical Methods in Engineering · Wiley · 1989 10.1002/nme.1620280912
  20. Submicrometer gratings for solar energy applications Applied Optics · Optica Publishing Group · 1995 10.1364/ao.34.002476
  21. Highly improved convergence of the coupled-wave method for TM polarization Journal of the Optical Society of America A · Optica Publishing Group · 1996 10.1364/josaa.13.000779
  22. Optimizing Ga-profiles for highly efficient Cu(In, Ga)Se<sub>2</sub>thin film solar cells in simple and complex defect models Journal of Physics D Applied Physics · Institute of Physics · 2014 10.1088/0022-3727/47/48/485104
  23. Optimization of the absorption efficiency of an amorphous-silicon thin-film tandem solar cell backed by a metallic surface-relief grating Applied Optics · Optica Publishing Group · 2013 10.1364/ao.52.000966
  24. &lt;title&gt;Harnessing Surface Plasmons For Solar Energy Conversion&lt;/title&gt; Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 1983 10.1117/12.935723
  25. Differential Evolution: A Survey of the State-of-the-Art IEEE Transactions on Evolutionary Computation · Institute of Electrical and Electronics Engineers · 2010 10.1109/tevc.2010.2059031
  26. Light management through guided-mode resonances in thin-film silicon solar cells Journal of Nanophotonics · SPIE · 2014 10.1117/1.jnp.8.083995
  27. Adequacy of the rigorous coupled-wave approach for thin-film silicon solar cells with periodically corrugated metallic backreflectors: spectral analysis Journal of the Optical Society of America A · Optica Publishing Group · 2015 10.1364/josaa.32.001222
  28. Finite Element and Discontinuous Galerkin Methods for Transient Wave Equations Scientific computation · Springer Nature · 2016 10.1007/978-94-017-7761-2
  29. Optoelectronics Modelling of Thin Film Solar Cells Springer eBooks · Springer Nature · 2016 10.1007/978-3-319-27055-5_11
  30. Optical Modeling and Simulation of Thin-Film Photovoltaic Devices 2013 10.1201/b14551
  31. Analysis of Numerical Methods Mathematics of Computation · American Mathematical Society · 1967 10.2307/2003280
  32. Enhanced efficiency of Schottky-barrier solar cell with periodically nonhomogeneous indium gallium nitride layer Journal of Photonics for Energy · SPIE · 2017 10.1117/1.jpe.7.014502
  33. Computer methods in engineering Computer-Aided Design · Elsevier BV · 1981 10.1016/0010-4485(81)90145-7
  34. Absorption and transmission of light in III–V nanowire arrays for tandem solar cell applications Nanotechnology · IOP Publishing · 2017 10.1088/1361-6528/aa6aee
  35. Solcore: a multi-scale, Python-based library for modelling solar cells and semiconductor materials Journal of Computational Electronics · Springer Science+Business Media · 2018 10.1007/s10825-018-1171-3
  36. Performance analysis of rigorous coupled-wave analysis and its integration in a coupled modeling approach for optical simulation of complete heterojunction silicon solar cells Beilstein Journal of Nanotechnology · Beilstein Institute for the Advancement of Chemical Sciences · 2018 10.3762/bjnano.9.216
  37. Efficiency enhancement of ultrathin CIGS solar cells by optimal bandgap grading: erratum Applied Optics · Optica Publishing Group · 2020 10.1364/ao.389988
  38. A drift-diffusion-reaction model for excitonic photovoltaic bilayers: Photovoltaic bilayers: Asymptotic analysis and a 2D hdg finite element scheme King Abdullah University of Science and Technology Repository (King Abdullah University of Science and Technology) · King Abdullah University of Science and Technology · 2015 10.1142/s0218202512500625
  39. An analysis of HDG methods for convection-dominated diffusion problems ESAIM Mathematical Modelling and Numerical Analysis · EDP Sciences · 2014 10.1051/m2an/2014032
  40. Multiscale modeling of solar cells with interface phenomena Journal of Coupled Systems and Multiscale Dynamics · American Scientific Publishers · 2013 10.1166/jcsmd.2013.1013
  41. Efficiency enhancement of ultrathin CIGS solar cells by optimal bandgap grading Applied Optics · Optica Publishing Group · 2019 10.1364/ao.58.006067
  42. Numerical optimization Cambridge University Press eBooks · Cambridge University Press · 2021 10.1017/9781108993456.011
  43. Optimization of nonhomogeneous indium-gallium-nitride Schottky-barrier thin-film solar cells Journal of Photonics for Energy · SPIE · 2018 10.1117/1.jpe.8.034501
  44. Optimization approach for optical absorption in three-dimensional structures including solar cells Optical Engineering · SPIE · 2018 10.1117/1.oe.57.5.057101
  45. On optical-absorption peaks in a nonhomogeneous thin-film solar cell with a two-dimensional periodically corrugated metallic backreflector Journal of Nanophotonics · SPIE · 2018 10.1117/1.jnp.12.016017
  46. Finite Element Methods and Their Applications Scientific computation · Springer Nature · 2005 10.1007/3-540-28078-2
  47. Computer methods for engineering Allyn & Bacon, Inc. eBooks · Allyn & Bacon, Inc. · 1988
  48. Electromagnetic Surface Waves: A Modern Perspective 2013
  49. Nonlinear Approaches in Engineering Applications Springer eBooks · Springer Nature · 2016 10.1007/978-3-319-27055-5
  50. Numerical Optimization 2006 10.1007/978-0-387-40065-5
  51. Selected papers on diffraction gratings SPIE Optical Engineering Press eBooks · 1993