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

PyCDT: A Python toolkit for modeling point defects in semiconductors and insulators

관련 엔지니어링 플라스틱 · (23) 컴파운드

기본 정보

저자
  1. Danny Broberg — Department of Materials Science and Engineering, University of California, Berkeley, CA 94720, USA|||Materials Sciences Division, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA
  2. Bharat Medasani — Computational Research Division, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA|||Physical and Computational Sciences Directorate, Pacific Northwest National Laboratory, Richland, WA 99354, USA
  3. Nils Zimmermann — Computational Research Division, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA
  4. Guodong Yu — Institute of Condensed Matter and Nanosciences (IMCN), Université catholique de Louvain, 1348 Louvain-la-Neuve, Belgium
  5. Andrew Canning — Computational Research Division, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA
  6. Maciej Harańczyk — Computational Research Division, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA
  7. Mark Asta — Department of Materials Science and Engineering, University of California, Berkeley, CA 94720, USA|||Materials Sciences Division, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA
  8. Geoffroy Hautier — Institute of Condensed Matter and Nanosciences (IMCN), Université catholique de Louvain, 1348 Louvain-la-Neuve, Belgium
DOI
10.1016/j.cpc.2018.01.004
저널
Computer Physics Communications
발행년도
2018
발행기관
Elsevier BV
피인용수
177
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.cpc.2018.01.004
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W2555120151

평가 내용

관련도
관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '엔지니어링 플라스틱 > 컴파운드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Point defects have a strong impact on the performance of semiconductor and insulator materials used in technological applications, spanning microelectronics to energy conversion and storage. The nature of the dominant defect types, how they vary with processing conditions, and their impact on materials properties are central aspects that determine the performance of a material in a certain application. This information is, however, difficult to access directly from experimental measurements. Consequently, computational methods, based on electronic density functional theory (DFT), have found widespread use in the calculation of point-defect properties. Here we have developed the Python Charged Defect Toolkit (PyCDT) to expedite the setup and post-processing of defect calculations with widely used DFT software. PyCDT has a user-friendly command-line interface and provides a direct interface with the Materials Project database. This allows for setting up many charged defect calculations for any material of interest, as well as post-processing and applying state-of-the-art electrostatic correction terms. Our paper serves as a documentation for PyCDT, and demonstrates its use in an application to the well-studied GaAs compound semiconductor. As a result, we anticipate that the PyCDT code will be useful as a framework for undertaking readily reproducible calculations of charged point-defect properties, and that it will provide a foundation for automated, high-throughput calculations.

본문 95,477자

본문 펼치기
## PyCDT: A Python toolkit for modeling point defects in semiconductors and insulators Danny Broberg <sup>a,1,∗</sup>, Bharat Medasani <sup>b,c,1,∗</sup>, Nils Zimmermann <sup>b,1,∗</sup>, Andrew Canning <sup>b</sup>, Maciej Haranczyk <sup>b</sup>, Mark Asta <sup>a</sup>, Geoffroy Hautier <sup>d,∗</sup> _aDepartment of Materials Science and Engineering, University of California, Berkeley, CA 94720, USA_ _bComputational Research Division, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, USA_ _cPhysical and Computational Sciences Directorate, Pacific Northwest National Laboratory, Richland, WA 99354, USA_ _dInstitute of Condensed Matter and Nanosciences (IMCN), Universit´e catholique de Louvain, 1348 Louvain-la-Neuve, Belgium_ Abstract Point defects have a strong impact on the performance of semiconductor and insulator materials used in technological applications, spanning microelectronics to energy conversion and storage. The nature of the dominant defect types, how they vary with processing conditions, and their impact on materials properties are central aspects that determine the performance of a material in a certain application. This information is, however, difficult to access directly from experimental measurements. Consequently, computational methods, based on electronic density functional theory (DFT), have found widespread use in the calculation of point-defect properties. Here we have developed the Python Charged Defect Toolkit (PyCDT) to expedite the setup and post-processing of defect calculations with widely used DFT software. PyCDT has a user-friendly command-line interface and provides a direct interface with the Materials Project database. This allows for setting up many charged defect calculations for any material of interest, as well as post-processing and applying state-of-the-art electrostatic correction terms. Our paper serves as a documentation for PyCDT, and demonstrates its use in an application to the well-studied GaAs compound semiconductor. We anticipate that the PyCDT code will be useful as a framework for undertaking readily reproducible calculations of charged point-defect properties, and that it will provide a foundation for automated, high-throughput calculations. _Keywords:_ Point Defects, Charged Defects, Semiconductors, Insulators, Density Functional Theory, Python PROGRAM SUMMARY _Program title:_ PyCDT _Licensing Provisions:_ MIT License. _Program obtainable from:_ _https:_ // _bitbucket.org_ / _mbkumar_ / _pycdt_ _Distribution format:_ Git repository _Programming language:_ Python _Computer:_ Any computer with a Python interpreter; _RAM:_ Problem dependent _External routines_ / _libraries:_ NumPy [1], matplotlib [2], and Pymatgen [3], _Nature_ _of_ _problem:_ Computing the formation energies and stable point defects with finite size supercell error corrections for charged defects in semiconductors and insulators _Solution method:_ Automated setup, and parsing of defect calculations, combined with local use of finite size supercell corrections. All combined into a code with a standard user-friendly command line interface that leverage a core set of tools with a wide range of applicability ∗Corresponding authors: D.Broberg (dbroberg@berkeley.edu), B. Medasani (bharat.medasani@pnnl.gov), N. Zimmermann (nerz@lbl.gov) and G. Hautier (geoffroy.hautier@uclouvain.be). 1These authors contributed equally to this work. _Preprint submitted to Elsevier_ _June 8, 2017_ _Running time:_ Problem dependent _Additional comments:_ This article describes version 1.0.0. 1. Introduction Point defects in semiconductors and insulators govern a range of mechanical, transport, electronic, and optoelectronic properties [4, 5, 6, 7, 8]. Due to the fact that the properties of these defects are difficult to characterize fully from experiment [8, 9], computational tools have been widely applied. Many applications such as lanthanide-doped scintillator materials [10, 11], transparent conducting oxide materials [12, 13, 14], photovoltaic materials [15, 16], and new thermoelectric materials [17, 18] have benefited from leveraging theory for calculating point defect properties in next generation technologies. For this reason, calculations using electronic density functional theory (DFT) have arisen as a reliable route to explore the dopability of materials at the atomic scale [9, 19, 20, 21]. However, two sources of error in the associated point defect calculations limit the application of charged defect DFT efforts in a high-throughput framework. First, semi-local exchange-correlation approximations (e.g., generalized gradient approximation (GGA)) can severely underestimate the band gap so that usage of post DFT methods becomes pivotal (e.g., GW [22, 23, 24] and GGA+U methods [25, 26], and hybrid functionals [27]). Second, applying periodic boundary conditions with finite sized defect supercells to model point defects makes a defect interact with its own images [9, 28], thus, causing departure from the key assumption made in the dilute limit formation energy formalism [9, 28]. In the case of charged point defects, the finite sized supercell assumption also introduces the need for correcting the electrostatic potential [9, 20]. Typically, the strongest defect-defect interaction is the Coulomb interaction between charged point defects. Based on well-known scaling laws, these interactions were first treated with computationally costly supercell scaling methods, which require multiple calculations for each defect [28]. A faster route to computing defect formation energies became available with the development of _a posteriori_ correctional techniques. While the _a posteriori_ corrections allow for fewer calculations to be performed, their usage requires experience in addressing issues arising from delocalization of the defect wavefunction [20]. Furthermore, the calculations are often resource demanding and tedious because of the large number of pre- and post-processing steps involved. To address these problems we have developed the Python Charged Defects Toolkit (PyCDT), which enables expanded applications in the context of materials discovery and design. Our python-based tools automate the setup and analysis of DFT calculations of isolated intrinsic and extrinsic point defects (vacancies, antisites, substitutions, and interstitials) in semiconductors and insulators. While other efforts have recently been made available with similar objectives [29, 30, 31], PyCDT is unique in its direct queries to the Materials Project [32] database (expediting chemical potential and stability analysis for Perdew–Burke–Ernzerhof (PBE) GGA calculations) [33]. A central objective of defects modeling in non-metallic systems is determining the relative stability of different defect charge states. PyCDT therefore implements the defect formation energy formalism reviewed in Sections 2.1, 2.2, 2.3 and 2.4. To minimize the errors in defect formation energies arising from the periodic boundary conditions, PyCDT supports the commonly used correction scheme due to Freysoldt et al. [34] and its extension to anisotropic systems by Kumagai and Oba [35] (Section 2.4). Our tools also include charge-state assignment procedures developed on the basis of extensive literature data (Section 2.5) and an effective interstitial-finding algorithm [36] (Section 2.6). Furthermore, PyCDT provides a user-friendly command-line interface that provides ready access to all tools. We demonstrate the setup and analysis of the defect calculations from the command line in Section 3 using gallium arsenide (GaAs) as an example system and by employing the widely-used Vienna Ab initio Simulation Package (VASP) [37, 38] as a backend DFT software. In Section 4, we validate the finite-size charge correction schemes implemented and verify the results obtained for GaAs. We emphasize that our approaches and implementations are entirely general, thus, seamlessly facilitating extensions to other DFT packages. 2. Background and Methods In general, point defects can be divided into two categories: intrinsic and extrinsic [8]. Intrinsic (or native [8, 9]) point defects (Figure 1: top) involve only chemical species that are part of the perfect bulk material (e.g., Si in silicon). 2 For elemental materials, there are two basic intrinsic defect types: vacancies (e.g., vacSi, denoting a vacancy on Si site) and self-interstitials (e.g., Si _i_ ). For compounds (e.g., GaAs), there is an additional defect type: antisites (e.g., AsGa). Because intrinsic point defects are equilibrium defects due to configurational entropy, they can be well described and their occurrence understood in the framework of equilibrium thermodynamics (formation energies, _E_ <sup>f</sup>, used to predict equilibrium concentrations, _c_ ). Vacancy <u>Intrinsic</u> interstitialcy Antisite Substitution <u>Extrinsic interstitialcy</u> Figure 1: Intrinsic point defects (top: vacancy, intrinsic interstitialcy, antisite) and extrinsic point defects (bottom: substitution, extrinsic interstitialcy). Extrinsic defects (Figure 1: bottom), which are also referred to as impurities [8, 9], introduce a foreign chemical species into the perfect bulk material [4]. These include substitutional defects (e.g., MnGa) and extrinsic interstitials (e.g., Mn _i_ ). We distinguish between extrinsic and intrinsic defects because impurities are often inserted on purpose (intentional doping) under well-defined conditions to achieve desired material properties; in particular, electrical and optoeletronic properties [8]. The conditions under which extrinsic defects are inserted (e.g., via implantation or quenching) often differ extremely from the thermodynamic equilibrium assumption made in the assessment of intrinsic point defects. Despite the limited conceptual applicability, the thermodynamic framework still represents the most commonly pursued route to assessing “dopability” of materials [9, 10, 11, 12, 13, 14, 15, 16, 17, 18]. In contrast to metals, point defects in semiconductors and insulators can carry a charge [8] localized around the defect site. Physically, these charged point defects introduce states within the band gap which can trap charge carriers (electrons and holes). Defect states that are close to the band edges are able to ionize to create free carriers, while states that are deep in the gap lead to strong carrier trapping. This may be wanted (e.g., in photovoltaics [16]) or not (e.g., solid-state electrolyte batteries [39]). Because many technological applications use intentional doping to improve performance, knowledge of the capacity to dope a material (“dopability”) is desirable and motivates the exploration of defect properties with theoretical methods. _2.1._ _Formalism for equilibrium point defects_ The thermodynamics of point defects has been the subject of many excellent reviews (see, for example, refs. [9, 19, 20] and references therein), which have presented and discussed the underlying physics and properties in great detail. In the following sections, we focus on describing the procedures implemented in PyCDT for computing quantities of interest for point defects (i.e., formation energies and transition levels) with DFT calculations. The applications of the defect formalism to be described are limited by the intrinsic shortcomings of DFT (e.g., the wellknown underestimation of the band gap [20]). There is a hierarchy of DFT-based methods that can be used within the defect formalism implemented by PyCDT. The simplest approximation in DFT is the use of a semilocal functional (i.e., local-density approximation (LDA), GGA), which is computationally most efficient, but has well-known limitations due to band gap inaccuracies. Higher levels of theory include hybrid-functionals and meta-GGA, both of which can be used to achieve higher accuracy, however, at an increased computational cost [40, 41]. Despite the limitations of semilocal DFT, defect calculations 3 have proven useful for revealing the dominating defects under different growth conditions encountered in many experiments, such as the III-V semiconductors [42]. While recent developments in hybrid functionals and meta-GGA have shown promise in addressing the inherent limitations in accuracy associated with semi-local functionals [40, 41], recent evidence shows that new improvements to the approximations for exchange and correlation in one system do not always yield universal improvements for other systems with similar chemistries [43]. With this fact considered, semilocal approximations at least have the benefit of having predictable errors which can be corrected with appropriate techniques [20]. While PyCDT’s unique interface with the Materials Project (MP) database, which is composed of GGA and GGA+U level data, suggests a restriction to semi-local approaches, PyCDT has many functionalities which help place defect formation energetics closer to those obtained from higher levels of theory. One feature that is particularly useful is the ability for PyCDT to help expedite the setup and parsing stages of defect calculations performed on higher levels of DFT theory ( _e.g._ for improved chemical potentials, setting up a user’s personal phase diagram calculation based on a composition of interest). These features are described further in the following sections. _2.2._ _Defect Formation Energies_ The primary quantity of interest is the formation energy, _E_ <sup>f</sup> [ _X_ ], which is the energy cost to form or create an isolated defect, _X_, in a bulk or host material. The formation energy of an isolated defect (i.e., in the dilute limit) depends on the defect charge state, _q_ : _E_ <sup>f</sup> [ _X_ <sup>_q_</sup> ]. It can be calculated from DFT supercells using: _E_ <sup>f</sup> [ _X_ <sup>_q_</sup> ] = _E_ tot[ _X_ <sup>_q_</sup> ] − _E_ tot[bulk] − _i_ _ni_ µ _i_ + _qE_ F + _E_ corr (1) We illustrate this equation graphically in Figure 2 and note that each term will be described in detail in subsequent sub-sections. _E_ tot[ _X_ <sup>_q_</sup> ] and _E_ tot[bulk] are the total DFT-derived energies of the defective and pristine bulk supercells, respectively. The third term, − <sup>�</sup> _i_ <sup>_n_</sup> _i_ <sup>µ</sup> _i_ <sup>, is a summation over the atomic chemical potentials, or the energy cost of an</sup> atom, µ _i_, being added ( _ni_ = +1) or removed ( _ni_ = −1) from the bulk undefective supercell. The atomic chemical potential can reflect the growth conditions of the material, allowing this formalism to be used to guide defect engineering approaches (cf., Section 2.3). The fourth term, _qE_ F, represents the energetic cost of adding or removing electrons, where _E_ F is the Fermi energy, which serves as the chemical potential of the electron reservoir. The Fermi energy is usually referenced to the valence band maximum from a band structure calculation, such that the formation energy can be plotted as a function of the Fermi energy across the band gap. Finally, _E_ corr is a correction term due to the presence of periodic images that becomes necessary for charged defects in DFT supercell calculations. This correction has drawn significant attention from the defects modeling community, resulting in a number of alternative computational approaches that are discussed in more detail in Section 2.4. _2.3._ _Chemical Potentials_ The atomic chemical potential is associated with the thermodynamic energy cost for exchanging atoms between the defect and a thermodynamic reservoir. The individual chemical potentials are set by the composition of the material (e.g., the mole fraction of As in GaAs) which itself is determined by the defect formation energies. Hence, two approaches can be used to derive the individual chemical potentials. One involves the use of a statistical thermodynamic formalism ( _canonical_ ensemble approach), to compute the concentration dependent free energy of the compound and to derive the relationship between the chemical potentials and composition [44]. More frequently, bounds on the chemical potentials are set ( _grand-canonical_ ensemble approach), in a manner first defined by Zhang and Northrup [45], from zero-temperature energies alone. Only the grand-canonical approach is currently included in PyCDT, whereas future versions will also support canonical approaches to chemical potential calculations. Below we demonstrate the grand-canonical approach for the simple example of GaAs. The bulk energy (or free energy at finite temperature) per formula unit, µ _GaAs_ <sup>0</sup> <sup>,</sup> <sup>fixes</sup> <sup>a</sup> <sup>relation</sup> <sup>for</sup> <sup>the</sup> <sup>chemical</sup> potentials of gallium, µ _Ga_, and arsenic, µ _As_, respectively: µ _GaAs_ <sup>0</sup> <sup>= µ</sup> <sup>_Ga_</sup> <sup>+ µ</sup> <sup>_As_</sup> <sup>.</sup> <sup>For Ga-rich compositions, the values of</sup> The bulk energy (or free energy at finite temperature) per formula unit, µ <sup>0</sup> potentials of gallium, µ _Ga_, and arsenic, µ _As_, respectively: µ _GaAs_ <sup>0</sup> <sup>= µ</sup> <sup>_Ga_</sup> <sup>+ µ</sup> <sup>_As_</sup> <sup>.</sup> <sup>For Ga-rich compositions, the values of</sup> µ _Ga_ are constrained by stability of the compound relative to the precipitation of excess Ga to form a bulk Ga phase. At zero temperature, this constraint can be expressed as µ _Ga_ < µ _Ga_ <sup>0</sup> <sup>, where µ</sup> _Ga_ <sup>0</sup> <sup>is the energy per atom of bulk Ga.</sup> <sup>Thus,</sup> _Ga_ <sup>0</sup> <sup>, where µ0</sup> zero temperature, this constraint can be expressed as µ _Ga_ < µ _Ga_ <sup>0</sup> <sup>, where µ</sup> _Ga_ <sup>0</sup> <sup>is the energy per atom of bulk Ga.</sup> <sup>Thus,</sup> one extremum can be selected as the “Ga-rich” limit, where µ _Ga_ = µ _Ga_ <sup>0</sup> <sup>.</sup> <sup>The atomic chemical potential of As is then</sup> one extremum can be selected as the “Ga-rich” limit, where µ _Ga_ = µ _Ga_ <sup>0</sup> <sup>.</sup> <sup>The atomic chemical potential of As is then</sup> fixed: µ _As_ = µ _GaAs_ <sup>0</sup> <sup>−</sup> <sup>µ</sup> _Ga_ <sup>0</sup> <sup>.</sup> <sup>The same approach holds for As-rich compositions (above:</sup> <sup>interchange Ga and As labels</sup> _GaAs_ <sup>0</sup> <sup>−</sup> <sup>µ0</sup> _Ga_ <sup>0</sup> <sup>.</sup> <sup>The same approach holds for As-rich compositions (above:</sup> <sup>interchange Ga and As labels</sup> 4 (2) (1) Text Figure 2: Different contributions to the formation energy: (a) energy of defective supercell in charge state _q_, (b) energy of pristine bulk supercell, (c) atomic chemical potential computed from the ground state hull, (d) electron/hole chemical potential generated from electron reservoir, and (e) correction terms to account for defect-defect interactions arising from periodic boundary conditions as well as for the homogeneous background charge which requires potential re-alignment. The different labeled X’s given in 2c show stable and metastable compounds. The latter case yields a complication which will be discussed in Section 2.3 . with each other). While the Ga-As system has a phase diagram with just one unique compound, the more general case has multiple stable compounds, which requires the limits of stability to be expressed in terms of the formation of compounds with neighboring compositions within the phase diagram. In general, the chemical potentials in an n-component system will be defined in PyCDT by defining the limits of stability for the different possible n-phase states of equilibria. As an example, consider the Sn-Se system which has a 0 K ground-state hull that contains the phases Sn, SnSe, SnSe2 and Se. When calculating defects in the SnSe phase, the “Se-rich” limit would instead be defined by equilibrium with the SnSe2 phase (Equation 2), combined with the stability condition for bulk SnSe (Equation 3). This forms a system of equations for the chemical potentials of µ _S n_ and µ _S e_ . µ <sup>0</sup> _S nS e_ 2 <sup>> µ</sup> <sup>_S n_</sup> <sup>+ 2µ</sup> <sup>_S e_</sup> (2) µ <sup>0</sup> _S nS e_ <sup>= µ</sup> <sup>_S n_</sup> <sup>+ µ</sup> <sup>_S e_</sup> (3) This formalism for calculating equilibrium bounds on the chemical potentials requires knowledge of the groundstate hull, which governs the zero-temperature limit of the phase diagram of the system. The advantage of this formalism is that defect formation energies can be obtained entirely from first principles calculations, rendering experimental input unnecessary. The drawback is that one must compute the full phase diagram of the system using the same functional choice used for the defect calculations. In applications of the PyCDT code based on the PBEGGA exchange-correlation potential, PyCDT uses the ground-state hulls that are made available through the MP database [32]. PyCDT has integrated functionality that queries the MP database for every computed DFT entry in the phase diagram so that no new calculations are required to compute the bounds on the chemical potentials. Note that correct usage of the MP data for defect calculations requires consistency between personal defect calculations and the calculations from the MP. This is easily checked through the compatibility tools available in pymatgen [3]. If the bulk phase is thermodynamically stable and is not already computed in the MP database, PyCDT manually inserts the computed phase into the phase diagram and then provides all of the associated bounds on the chemical potentials. If a user prefers to compute chemical potentials on a different level of theory than is provided by the MP, the core code of PyCDT can be used to setup and calculate atomic chemical potentials through first pulling the composition’s phase diagram, and using the structural information to setup a personal phase diagram calculation for the user. In a similar manner, this information can be setup for any DFT code desired by the user through the use of Pymatgen’s code agnostic classes. For highly correlated systems such as transition metal oxides, MP settings default to GGA+U. When computing the phase diagram that contains a mixture of GGA and GGA+U computed phases, MP employs the mixing scheme of Jain et al. [46], which adds an empirical correction to the energies of GGA+U compounds. The mixing scheme 5 was shown to give formation energies that are consistent with experimental data with a mean absolute relative error of under 2%. The resulting correction term to the chemical potentials was found to be important in several defect studies [47, 48]. One complication that should be mentioned is the case where the compound under consideration does not reside on the convex hull. That is, the compound is higher in energy than another compound with the same composition or with respect to phase separation to compounds with other compositions. In this instance, the calculation is predicting the compound to not be present in the equilibrium phase diagram in the limit of zero temperature. For small energyabove-hull values, this situation could indicate that the compound is stabilized by entropic contributions at finite tempearture [49], or could be an artifact of the previously mentioned inaccuracies of DFT [50], or the experimentally synthesized phase exists in a state of metastable equilibrium [51]. Regardless of the reason, a positive energy-abovehull value presents a practical problem for defining the chemical potential. In such cases, PyCDT issues a warning and the chemical potentials used are with respect to the phases in equilibrium at the given composition in the phase diagram. In figure 2c, this situation is graphically represented by the data points labeled “(2)”, where the red X above the hull is the compound of interest and PyCDT uses the red triangle to define a set of compounds in equilibrium for defining the atomic chemical potentials. In these instances, the computed defect physics should be interpreted with caution. The user may wish to define the chemical-potential limits based on more detailed knowledge of the growth conditions or compute the chemical potentials from a full finite-temperature free energy model of the compound of interest. _2.4._ _Periodic Supercell Corrections_ Periodic boundary conditions (PBCs) are the standard way to deal with the regular arrangement of crystalline solids in DFT calculations. Once a defect is introduced, PBCs can give rise to sizable interactions of the defect with its periodic images, contrasting the assumption made above for the dilute-defect limit. Because this limit is consistent with the thermodynamic formalism outlined in Sec. 2.2, the interactions between neighboring defect images should be minimized to yield accurate formation energies. For charged defects in semiconductors and insulators, Coulombic interaction with neighboring images exists, which decays as 1/L, where L is the supercell periodic length. The charge interactions are the dominant effect that need to be taken into account when correcting the formation energy of defects in non-metals. Elastically-mediated interactions which are due to the strain fields induced when the positions of atoms near the defects also exist, but decay more rapidly in real space, and are often minimal [9]. In cases where these interactions are important, methods have been developed to account for them (see [9] and references therein), which will not be addressed in the following discussion. To account for the charge correction one approach has been to create successively larger defect supercells. Scaling laws for the electrostatic interactions with respect to system size are then used in order to extrapolate _E_ <sup>f</sup> to the dilute limit [52, 53]. An alternative approach is based on an _a posteriori_ analysis of the electrostatic potential for a single supercell calculation [34, 54]. An important requirement for the alternative approach is that the charge be sufficiently localized within the vicinity of the defect. If so, a moderately sized defect supercell typically suffices, hence, offering a computationally more efficient route to calculating reliable defect formation energies. The latter methodology, referred to as “correction methods” in the following, is employed in PyCDT. Correction methods address two issues: 1. the electrostatic energy from the interaction between the charged defect and its images, and 2. a potential alignment term that corrects for a fictitious jellium background required to maintain overall charge neutrality in the system. Many different methods have been proposed to correct for these two terms, as summarized in several comprehensive reviews (see, e.g., [9, 19, 20, 28] and references therein). The theoretical starting point for the correction methods considers a periodic array of point charges (cf., Figure 2e) with an associated Madelung energy, _E_ M: <sup><u>M</u></sup> = <sup>_<u>q</u>_</sup> <sup>2α</sup> 2 2ϵ _L_ _E_ M = <sup>_<u>qV</u>_</sup> <sup><u>M</u></sup> <sup>_<u>q</u>_</sup> <sup>2α</sup> (4) 2ϵ _L_ where _V_ M is the Madelung potential, ϵ is the dielectric constant, and α is the Madelung constant which solely depends on the geometry of the periodic array. Makov and Payne [55] introduced one of the earliest charge correction 6 methodologies by deriving the next leading order term to the interaction potential. This results in a term that scales as _L_ <sup>−3</sup>, and, therefore, most supercell scaling approaches fit uncorrected formation energies to the form of _aL_ <sup>−1</sup> + _bL_ <sup>−3</sup> . Komsa _et al._ [56] used this supercell scaling method for evaluating the performance of different correction methods that are based on single supercell calculations. They concluded that the correction by Freysoldt _et al._ [34] produces the most reliable charge corrections for defects with charges that are well localized within the supercell. From all considered defects, the authors calculated a mean absolute error of 0.09 eV in the formation energy between the estimate from the 64-atom supercell with charge corrections and the estimate from the supercell-scaling method (i.e., using extrapolation toward the dilute-defect limit, but without applying any charge correction). PyCDT includes a Python implementation of the correction scheme derived by Freysoldt _et_ _al._ [34] and implemented in the open-source DFT software S/PHI/nX [57]. The approach is based on a separation of the long-range and short-range interactions between charged defects, using information directly outputted from a DFT calculation. Originally, an isotropic dielectric constant was assumed. Recently, Kumagai and Oba [35] extended the approach to anisotropic systems, by considering the full dielectric tensor. The analytic expression of the Madelung potential under isotropic conditions facilitates the use of a Gaussian distribution for the defect charge, whereas the analytic expression of Madelung potential for anisotropic systems is limited to point charges. The authors of the two correction methods suggest different approaches to calculating the potential alignment correction. The isotropic correction by Freysoldt _et al._ uses a planar average of the electrostatic short range potential while the anisotropic correction by Kumagai and Oba takes averages of this same potential at each atomic site outside a given radius from the defect. Both approaches are available in the PyCDT code, with the isotropic correction by Freysoldt _et al._ being the default. The planar averaging method can become problematic when large relaxation occurs, as the atomic sites contribute heavily to the change in electrostatic potential. The atomic site averaging method can become problematic if a small cell size results in a small number of atoms being sampled, causing statistical sampling errors. While, in principle, these alignment corrections should be equivalent, tests that we conducted revealed nonnegligible discrepancies. However, the potential-alignment term often tends to be small (∼0.1 eV), and, therefore, to not change overall trends in defect formation energies. The correction methods used for point defects in semiconductors and insulators have been an intensely debated topic in the past decade [9]. One issue upon which there is common agreement is that large defect-defect interactions change the energetics of the system so that the computed defect formation energies are no longer relevant for physical quantities like defect concentrations or thermodynamic transition levels. These unwanted defect-defect interactions frequently lead to delocalization of the defect charges, the instance of which has to be ascertained manually. Several methods that address delocalization can be found in the literature [9, 20, 52]. If we assume that the defect charge can indeed be localized within the level of DFT used, then best practice demands to balance computational expediency (supercell size) with sufficient localization of the charge around a defect as indicated by the outputs of the charge correction method chosen. In the original derivation of the isotropic correction by Freysoldt _et al._, the middle “plateau” region of the electrostatic potential yields information about the separation of long range and short range effects. A flat plateau indicates that the Coulomb potential has been removed from the total potential generated by DFT, and short range effects have not delocalized throughout the entire supercell. As a result, Freysoldt _et al._ [34] suggested that the flatness of the resultant “plateau” yields a qualitative metric for the success of the calculation. When running the isotropic correction by Freysoldt _et al._ in PyCDT, the planar averaged electrostatic potential is analyzed for variations larger than 0.2 eV—a number that stems from experience, and can be altered in the code if the user prefers to. If this criterion is not met, the code raises a warning. In such a case, the user should consider the possibility of delocalization. For users who desire additional corrections related to improving corrections with semilocal functional approaches, the development branch of PyCDT also includes the ability to include band edge level alignment with respect to the average electrostatic potential, shallow level corrections based on the values for band edge alignment, and MossBurnstein band filling corrections [20]. Parts of these corrections require some subjective judgment calls to be made by the user, so they are not included in the automation procedure by default. _2.5._ _Charge Ranges_ Charge ranges, [ _q_ min, _q_ max], have to be estimated beforehand for a given defect _X_, and for this purpose ionic models typically form the basis of such predictions [58]. Known oxidation states of the element(s) involved in _X_ can then 7 be used to define the charge states to be considered. However, common ionic models do not always predict the most stable defect. Tahini _et al._ have, in this context, shown that combining gallium or aluminum with group-V elements can yield negatively charged anion vacancies, whereas an ionic model predicts a +3 charge state [42]. In PyCDT, we implemented different procedures to determine the range of defect charges for semiconductors and insulators. Users can choose between either of these two options and a custom range of defect charges for each defect, as described in Section 3.1. To address the issue of uncommon charge states found in semiconductors, we developed a data-driven approach that combines elemental oxidation states with results from literature for determining the optimal charge assignment process. We compiled a list of stable charge states (Table A.2) from previous studies for various defects in zinc blende and diamond-like semiconductor structures [27, 42, 58, 59, 60, 61, 62, 63, 64]. Procedures adhering more or less strictly to ionic models resulted in too few charge states when compared with the literature. The most effective approach that we found employs a bond-valence estimation scheme [3, 65] to obtain formal charges of elements in the bulk structure, as well as minima and maxima of common oxidation states of bulk and defect elements. The formal charges and common oxidation-state ranges are subsequently used in a defect type-dependent assignment procedure: 1. _Vacancies_ : Use the formal charge of the species originally located on the vacant site, _oxi_, to define the charge range: [− _oxi_, + _oxi_ ]. For GaAs, this procedure results in defect charges ranging from -3 to 3 for both VGa and VAs. 2. _Anti-sites_ : Use the minimum and the maximum from combining all oxidation states of _all_ elements in the bulk structure, _oxis_ bulk, to define the relevant charge range: [min( _oxis_ bulk), max( _oxis_ bulk)]. Data mining determined that the upper range limit can, in fact, be decreased by 2: [min( _oxis_ bulk), max( _oxis_ bulk) - 2]. With this procedure, the antisites in GaAs are assigned charge values from -3 to +3. 3. _Substitutions_ : Determine the oxidation states of the foreign (or, extrinsic) species, _oxis_ ex. Then subtract the formal charge of the site species to be replaced from this list. Use the minimum and maximum of this set to produce [min( _oxis_ sub), max( _oxis_ sub)]. Data mining determined that, if the new range has more than 3 charge states and has an upper bound larger than 2, one can cap the range by 3 to prevent excessively high charge states. For example, when GaAs is doped with Si, SiGa generates charges in the range of [-7,1], and SiAs generates charges in the range of [-1,4]. 4. _Interstitials_ : Use the minimum and maximum of all oxidation states of the interstitial species: [min( _oxis_ int), max( _oxis_ int)]. If 0 is not included, data mining suggests that we extend the range to 0 accordingly. For As interstitials in GaAs, the resulting defect charges are in the range [-3, 5]. The algorithm successfully includes all charge states from our benchmark list in Table A.2 by yielding, on an average, 6.4 states per defect. The average number of states produced too much per defect in comparison to literature (excess charge states) are 1.1 is 1.9 at the lower (more negative) and at the upper (more positive) charge bound, respectively. This is desirable because including more charge states on either side ensures no extra states become stabilized when varying the Fermi level within the band gap. Hence, the effective relative excess in charge states is 20% and, thus, acceptable. For insulators, the number of defect charge states is typically less than for the above discussed semiconductors. For example, the charge states in MgO range from −2 to 0 and 0 to +2 for cation and anion vacancies, respectively [66]. Any other charge state is not considered because of the high ionization energy required to form Mg <sup>3+</sup> and the high electron affinity of O <sup>2–</sup> to form O <sup>3–</sup> . Hence, the oxidation states of cations and anions are limited to [0, _y_ ] and [− _x_, 0] for a binary A _x_ B _y_ insulator, where A is a cation and B is an anion. _2.6._ _Interstitials_ PyCDT uses an effective and easily extendable approach for interstitial site finding (Interstitial Finding Tool: InFiT) that has been recently introduced by Zimmermann _et al._ [36]. The procedure systematically searches for tentative interstitial sites by employing coordination pattern-recognition capabilities [67, 68] implemented in pymatgen [3]. In Algorithm 1, we provide a simplified pseudo-code representation of the approach. The detected interstitial sites exhibit coordination patterns that resemble basic structural motifs (e.g., tetrahedral and octahedral environments). Such interstitial sites are particularly important because several [69, 70, 71, 72, 73, 74, 75, 76, 77, 78] β <sup>−</sup> emission channeling measurements [79, 80] have identified them as the most prevalent types of isolated defects after substitutions 8 for impurities implanted into similar materials as we consider here (zinc blende/wurtzite-like and diamond-like structures). Bond-center interstitials in a so-called split-vacancy configuration are also observed frequently. However, these are defect complexes—not isolated defects—and, thus, beyond the scope of the present PyCDT implementation. The interstitial search approach should also be suitable for intercalation and ion diffusion applications because related design rules typically rely on detection of tetrahedral, octahedral, bcc-, and fcc-like environments [81, 82]. <u>Algorithm 1</u> <u>Interstitial Site Searching</u> 1: _GetNeighbors_ ( _struct_, _inter_ _~~t~~_ _rial_ _site_, _dmin_, _delta_ ) - Get a list of neighbors of site _inter_ _~~t~~_ _rial_ _site_ in _struct_ that are within a sphere of (1 + _delta_ ) _dmin_ . 2: _GetCoordinationDescriptor_ ( _point_, _neighs_, _coord_ _~~t~~_ _ype_ ) - Calculate the value of the descriptor for the target coordination environment _coord_ _~~t~~_ _ype_ of an atom at _point_ with neighbors _neighs_ . 3: 4: procedure GetCoordinationPatternInterstitials( _struct_, _inter_ _~~e~~_ _lem_, _all_ _~~c~~_ _oord_ _~~t~~_ _ypes_ = [tet, oct], _thresh_ = [0.3, 0.5], _dl_ = 0.2, _dstart_ = 0.1, _ddelta_ = 0.1, _dend_ = 0.7) 5: Let _inter_ _sites_ be a new empty list 6: Let _coord_ _~~d~~_ _escr_ be a new empty list 7: for _point_ on a regularly mashed grid in _struct_ with resolution _dl_ do 8: Let _dmin_ be the distance from _point_ to the closest crystal atom 9: if _dmin_ - 1 Å then 10: Let _inter_ _~~t~~_ _rial_ _site_ be a new _S ite_ object of type _inter_ _~~e~~_ _lem_ located at _point_ 11: Let _struct_ _plus_ _~~i~~_ _nter_ be a new _S tructure_ object ← _struct_ appended by _inter_ _~~t~~_ _rial_ _site_ 12: for _delta_ starting from _dstart_ in _ddelta_ steps to _dend_ do 13: Let _neighs_ be a new list ← _GetNeighbors_ ( _struct_ _plus_ _~~i~~_ _nter_, _inter_ _~~t~~_ _rial_ _site_, _dmin_, _delta_ ) 14: for _coord_ _type_ having index _icoord_ in _all_ _~~c~~_ _oord_ _~~t~~_ _ypes_ do 15: Let _this_ _~~c~~_ _oord_ _~~d~~_ _escr_ be a float number ← _GetCoordinationDescriptor_ ( _point_, _neighs_, _coord_ _~~t~~_ _ype_ ) 16: if _this_ _~~c~~_ _oord_ _descr_ - _thresh_ [ _icoord_ ] then 17: Add entry to _inter_ _sites_ list ← _inter_ _~~t~~_ _rial_ _site_ 18: Add entry to _coord_ _descr_ list ← _this_ _~~c~~_ _oord_ _~~d~~_ _escr_ 19: break 20: Let _labels_ be a list of _coord_ _type_ -specific cluster labels for each entry in _inter_ _sites_ which are found with a distance threshold of 1.01 _dl_ . 21: Let _include_ be a new empty list. 22: for _unique_ _~~l~~_ _abel_ in _labels_ do 23: Find site with index _imax_ in _inter_ _sites_ that has highgest _coord_ _~~d~~_ _escr_ among site with this _unique_ _~~l~~_ _abel_ . 24: Add entry to _include_ ← _imax_ 25: _final_ _~~i~~_ _nter_ _sites_ ← Prune the _inter_ _sites_ in _include_ further to include symmetrically distinct sites only 26: return _final_ _~~i~~_ _nter_ _sites_ _2.7._ _Default DFT Calculation Details_ PyCDT includes mechanisms to input user-defined settings for all DFT calculations. If no user settings are specified, then the following initial settings are specified for the calculation. The ions in the defective supercells are geometrically relaxed at constant volume until the force on each ion is less than 0.01 eV/Å. At each geometric step, the energy of the supercell is converged to 10 <sup>−6</sup> eV. By default, spin polarization is turned on, and crystal symmetry is ignored to account for any symmetry breaking relaxations such as Jahn-Teller distortions. Electronic states are populated using a Gaussian smearing method [83] with a width of 0.05 eV. While no geometric relaxation is performed for the non-defective bulk supercell, a calculation that is necessary for the charge correction, the electronic degrees of freedom are optimized with the same settings applied to the defect-supercell calculations. A 2 × 2 × 2 Monkhorst-Pack _k_ -point mesh is used for the defect calculations. For any other parameters, we adopt the standard MP settings [3]. Finally, we emphasize that PyCDT also includes mechanisms to input user-defined settings for DFT calculations which can be used for extending calculations beyond the exchange and correlation approximation of GGA. 9 3. PyCDT Usage and Examples PyCDT was developed in a way that reflects different analysis stages (Figure 3): setup of DFT calculations, parsing of finished jobs, computation of a correction term, and plotting of formation energies. This allows reuse and integration of parts of the code in other packages. Our package has a dependency on pymatgen [3], matplotlib [2] and numpy [1], and it was developed and tested for Linux and Mac OS X. However, we also expect it to work on Windows (with cygwin). Figure 3: Steps in the computation of charged-defect formation energies with PyCDT. Below, we describe in detail how to proceed through the general charged-defect calculation workflow outlined in Figure 3 using our PyCDT command-line feature. We demonstrate its usage on the basis of GaAs and with VASP [37, 38] as the backend DFT code. While the command-line interface is a quick and easy route to use PyCDT, we point out that the core classes within PyCDT are entirely general and can be used for any desired applications that involves setting up, computing charge corrections, and/or parsing defect calculations. _3.1._ _Setup of DFT Defect Calculations_ The starting point for setting up charged defect calculations is the crystal structure. The user can provide the bulk structure in one of two ways: 1. by the name of a structure file of conventional format (e.g., cif, cssr), or code specific formats such as POSCAR that are recognized by pymatgen, or 2. via a Materials Project identifier (MPID). Crystal structures from MP [32] are obtained through the Materials Application Programming Interface (MAPI) [3]. In the MP database, each structure is assigned a unique identifier. These MPIDs have the format _mp-XXX_ in which _mp-_ is prefixed to a positive integer _XXX_ . In the following, we use GaAs ( _mp-2534_ ), which has the zinc-blende structure, as an example for performing all different stages of charged defect-property calculations with PyCDT. We first generate the defect supercells and the bulk supercell using pymatgen’s defect structure generator and the defect structure classes in the core of PyCDT. The two steps for generating the input files are combined into a single command: - pycdt generate <u>input</u> ( --structure <u>file</u> ⟨structure file⟩ | --mpid ⟨mpid⟩ ) [ --mapi <u>key</u> ⟨mapi key⟩ ] [ --nmax ⟨max no atoms <u>in</u> <u>supercell⟩</u> ] With _--nmax_, the user defines the maximal number of atoms in the defect supercell. If the parameter is not given, a default value of 128 is used, which was shown to result in well converged defect formation energies after finite size corrections were included in systems with dielectric constants greater than 5.0 [27, 56]. The mapi ~~k~~ ey is required if querying the MP database, and is found on the Dashboard after logging into the MP website. The input file-generation command creates a folder, representing the reduced chemical formula of the crystal structure (e.g., _GaAs_ ). It contains several subfolders, whose names are indicative of the calculations to be performed: 10 - _bulk_ : calculation of pristine crystal structure, - _dielectric_ : calculation of macroscopic static dielectric tensor (ion clamped high frequency, ϵ∞, plus the ionic contribution, ϵ _ion_ ) from DFT perturbation theory, (used by the charged defect correction) - _deftype_ _<u>n</u>_ _info_ : calculation of the _n_ -th symmetrically distinct defect of type _deftype_ (vacancies: _vac_ ; antisites: _as_ ; substitutions: _sub_ ; interstitials: _inter_ ) with properties _info_ . By default, the above command generates vacancy and antisite defects only. Hence, there are four defect folders for GaAs, which has two sublattices, corresponding to one antisite and one vacancy defect on each sublattice. Table 1 summarizes the default defect types and resulting folder names for GaAs. Table 1: Default defects set up for GaAs with PyCDT <u>Defect Type</u> <u>Folder Name</u> _VacGa_ GaAs/vac <u>1</u> Ga _VacAs_ GaAs/vac <u>2</u> As _GaAs_ GaAs/as <u>1</u> Ga on <u>As</u> _<u>AsGa</u>_ <u>GaAs/as</u> <u>2</u> <u>As</u> <u>on</u> <u>Ga</u> Substitutional and interstitial defects have to be invoked explicitly with the keyword _--sub host_ _species substitution_ _species_ . Multiple substitutional defects can be generated by repeating the _--sub_ keyword with the desired host species and the corresponding substituting species. The substitution folders are labeled in the same manner as the antisites, only changing _as_ to _sub_ . The setup of coordination-pattern resembling interstitials is invoked by the _--include_ _~~i~~_ _nterstitials_ command-line option. PyCDT produces intrinsic interstitials as per default only. Extrinsic interstitials can be achieved by providing a list of elements as positional arguments (e.g., _--include_ _~~i~~_ _nterstitials_ _Mn_ ). To obtain both intrinsic and extrinsic interstitials the intrinsic elements have to be explicitly mentioned (e.g., _--include_ _~~i~~_ _nterstitials_ _Ga_ _As_ _Mn_ ). As for the other defect types, PyCDT enumerates the interstitial calculation folders according to symmetrically distinct sites found. The _info_ part of the interstitial folder names indicate (1) the type of the atom located on an interstitial site having a certain (2) coordination pattern and (3) chemical environment. For example, _inter_ _1_ _<u>As</u>_ _oct_ _Ga6_ shows that we are dealing with an As interstitial that is octahedrally coordinated by six Ga atoms. For each defect type in semiconductors, multiple charge states are considered according to the algorithm outlined in Sec. 2.5. For insulators a conservative charge assignment is used as described in Sec. 2.5. By default, the input structure is considered a semiconductor. To specify the input structure is of insulator type, the option _--type insulator_ can be used. The user can also modify the charge assignments for each defect by specifying either of the two flags, _--oxi_ _state_ or _--oxi_ _<u>range</u>_ . Alternatively, the option _--type_ _manual_ _allows_ _for_ _the_ _user_ _to_ _specify_ _every_ _charge_ _state_ _that is desired._ The DFT input files associated with each of these charge states, _q_, are deposited into subfolders named _charge q_ . For example, seven charge states are generated for the gallium vacancy in GaAs. Apart from the structure file, PyCDT automatically generates all other input files according to the settings used for the MP. The input settings can also be easily modified by supplying the parameters in a yaml or json file and using the keyword _--input_ _<u>settings</u>_ _<u>file</u>_ ⟨ _settings_ _file.yaml_ ⟩. For instance, the file _user_ _settings.yaml_ that we provide in the _examples_ folder changes the default functional from PBE to PBEsol and increases the energy cutoff to 620 eV. When such changes are made, the user has to keep in mind that the atomic chemical potentials obtained from the MP database in the final parsing step have to be replaced by user computed ones with the corresponding changes included during chemical potential calculations - a process which can be sped up substantially with PyCDT’s phase diagram set up and parsing feature. Any DFT settings that are specific to either the bulk, or the dielectric, or the defect calculations can be thus realized, too, as demonstrated in the example file. The input settings whether chosen by default or by the user are expected to be tested for appropriate convergence criteria. In addition to the input files for DFT calculations, PyCDT saves a _transformation.json_ in each calculation folder, except for _dielectric_, to facilitate post-processing. _3.2._ _Parsing Finished Calculations_ The DFT calculations can be run either manually, with bash scripts, or with high throughput frameworks [84]. Once all the calculations have successfully completed, the generated output files are parsed to obtain all the data 11 needed to compute defect formation energies, _E_ <sup>f</sup> . This part of PyCDT is executed by reading the _transformation.json_ file that was output from the previous file generation step. To initiate parsing from the command line interface, the user issues: ▷pycdt parse output [ --directory ⟨directory⟩ ] [ --mpid ⟨mpid⟩ ] [ --mapi <u>key</u> ⟨mapi <u>key⟩</u> ] Here, directory is the root folder of the calculations. If executed within the folder of the calculations the option can be omitted. Once the parsing is completed, PyCDT stores all the data required for next steps in a file called “defect <u>data.json”.</u> If any of the calculations were not successfully converged according to the code output files, PyCDT raises a warning, but continues parsing the rest of the calculations. The output file “defect data.json” contains the parsed energies of the defect and bulk supercells as well as other information required in the next steps to calculate finite size charge corrections and defect formation energies. Some of the additional data such as the dielectric constant is obtained by parsing the output from the dielectric calculation. The band gap and atomic chemical potentials generated in this step are obtained from computed entries in the MP database. Note that these band gaps are only accurate at the level of GGA, which often underestimates the gap by about 50%. The output file “defect data.json” is highly readable and users can edit the file to supplant parameters either parsed from the DFT calculations or obtained from the MP database. If the user prefers to have formation energies and transition levels closer to a higher level of theory (which can provide better band gaps than the GGA approximation), the band edge alignment procedures suggested in Section 2.4 can be used. Furthermore note that some structures in the MP database do not have fully computed band structures, which results in poorly converged band-gap characteristics. _3.3._ _Computation of Correction Term_ Correcting the errors due to long-range Coulomb interactions in finite-size supercells results in improved defect formation energies. A feature of PyCDT is the possibility to compute such corrections with minimal work from the end user. The following command-line call computes individual correction values for all charged defects found in the present directory: ▷pycdt compute corrections [ --correction method ⟨correction method⟩ ] [ --epsilon ⟨epsilon tensor⟩ ] [ --input file name ⟨defect data file⟩ ] [ --plot results ] Here, correction method keywords can be either _freysoldt_ for correction due to Freysoldt _et al._ [34, 54] or _kumagai_ for the approach extended to anisotropic systems by Kumagai and Oba [35]. As shown in Section 4.1, these codes have been rigorously tested against the results from the codes of the original authors. The command line interface requires the defect data file generated in the previous step, _defect_ _data.json_, for computing the corrections. This flag can be omitted if the file name is unchanged. The calculated corrections for each defect charge state are stored in a file called _corrections.json_ . By rerunning the command with different correction keywords, one can quickly obtain the corrections computed with different frameworks. Shown in Figure 4 are the resulting potential alignment plots for each correction type on the _Ga_ <sup>−</sup> _As_ <sup>2</sup> <sup>defect in GaAs.</sup> The sampling regions for obtaining the potential alignment correction defaults to 1Å in the middle region of the planar average plots recommended by Freysoldt _et al._ [54], and to the region outside of the Wigner-Seitz radius for 12 atomic site averaging method, following the approach described in Ref. [35]. The width of these default sampling regions can be changed by modifying the instantiation of the relevant PyCDT correction classes. <u>GaAs</u> <sup><u>−2 atomic site potential plot</u></sup> As: Vq/b As: Vpc Ga: Vq/b Ga: Vpc Vq/b - Vpc pot. align. / q sampling region 0 2 4 6 8 10 12 14 16 Distance from defect (Å) 0.3 0.2 0.1 0.0 0.1 <u>GaAs</u> <sup><u>−2 defect potential</u></sup> long range from model DFT locpot diff short range (aligned) sampling region 0 2 4 6 8 10 12 14 16 distance along axis 1 (Å) 0.2 0.0 0.2 0.4 0.6 0.8 1.0 Figure 4: Two different methods for computing the potential alignment correction on GaAs calculation. At left is isotropic correction, developed by Freysoldt _et_ _al._, using the planar average method [34, 54], and at right is anisotropic correction by Kumagai and Oba, using the atomic site averaging method. [35]. _3.4._ _Formation Energy Plots and Transition Levels_ Once the defect energetics and the correction values are obtained and specified in the _defect_ _<u>data.json</u>_ and _cor-_ _rections.json_ files, the transitition levels and formation energies of each defect across the band gap can be determined by: ▷pycdt compute formation energies [ --input file name ⟨defectsdata json file⟩ ] [ --corrections file name ⟨corrections json file⟩ ] [ --bandgap ⟨band gap⟩ ] [ --plot results ] By default, PyCDT uses the band gap stored in the MP database, which is computed with GGA-PBE and, hence, under-predicted when compared to the experimental band gap. As mentioned several times in this work, this approximation can be improved upon with the optional corrections included, such as the band edge realignment feature of PyCDT. A simpler approximation to improving the defect formation energies is to plot the defect formation energies across the experimental gap the user can specify the experimental band gap. This can be done from the command line with the keyword _–bandgap_ ⟨ _band gap_ ⟩. This has the effect of extending the gap by shifting the conduction band minimum, but keeping the position of the valence band maximum and the defect levels fixed, and it is often called the “extended gap” scheme. We note that the extended gap option is strictly for plotting purposes and, thus, does not alter the defect formation energies nor the transition levels. If the names of the files obtained in the previous two steps are not changed, the corresponding options can be omitted. If the _corrections.json_ file is not found and an alternative corrections file is not specified, PyCDT assumes that electrostatic corrections are not desired and computes the defect formation energies without any corrections. As detailed in Section 2.3, the defect formation energies are influenced by the chemical environment, and their range is determined by the phase stability of the various compounds formed by the constituent host and defect elements. Hence, two plots are generated corresponding to the chemical availability of the constituent host elements in the compound. The files ”Ga rich formation <u>energy.eps”</u> 13 and ”As <u>rich</u> formation energy.eps” are shown in Figure 5. These results are verified to be consistent with literature results in Section 4.2. 3 2 1 0 −1 −2 GaAs VacAs VacGa AsGa GaAs VacAs VacGa AsGa 3 2 1 0 −1 −2 −3 −0.5 0.0 0.5 1.0 1.5 2.0 Fermi energy (eV) −3 −0.5 0.0 0.5 1.0 1.5 2.0 Fermi energy (eV) Figure 5: Defect formation-energy plots from PyCDT for GaAs. The left panel is obtained in the As-rich growth regime, whereas the right panel is obtained under Ga-rich conditions. The dotted black line indicates the GGA-PBE band gap of GaAs [32]. 4. Validation and Verification _4.1._ _Validation_ To validate PyCDT’s implementation of each correction method, we ran the correction methods on the defects generated and computed for 21 zinc blende structures (binary and elemental), comparing the charge corrections generated by PyCDT with the open-source code developed by Freysoldt _et al._, sxdefectalign, as well as with the command line code developed by Kumagai and Oba. Over a total of 192 defects calculated, the root mean square difference (absolute average relative errors) between PyCDT and the original author’s codes were 6.4 meV (1.5%) and 14.4 meV (3.4%) for the correction by Freysoldt _et_ _al._ and the correction by Kumagai and Oba, respectively. The differences in the corrections are almost entirely attributed to the resolution in the calculation of the potential correction. _4.2._ _Verification_ To verify the results predicted from the example GaAs test set, we compared the defect formation energies in GaAs obtained from PyCDT with the data reported in literature. We note that all of the transition levels for the _VacGa_ and _AsGa_ defects are within the range of transition levels that we found for semi-local functional approximations in the literature. An exception is the _AsGa_ (-1/-2) transition, which appears very far into the GGA-PBE conduction band. This outlier is off by 0.273 eV relative to the reported results by Chroneos _et_ _al_ [60]. For all transition levels that we predicted, we find a root mean square deviation of 0.218 eV from the window of values found in the literature [42, 60, 85, 86, 87, 88, 89, 90]. This is a modest variation that reflects the difficulty in predicting defect levels consistently—even within the same level of theory. 5. Conclusion We have introduced PyCDT, a Python toolkit which facilitates the setup and post-processing of point defect calculations of semiconductor and insulator materials with widely available DFT suites. This open source code allows for coupling automated defect calculations to the massive amount of data generated by the Materials Project database. Apart from the underlying theory, approaches, and algorithms, this paper presents a detailed guide for how to use PyCDT at every step of the computation of charged defect properties employing the well-studied example of GaAs. 14 While the example results were obtained from VASP [37, 38] calculations, we carefully developed PyCDT in an abstracted form that adopts the advantageous code agnosticism of pymatgen [3]. This makes the provided tools attractive to any user interested in running defect calculations, regardless of DFT code preference. However, we emphasize that, despite its convenience and our effort to construct sensible defaults, the computation of defect properties with PyCDT still requires user expertise for choosing appropriate settings in certain circumstances and for interpreting the results meaningfully in general (i.e., we discourage purely “black box” usage). The PyCDT version presented here is 1.0.0. Future updates will, amongst others, include adaptations related to improved charge delocalization analysis, further defect corrections for issues like artificial band dispersion, as well as the possibility of generating defect complexes. On the application side, PyCDT could also be extended to compute configuration coordinate diagrams, so as to evaluate optical and luminescence transitions associated with the point defects in materials targeting optical applications. We hope that our openly available tools will help to standardize computational research in the realm of charged defects. In particular, we hope that reproducibility issues commonly encountered in DFT calculations [91] can be more effectively identified and tackled. 6. Acknowledgments This work was intellectually led by the Materials Project Center, supported by the Office of Basic Energy Sciences (BES) of the U.S. Department of Energy (DOE) under Grant No. EDCBEE. B. Medasani was supported by the U.S. DOE, Office of BES, Division of Materials Sciences and Engineering. Pacific Northwest National Laboratory is a multiprogram national laboratory operated for DOE by Battelle. This work used resources of the National Energy Research Scientific Computing Center, supported by the BES of the U.S. DOE under Contract No. DE-AC0205CH11231. The authors would like to thank Yu Kumagai for insightful discussions about charge corrections. 15 Appendix A. Charge States from Literature Table A.2: Charge states from literature; brackets refer to hybrid functional rather than (semi-)local functional results. Structure Defect Charge States Ref. <u>from</u> <u>to</u> C VC +2 −2 59 NC +1 −1 AlP VAl 0 −3 42 VP +1 −2 AlP +1 −2 60 PAl +2 −2 AlAs VAl 0 −3 42 VAs +1 −2 AlAs +1 −2 60 AsAl +1 −1 AlSb VAl 0 −3 42 VSb +1 −3 AlSb 0 −2 60 SbAl +1 −1 Si VSi +2 −2 61 ZnS VS +2 0 62 VZn 0 (+1) −2 62 (58) SZn 0 −2 62 ZnS +2 0 Zn _i_ +2 0 S _i_ 0 −2 ZnSe VSe +2 −2 63 VZn +2 −2 ClSe +2 −1 FSe +1 −2 FZn −2 −2 ZnTe VZn 0 (+1) −2 58 GaN VGa 0 (+1) −3 64 (58) VN +1 +1 64 GaN +1 −2 NGa +2 −1 N _i_ +3 −1 Ga _i_ +3 +1 CN 0 (+1) −1 58 GaP VGa 0 −3 42 VP +1 −3 GaP 0 −2 60 PGa +2 −2 GaAs VGa −1 −3 42 VAs +1 −3 GaAs 0 −3 60 AsGa +1 −2 GaSb VGa 0 −3 42 VSb 0 −3 <u>GaSb</u> <u>0</u> <u>−2</u> <u>60</u> _To be continued on next page._ 16 Structure Defect Charge States Ref. <u>from</u> <u>to</u> SbGa +1 −1 CdS VS +2 0 27 VCd 0 −2 CdS +2 +2 SCd +4 −2 Cd _i_ +2 +2 S _i_ +4 −2 MnCd +1 0 FeCd +2 0 CoCd +1 0 NiCd +1 0 Mn _i_ +3 +2 Fe _i_ +3 +2 Co _i_ +3 +2 Ni _i_ +2 +1 InP VIn 0 −3 42 VP +1 −1 InP +1 −2 60 PIn +2 −1 InAs VIn 0 −2 42 VAs +1 0 InAs 0 −1 60 AsIn +1 0 InSb VIn −1 −2 42 VSb +1 0 InSb 0 −1 60 <u>SbIn</u> <u>+1</u> <u>0</u> Appendix B. List of Acronyms <u>Acronym</u> <u>Full Form</u> DFT electronic density functional theory GGA generalized gradient approximation LDA local-density approximation MAPI Materials Application Programming Interface MP The Materials Project MPID Materials Project identifier PBC periodic boundary conditions PBE Perdew–Burke–Ernzerhof PyCDT Python Charged Defect Toolkit Pymatgen Python Materials Genomics <u>VASP</u> <u>Vienna Ab initio Simulation Package</u> 17 Appendix C. Reference References [1] Numpy developers, http://numpy.org/. [2] J. D. Hunter, Matplotlib: A 2d graphics environment, Computing In Science & Engineering 9 (3) (2007) 90–95. [3] S. P. Ong, W. D. Richards, A. Jain, G. Hautier, M. Kocher, S. Cholia, D. Gunter, V. L. Chevrier, K. A. Persson, G. Ceder, Python materials genomics (pymatgen): A robust, open-source python library for materials analysis, Computational Materials Science 68 (2013) 314–319. [4] W. D. Callister, Jr., Materials Science and Engineering: an Introduction, 7th Edition, John Wiley & Sons, Inc., New York, NY, USA, 2007. [5] H. Queisser, J. Spaeth, H. Overhof, Point Defects in Semiconductors and Insulators: Determination of Atomic and Electronic Structure from Paramagnetic Hyperfine Interactions, Springer Series in Materials Science, Springer Berlin Heidelberg, 2013. [6] M. McCluskey, E. Haller, Dopants and Defects in Semiconductors, CRC Press, 2012. [7] P. Rodnyi, Physical Processes in Inorganic Scintillators, Laser & Optical Science & Technology, Taylor & Francis, 1997. [8] E. G. Seebauer, M. C. Kratzer, Charged point defects in semiconductors, Mater. Sci. Eng., R 55 (3-6) (2006) 57–149. `[doi:{10.1016/j.](http://dx.doi.org/{10.1016/j.mser.2006.01.002})` `[mser.2006.01.002}](http://dx.doi.org/{10.1016/j.mser.2006.01.002})` . [9] [C. Freysoldt, B. Grabowski, T. Hickel, J. Neugebauer, G. Kresse, A. Janotti, C. G. Van de Walle, First-principles calculations for point defects](http://link.aps.org/doi/10.1103/RevModPhys.86.253) [in solids, Rev. Mod. Phys. 86 (2014) 253–305.](http://link.aps.org/doi/10.1103/RevModPhys.86.253) `[doi:10.1103/RevModPhys.86.253](http://dx.doi.org/10.1103/RevModPhys.86.253)` . URL `[http://link.aps.org/doi/10.1103/RevModPhys.86.253](http://link.aps.org/doi/10.1103/RevModPhys.86.253)` [10] [P. Dorenbos, Scintillation mechanisms in Ce](http://dx.doi.org/10.1002/pssa.200460106) <sup>3+</sup> doped halide scintillators, physica status solidi (a) 202 (2) (2005) 195–200. `[doi:10.1002/](http://dx.doi.org/10.1002/pssa.200460106)` `[pssa.200460106](http://dx.doi.org/10.1002/pssa.200460106)` . URL `[http://dx.doi.org/10.1002/pssa.200460106](http://dx.doi.org/10.1002/pssa.200460106)` [11] [A. Chaudhry, R. Boutchko, S. Chourou, G. Zhang, N. Grønbech-Jensen, A. Canning, First-principles study of luminescence in Eu](http://link.aps.org/doi/10.1103/PhysRevB.89.155105) <sup>2+</sup> -doped [inorganic scintillators, Phys. Rev. B 89 (2014) 155105.](http://link.aps.org/doi/10.1103/PhysRevB.89.155105) `[doi:10.1103/PhysRevB.89.155105](http://dx.doi.org/10.1103/PhysRevB.89.155105)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.89.155105](http://link.aps.org/doi/10.1103/PhysRevB.89.155105)` [12] [S. Lany, A. Zunger, Dopability, Intrinsic Conductivity, and Nonstoichiometry of Transparent Conducting Oxides, Phys. Rev. Lett. 98 (2007)](http://link.aps.org/doi/10.1103/PhysRevLett.98.045501) 045501. `[doi:10.1103/PhysRevLett.98.045501](http://dx.doi.org/10.1103/PhysRevLett.98.045501)` . URL `[http://link.aps.org/doi/10.1103/PhysRevLett.98.045501](http://link.aps.org/doi/10.1103/PhysRevLett.98.045501)` [13] D. O. Scanlon, G. W. Watson, Conductivity Limits in CuAlO2 from [Screened-Hybrid](http://dx.doi.org/10.1021/jz1011725) Density Functional Theory, The Journal of Physical Chemistry Letters 1 (21) (2010) 3195–3199. `[arXiv:http://dx.doi.org/10.1021/jz1011725](http://arxiv.org/abs/http://dx.doi.org/10.1021/jz1011725)`, `[doi:10.1021/jz1011725](http://dx.doi.org/10.1021/jz1011725)` . URL `[http://dx.doi.org/10.1021/jz1011725](http://dx.doi.org/10.1021/jz1011725)` [14] J. B. Varley, V. Lordi, A. Miglio, G. Hautier, Electronic structure and defect properties of B6O from hybrid functional and many-body perturbation theory calculations: [A possible ambipolar transparent conductor, Phys. Rev. B 90 (2014) 045205.](http://link.aps.org/doi/10.1103/PhysRevB.90.045205) `[doi:10.1103/PhysRevB.](http://dx.doi.org/10.1103/PhysRevB.90.045205)` `[90.045205](http://dx.doi.org/10.1103/PhysRevB.90.045205)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.90.045205](http://link.aps.org/doi/10.1103/PhysRevB.90.045205)` [15] [A. Zakutayev, C. M. Caskey, A. N. Fioretti, D. S. Ginley, J. Vidal, V. Stevanovic, E. Tea, S. Lany, Defect Tolerant Semiconductors for Solar](http://dx.doi.org/10.1021/jz5001787) [Energy Conversion, The Journal of Physical Chemistry Letters 5 (7) (2014) 1117–1125, pMID: 26274458.](http://dx.doi.org/10.1021/jz5001787) `[arXiv:http://dx.doi.org/](http://arxiv.org/abs/http://dx.doi.org/10.1021/jz5001787)` `[10.1021/jz5001787](http://arxiv.org/abs/http://dx.doi.org/10.1021/jz5001787)`, `[doi:10.1021/jz5001787](http://dx.doi.org/10.1021/jz5001787)` . URL `[http://dx.doi.org/10.1021/jz5001787](http://dx.doi.org/10.1021/jz5001787)` [16] [A. Walsh, D. O. Scanlon, S. Chen, X. G. Gong, S.-H. Wei, Self-regulation mechanism for charged point defects in hybrid halide perovskites,](http://dx.doi.org/10.1002/ange.201409740) Angewandte Chemie 127 (6) (2015) 1811–1814. `[doi:10.1002/ange.201409740](http://dx.doi.org/10.1002/ange.201409740)` . URL `[http://dx.doi.org/10.1002/ange.201409740](http://dx.doi.org/10.1002/ange.201409740)` [17] H. Zhu, G. Hautier, U. Aydemir, Z. M. Gibbs, G. Li, S. Bajaj, J.-H. Pohls, D. Broberg, W. Chen, A. Jain, M. A. White, M. Asta, G. J. Snyder, K. Persson, G. Ceder, Computational and experimental investigation of [TmAgTe2](http://dx.doi.org/10.1039/C5TC01440A) and XYZ2 compounds, a new group of thermoelectric [materials identified by first-principles high-throughput screening, J. Mater. Chem. C 3 (2015) 10554–10565.](http://dx.doi.org/10.1039/C5TC01440A) `[doi:10.1039/C5TC01440A](http://dx.doi.org/10.1039/C5TC01440A)` . URL `[http://dx.doi.org/10.1039/C5TC01440A](http://dx.doi.org/10.1039/C5TC01440A)` [18] [G. S. Pomrehn, A. Zevalkink, W. G. Zeier, A. vandeWalle, G. J. Snyder, Defect-Controlled Electronic Properties in AZn2Sb2](http://dx.doi.org/10.1002/anie.201311125) Zintl Phases, Angewandte Chemie International Edition 53 (13) (2014) 3422–3426. `[doi:10.1002/anie.201311125](http://dx.doi.org/10.1002/anie.201311125)` . URL `[http://dx.doi.org/10.1002/anie.201311125](http://dx.doi.org/10.1002/anie.201311125)` [19] C. G. Van de Walle, J. Neugebauer, [First-principles calculations for defects and impurities:](http://scitation.aip.org/content/aip/journal/jap/95/8/10.1063/1.1682673) Applications to III-nitrides, Journal of Applied Physics 95 (8) (2004) 3851–3879. `[doi:http://dx.doi.org/10.1063/1.1682673](http://dx.doi.org/http://dx.doi.org/10.1063/1.1682673)` . URL `[http://scitation.aip.org/content/aip/journal/jap/95/8/10.1063/1.1682673](http://scitation.aip.org/content/aip/journal/jap/95/8/10.1063/1.1682673)` [20] [S. Lany, A. Zunger, Accurate prediction of defect properties in density functional supercell calculations, Modelling and Simulation in Mate-](http://stacks.iop.org/0965-0393/17/i=8/a=084002) rials Science and Engineering 17 (8) (2009) 084002. URL `[http://stacks.iop.org/0965-0393/17/i=8/a=084002](http://stacks.iop.org/0965-0393/17/i=8/a=084002)` [21] H. Peng, D. O. Scanlon, V. Stevanovic, J. Vidal, G. W. Watson, S. Lany, Convergence of density and hybrid functional defect calculations for compound semiconductors, Physical Review B 88 (11) (2013) 115201. [22] M. Giantomassi, M. Stankovski, R. Shaltaf, M. Gr¨uning, F. Bruneval, P. Rinke, G.-M. Rignanese, Electronic properties of interfaces and defects from many-body perturbation theory: Recent developments and applications, physica status solidi (b) 248 (2) (2011) 275–289. [23] J. E. Northrup, M. S. Hybertsen, S. G. Louie, [Theory of quasiparticle energies in alkali metals,](http://link.aps.org/doi/10.1103/PhysRevLett.59.819) Phys. Rev. Lett. 59 (1987) 819–822. `[doi:](http://dx.doi.org/10.1103/PhysRevLett.59.819)` `[10.1103/PhysRevLett.59.819](http://dx.doi.org/10.1103/PhysRevLett.59.819)` . URL `[http://link.aps.org/doi/10.1103/PhysRevLett.59.819](http://link.aps.org/doi/10.1103/PhysRevLett.59.819)` [24] [J.-L. Li, G.-M. Rignanese, E. K. Chang, X. Blase, S. G. Louie, GW study of the metal-insulator transition of bcc hydrogen, Phys. Rev. B 66](http://link.aps.org/doi/10.1103/PhysRevB.66.035102) (2002) 035102. `[doi:10.1103/PhysRevB.66.035102](http://dx.doi.org/10.1103/PhysRevB.66.035102)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.66.035102](http://link.aps.org/doi/10.1103/PhysRevB.66.035102)` 18 [25] [A. I. Liechtenstein, V. I. Anisimov, J. Zaanen, Density-functional theory and strong interactions:](https://link.aps.org/doi/10.1103/PhysRevB.52.R5467) Orbital ordering in mott-hubbard insulators, Phys. Rev. B 52 (1995) R5467–R5470. `[doi:10.1103/PhysRevB.52.R5467](http://dx.doi.org/10.1103/PhysRevB.52.R5467)` . URL `[https://link.aps.org/doi/10.1103/PhysRevB.52.R5467](https://link.aps.org/doi/10.1103/PhysRevB.52.R5467)` [26] E. Finazzi, C. Di Valentin, G. Pacchioni, A. Selloni, Excess electron states in reduced bulk anatase TiO2: comparison of standard GGA, GGA+U, and hybrid DFT calculations., The Journal of Chemical Physics 129 (15) (2008) 154113–154113. [27] J.-C. Wu, J. Zheng, P. Wu, R. Xu, Study of native defects and transition-metal (Mn, Fe, Co, and Ni) doping in a zinc-blende CdS photocatalyst by DFT and hybrid DFT calculations, J. Phys. Chem. C 115 (13) (2011) 5675–5682. `[doi:{10.1021/jp109567c}](http://dx.doi.org/{10.1021/jp109567c})` . [28] [C. W. M. Castleton, A. Hglund, S. Mirbt, Density functional theory calculations of defect energies using supercells, Modelling and Simulation](http://stacks.iop.org/0965-0393/17/i=8/a=084003) in Materials Science and Engineering 17 (8) (2009) 084003. URL `[http://stacks.iop.org/0965-0393/17/i=8/a=084003](http://stacks.iop.org/0965-0393/17/i=8/a=084003)` [29] A. Goyal, P. Gorai, H. Peng, S. Lany, V. Stevanovi´c, A computational framework for automation of point defect calculations, Computational Materials Science 130 (2017) 1–9. [30] E. P´ean, J. Vidal, S. Jobic, C. Latouche, Presentation of the PyDEF post-treatment python software to compute publishable charts for defect energy formation, Chemical Physics Letters. [31] K. Yim, J. Lee, D. Lee, M. Lee, E. Cho, H. Lee, H. Nahm, S. Han, Property database for single-element doping in ZnO obtained by automated first-principles calculations., Scientific Reports 7 (2017) 40907–40907. [32] A. Jain, S. P. Ong, G. Hautier, W. Chen, W. D. Richards, S. Dacek, S. Cholia, D. Gunter, D. Skinner, G. Ceder, et al., Commentary: The materials project: A materials genome approach to accelerating materials innovation, APL Materials 1 (1) (2013) 011002. [33] J. P. Perdew, K. Burke, M. Ernzerhof, Generalized gradient approximation made simple, Physical review letters 77 (18) (1996) 3865. [34] C. Freysoldt, J. Neugebauer, C. G. Van de Walle, Fully _Ab Initio_ Finite-Size Corrections [for Charged-Defect](http://link.aps.org/doi/10.1103/PhysRevLett.102.016402) Supercell Calculations, Phys. Rev. Lett. 102 (2009) 016402. `[doi:10.1103/PhysRevLett.102.016402](http://dx.doi.org/10.1103/PhysRevLett.102.016402)` . URL `[http://link.aps.org/doi/10.1103/PhysRevLett.102.016402](http://link.aps.org/doi/10.1103/PhysRevLett.102.016402)` [35] [Y. Kumagai, F. Oba, Electrostatics-based finite-size corrections for first-principles point defect calculations, Phys. Rev. B 89 (2014) 195205.](http://link.aps.org/doi/10.1103/PhysRevB.89.195205) `[doi:10.1103/PhysRevB.89.195205](http://dx.doi.org/10.1103/PhysRevB.89.195205)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.89.195205](http://link.aps.org/doi/10.1103/PhysRevB.89.195205)` [36] N. E. R. Zimmermann, A. Jain, M. Haranczyk, Structure motif assessment based on order parameters for automatic motif identification, interstitial finding, and diffusion path characterization, in preparation (2017). [37] G. Kresse, J. Hafner, Ab initio molecular dynamics for liquid metals, Physical Review B 47 (1) (1993) 558. [38] G. Kresse, J. Hafner, Ab initio molecular-dynamics simulation of the liquid-metal–amorphous-semiconductor transition in germanium, Phys ical Review B 49 (20) (1994) 14251. [39] W. D. Richards, L. J. Miara, Y. Wang, J. C. Kim, G. Ceder, Interface stability in solid-state batteries, Chemistry of Materials 28 (1) (2015) 266–273. [40] J. Sun, R. C. Remsing, Y. Zhang, Z. Sun, A. Ruzsinszky, H. Peng, Z. Yang, A. Paul, U. Waghmare, X. Wu, et al., Accurate first-principles structures and energies of diversely bonded systems from an efficient density functional, Nature Chemistry 8 (9) (2016) 831–836. [41] B. G. Janesko, T. M. Henderson, G. E. Scuseria, Screened hybrid density functionals [for](http://dx.doi.org/10.1039/B812838C) solid-state chemistry and physics, Phys. Chem. Chem. Phys. 11 (2009) 443–454. `[doi:10.1039/B812838C](http://dx.doi.org/10.1039/B812838C)` . URL `[http://dx.doi.org/10.1039/B812838C](http://dx.doi.org/10.1039/B812838C)` [42] H. A. Tahini, A. Chroneos, S. T. Murphy, U. Schwingenschl¨ogl, R. W. Grimes, Vacancies and defect levels in III-V semiconductors, J. Appl. Phys. 114 (6). `[doi:{10.1063/1.4818484}](http://dx.doi.org/{10.1063/1.4818484})` . [43] M. G. Medvedev, I. S. Bushmarinov, J. Sun, J. P. Perdew, K. A. Lyssenko, Density functional theory is [straying](http://science.sciencemag.org/content/355/6320/49) from the path toward the exact [functional,](http://science.sciencemag.org/content/355/6320/49) Science 355 (6320) (2017) 49–52. `[arXiv:http://science.sciencemag.org/content/355/6320/49.full.pdf](http://arxiv.org/abs/http://science.sciencemag.org/content/355/6320/49.full.pdf)`, `[doi:10.1126/science.aah5975](http://dx.doi.org/10.1126/science.aah5975)` . URL `[http://science.sciencemag.org/content/355/6320/49](http://science.sciencemag.org/content/355/6320/49)` [44] J. W. Doak, K. J. Michel, C. Wolverton, Determining dilute-limit solvus boundaries in multi-component systems using defect energetics: Na in PbTe and PbS, Journal of Materials Chemistry C 3 (40) (2015) 10630–10649. [45] S. B. Zhang, J. E. Northrup, Chemical potential dependence of defect formation energies in GaAs: Application to Ga self-diffusion, Phys. Rev. Lett. 67 (1991) 2339–2342. `[doi:10.1103/PhysRevLett.67.2339](http://dx.doi.org/10.1103/PhysRevLett.67.2339)` . URL `[http://link.aps.org/doi/10.1103/PhysRevLett.67.2339](http://link.aps.org/doi/10.1103/PhysRevLett.67.2339)` [46] A. Jain, G. Hautier, S. P. Ong, C. J. Moore, C. C. Fischer, K. A. Persson, G. Ceder, Formation enthalpies by [mixing](https://link.aps.org/doi/10.1103/PhysRevB.84.045115) GGA and GGA + _U_ [calculations, Phys. Rev. B 84 (2011) 045115.](https://link.aps.org/doi/10.1103/PhysRevB.84.045115) `[doi:10.1103/PhysRevB.84.045115](http://dx.doi.org/10.1103/PhysRevB.84.045115)` . URL `[https://link.aps.org/doi/10.1103/PhysRevB.84.045115](https://link.aps.org/doi/10.1103/PhysRevB.84.045115)` [47] B. Medasani, M. L. Sushko, K. M. Rosso, D. K. Schreiber, S. M. Bruemmer, Vacancies and [vacancy-mediated](http://dx.doi.org/10.1021/acs.jpcc.7b00071) self diffusion in Cr2O3: A [first-principles study, The Journal of Physical Chemistry C 121 (3) (2017) 1817–1831.](http://dx.doi.org/10.1021/acs.jpcc.7b00071) `[arXiv:http://dx.doi.org/10.1021/acs.jpcc.](http://arxiv.org/abs/http://dx.doi.org/10.1021/acs.jpcc.7b00071)` `[7b00071](http://arxiv.org/abs/http://dx.doi.org/10.1021/acs.jpcc.7b00071)`, `[doi:10.1021/acs.jpcc.7b00071](http://dx.doi.org/10.1021/acs.jpcc.7b00071)` . URL `[http://dx.doi.org/10.1021/acs.jpcc.7b00071](http://dx.doi.org/10.1021/acs.jpcc.7b00071)` [48] [H. A. Tahini, X. Tan, U. Schwingenschlgl, S. C. Smith, Formation and migration of oxygen vacancies in SrCoO3](http://dx.doi.org/10.1021/acscatal.6b00937) and their effect on oxygen [evolution reactions, ACS Catalysis 6 (8) (2016) 5565–5570.](http://dx.doi.org/10.1021/acscatal.6b00937) `[arXiv:http://dx.doi.org/10.1021/acscatal.6b00937](http://arxiv.org/abs/http://dx.doi.org/10.1021/acscatal.6b00937)`, `[doi:10.1021/](http://dx.doi.org/10.1021/acscatal.6b00937)` `[acscatal.6b00937](http://dx.doi.org/10.1021/acscatal.6b00937)` . URL `[http://dx.doi.org/10.1021/acscatal.6b00937](http://dx.doi.org/10.1021/acscatal.6b00937)` [49] P. Agoston, <sup>´</sup> K. Albe, R. M. Nieminen, M. J. Puska, Intrinsic n-type behavior in transparent conducting oxides: A comparative hybrid functional study of In2O3, SnO2, and ZnO, Physical review letters 103 (24) (2009) 245501. [50] [G. Hautier, S. P. Ong, A. Jain, C. J. Moore, G. Ceder, Accuracy of density functional theory in predicting formation energies of ternary oxides](http://link.aps.org/doi/10.1103/PhysRevB.85.155208) [from binary oxides and its implication on phase stability, Phys. Rev. B 85 (2012) 155208.](http://link.aps.org/doi/10.1103/PhysRevB.85.155208) `[doi:10.1103/PhysRevB.85.155208](http://dx.doi.org/10.1103/PhysRevB.85.155208)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.85.155208](http://link.aps.org/doi/10.1103/PhysRevB.85.155208)` [51] W. Sun, S. T. Dacek, S. P. Ong, G. Hautier, A. Jain, W. D. Richards, A. C. Gamst, K. A. Persson, G. Ceder, The [thermodynamic](http://advances.sciencemag.org/content/2/11/e1600225) scale of [19](http://advances.sciencemag.org/content/2/11/e1600225) [inorganic crystalline metastability, Science Advances 2 (11).](http://advances.sciencemag.org/content/2/11/e1600225) `[arXiv:http://advances.sciencemag.org/content/2/11/e1600225.](http://arxiv.org/abs/http://advances.sciencemag.org/content/2/11/e1600225.full.pdf)` `[full.pdf](http://arxiv.org/abs/http://advances.sciencemag.org/content/2/11/e1600225.full.pdf)`, `[doi:10.1126/sciadv.1600225](http://dx.doi.org/10.1126/sciadv.1600225)` . URL `[http://advances.sciencemag.org/content/2/11/e1600225](http://advances.sciencemag.org/content/2/11/e1600225)` [52] S. Lany, A. Zunger, Assessment of correction methods for the band-gap problem and for finite-size effects in supercell defect calculations: Case studies for ZnO and GaAs, Physical Review B 78 (23) (2008) 235104. [53] S. E. Taylor, F. Bruneval, Understanding and correcting the spurious interactions in charged supercells, Physical Review B 84 (7) (2011) 075155. [54] C. Freysoldt, J. Neugebauer, C. G. Van de Walle, Electrostatic interactions [between](http://dx.doi.org/10.1002/pssb.201046289) charged defects in supercells, physica status solidi (b) 248 (5) (2011) 1067–1076. `[doi:10.1002/pssb.201046289](http://dx.doi.org/10.1002/pssb.201046289)` . URL `[http://dx.doi.org/10.1002/pssb.201046289](http://dx.doi.org/10.1002/pssb.201046289)` [55] G. Makov, M. C. Payne, Periodic boundary [conditions](http://link.aps.org/doi/10.1103/PhysRevB.51.4014) in _ab_ _initio_ calculations, Phys. Rev. B 51 (1995) 4014–4022. `[doi:10.1103/](http://dx.doi.org/10.1103/PhysRevB.51.4014)` `[PhysRevB.51.4014](http://dx.doi.org/10.1103/PhysRevB.51.4014)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.51.4014](http://link.aps.org/doi/10.1103/PhysRevB.51.4014)` [56] [H.-P. Komsa, T. T. Rantala, A. Pasquarello, Finite-size supercell correction schemes for charged defect calculations, Phys. Rev. B 86 (2012)](http://link.aps.org/doi/10.1103/PhysRevB.86.045112) 045112. `[doi:10.1103/PhysRevB.86.045112](http://dx.doi.org/10.1103/PhysRevB.86.045112)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.86.045112](http://link.aps.org/doi/10.1103/PhysRevB.86.045112)` [57] [S. Boeck, C. Freysoldt, A. Dick, L. Ismer, J. Neugebauer, The object-oriented DFT program library S/PHI/nX, Computer Physics Communi-](http://www.sciencedirect.com/science/article/pii/S0010465510003619) cations 182 (3) (2011) 543 – 554. `[doi:http://dx.doi.org/10.1016/j.cpc.2010.09.016](http://dx.doi.org/http://dx.doi.org/10.1016/j.cpc.2010.09.016)` . URL `[http://www.sciencedirect.com/science/article/pii/S0010465510003619](http://www.sciencedirect.com/science/article/pii/S0010465510003619)` [58] G. Petretto, F. Bruneval, Systematic defect donor levels in III-V and II-VI semiconductors revealed by hybrid functional density-functional theory, Phys. Rev. B 92 (22) (2015) 224111. `[doi:{10.1103/PhysRevB.92.224111}](http://dx.doi.org/{10.1103/PhysRevB.92.224111})` . [59] P. De´ak, B. Aradi, M. Kaviani, T. Frauenheim, A. Gali, Formation of NV centers in diamond: a theoretical study based on calculated transitions and migration of nitrogen and vacancy related defects, Phys. Rev. B 89 (7) (2014) 075203. `[doi:{10.1103/PhysRevB.89.](http://dx.doi.org/{10.1103/PhysRevB.89.075203})` `[075203}](http://dx.doi.org/{10.1103/PhysRevB.89.075203})` . [60] A. Chroneos, H. A. Tahini, U. Schwingenschl¨ogl, R. W. Grimes, Antisites in III-V semiconductors: Density functional theory calculations, J. Appl. Phys. 116 (2). `[doi:{10.1063/1.4887135}](http://dx.doi.org/{10.1063/1.4887135})` . [61] F. Corsetti, A. A. Mostofi, System-size convergence of point defect properties: the case of the silicon vacancy, Phys. Rev. B 84 (3) (2011) 035209. `[doi:{10.1103/PhysRevB.84.035209}](http://dx.doi.org/{10.1103/PhysRevB.84.035209})` . [62] P. Li, S. Deng, L. Zhang, G. Liu, J. Yu, Native point defects in ZnS: first-principles studies based on LDA, LDA + U and an extrapolation scheme, Chem. Phys. Lett. 531 (2012) 75–79. `[doi:{10.1016/j.cplett.2012.02.008}](http://dx.doi.org/{10.1016/j.cplett.2012.02.008})` . [63] L. S. dos Santos, W. G. Schmidt, E. Rauls, Group-VII point defects in ZnSe, Phys. Rev. B 84 (11) (2011) 115201. `[doi:{10.1103/](http://dx.doi.org/{10.1103/PhysRevB.84.115201})` `[PhysRevB.84.115201}](http://dx.doi.org/{10.1103/PhysRevB.84.115201})` . [64] J. Neugebauer, C. G. Van de Walle, Atomic geometry and electronic structure of native defects in GaN, Phys. Rev. B 50 (11) (1994) 8067– 8070. `[doi:{10.1103/PhysRevB.50.8067}](http://dx.doi.org/{10.1103/PhysRevB.50.8067})` . [65] M. O’Keeffe, N. E. Brese, Atom sizes and bond lengths in molecules and crystals, J. Am. Chem. Soc. 113 (9) (1991) 3226–3229. `[doi:](http://dx.doi.org/{10.1021/ja00009a002})` `[{10.1021/ja00009a002}](http://dx.doi.org/{10.1021/ja00009a002})` . [66] A. Gibson, R. Haydock, J. P. LaFemina, [Stability of vacancy defects in MgO: The role of charge neutrality,](http://link.aps.org/doi/10.1103/PhysRevB.50.2582) Phys. Rev. B 50 (1994) 2582– 2592. `[doi:10.1103/PhysRevB.50.2582](http://dx.doi.org/10.1103/PhysRevB.50.2582)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.50.2582](http://link.aps.org/doi/10.1103/PhysRevB.50.2582)` [67] B. Peters, Competing nucleation pathways in a mixture of oppositely charged colloids: out-of-equilibrium nucleation revisited, J. Chem. Phys. 131 (24) (2009) 244103. [68] N. E. R. Zimmermann, B. Vorselaars, D. Quigley, B. Peters, Nucleation of NaCl from aqueous solution: critical sizes, ion-attachment kinetics, and rates, J. Am. Chem. Soc. 137 (41) (2015) 13352–13361. [69] S. Decoster, B. De Vries, U. Wahl, J. G. Correia, A. Vantomme, Experimental evidence of tetrahedral interstitial and bond-centered Er in Ge, Appl. Phys. Lett. 93 (14) (2008) 141907. `[doi:{10.1063/1.2996280}](http://dx.doi.org/{10.1063/1.2996280})` . [70] S. Decoster, S. Cottenier, B. De Vries, H. Emmerich, U. Wahl, J. G. Correia, A. Vantomme, Transition metal impurities on the bond-centered site in germanium, Phys. Rev. Lett. 102 (6) (2009) 065502. `[doi:{10.1103/PhysRevLett.102.065502}](http://dx.doi.org/{10.1103/PhysRevLett.102.065502})` . [71] S. Decoster, B. De Vries, U. Wahl, J. G. Correia, A. Vantomme, Lattice location study of implanted In in Ge, J. Appl. Phys. 105 (8) (2009) 083522. `[doi:{10.1063/1.3110104}](http://dx.doi.org/{10.1063/1.3110104})` . [72] S. Decoster, S. Cottenier, U. Wahl, J. G. Correia, A. Vantomme, Lattice location study of ion implanted Sn and Sn-related defects in Ge, Phys. Rev. B 81 (15) (2010) 155204. `[doi:{10.1103/PhysRevB.81.155204}](http://dx.doi.org/{10.1103/PhysRevB.81.155204})` . [73] S. Decoster, S. Cottenier, U. Wahl, J. G. Correia, L. M. C. Pereira, C. Lacasta, M. R. Da Silva, A. Vantomme, Diluted manganese on the bond-centered site in germanium, Appl. Phys. Lett. 97 (15) (2010) 151914. `[doi:{10.1063/1.3501123}](http://dx.doi.org/{10.1063/1.3501123})` . [74] L. M. C. Pereira, U. Wahl, S. Decoster, J. G. Correia, M. R. da Silva, A. Vantomme, J. P. Ara´ujo, Direct identification of interstitial Mn in heavily _p_ -type doped GaAs and evidence of its high thermal stability, Appl. Phys. Lett. 98 (20) (2011) 201905. `[doi:{10.1063/1.3592568}](http://dx.doi.org/{10.1063/1.3592568})` . [75] L. M. C. Pereira, U. Wahl, S. Decoster, J. G. Correia, L. M. Amorim, M. R. da Silva, J. P. Araujo, A. Vantomme, Stability and diffusion of interstitial and substitutional Mn in GaAs of different doping types, Phys. Rev. B 86 (12) (2012) 125206. `[doi:{10.1103/PhysRevB.86.](http://dx.doi.org/{10.1103/PhysRevB.86.125206})` `[125206}](http://dx.doi.org/{10.1103/PhysRevB.86.125206})` . [76] S. Decoster, U. Wahl, S. Cottenier, J. G. Correia, T. Mendonc¸a, L. M. Amorim, L. M. C. Pereira, A. Vantomme, Lattice position and thermal stability of diluted As in Ge, J. Appl. Phys. 111 (5) (2012) 053528. `[doi:{10.1063/1.3692761}](http://dx.doi.org/{10.1063/1.3692761})` . [77] L. M. Amorim, U. Wahl, L. M. C. Pereira, S. Decoster, D. J. Silva, M. R. da Silva, A. Gottberg, J. G. Correia, K. Temst, A. Vantomme, Precise lattice location of substitutional and interstitial Mg in AlN, Appl. Phys. Lett. 103 (26) (2013) 262102. `[doi:{10.1063/1.4858389}](http://dx.doi.org/{10.1063/1.4858389})` . [78] D. J. Silva, U. Wahl, J. G. Correia, L. M. C. Pereira, L. M. Amorim, M. R. da Silva, E. Bosne, J. P. Ara´ujo, Lattice location and thermal stability of implanted nickel in silicon studied by on-line emission channeling, J. Appl. Phys. 115 (2) (2014) 023504. `[doi:{10.1063/1.4861142}](http://dx.doi.org/{10.1063/1.4861142})` . [79] H. Hofs¨ass, G. Lindner, Emission channeling and blocking, Phys. Rep. (Rev. Sec. Phys. Lett.) 201 (3) (1991) 121–183. `[doi:{10.1016/](http://dx.doi.org/{10.1016/0370-1573%0x2891%0x2990121-2})` [20](http://dx.doi.org/{10.1016/0370-1573%0x2891%0x2990121-2}) `[0370-1573(91)90121-2}](http://dx.doi.org/{10.1016/0370-1573%0x2891%0x2990121-2})` . [80] M. R. Silva, U. Wahl, J. G. Correia, L. M. Amorim, L. M. C. Pereira, A versatile apparatus for on-line emission channeling experiments, Rev. Sci. Instrum. 84 (7) (2013) 073506. `[doi:{10.1063/1.4813266}](http://dx.doi.org/{10.1063/1.4813266})` . [81] Z. Rong, R. Malik, P. Canepa, G. S. Gautam, M. Liu, A. Jain, K. Persson, G. Ceder, Materials design rules for multivalent ion mobility in intercalation structures, Chem. Mater. 27 (17) (2015) 6016–6021. `[doi:{10.1021/acs.chemmater.5b02342}](http://dx.doi.org/{10.1021/acs.chemmater.5b02342})` . [82] Y. Wang, W. D. Richards, S. P. Ong, L. J. Miara, J. C. Kim, Y. Mo, G. Ceder, Design principles for solid-state lithium superionic conductors, Nat. Mater. 14 (10) (2015) 1026–1031. `[doi:{10.1038/NMAT4369}](http://dx.doi.org/{10.1038/NMAT4369})` . [83] A. De Vita, The energetics of defects and impurities in metals and ionic materials from first principles, Ph.D. thesis, Keele University (Aug 1992). [84] A. Jain, S. P. Ong, W. Chen, B. Medasani, X. Qu, M. Kocher, M. Brafman, G. Petretto, G.-M. Rignanese, G. Hautier, D. Gunter, K. A. Persson, Fireworks: a dynamic workflow system [designed](http://dx.doi.org/10.1002/cpe.3505) for high-throughput applications, Concurrency and Computation: Practice and Experience 27 (17) (2015) 5037–5059, cPE-14-0307.R2. `[doi:10.1002/cpe.3505](http://dx.doi.org/10.1002/cpe.3505)` . URL `[http://dx.doi.org/10.1002/cpe.3505](http://dx.doi.org/10.1002/cpe.3505)` [85] P. A. Schultz, O. A. von Lilienfeld, [Simple intrinsic defects in gallium arsenide,](http://stacks.iop.org/0965-0393/17/i=8/a=084007) Modelling and Simulation in Materials Science and Engi neering 17 (8) (2009) 084007. URL `[http://stacks.iop.org/0965-0393/17/i=8/a=084007](http://stacks.iop.org/0965-0393/17/i=8/a=084007)` [86] [F. El-Mellouhi, N. Mousseau, Self-vacancies in gallium arsenide:](http://link.aps.org/doi/10.1103/PhysRevB.71.125207) An _ab initio_ calculation, Phys. Rev. B 71 (2005) 125207. `[doi:10.1103/](http://dx.doi.org/10.1103/PhysRevB.71.125207)` `[PhysRevB.71.125207](http://dx.doi.org/10.1103/PhysRevB.71.125207)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.71.125207](http://link.aps.org/doi/10.1103/PhysRevB.71.125207)` [87] J. T. Schick, C. G. Morgan, P. Papoulias, [First-principles study of As interstitials in GaAs:](http://link.aps.org/doi/10.1103/PhysRevB.66.195302) Convergence, relaxation, and formation energy, Phys. Rev. B 66 (2002) 195302. `[doi:10.1103/PhysRevB.66.195302](http://dx.doi.org/10.1103/PhysRevB.66.195302)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.66.195302](http://link.aps.org/doi/10.1103/PhysRevB.66.195302)` [88] H.-P. Komsa, A. Pasquarello, [Identification of defect levels at As/oxide interfaces through hybrid functionals,](http://www.sciencedirect.com/science/article/pii/S0167931711003406) Microelectronic Engineering 88 (7) (2011) 1436 - 1439, proceedings of the 17th Biennial International Insulating Films on Semiconductor Conference17th Biennial International Insulating Films on Semiconductor Conference. `[doi:http://dx.doi.org/10.1016/j.mee.2011.03.081](http://dx.doi.org/http://dx.doi.org/10.1016/j.mee.2011.03.081)` . URL `[http://www.sciencedirect.com/science/article/pii/S0167931711003406](http://www.sciencedirect.com/science/article/pii/S0167931711003406)` [89] [J. E. Northrup, S. B. Zhang, Energetics of the As vacancy in GaAs:](http://link.aps.org/doi/10.1103/PhysRevB.50.4962) The stability of the 3+ charge state, Phys. Rev. B 50 (1994) 4962–4964. `[doi:10.1103/PhysRevB.50.4962](http://dx.doi.org/10.1103/PhysRevB.50.4962)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.50.4962](http://link.aps.org/doi/10.1103/PhysRevB.50.4962)` [90] [H.-P. Komsa, A. Pasquarello, Assessing the accuracy of hybrid functionals in the determination of defect levels: Application to the As antisite](http://link.aps.org/doi/10.1103/PhysRevB.84.075207) [in GaAs, Phys. Rev. B 84 (2011) 075207.](http://link.aps.org/doi/10.1103/PhysRevB.84.075207) `[doi:10.1103/PhysRevB.84.075207](http://dx.doi.org/10.1103/PhysRevB.84.075207)` . URL `[http://link.aps.org/doi/10.1103/PhysRevB.84.075207](http://link.aps.org/doi/10.1103/PhysRevB.84.075207)` [91] K. Lejaeghere, G. Bihlmayer, T. Bjoerkman, P. Blaha, S. Bluegel, V. Blum, D. Caliste, I. E. Castelli, S. J. Clark, A. Dal Corso, S. de Giron coli, T. Deutsch, J. K. Dewhurst, I. Di Marco, C. Draxl, M. Dulak, O. Eriksson, J. A. Flores-Livas, K. F. Garrity, L. Genovese, P. Giannozzi, M. Giantomassi, S. Goedecker, X. Gonze, O. Granaes, E. K. U. Gross, A. Gulans, F. Gygi, D. R. Hamann, P. J. Hasnip, N. A. W. Holzwarth, D. Iusan, D. B. Jochym, F. Jollet, D. Jones, G. Kresse, K. Koepernik, E. Kuecuekbenli, Y. O. Kvashnin, I. L. M. Locht, S. Lubeck, M. Marsman, N. Marzari, U. Nitzsche, L. Nordstrom, T. Ozaki, L. Paulatto, C. J. Pickard, W. Poelmans, M. I. J. Probert, K. Refson, M. Richter, G.-M. Rignanese, S. Saha, M. Scheffler, M. Schlipf, K. Schwarz, S. Sharma, F. Tavazza, P. Thunstroem, A. Tkatchenko, M. Torrent, D. Vanderbilt, M. J. van Setten, V. Van Speybroeck, J. M. Wills, J. R. Yates, G.-X. Zhang, S. Cottenier, Reproducibility in density functional theory calculations of solids, Science 351 (6280) (2016) 1415–U81. 21

섹션 본문 72문단 · 50,318자

(제목 없음)

1Point defects have a strong impact on the performance of semiconductor and insulator materials used in technological applications, spanning microelectronics to energy conversion and storage. The nature of the dominant defect types, how they vary with processing conditions, and their impact on materials properties are central aspects that determine the performance of a material in a certain application. This information is, however, difficult to access directly from experimental measurements. Consequently, computational methods, based on electronic density functional theory (DFT), have found widespread use in the calculation of point-defect properties. Here we have developed the Python Charged Defect Toolkit (PyCDT) to expedite the setup and post-processing of defect calculations with widely used DFT software. PyCDT has a user-friendly command-line interface and provides a direct interface with the Materials Project database. This allows for setting up many charged defect calculations for any material of interest, as well as post-processing and applying state-of-the-art electrostatic correction terms. Our paper serves as a documentation for PyCDT, and demonstrates its use in an application to the well-studied GaAs compound semiconductor. We anticipate that the PyCDT code will be useful as a framework for undertaking readily reproducible calculations of charged point-defect properties, and that it will provide a foundation for automated, high-throughput calculations.

Introduction

2Point defects in semiconductors and insulators govern a range of mechanical, transport, electronic, and optoelectronic properties [4,5,6,7,8]. Due to the fact that the properties of these defects are difficult to characterize fully from experiment [8,9], computational tools have been widely applied. Many applications such as lanthanide-doped scintillator materials [10,11], transparent conducting oxide materials [12,13,14], photovoltaic materials [15,16], and new thermoelectric materials [17,18] have benefited from leveraging theory for calculating point defect properties in next generation technologies.

3For this reason, calculations using electronic density functional theory (DFT) have arisen as a reliable route to explore the dopability of materials at the atomic scale [9,19,20,21]. However, two sources of error in the associated point defect calculations limit the application of charged defect DFT efforts in a high-throughput framework. First, semi-local exchange-correlation approximations (e.g., generalized gradient approximation (GGA)) can severely underestimate the band gap so that usage of post DFT methods becomes pivotal (e.g., GW [22,23,24] and GGA+U methods [25,26], and hybrid functionals [27]). Second, applying periodic boundary conditions with finite sized defect supercells to model point defects makes a defect interact with its own images [9,28], thus, causing departure from the key assumption made in the dilute limit formation energy formalism [9,28]. In the case of charged point defects, the finite sized supercell assumption also introduces the need for correcting the electrostatic potential [9,20]. Typically, the strongest defect-defect interaction is the Coulomb interaction between charged point defects. Based on well-known scaling laws, these interactions were first treated with computationally costly supercell scaling methods, which require multiple calculations for each defect [28]. A faster route to computing defect formation energies became available with the development of a posteriori correctional techniques. While the a posteriori corrections allow for fewer calculations to be performed, their usage requires experience in addressing issues arising from delocalization of the defect wavefunction [20]. Furthermore, the calculations are often resource demanding and tedious because of the large number of pre-and post-processing steps involved.

4To address these problems we have developed the Python Charged Defects Toolkit (PyCDT), which enables expanded applications in the context of materials discovery and design. Our python-based tools automate the setup and analysis of DFT calculations of isolated intrinsic and extrinsic point defects (vacancies, antisites, substitutions, and interstitials) in semiconductors and insulators. While other efforts have recently been made available with similar objectives [29,30,31], PyCDT is unique in its direct queries to the Materials Project [32] database (expediting chemical potential and stability analysis for Perdew-Burke-Ernzerhof (PBE) GGA calculations) [33].

5A central objective of defects modeling in non-metallic systems is determining the relative stability of different defect charge states. PyCDT therefore implements the defect formation energy formalism reviewed in Sections 2.1, 2.2, 2.3 and 2.4. To minimize the errors in defect formation energies arising from the periodic boundary conditions, PyCDT supports the commonly used correction scheme due to Freysoldt et al. [34] and its extension to anisotropic systems by Kumagai and Oba [35] (Section 2.4). Our tools also include charge-state assignment procedures developed on the basis of extensive literature data (Section 2.5) and an effective interstitial-finding algorithm [36] (Section 2.6). Furthermore, PyCDT provides a user-friendly command-line interface that provides ready access to all tools. We demonstrate the setup and analysis of the defect calculations from the command line in Section 3 using gallium arsenide (GaAs) as an example system and by employing the widely-used Vienna Ab initio Simulation Package (VASP) [37,38] as a backend DFT software. In Section 4, we validate the finite-size charge correction schemes implemented and verify the results obtained for GaAs. We emphasize that our approaches and implementations are entirely general, thus, seamlessly facilitating extensions to other DFT packages.

Background and Methods

6In general, point defects can be divided into two categories: intrinsic and extrinsic [8]. Intrinsic (or native [8,9]) point defects (Figure 1: top) involve only chemical species that are part of the perfect bulk material (e.g., Si in silicon).

7For elemental materials, there are two basic intrinsic defect types: vacancies (e.g., vac Si , denoting a vacancy on Si site) and self-interstitials (e.g., Si i ). For compounds (e.g., GaAs), there is an additional defect type: antisites (e.g., As Ga ). Because intrinsic point defects are equilibrium defects due to configurational entropy, they can be well described and their occurrence understood in the framework of equilibrium thermodynamics (formation energies, E f , used to predict equilibrium concentrations, c).

Intrinsic interstitialcy Antisite

8Substitution Extrinsic interstitialcy Extrinsic defects (Figure 1: bottom), which are also referred to as impurities [8,9], introduce a foreign chemical species into the perfect bulk material [4]. These include substitutional defects (e.g., Mn Ga ) and extrinsic interstitials (e.g., Mn i ). We distinguish between extrinsic and intrinsic defects because impurities are often inserted on purpose (intentional doping) under well-defined conditions to achieve desired material properties; in particular, electrical and optoeletronic properties [8]. The conditions under which extrinsic defects are inserted (e.g., via implantation or quenching) often differ extremely from the thermodynamic equilibrium assumption made in the assessment of intrinsic point defects. Despite the limited conceptual applicability, the thermodynamic framework still represents the most commonly pursued route to assessing "dopability" of materials [9,10,11,12,13,14,15,16,17,18].

9In contrast to metals, point defects in semiconductors and insulators can carry a charge [8] localized around the defect site. Physically, these charged point defects introduce states within the band gap which can trap charge carriers (electrons and holes). Defect states that are close to the band edges are able to ionize to create free carriers, while states that are deep in the gap lead to strong carrier trapping. This may be wanted (e.g., in photovoltaics [16]) or not (e.g., solid-state electrolyte batteries [39]). Because many technological applications use intentional doping to improve performance, knowledge of the capacity to dope a material ("dopability") is desirable and motivates the exploration of defect properties with theoretical methods.

Formalism for equilibrium point defects

10The thermodynamics of point defects has been the subject of many excellent reviews (see, for example, refs. [9,19,20] and references therein), which have presented and discussed the underlying physics and properties in great detail. In the following sections, we focus on describing the procedures implemented in PyCDT for computing quantities of interest for point defects (i.e., formation energies and transition levels) with DFT calculations. The applications of the defect formalism to be described are limited by the intrinsic shortcomings of DFT (e.g., the wellknown underestimation of the band gap [20]).

11There is a hierarchy of DFT-based methods that can be used within the defect formalism implemented by PyCDT. The simplest approximation in DFT is the use of a semilocal functional (i.e., local-density approximation (LDA), GGA), which is computationally most efficient, but has well-known limitations due to band gap inaccuracies. Higher levels of theory include hybrid-functionals and meta-GGA, both of which can be used to achieve higher accuracy, however, at an increased computational cost [40,41]. Despite the limitations of semilocal DFT, defect calculations have proven useful for revealing the dominating defects under different growth conditions encountered in many experiments, such as the III-V semiconductors [42]. While recent developments in hybrid functionals and meta-GGA have shown promise in addressing the inherent limitations in accuracy associated with semi-local functionals [40,41], recent evidence shows that new improvements to the approximations for exchange and correlation in one system do not always yield universal improvements for other systems with similar chemistries [43]. With this fact considered, semilocal approximations at least have the benefit of having predictable errors which can be corrected with appropriate techniques [20].

12While PyCDT's unique interface with the Materials Project (MP) database, which is composed of GGA and GGA+U level data, suggests a restriction to semi-local approaches, PyCDT has many functionalities which help place defect formation energetics closer to those obtained from higher levels of theory. One feature that is particularly useful is the ability for PyCDT to help expedite the setup and parsing stages of defect calculations performed on higher levels of DFT theory (e.g. for improved chemical potentials, setting up a user's personal phase diagram calculation based on a composition of interest). These features are described further in the following sections.

Defect Formation Energies

13The primary quantity of interest is the formation energy, E f [X], which is the energy cost to form or create an isolated defect, X, in a bulk or host material. The formation energy of an isolated defect (i.e., in the dilute limit) depends on the defect charge state, q: E f [X q ]. It can be calculated from DFT supercells using:

14We illustrate this equation graphically in Figure 2 and note that each term will be described in detail in subsequent sub-sections. E tot [X q ] and E tot [bulk] are the total DFT-derived energies of the defective and pristine bulk supercells, respectively. The third term, − i n i µ i , is a summation over the atomic chemical potentials, or the energy cost of an atom, µ i , being added (n i = +1) or removed (n i = −1) from the bulk undefective supercell. The atomic chemical potential can reflect the growth conditions of the material, allowing this formalism to be used to guide defect engineering approaches (cf., Section 2.3). The fourth term, qE F , represents the energetic cost of adding or removing electrons, where E F is the Fermi energy, which serves as the chemical potential of the electron reservoir. The Fermi energy is usually referenced to the valence band maximum from a band structure calculation, such that the formation energy can be plotted as a function of the Fermi energy across the band gap. Finally, E corr is a correction term due to the presence of periodic images that becomes necessary for charged defects in DFT supercell calculations. This correction has drawn significant attention from the defects modeling community, resulting in a number of alternative computational approaches that are discussed in more detail in Section 2.4.

Chemical Potentials

15The atomic chemical potential is associated with the thermodynamic energy cost for exchanging atoms between the defect and a thermodynamic reservoir. The individual chemical potentials are set by the composition of the material (e.g., the mole fraction of As in GaAs) which itself is determined by the defect formation energies. Hence, two approaches can be used to derive the individual chemical potentials. One involves the use of a statistical thermodynamic formalism (canonical ensemble approach), to compute the concentration dependent free energy of the compound and to derive the relationship between the chemical potentials and composition [44]. More frequently, bounds on the chemical potentials are set (grand-canonical ensemble approach), in a manner first defined by Zhang and Northrup [45], from zero-temperature energies alone. Only the grand-canonical approach is currently included in PyCDT, whereas future versions will also support canonical approaches to chemical potential calculations. Below we demonstrate the grand-canonical approach for the simple example of GaAs. The bulk energy (or free energy at finite temperature) per formula unit, µ 0 GaAs , fixes a relation for the chemical potentials of gallium, µ Ga , and arsenic, µ As , respectively: µ 0 GaAs = µ Ga + µ As . For Ga-rich compositions, the values of µ Ga are constrained by stability of the compound relative to the precipitation of excess Ga to form a bulk Ga phase. At zero temperature, this constraint can be expressed as µ Ga < µ 0 Ga , where µ 0 Ga is the energy per atom of bulk Ga. Thus, one extremum can be selected as the "Ga-rich" limit, where µ Ga = µ 0 Ga . The atomic chemical potential of As is then fixed: µ As = µ 0 GaAs − µ 0 Ga . The same approach holds for As-rich compositions (above: interchange Ga and As labels with each other). While the Ga-As system has a phase diagram with just one unique compound, the more general case has multiple stable compounds, which requires the limits of stability to be expressed in terms of the formation of compounds with neighboring compositions within the phase diagram. In general, the chemical potentials in an n-component system will be defined in PyCDT by defining the limits of stability for the different possible n-phase states of equilibria.

16As an example, consider the Sn-Se system which has a 0 K ground-state hull that contains the phases Sn, SnSe, SnSe 2 and Se. When calculating defects in the SnSe phase, the "Se-rich" limit would instead be defined by equilibrium with the SnSe 2 phase (Equation 2), combined with the stability condition for bulk SnSe (Equation 3). This forms a system of equations for the chemical potentials of µ S n and µ S e .

17This formalism for calculating equilibrium bounds on the chemical potentials requires knowledge of the groundstate hull, which governs the zero-temperature limit of the phase diagram of the system. The advantage of this formalism is that defect formation energies can be obtained entirely from first principles calculations, rendering experimental input unnecessary. The drawback is that one must compute the full phase diagram of the system using the same functional choice used for the defect calculations. In applications of the PyCDT code based on the PBE-GGA exchange-correlation potential, PyCDT uses the ground-state hulls that are made available through the MP database [32]. PyCDT has integrated functionality that queries the MP database for every computed DFT entry in the phase diagram so that no new calculations are required to compute the bounds on the chemical potentials. Note that correct usage of the MP data for defect calculations requires consistency between personal defect calculations and the calculations from the MP. This is easily checked through the compatibility tools available in pymatgen [3]. If the bulk phase is thermodynamically stable and is not already computed in the MP database, PyCDT manually inserts the computed phase into the phase diagram and then provides all of the associated bounds on the chemical potentials. If a user prefers to compute chemical potentials on a different level of theory than is provided by the MP, the core code of PyCDT can be used to setup and calculate atomic chemical potentials through first pulling the composition's phase diagram, and using the structural information to setup a personal phase diagram calculation for the user. In a similar manner, this information can be setup for any DFT code desired by the user through the use of Pymatgen's code agnostic classes.

18For highly correlated systems such as transition metal oxides, MP settings default to GGA+U. When computing the phase diagram that contains a mixture of GGA and GGA+U computed phases, MP employs the mixing scheme of Jain et al. [46], which adds an empirical correction to the energies of GGA+U compounds. The mixing scheme was shown to give formation energies that are consistent with experimental data with a mean absolute relative error of under 2%. The resulting correction term to the chemical potentials was found to be important in several defect studies [47,48].

19One complication that should be mentioned is the case where the compound under consideration does not reside on the convex hull. That is, the compound is higher in energy than another compound with the same composition or with respect to phase separation to compounds with other compositions. In this instance, the calculation is predicting the compound to not be present in the equilibrium phase diagram in the limit of zero temperature. For small energyabove-hull values, this situation could indicate that the compound is stabilized by entropic contributions at finite tempearture [49], or could be an artifact of the previously mentioned inaccuracies of DFT [50], or the experimentally synthesized phase exists in a state of metastable equilibrium [51]. Regardless of the reason, a positive energy-abovehull value presents a practical problem for defining the chemical potential.

20In such cases, PyCDT issues a warning and the chemical potentials used are with respect to the phases in equilibrium at the given composition in the phase diagram. In figure 2c, this situation is graphically represented by the data points labeled "(2)", where the red X above the hull is the compound of interest and PyCDT uses the red triangle to define a set of compounds in equilibrium for defining the atomic chemical potentials. In these instances, the computed defect physics should be interpreted with caution. The user may wish to define the chemical-potential limits based on more detailed knowledge of the growth conditions or compute the chemical potentials from a full finite-temperature free energy model of the compound of interest.

Periodic Supercell Corrections

21Periodic boundary conditions (PBCs) are the standard way to deal with the regular arrangement of crystalline solids in DFT calculations. Once a defect is introduced, PBCs can give rise to sizable interactions of the defect with its periodic images, contrasting the assumption made above for the dilute-defect limit. Because this limit is consistent with the thermodynamic formalism outlined in Sec. 2.2, the interactions between neighboring defect images should be minimized to yield accurate formation energies. For charged defects in semiconductors and insulators, Coulombic interaction with neighboring images exists, which decays as 1/L, where L is the supercell periodic length. The charge interactions are the dominant effect that need to be taken into account when correcting the formation energy of defects in non-metals. Elastically-mediated interactions which are due to the strain fields induced when the positions of atoms near the defects also exist, but decay more rapidly in real space, and are often minimal [9]. In cases where these interactions are important, methods have been developed to account for them (see [9] and references therein), which will not be addressed in the following discussion.

22To account for the charge correction one approach has been to create successively larger defect supercells. Scaling laws for the electrostatic interactions with respect to system size are then used in order to extrapolate E f to the dilute limit [52,53]. An alternative approach is based on an a posteriori analysis of the electrostatic potential for a single supercell calculation [34,54]. An important requirement for the alternative approach is that the charge be sufficiently localized within the vicinity of the defect. If so, a moderately sized defect supercell typically suffices, hence, offering a computationally more efficient route to calculating reliable defect formation energies. The latter methodology, referred to as "correction methods" in the following, is employed in PyCDT.

23Correction methods address two issues:

241. the electrostatic energy from the interaction between the charged defect and its images, and 2. a potential alignment term that corrects for a fictitious jellium background required to maintain overall charge neutrality in the system.

25Many different methods have been proposed to correct for these two terms, as summarized in several comprehensive reviews (see, e.g., [9,19,20,28] and references therein). The theoretical starting point for the correction methods considers a periodic array of point charges (cf., Figure 2e) with an associated Madelung energy, E M :

26where V M is the Madelung potential, is the dielectric constant, and α is the Madelung constant which solely depends on the geometry of the periodic array. Makov and Payne [55] introduced one of the earliest charge correction 6 methodologies by deriving the next leading order term to the interaction potential. This results in a term that scales as L −3 , and, therefore, most supercell scaling approaches fit uncorrected formation energies to the form of aL −1 + bL −3 . Komsa et al. [56] used this supercell scaling method for evaluating the performance of different correction methods that are based on single supercell calculations. They concluded that the correction by Freysoldt et al. [34] produces the most reliable charge corrections for defects with charges that are well localized within the supercell. From all considered defects, the authors calculated a mean absolute error of 0.09 eV in the formation energy between the estimate from the 64-atom supercell with charge corrections and the estimate from the supercell-scaling method (i.e., using extrapolation toward the dilute-defect limit, but without applying any charge correction).

27PyCDT includes a Python implementation of the correction scheme derived by Freysoldt et al. [34] and implemented in the open-source DFT software S/PHI/nX [57]. The approach is based on a separation of the long-range and short-range interactions between charged defects, using information directly outputted from a DFT calculation. Originally, an isotropic dielectric constant was assumed. Recently, Kumagai and Oba [35] extended the approach to anisotropic systems, by considering the full dielectric tensor. The analytic expression of the Madelung potential under isotropic conditions facilitates the use of a Gaussian distribution for the defect charge, whereas the analytic expression of Madelung potential for anisotropic systems is limited to point charges.

28The authors of the two correction methods suggest different approaches to calculating the potential alignment correction. The isotropic correction by Freysoldt et al. uses a planar average of the electrostatic short range potential while the anisotropic correction by Kumagai and Oba takes averages of this same potential at each atomic site outside a given radius from the defect. Both approaches are available in the PyCDT code, with the isotropic correction by Freysoldt et al. being the default. The planar averaging method can become problematic when large relaxation occurs, as the atomic sites contribute heavily to the change in electrostatic potential. The atomic site averaging method can become problematic if a small cell size results in a small number of atoms being sampled, causing statistical sampling errors. While, in principle, these alignment corrections should be equivalent, tests that we conducted revealed nonnegligible discrepancies. However, the potential-alignment term often tends to be small (∼0.1 eV), and, therefore, to not change overall trends in defect formation energies.

29The correction methods used for point defects in semiconductors and insulators have been an intensely debated topic in the past decade [9]. One issue upon which there is common agreement is that large defect-defect interactions change the energetics of the system so that the computed defect formation energies are no longer relevant for physical quantities like defect concentrations or thermodynamic transition levels. These unwanted defect-defect interactions frequently lead to delocalization of the defect charges, the instance of which has to be ascertained manually. Several methods that address delocalization can be found in the literature [9,20,52].

30If we assume that the defect charge can indeed be localized within the level of DFT used, then best practice demands to balance computational expediency (supercell size) with sufficient localization of the charge around a defect as indicated by the outputs of the charge correction method chosen. In the original derivation of the isotropic correction by Freysoldt et al., the middle "plateau" region of the electrostatic potential yields information about the separation of long range and short range effects. A flat plateau indicates that the Coulomb potential has been removed from the total potential generated by DFT, and short range effects have not delocalized throughout the entire supercell. As a result, Freysoldt et al. [34] suggested that the flatness of the resultant "plateau" yields a qualitative metric for the success of the calculation. When running the isotropic correction by Freysoldt et al. in PyCDT, the planar averaged electrostatic potential is analyzed for variations larger than 0.2 eV-a number that stems from experience, and can be altered in the code if the user prefers to. If this criterion is not met, the code raises a warning. In such a case, the user should consider the possibility of delocalization.

31For users who desire additional corrections related to improving corrections with semilocal functional approaches, the development branch of PyCDT also includes the ability to include band edge level alignment with respect to the average electrostatic potential, shallow level corrections based on the values for band edge alignment, and Moss-Burnstein band filling corrections [20]. Parts of these corrections require some subjective judgment calls to be made by the user, so they are not included in the automation procedure by default.

Charge Ranges

32Charge ranges, [q min , q max ], have to be estimated beforehand for a given defect X, and for this purpose ionic models typically form the basis of such predictions [58]. Known oxidation states of the element(s) involved in X can then be used to define the charge states to be considered. However, common ionic models do not always predict the most stable defect. Tahini et al. have, in this context, shown that combining gallium or aluminum with group-V elements can yield negatively charged anion vacancies, whereas an ionic model predicts a +3 charge state [42]. In PyCDT, we implemented different procedures to determine the range of defect charges for semiconductors and insulators. Users can choose between either of these two options and a custom range of defect charges for each defect, as described in Section 3.1.

33To address the issue of uncommon charge states found in semiconductors, we developed a data-driven approach that combines elemental oxidation states with results from literature for determining the optimal charge assignment process. We compiled a list of stable charge states (Table A.2) from previous studies for various defects in zinc blende and diamond-like semiconductor structures [27,42,58,59,60,61,62,63,64]. Procedures adhering more or less strictly to ionic models resulted in too few charge states when compared with the literature. The most effective approach that we found employs a bond-valence estimation scheme [3,65] to obtain formal charges of elements in the bulk structure, as well as minima and maxima of common oxidation states of bulk and defect elements. The formal charges and common oxidation-state ranges are subsequently used in a defect type-dependent assignment procedure: The algorithm successfully includes all charge states from our benchmark list in Table A.2 by yielding, on an average, 6.4 states per defect. The average number of states produced too much per defect in comparison to literature (excess charge states) are 1.1 is 1.9 at the lower (more negative) and at the upper (more positive) charge bound, respectively. This is desirable because including more charge states on either side ensures no extra states become stabilized when varying the Fermi level within the band gap. Hence, the effective relative excess in charge states is 20% and, thus, acceptable.

34For insulators, the number of defect charge states is typically less than for the above discussed semiconductors. For example, the charge states in MgO range from −2 to 0 and 0 to +2 for cation and anion vacancies, respectively [66]. Any other charge state is not considered because of the high ionization energy required to form Mg 3+ and the high electron affinity of O 2to form O 3 -. Hence, the oxidation states of cations and anions are limited to [0, y] and [−x, 0] for a binary A x B y insulator, where A is a cation and B is an anion.

Interstitials

35PyCDT uses an effective and easily extendable approach for interstitial site finding (Interstitial Finding Tool: In-FiT) that has been recently introduced by Zimmermann et al. [36]. The procedure systematically searches for tentative interstitial sites by employing coordination pattern-recognition capabilities [67,68] implemented in pymatgen [3]. In Algorithm 1, we provide a simplified pseudo-code representation of the approach. The detected interstitial sites exhibit coordination patterns that resemble basic structural motifs (e.g., tetrahedral and octahedral environments). Such interstitial sites are particularly important because several [69,70,71,72,73,74,75,76,77,78] β − emission channeling measurements [79,80] have identified them as the most prevalent types of isolated defects after substitutions for impurities implanted into similar materials as we consider here (zinc blende/wurtzite-like and diamond-like structures). Bond-center interstitials in a so-called split-vacancy configuration are also observed frequently. However, these are defect complexes-not isolated defects-and, thus, beyond the scope of the present PyCDT implementation. The interstitial search approach should also be suitable for intercalation and ion diffusion applications because related design rules typically rely on detection of tetrahedral, octahedral, bcc-, and fcc-like environments [81,82].

36Algorithm 1 Interstitial Site Searching 1: GetNeighbors(struct, inter trial site, dmin, delta) Get a list of neighbors of site inter trial site in struct that are within a sphere of (1 + delta) dmin. 2: GetCoordinationDescriptor(point, neighs, coord type)

37Calculate the value of the descriptor for the target coordination environment coord type of an atom at point with neighbors neighs. Let inter sites be a new empty list 6: Let coord descr be a new empty list 7: for point on a regularly mashed grid in struct with resolution dl do 8:

38Let dmin be the distance from point to the closest crystal atom 9: if dmin > 1 Å then 10: Let inter trial site be a new S ite object of type inter elem located at point 11: Let struct plus inter be a new S tructure object ← struct appended by inter trial site 12: for delta starting from dstart in ddelta steps to dend do 13: Let neighs be a new list ← GetNeighbors(struct plus inter, inter trial site, dmin, delta) 14: for coord type having index icoord in all coord types do 15: Let this coord descr be a float number ← GetCoordinationDescriptor(point, neighs, coord type) 16: if this coord descr > thresh[icoord] then 17: Add entry to inter sites list ← inter trial site 18: Add entry to coord descr list ← this coord descr 19: break 20:

39Let labels be a list of coord type-specific cluster labels for each entry in inter sites which are found with a distance threshold of 1.01 dl.

21:

40Let include be a new empty list. 22: for unique label in labels do 23: Find site with index imax in inter sites that has highgest coord descr among site with this unique label.

24:

41Add entry to include ← imax 25: f inal inter sites ← Prune the inter sites in include further to include symmetrically distinct sites only 26: return f inal inter sites

Default DFT Calculation Details

42PyCDT includes mechanisms to input user-defined settings for all DFT calculations. If no user settings are specified, then the following initial settings are specified for the calculation. The ions in the defective supercells are geometrically relaxed at constant volume until the force on each ion is less than 0.01 eV/Å. At each geometric step, the energy of the supercell is converged to 10 −6 eV. By default, spin polarization is turned on, and crystal symmetry is ignored to account for any symmetry breaking relaxations such as Jahn-Teller distortions. Electronic states are populated using a Gaussian smearing method [83] with a width of 0.05 eV. While no geometric relaxation is performed for the non-defective bulk supercell, a calculation that is necessary for the charge correction, the electronic degrees of freedom are optimized with the same settings applied to the defect-supercell calculations. A 2 × 2 × 2 Monkhorst-Pack k-point mesh is used for the defect calculations. For any other parameters, we adopt the standard MP settings [3]. Finally, we emphasize that PyCDT also includes mechanisms to input user-defined settings for DFT calculations which can be used for extending calculations beyond the exchange and correlation approximation of GGA.

PyCDT Usage and Examples

43PyCDT was developed in a way that reflects different analysis stages (Figure 3): setup of DFT calculations, parsing of finished jobs, computation of a correction term, and plotting of formation energies. This allows reuse and integration of parts of the code in other packages. Our package has a dependency on pymatgen [3], matplotlib [2] and numpy [1], and it was developed and tested for Linux and Mac OS X. However, we also expect it to work on Windows (with cygwin). Below, we describe in detail how to proceed through the general charged-defect calculation workflow outlined in Figure 3 using our PyCDT command-line feature. We demonstrate its usage on the basis of GaAs and with VASP [37,38] as the backend DFT code. While the command-line interface is a quick and easy route to use PyCDT, we point out that the core classes within PyCDT are entirely general and can be used for any desired applications that involves setting up, computing charge corrections, and/or parsing defect calculations.

Setup of DFT Defect Calculations

44The starting point for setting up charged defect calculations is the crystal structure. The user can provide the bulk structure in one of two ways:

451. by the name of a structure file of conventional format (e.g., cif, cssr), or code specific formats such as POSCAR that are recognized by pymatgen, or 2. via a Materials Project identifier (MPID).

46Crystal structures from MP [32] are obtained through the Materials Application Programming Interface (MAPI) [3]. In the MP database, each structure is assigned a unique identifier. These MPIDs have the format mp-XXX in which mp-is prefixed to a positive integer XXX. In the following, we use GaAs (mp-2534), which has the zinc-blende structure, as an example for performing all different stages of charged defect-property calculations with PyCDT.

47We first generate the defect supercells and the bulk supercell using pymatgen's defect structure generator and the defect structure classes in the core of PyCDT. The two steps for generating the input files are combined into a single command:

48pycdt generate input ( --structure file structure file | --mpid mpid ) [ --mapi key

49mapi key ] [ --nmax max no atoms in supercell ]

50With --nmax, the user defines the maximal number of atoms in the defect supercell. If the parameter is not given, a default value of 128 is used, which was shown to result in well converged defect formation energies after finite size corrections were included in systems with dielectric constants greater than 5.0 [27,56]. The mapi key is required if querying the MP database, and is found on the Dashboard after logging into the MP website.

51The input file-generation command creates a folder, representing the reduced chemical formula of the crystal structure (e.g., GaAs). It contains several subfolders, whose names are indicative of the calculations to be performed:

52• bulk : calculation of pristine crystal structure,

53• dielectric: calculation of macroscopic static dielectric tensor (ion clamped high frequency, ∞ , plus the ionic contribution, ion ) from DFT perturbation theory, (used by the charged defect correction)

54• deftype n info: calculation of the n-th symmetrically distinct defect of type deftype (vacancies: vac; antisites: as; substitutions: sub; interstitials: inter) with properties info.

55By default, the above command generates vacancy and antisite defects only. Hence, there are four defect folders for GaAs, which has two sublattices, corresponding to one antisite and one vacancy defect on each sublattice. Table 1 summarizes the default defect types and resulting folder names for GaAs. GaAs/vac 1 Ga Vac As GaAs/vac 2 As Ga As

56GaAs/as 1 Ga on As As Ga GaAs/as 2 As on Ga

57Substitutional and interstitial defects have to be invoked explicitly with the keyword --sub host species substitution species. Multiple substitutional defects can be generated by repeating the --sub keyword with the desired host species and the corresponding substituting species. The substitution folders are labeled in the same manner as the antisites, only changing as to sub.

58The setup of coordination-pattern resembling interstitials is invoked by the --include interstitials command-line option. PyCDT produces intrinsic interstitials as per default only. Extrinsic interstitials can be achieved by providing a list of elements as positional arguments (e.g., --include interstitials Mn). To obtain both intrinsic and extrinsic interstitials the intrinsic elements have to be explicitly mentioned (e.g., --include interstitials Ga As Mn). As for the other defect types, PyCDT enumerates the interstitial calculation folders according to symmetrically distinct sites found. The info part of the interstitial folder names indicate (1) the type of the atom located on an interstitial site having a certain (2) coordination pattern and (3) chemical environment. For example, inter 1 As oct Ga6 shows that we are dealing with an As interstitial that is octahedrally coordinated by six Ga atoms.

59For each defect type in semiconductors, multiple charge states are considered according to the algorithm outlined in Sec. 2.5. For insulators a conservative charge assignment is used as described in Sec. 2.5. By default, the input structure is considered a semiconductor. To specify the input structure is of insulator type, the option --type insulator can be used. The user can also modify the charge assignments for each defect by specifying either of the two flags, --oxi state or --oxi range. Alternatively, the option --type manual allows for the user to specify every charge state that is desired. The DFT input files associated with each of these charge states, q, are deposited into subfolders named charge q. For example, seven charge states are generated for the gallium vacancy in GaAs.

60Apart from the structure file, PyCDT automatically generates all other input files according to the settings used for the MP. The input settings can also be easily modified by supplying the parameters in a yaml or json file and using the keyword --input settings file settings file.yaml . For instance, the file user settings.yaml that we provide in the examples folder changes the default functional from PBE to PBEsol and increases the energy cutoff to 620 eV. When such changes are made, the user has to keep in mind that the atomic chemical potentials obtained from the MP database in the final parsing step have to be replaced by user computed ones with the corresponding changes included during chemical potential calculations -a process which can be sped up substantially with PyCDT's phase diagram set up and parsing feature. Any DFT settings that are specific to either the bulk, or the dielectric, or the defect calculations can be thus realized, too, as demonstrated in the example file. The input settings whether chosen by default or by the user are expected to be tested for appropriate convergence criteria. In addition to the input files for DFT calculations, PyCDT saves a transformation.json in each calculation folder, except for dielectric, to facilitate post-processing.

Parsing Finished Calculations

61The DFT calculations can be run either manually, with bash scripts, or with high throughput frameworks [84]. Once all the calculations have successfully completed, the generated output files are parsed to obtain all the data needed to compute defect formation energies, E f . This part of PyCDT is executed by reading the transformation.json file that was output from the previous file generation step. To initiate parsing from the command line interface, the user issues:

62Here, directory is the root folder of the calculations. If executed within the folder of the calculations the option can be omitted. Once the parsing is completed, PyCDT stores all the data required for next steps in a file called "defect data.json". If any of the calculations were not successfully converged according to the code output files, Py-CDT raises a warning, but continues parsing the rest of the calculations. The output file "defect data.json" contains the parsed energies of the defect and bulk supercells as well as other information required in the next steps to calculate finite size charge corrections and defect formation energies. Some of the additional data such as the dielectric constant is obtained by parsing the output from the dielectric calculation. The band gap and atomic chemical potentials generated in this step are obtained from computed entries in the MP database. Note that these band gaps are only accurate at the level of GGA, which often underestimates the gap by about 50%. The output file "defect data.json" is highly readable and users can edit the file to supplant parameters either parsed from the DFT calculations or obtained from the MP database. If the user prefers to have formation energies and transition levels closer to a higher level of theory (which can provide better band gaps than the GGA approximation), the band edge alignment procedures suggested in Section 2.4 can be used. Furthermore note that some structures in the MP database do not have fully computed band structures, which results in poorly converged band-gap characteristics.

Computation of Correction Term

63Correcting Here, correction method keywords can be either freysoldt for correction due to Freysoldt et al. [34,54] or kumagai for the approach extended to anisotropic systems by Kumagai and Oba [35]. As shown in Section 4.1, these codes have been rigorously tested against the results from the codes of the original authors. The command line interface requires the defect data file generated in the previous step, defect data.json, for computing the corrections. This flag can be omitted if the file name is unchanged. The calculated corrections for each defect charge state are stored in a file called corrections.json. By rerunning the command with different correction keywords, one can quickly obtain the corrections computed with different frameworks. Shown in Figure 4 are the resulting potential alignment plots for each correction type on the Ga −2

64As defect in GaAs. The sampling regions for obtaining the potential alignment correction defaults to 1Å in the middle region of the planar average plots recommended by Freysoldt et al. [54], and to the region outside of the Wigner-Seitz radius for atomic site averaging method, following the approach described in Ref. [35]. The width of these default sampling regions can be changed by modifying the instantiation of the relevant PyCDT correction classes. [34,54], and at right is anisotropic correction by Kumagai and Oba, using the atomic site averaging method. [35].

Formation Energy Plots and Transition Levels

65Once the defect energetics and the correction values are obtained and specified in the defect data.json and corrections.json files, the transitition levels and formation energies of each defect across the band gap can be determined by: By default, PyCDT uses the band gap stored in the MP database, which is computed with GGA-PBE and, hence, under-predicted when compared to the experimental band gap. As mentioned several times in this work, this approximation can be improved upon with the optional corrections included, such as the band edge realignment feature of PyCDT. A simpler approximation to improving the defect formation energies is to plot the defect formation energies across the experimental gap the user can specify the experimental band gap. This can be done from the command line with the keyword -bandgap band gap . This has the effect of extending the gap by shifting the conduction band minimum, but keeping the position of the valence band maximum and the defect levels fixed, and it is often called the "extended gap" scheme. We note that the extended gap option is strictly for plotting purposes and, thus, does not alter the defect formation energies nor the transition levels. If the names of the files obtained in the previous two steps are not changed, the corresponding options can be omitted. If the corrections.json file is not found and an alternative corrections file is not specified, PyCDT assumes that electrostatic corrections are not desired and computes the defect formation energies without any corrections. As detailed in Section 2.3, the defect formation energies are influenced by the chemical environment, and their range is determined by the phase stability of the various compounds formed by the constituent host and defect elements. Hence, two plots are generated corresponding to the chemical availability of the constituent host elements in the compound. The files "Ga rich formation energy.eps" and "As rich formation energy.eps" are shown in Figure 5. These results are verified to be consistent with literature results in Section 4.2.

Validation

66To validate PyCDT's implementation of each correction method, we ran the correction methods on the defects gen-

Verification

67To verify the results predicted from the example GaAs test set, we compared the defect formation energies in GaAs obtained from PyCDT with the data reported in literature. We note that all of the transition levels for the Vac Ga and As Ga defects are within the range of transition levels that we found for semi-local functional approximations in the literature. An exception is the As Ga (-1/-2) transition, which appears very far into the GGA-PBE conduction band. This outlier is off by 0.273 eV relative to the reported results by Chroneos et al [60]. For all transition levels that we predicted, we find a root mean square deviation of 0.218 eV from the window of values found in the literature [42,60,85,86,87,88,89,90]. This is a modest variation that reflects the difficulty in predicting defect levels consistently-even within the same level of theory.

Conclusion

68We have introduced PyCDT, a Python toolkit which facilitates the setup and post-processing of point defect calculations of semiconductor and insulator materials with widely available DFT suites. This open source code allows for coupling automated defect calculations to the massive amount of data generated by the Materials Project database. Apart from the underlying theory, approaches, and algorithms, this paper presents a detailed guide for how to use PyCDT at every step of the computation of charged defect properties employing the well-studied example of GaAs.

69While the example results were obtained from VASP [37,38] calculations, we carefully developed PyCDT in an abstracted form that adopts the advantageous code agnosticism of pymatgen [3]. This makes the provided tools attractive to any user interested in running defect calculations, regardless of DFT code preference. However, we emphasize that, despite its convenience and our effort to construct sensible defaults, the computation of defect properties with PyCDT still requires user expertise for choosing appropriate settings in certain circumstances and for interpreting the results meaningfully in general (i.e., we discourage purely "black box" usage).

70The PyCDT version presented here is 1.0.0. Future updates will, amongst others, include adaptations related to improved charge delocalization analysis, further defect corrections for issues like artificial band dispersion, as well as the possibility of generating defect complexes. On the application side, PyCDT could also be extended to compute configuration coordinate diagrams, so as to evaluate optical and luminescence transitions associated with the point defects in materials targeting optical applications.

71We hope that our openly available tools will help to standardize computational research in the realm of charged defects. In particular, we hope that reproducibility issues commonly encountered in DFT calculations [91] can be more effectively identified and tackled.

Structure Defect Charge States

72Ref.

참고문헌 97건

  1. Physical Processes in Inorganic Scintillators 2020 10.1201/9780138743352
  2. Point Defects in Semiconductors and Insulators: Determination of Atomic and Electronic Structure from Paramagnetic Hyperfine Interactions 2012
  3. Design principles for solid-state lithium superionic conductors Nature Materials · Nature Portfolio · 2015 10.1038/nmat4369
  4. Identification of defect levels at As/oxide interfaces through hybrid functionals Microelectronic Engineering · Elsevier BV · 2011 10.1016/j.mee.2011.03.081
  5. FireWorks: a dynamic workflow system designed for high‐throughput applications Concurrency and Computation Practice and Experience · Wiley · 2015 10.1002/cpe.3505
  6. Determining dilute-limit solvus boundaries in multi-component systems using defect energetics: Na in PbTe and PbS Journal of Materials Chemistry C · Royal Society of Chemistry · 2015 10.1039/c5tc02252e
  7. Nucleation of NaCl from Aqueous Solution: Critical Sizes, Ion-Attachment Kinetics, and Rates Journal of the American Chemical Society · American Chemical Society · 2015 10.1021/jacs.5b08098
  8. First-principles calculations for point defects in solids Reviews of Modern Physics · American Physical Society · 2014 10.1103/revmodphys.86.253
  9. Assessment of correction methods for the band-gap problem and for finite-size effects in supercell defect calculations: Case studies for ZnO and GaAs Physical Review B · American Physical Society · 2008 10.1103/physrevb.78.235104
  10. Charged point defects in semiconductors Materials Science and Engineering R Reports · Elsevier BV · 2006 10.1016/j.mser.2006.01.002
  11. Generalized Gradient Approximation Made Simple Physical Review Letters · American Physical Society · 1996 10.1103/physrevlett.77.3865
  12. Electronic structure and defect properties of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mrow><mml:mi mathvariant="normal">B</mml:mi></mml:mrow><mml:mn>6</mml:mn></mml:msub><mml:mi mathvariant="normal">O</mml:mi></mml:math> from hybrid functional and many-body perturbation theory calculations: A possible ambipolar transparent conductor Physical Review B · American Physical Society · 2014 10.1103/physrevb.90.045205
  13. The object-oriented DFT program library S/PHI/nX Computer Physics Communications · Elsevier BV · 2010 10.1016/j.cpc.2010.09.016
  14. Diluted manganese on the bond-centered site in germanium Applied Physics Letters · American Institute of Physics · 2010 10.1063/1.3501123
  15. Chemical potential dependence of defect formation energies in GaAs: Application to Ga self-diffusion Physical Review Letters · American Physical Society · 1991 10.1103/physrevlett.67.2339
  16. Transition Metal Impurities on the Bond-Centered Site in Germanium Physical Review Letters · American Physical Society · 2009 10.1103/physrevlett.102.065502
  17. Lattice location study of ion implanted Sn and Sn-related defects in Ge Physical Review B · American Physical Society · 2010 10.1103/physrevb.81.155204
  18. Commentary: The Materials Project: A materials genome approach to accelerating materials innovation APL Materials · American Institute of Physics · 2013 10.1063/1.4812323
  19. Stability of vacancy defects in MgO: The role of charge neutrality Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.50.2582
  20. Lattice position and thermal stability of diluted As in Ge Journal of Applied Physics · American Institute of Physics · 2012 10.1063/1.3692761
  21. Excess electron states in reduced bulk anatase TiO2: Comparison of standard GGA, GGA+U, and hybrid DFT calculations The Journal of Chemical Physics · American Institute of Physics · 2008 10.1063/1.2996362
  22. Dopability, Intrinsic Conductivity, and Nonstoichiometry of Transparent Conducting Oxides Physical Review Letters · American Physical Society · 2007 10.1103/physrevlett.98.045501
  23. Experimental evidence of tetrahedral interstitial and bond-centered Er in Ge Applied Physics Letters · American Institute of Physics · 2008 10.1063/1.2996280
  24. Formation enthalpies by mixing GGA and GGA<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:mo>+</mml:mo></mml:mrow></mml:math><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:mi>U</mml:mi></mml:mrow></mml:math>calculations Physical Review B · American Physical Society · 2011 10.1103/physrevb.84.045115
  25. Atomic geometry and electronic structure of native defects in GaN Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.50.8067
  26. Matplotlib: A 2D Graphics Environment Computing in Science & Engineering · AIP Publishing · 2007 10.1109/mcse.2007.55
  27. Python Materials Genomics (pymatgen): A robust, open-source python library for materials analysis Computational Materials Science · Elsevier BV · 2012 10.1016/j.commatsci.2012.10.028
  28. First-principles calculations for defects and impurities: Applications to III-nitrides Journal of Applied Physics · American Institute of Physics · 2004 10.1063/1.1682673
  29. Atom sizes and bond lengths in molecules and crystals Journal of the American Chemical Society · American Chemical Society · 1991 10.1021/ja00009a002
  30. Defect Tolerant Semiconductors for Solar Energy Conversion The Journal of Physical Chemistry Letters · American Chemical Society · 2014 10.1021/jz5001787
  31. Accurate prediction of defect properties in density functional supercell calculations Modelling and Simulation in Materials Science and Engineering · IOP Publishing · 2009 10.1088/0965-0393/17/8/084002
  32. System-size convergence of point defect properties: The case of the silicon vacancy Physical Review B · American Physical Society · 2011 10.1103/physrevb.84.035209
  33. Theory of quasiparticle energies in alkali metals Physical Review Letters · American Physical Society · 1987 10.1103/physrevlett.59.819
  34. <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>GW</mml:mi></mml:math>study of the metal-insulator transition of bcc hydrogen Physical review. B, Condensed matter · American Physical Society · 2002 10.1103/physrevb.66.035102
  35. Understanding and correcting the spurious interactions in charged supercells Physical Review B · American Physical Society · 2011 10.1103/physrevb.84.075155
  36. Electrostatics-based finite-size corrections for first-principles point defect calculations Physical Review B · American Physical Society · 2014 10.1103/physrevb.89.195205
  37. Direct identification of interstitial Mn in heavily p-type doped GaAs and evidence of its high thermal stability Applied Physics Letters · American Institute of Physics · 2011 10.1063/1.3592568
  38. Accuracy of density functional theory in predicting formation energies of ternary oxides from binary oxides and its implication on phase stability Physical Review B · American Physical Society · 2012 10.1103/physrevb.85.155208
  39. Emission channeling and blocking Physics Reports · Elsevier BV · 1991 10.1016/0370-1573(91)90121-2
  40. Precise lattice location of substitutional and interstitial Mg in AlN Applied Physics Letters · American Institute of Physics · 2013 10.1063/1.4858389
  41. Assessing the accuracy of hybrid functionals in the determination of defect levels: Application to the As antisite in GaAs Physical Review B · American Physical Society · 2011 10.1103/physrevb.84.075207
  42. Fully<i>Ab Initio</i>Finite-Size Corrections for Charged-Defect Supercell Calculations Physical Review Letters · American Physical Society · 2009 10.1103/physrevlett.102.016402
  43. Density functional theory calculations of defect energies using supercells Modelling and Simulation in Materials Science and Engineering · IOP Publishing · 2009 10.1088/0965-0393/17/8/084003
  44. Materials Science and Engineering: An Introduction, 7th Edition 2006
  45. Ab initio molecular dynamics for liquid metals Journal of Non-Crystalline Solids · Elsevier BV · 1995 10.1016/0022-3093(95)00355-x
  46. Electronic properties of interfaces and defects from many‐body perturbation theory: Recent developments and applications physica status solidi (b) · Wiley · 2010 10.1002/pssb.201046094
  47. Lattice location and thermal stability of implanted nickel in silicon studied by on-line emission channeling Journal of Applied Physics · American Institute of Physics · 2014 10.1063/1.4861142
  48. A versatile apparatus for on-line emission channeling experiments Review of Scientific Instruments · American Institute of Physics · 2013 10.1063/1.4813266
  49. Group-VII point defects in ZnSe Physical Review B · American Physical Society · 2011 10.1103/physrevb.84.115201
  50. Screened hybrid density functionals for solid-state chemistry and physics Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2008 10.1039/b812838c
  51. Energetics of the As vacancy in GaAs: The stability of the 3+ charge state Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.50.4962
  52. <i>Ab initio</i>molecular dynamics for liquid metals Physical review. B, Condensed matter · American Physical Society · 1993 10.1103/physrevb.47.558
  53. Competing nucleation pathways in a mixture of oppositely charged colloids: Out-of-equilibrium nucleation revisited The Journal of Chemical Physics · American Institute of Physics · 2009 10.1063/1.3271024
  54. Intrinsic<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>n</mml:mi></mml:math>-Type Behavior in Transparent Conducting Oxides: A Comparative Hybrid-Functional Study of<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msub><mml:mi>In</mml:mi><mml:mn>2</mml:mn></mml:msub><mml:msub><mml:mi mathvariant="bold">O</mml:mi><mml:mn>3</mml:mn></mml:msub></mml:math>,<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml… Physical Review Letters · American Physical Society · 2009 10.1103/physrevlett.103.245501
  55. Simple intrinsic defects in gallium arsenide Modelling and Simulation in Materials Science and Engineering · IOP Publishing · 2009 10.1088/0965-0393/17/8/084007
  56. Scintillation mechanisms in Ce<sup>3+</sup> doped halide scintillators physica status solidi (a) · Wiley · 2005 10.1002/pssa.200460106
  57. Periodic boundary conditions in<i>ab initio</i>calculations Physical review. B, Condensed matter · American Physical Society · 1995 10.1103/physrevb.51.4014
  58. <i>Ab initio</i>molecular-dynamics simulation of the liquid-metal–amorphous-semiconductor transition in germanium Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.49.14251
  59. Finite-size supercell correction schemes for charged defect calculations Physical Review B · American Physical Society · 2012 10.1103/physrevb.86.045112
  60. Vacancies and defect levels in III–V semiconductors Journal of Applied Physics · American Institute of Physics · 2013 10.1063/1.4818484
  61. Lattice location study of implanted In in Ge Journal of Applied Physics · American Institute of Physics · 2009 10.1063/1.3110104
  62. Native point defects in ZnS: First-principles studies based on LDA, LDA+U and an extrapolation scheme Chemical Physics Letters · Elsevier BV · 2012 10.1016/j.cplett.2012.02.008
  63. Computational and experimental investigation of TmAgTe<sub>2</sub>and XYZ<sub>2</sub>compounds, a new group of thermoelectric materials identified by first-principles high-throughput screening Journal of Materials Chemistry C · Royal Society of Chemistry · 2015 10.1039/c5tc01440a
  64. Über die Reduction der positiven quadratischen Formen mit drei unbestimmten ganzen Zahlen. Journal für die reine und angewandte Mathematik (Crelles Journal) · De Gruyter · 1850 10.1515/crll.1850.40.209
  65. Self‐Regulation Mechanism for Charged Point Defects in Hybrid Halide Perovskites Angewandte Chemie International Edition · Wiley · 2014 10.1002/anie.201409740
  66. Convergence of density and hybrid functional defect calculations for compound semiconductors Physical Review B · American Physical Society · 2013 10.1103/physrevb.88.115201
  67. Self-vacancies in gallium arsenide: An<i>ab initio</i>calculation Physical Review B · American Physical Society · 2005 10.1103/physrevb.71.125207
  68. The energetics of defects and impurities in metals and ionic materials from first principles. 1992
  69. Density-functional theory and strong interactions: Orbital ordering in Mott-Hubbard insulators Physical review. B, Condensed matter · American Physical Society · 1995 10.1103/physrevb.52.r5467
  70. First-principles study of As interstitials in GaAs: Convergence, relaxation, and formation energy Physical review. B, Condensed matter · American Physical Society · 2002 10.1103/physrevb.66.195302
  71. Defect‐Controlled Electronic Properties in <i>A</i>Zn<sub>2</sub>Sb<sub>2</sub> Zintl Phases Angewandte Chemie International Edition · Wiley · 2014 10.1002/anie.201311125
  72. Interface Stability in Solid-State Batteries Chemistry of Materials · American Chemical Society · 2015 10.1021/acs.chemmater.5b04082
  73. Antisites in III-V semiconductors: Density functional theory calculations Journal of Applied Physics · American Institute of Physics · 2014 10.1063/1.4887135
  74. Materials Design Rules for Multivalent Ion Mobility in Intercalation Structures Chemistry of Materials · American Chemical Society · 2015 10.1021/acs.chemmater.5b02342
  75. Reproducibility in density functional theory calculations of solids Science · American Association for the Advancement of Science · 2016 10.1126/science.aad3000
  76. Dopants and Defects in Semiconductors Materials Today · Elsevier BV · 2012 10.1016/s1369-7021(12)70146-3
  77. Stability and diffusion of interstitial and substitutional Mn in GaAs of different doping types Physical Review B · American Physical Society · 2012 10.1103/physrevb.86.125206
  78. Formation of NV centers in diamond: A theoretical study based on calculated transitions and migration of nitrogen and vacancy related defects Physical Review B · American Physical Society · 2014 10.1103/physrevb.89.075203
  79. Conductivity Limits in CuAlO<sub>2</sub> from Screened-Hybrid Density Functional Theory The Journal of Physical Chemistry Letters · American Chemical Society · 2010 10.1021/jz1011725
  80. Study of Native Defects and Transition-Metal (Mn, Fe, Co, and Ni) Doping in a Zinc-Blende CdS Photocatalyst by DFT and Hybrid DFT Calculations The Journal of Physical Chemistry C · American Chemical Society · 2011 10.1021/jp109567c
  81. Accurate first-principles structures and energies of diversely bonded systems from an efficient density functional Nature Chemistry · Nature Portfolio · 2016 10.1038/nchem.2535
  82. Electrostatic interactions between charged defects in supercells physica status solidi (b) · Wiley · 2010 10.1002/pssb.201046289
  83. Formation and Migration of Oxygen Vacancies in SrCoO<sub>3</sub> and Their Effect on Oxygen Evolution Reactions ACS Catalysis · American Chemical Society · 2016 10.1021/acscatal.6b00937
  84. A computational framework for automation of point defect calculations Computational Materials Science · Elsevier BV · 2017 10.1016/j.commatsci.2016.12.040
  85. The thermodynamic scale of inorganic crystalline metastability Science Advances · American Association for the Advancement of Science · 2016 10.1126/sciadv.1600225
  86. Systematic defect donor levels in III-V and II-VI semiconductors revealed by hybrid functional density-functional theory Physical Review B · American Physical Society · 2015 10.1103/physrevb.92.224111
  87. Density functional theory is straying from the path toward the exact functional Science · American Association for the Advancement of Science · 2017 10.1126/science.aah5975
  88. Vacancies and Vacancy-Mediated Self Diffusion in Cr<sub>2</sub>O<sub>3</sub>: A First-Principles Study The Journal of Physical Chemistry C · American Chemical Society · 2017 10.1021/acs.jpcc.7b00071
  89. Presentation of the PyDEF post-treatment Python software to compute publishable charts for defect energy formation Chemical Physics Letters · Elsevier BV · 2017 10.1016/j.cplett.2017.01.001
  90. Property database for single-element doping in ZnO obtained by automated first-principles calculations Scientific Reports · Nature Portfolio · 2017 10.1038/srep40907
  91. Materials science and engineering: An introduction Materials Science and Engineering · Elsevier BV · 1987 10.1016/0025-5416(87)90343-0
  92. Assessing Local Structure Motifs Using Order Parameters for Motif Recognition, Interstitial Identification, and Diffusion Path Characterization Frontiers in Materials · Frontiers Media · 2017 10.3389/fmats.2017.00034
  93. First-principles study of luminescence in Ce-doped inorganic scintillators Physical Review B · American Physical Society · 2011 10.1103/physrevb.83.125115
  94. Self‐Regulation Mechanism for Charged Point Defects in Hybrid Halide Perovskites Angewandte Chemie · Wiley · 2014 10.1002/ange.201409740
  95. First-principles study of luminescence in Eu<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mrow /><mml:mrow><mml:mn>2</mml:mn><mml:mo>+</mml:mo></mml:mrow></mml:msup></mml:math>-doped inorganic scintillators Physical Review B · American Physical Society · 2014 10.1103/physrevb.89.155105
  96. Electronic Properties of Interfaces and Defects from Many‐Body Perturbation Theory: Recent Developments and Applications 2011 10.1002/9783527638529.ch3
  97. Dopants and Defects in Semiconductors CRC Press eBooks · Informa · 2012 10.1201/b11819