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

ViPErLEED package I: Calculation of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>I</mml:mi><mml:mo>(</mml:mo><mml:mi>V</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math> curves and structural optimization

관련 수소연료전지 · (7) MEA(막전극접합체)

기본 정보

저자
  1. Florian Kraushofer — TU Wien|||Technical University of Munich
  2. Alexander M. Imre — TU Wien
  3. Giada Franceschi — TU Wien
  4. Tilman Kißlinger — Friedrich-Alexander-Universität Erlangen-Nürnberg
  5. Erik Rheinfrank — TU Wien
  6. Michael Schmid — TU Wien
  7. Ulrike Diebold — TU Wien
  8. Lutz Hammer — Friedrich-Alexander-Universität Erlangen-Nürnberg
  9. Michele Riva — TU Wien
DOI
10.1103/physrevresearch.7.013005
저널
Physical Review Research
발행년도
2025
발행기관
American Physical Society
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1103/physrevresearch.7.013005
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4406048601

평가 내용

관련도
관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > MEA(막전극접합체)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Low-energy electron diffraction (LEED) is a widely used technique in surface-science laboratories. Yet, it is rarely used to its full potential. The quantitative information about the surface structure, contained in the modulation of the intensities of the diffracted beams as a function of incident electron energy, LEED <a:math xmlns:a="http://www.w3.org/1998/Math/MathML"><a:mrow><a:mi>I</a:mi><a:mo>(</a:mo><a:mi>V</a:mi><a:mo>)</a:mo></a:mrow></a:math>, is underutilized. To acquire these data, only minor adjustments would be required in most experimental setups, but existing analysis software is cumbersome to use and often computationally inefficient. The ViPErLEED (Vienna package for Erlangen LEED) project lowers these barriers, introducing a combined solution for user-friendly data acquisition, extraction, and computational analysis. These parts are discussed in three separate publications. Here, the focus is on the computational part of ViPErLEED, which performs highly automated LEED-<b:math xmlns:b="http://www.w3.org/1998/Math/MathML"><b:mrow><b:mi>I</b:mi><b:mo>(</b:mo><b:mi>V</b:mi><b:mo>)</b:mo></b:mrow></b:math> calculations and structural optimizations. Minimal user input is required, and the functionality is significantly enhanced compared to existing solutions. Computation is performed by embedding the existing Erlangen tensor-LEED package (). ViPErLEED manages additional parallelization, monitors convergence, and processes all input and output. This makes LEED <c:math xmlns:c="http://www.w3.org/1998/Math/MathML"><c:mrow><c:mi>I</c:mi><c:mo>(</c:mo><c:mi>V</c:mi><c:mo>)</c:mo></c:mrow></c:math> more accessible to new users while minimizing the potential for errors and the manual labor. Added functionalities include intelligent structure-dependent defaults for most calculation parameters, automatic detection of bulk and surface symmetries and their relationship, automated search procedures that preserve the symmetry and speed up convergence, adjustments to the code to handle larger systems than before, as well as parallelization and optimization. Modern file formats are used as input and output, and there is a direct interface to the atomic simulation environment (ASE) package. The software is implemented primarily in (version <d:math xmlns:d="http://www.w3.org/1998/Math/MathML"><d:mrow><d:mo>≥</d:mo><d:mn>3.7</d:mn></d:mrow></d:math>) and provided as an open-source package (GNU GPLv3 or any later version). A structure determination of the <e:math xmlns:e="http://www.w3.org/1998/Math/MathML"><e:mrow><e:mi>α</e:mi><e:msub><e:mtext>-Fe</e:mtext><e:mn>2</e:mn></e:msub><e:msub><e:mtext>O</e:mtext><e:mn>3</e:mn></e:msub><e:mrow><e:mo>(</e:mo><e:mn>1</e:mn><e:mover><e:mn>1</e:mn><e:mo>¯</e:mo></e:mover><e:mn>02</e:mn><e:mo>)</e:mo></e:mrow></e:mrow><e:mo>−</e:mo><e:mrow><e:mo>(</e:mo><e:mn>1</e:mn><e:mo>×</e:mo><e:mn>1</e:mn><e:mo>)</e:mo></e:mrow></e:math> surface is presented as an example for the application of the software.

본문 94,551자

본문 펼치기
ViPErLEED package I: Calculation of _I_ ( _V_ ) curves and structural optimization Florian Kraushofer, <sup>1, 2</sup> Alexander M. Imre, <sup>1</sup> Giada Franceschi, <sup>1</sup> Tilman Kißlinger, <sup>3</sup> Erik Rheinfrank, <sup>1</sup> Michael Schmid, <sup>1</sup> Ulrike Diebold, <sup>1</sup> Lutz Hammer, <sup>3</sup> and Michele Riva <sup>1,</sup> <sup>_∗_</sup> 1 _Institute_ _of_ _Applied_ _Physics,_ _TU_ _Wien,_ _Wiedner_ _Hauptstraße_ _8-10/E134,_ _A-1040_ _Wien,_ _Austria_ 2 _Department_ _of_ _Chemistry,_ _TUM_ _School_ _of_ _Natural_ _Sciences,_ _Technical_ _University_ _of_ _Munich,_ _Lichtenbergstraße_ _4,_ _D-85748_ _Garching_ _b._ _M¨unchen,_ _Germany_ 3 _Institute_ _of_ _Condensed_ _Matter_ _Physics,_ _Universit¨at_ _Erlangen-N¨urnberg,_ _Staudtstraße_ _7,_ _D-91058_ _Erlangen,_ _Germany_ (Dated: June 28, 2024) Low-energy electron diffraction (LEED) is a widely used technique in surface-science laboratories. Yet, it is rarely used to its full potential. The quantitative information about the surface structure, contained in the modulation of the intensities of the diffracted beams as a function of incident electron energy, LEED _I_ ( _V_ ), is underutilized. To acquire these data, only minor adjustments would be required in most experimental setups, but existing analysis software is cumbersome to use and often computationally inefficient. The ViPErLEED (Vienna package for Erlangen LEED) project lowers these barriers, introducing a combined solution for user-friendly data acquisition, extraction, and computational analysis. These parts are discussed in three separate publications. Here, the focus is on the computational part of ViPErLEED, which performs highly automated LEED- _I_ ( _V_ ) calculations and structural optimization. Minimal user input is required, and the functionality is significantly enhanced compared to existing solutions. Computation is performed by embedding the existing Erlangen tensor-LEED package (TensErLEED). ViPErLEED manages additional parallelization, monitors convergence, and processes all input and output. This makes LEED _I_ ( _V_ ) more accessible to new users while minimizing the potential for errors and the manual labor. Added functionalities include intelligent structure-dependent defaults for most calculation parameters, automatic detection of bulk and surface symmetries and their relationship, automated search procedures that preserve the symmetry and speed up convergence, adjustments to the TensErLEED code to handle larger systems than before, as well as parallelization and optimization. Modern file formats are used as input and output, and there is a direct interface to the Atomic Simulation Environment (ASE) package. The software is implemented primarily in Python (version _≥_ 3 _._ 7) and provided as an open-source package (GNU GPLv3 or any later version). A structure determination of the _α_ -Fe2O3(1102)-(1 _×_ 1) surface is presented as an example for the application of the software. I. INTRODUCTION A. History and motivation: The untapped potential of LEED _I_ ( _V_ ) Low-energy electron diffraction (LEED) is a versatile, quick and easy-to-use characterization technique routinely used in many surface-science laboratories. Acquiring LEED images typically takes minutes, limited more by the time it takes to move a sample into position than the actual measurement. The resulting LEED pattern offers a reciprocal-space fingerprint of the surface unit cell, where each “spot” corresponds to a beam of diffracted electrons that fulfills the constructive-interference Bragg condition of the 2D periodicity of the surface. These data can indicate whether a given sample preparation yields the desired surface structure. However, this snapshot of the reciprocal lattice is only a fraction of the full information available from LEED. Spot-profile analysis (SPA)LEED [1, 2], as well as analysis of the background [3], can offer information about defects and surface order. LEED _I_ ( _V_ ) can yield accurate positions for the atoms in the unit cell. In LEED _I_ ( _V_ ), the intensities _I_ _∗_ Corresponding author: [riva@iap.tuwien.ac.at](mailto:riva@iap.tuwien.ac.at) of the scattered electron beams are measured as a function of electron energy, tuned via the accelerating voltage _V_ . Since these “ _I_ ( _V_ ) curves” can also be calculated theoretically, experimental LEED- _I_ ( _V_ ) data can be directly compared to a structural model of a surface. Comparison between calculations and experiment is performed through the so-called _R_ factor, which evaluates agreement across the entire beam set and breaks it down into a single value [4, 5]. Thus, with a relatively quick and simple laboratory-based experiment, one can confirm or reject hypothetical surface models, perform local optimizations of the atomic coordinates in such a model, or obtain a robust fingerprint to confirm the reproducibility of sample preparation [6, 7]. Crucially, the hardware for these experiments is already present in many surface-science laboratories, and only minor adjustments are required to upgrade most standard LEED setups to LEED- _I_ ( _V_ ) capability. The bigger hurdles are the analysis of the data and the calculation of the theoretical _I_ ( _V_ ) curves based on a given model. ViPErLEED, presented here, is a comprehensive package that combines a simple hardware add-on with software for acquiring and extracting the _I_ ( _V_ ) data, and for calculating and comparing to theoretical _I_ ( _V_ ) curves. Figure 1 shows the workflow with input and output. The whole package consists of three parts, which are presented in three separate publications: The data ac (a) Data acquisition Dataacquisition software (b) Data extraction Spot-tracking software LEED data as video Experimental _I_ ( _V_ ) curves ( _I_ sample) LEED- _I_ ( _V_ ) control unit ( _E_ true) _E_ <u>set</u> LEED electronics _I_ 0 Curve editor: Beam averaging and smoothing 261.5 eV Input ( 1| 1) ( 2| 0) ... Input (c) LEED- _I_ ( _V_ ) calculation and optimization Full-dynamic reference calculation Optimization with tensor LEED GEOMETRY #17 O #1 Fe #2 Fe #18 O #19 O Theoretical structure model + parameters Optimized model _I_ ( _V_ )-curves comparison + _R_ factor VIBRATION #20 O #18 O ( 1|−1) _R_ = 0.1491 Theoretical Experimental #17 O ViPErLEED calculations TensErLEED + (viperleed.calc) 0 100 200 300 400 500 Energy (eV) FIG. 1. Overview of the ViPErLEED package. Data acquisition (a) and data extraction (b) are discussed in Part III [8] and Part II [9], respectively. This work describes the LEED- _I_ ( _V_ ) calculations, indicated in panel (c). The relationship between TensErLEED and ViPErLEED is visualized in more detail in Fig. 3. Example data in this figure are from measurements on _α_ -Fe2O3(1102)-(1 _×_ 1). quisition (hardware), discussed in Part III [8]; the data extraction (spot tracking) and processing, discussed in Part II [9]; and the LEED- _I_ ( _V_ ) calculation and optimization, presented here. Specifically, this work discusses the software to calculate _I_ ( _V_ ) curves for a given reference structure and to optimize this structure based on the match with experimental data. While these three parts are optimized to be used together, they all employ standard file formats (such as comma-separated values - CSV) for input and output and can be used independently. B. Basics of LEED _I_ ( _V_ ) An extensive treatment of the theory of quantitative LEED, as well as the standard computational treatment, can be found in Refs. 4, 6, 7, 10–17. These are only outlined briefly here to introduce important terms and concepts used in this work. LEED is highly surface sensitive due to the low inelastic mean free path of electrons in solids ( _≈_ 5–15 <sup>˚</sup> A in the relevant energy range of up to 1000 eV [18]). Because of the strong electron–solid interaction, electrons typically experience multiple scattering events before leaving the surface [19]. Thus, calculations of LEED- _I_ ( _V_ ) spectra need to include paths with multiple scattering events. Crucially, small displacements (on the order of a few picometres) strongly affect the intensities of scattered beams. The high sensitivity to atomic positions gives LEED _I_ ( _V_ ) the potential for accurate determination of atomic coordinates. This, however, can only be achieved through a careful optimization process while comparing calculated and experimental _I_ ( _V_ ) curves. Scattering of low-energy ( _≈_ 30–2000 eV) electrons with one atom in a solid is well approximated as occurring in a spherically symmetric potential (muffin-tin approximation) and conserving the angular momentum _ℓ_ . Single scattering events of electrons with energy _E_ at a given site can then be described by partial-wave phase shifts _δℓ_ ( _E_ ). Electron–phonon scattering is included as an effective Debye–Waller factor, which depends on the vibration amplitudes of the atoms. Inelastic scattering is treated via an imaginary part of the inner potential, leading to an exponential decay with distance. The real part of the inner potential is defined by an approximate function, derived together with the scattering phase shifts with a boundary condition to the vacuum [25, 26]. With these few approximations, one can perform full-dynamic calculations of the multiple scattering of electrons, yielding theoretical _I_ ( _V_ ) curves that can be compared to experiment [10]. In a typical LEED calculation, the surface is split into “layers”, which should be separated along the surface normal by distances of at least 1 <sup>˚</sup> A. Each layer can consist of one or multiple atoms. Multiple scattering within each layer is then evaluated in angular-momentum space, resulting in layer-diffraction matrices. Propagation and scattering between the layers can be treated in a planewave representation [10, 14]. Figure 2 shows a typical layer definition for an <u>example</u> system of medium complexity: the _α_ -Fe2O3(1102)-(1 _×_ 1) surface [24]. This system will be referred to several times below, and it is one of the examples given in the ViPErLEED documentation (see the Supplemental Material [27]). This layering scheme also allows for straightforward treatment of scattering far below the surface: One or two layers are defined as a bulk repeat unit (e.g., Layer 4 in Fig. 2) with a given bulk repeat vector. This bulk unit can then be stacked through repeated doubling until the norm of the reflection and transmission matrices of the bulk remains unchanged between successive steps [14]. C. The tensor-LEED approximation The “full-dynamic” LEED calculations discussed so far are computationally demanding. The most expensive part is the inversion of matrices needed for intralayer scattering, which scales as _d_ <sup>_n_</sup> ( _n_ = 2 _._ 38–3, depending on the algorithm) for _d × d_ matrices. Intralayer scattering matrices have _d_ = _N_ ( _ℓ_ max + 1) <sup>2</sup> for _N_ atoms in the layer and a maximum angular momentum _ℓ_ max [7]. As discussed in Section I B, the high sensitivity to atomic coordinates on the picometre scale implies that basic comparisons of theoretical models to experimental data require local optimization of these coordinates, entailing numerous calculations. The number of optimization parameters also scales with system size, with a concomitant increase (1102) [1120] 18 1 Layer 1 Interlayer vector Layer 2 Layer 3 Layer 4 (bulk) 19 4 22 <mark>Bulk repeat vector</mark> 17 2 20 3 21 FIG. 2. Example of layer definitions as used in ViPErLEED and TensErLEED, shown for the _α_ -Fe2O3(1102)(1 _×_ 1) bulk-truncated surface (side view along [1101]) [20– 24]. The layers are indicated by blue rectangles. Each layer contains four Fe atoms (large yellow spheres) and six O atoms (small red spheres) per unit cell. Interlayer vectors as used in TensErLEED are drawn as dashed blue arrows. Note that the interlayer vectors do not connect layer origins, but rather point from the _z_ coordinate of the bottommost atom in one layer to the _z_ coordinate of the topmost atom in the subsequent underlying layer. Layer 4 is defined as bulk. The black arrow indicates the bulk repeat vector, which can be automatically detected by ViPErLEED (see Section II D 1). (a) TensErLEED workflow (b) ViPErLEED wrapper procedure Interpreted user input, previous data (i) Prepare Array dimensions TensErLEED input (ii) Compile Fortran input files TensErLEED code (iii) Monitored Executable code execution Fortran output files (iv) Parse TensErLEED output Produce output, continue execution Trial structure Reference calculation "Tensors" Displacements Delta-amplitudes calculation Amplitudes _A_ g "Deltas" _δAi_, g Experimental data Structural optimization ("search") Optimized configuration FIG. 3. (a) Simplified sketch of the TensErLEED workflow as described in Ref. 14. Red boxes represent user input (in TensErLEED formats), blue boxes represent the main TensErLEED modules. Additional modules used to calculate the _R_ factor, produce theoretical beams after the search, or perform error calculations are not drawn. (b) Sketch showing how TensErLEED modules are embedded into the ViPErLEED code. Orange boxes represent logical steps, the blue box (iii) can stand for any TensErLEED module. in the number of trial calculations [28]. The so-called tensor-LEED approximation makes these optimizations more efficient: A full-dynamic calculation is performed only for a reference structure; changes to the diffraction intensities through small modifications of the reference structure are treated by first-order perturbation theory [11–13]. This approach is ideal for structural optimization aimed at improving the agreement between theoretical and experimental _I_ ( _V_ ) curves, as the full-dynamic calculation only needs to be performed once. The optimization can then be performed using much cheaper evaluations of a set of perturbations, which scale linearly with the number of parameters under variation [12]. Importantly, the initial structural guess must be close to the target structure: The tensor-LEED approximation breaks down for displacements of more than _≈_ 0 _._ 4 <sup>˚</sup> A [12], and significant errors are already introduced much sooner. This means that new reference calculations must be performed when changes to the original structure become too large. It is worth noting that the tensorLEED approximation is not limited to purely geometrical perturbations of the reference structure. Changes of atomic vibration amplitudes [29] and statistical chemical substitutions [30] (including vacancies) can be treated with the same method and even concurrently [7, p. 135]. Several implementations exist for calculating LEED_I_ ( _V_ ) curves, most of which are derived from the pioneering works of Pendry [16], Tong [31], and Van Hove [10]. Perhaps the most widely known is the Barbieri– Van Hove symmetrized automated LEED (SATLEED) package and its derivatives (MSATLEED, SATCLEED, ATLMLEED) [32, 33]. Alternatives include TensErLEED [14], described below, as well as DL ~~L~~ EED [34], LEED90 [35], CAVLEED [36], CLEED [37] and LEEDFIT [38], though the latter four do not implement the tensor-LEED approximation, while DL ~~L~~ EED has a partial tensor-LEED implementation [39]. The various packages encompass different capabilities, but none automates the structure-optimization process. Recently, the AQuaLEED package was published to simplify use of the SATLEED codes through a Python wrapper program [40, 41] in a similar, though much less broad, approach as the ViPErLEED package described here. A Python wrapper has also been recently developed for CLEED [42]. The theoretical foundation and code architecture of the TensErLEED package are described in detail in Ref. 14. Briefly, the package consists of three main modules, shown in Fig. 3(a), which perform different segments of the LEED- _I_ ( _V_ ) calculation. The “referencecalculation” module performs full-dynamic LEED- _I_ ( _V_ ) calculations, producing the complex amplitudes _A_ g of the diffracted beams, g, as implemented previously in the Van Hove–Tong code [10]. In addition, it also stores information necessary for the tensor-LEED approximation in separate output files, named “Tensors” in Ref. 14. The second TensErLEED segment is a “delta-amplitudes” calculation, which computes the changes _δAi,_ g for a small perturbation to the position, vibration amplitude, or site occupation (including mixing of chemical species as described by the average _t_ -matrix approximation [43]) of an atom _i_ . These _δAi,_ g are calculated for all atoms under variation and for each step in a given atom’s range of displacements. The third segment, the “search”, aims for the set of _δAi,_ g that, together with the reference amplitudes _A_ g, minimizes the _R_ factor (i.e., the disagreement) between the calculated and experimental beams. Simply put, the full-dynamic reference calculation is a “precise” LEED calculation for a given reference structure, while the _δAi,_ g calculation and “search” compose the structural optimization using tensor LEED. Altogether, the TensErLEED package [14] is a powerful and versatile tool for LEED- _I_ ( _V_ ) calculations, but it has shortcomings. Employing the package with its custom settings demands significant experience and poses a serious burden of entry for LEED- _I_ ( _V_ ) experimenters. ViPErLEED drastically simplifies the user experience and expands the functionality and performance of existing solutions. The Python package controlling the computational aspects is named viperleed.calc. It manages the LEED- _I_ ( _V_ ) calculations - acting as a wrapper for the established TensErLEED modules - and contains higher-level logic and automation. By defining suitable defaults based on the theoretical structure and experimental data, viperleed.calc dramatically cuts down the required user input. Moreover, it provides additional functionality, such as optimization procedures not supported in the tensor-LEED formalism, automatic detection and preservation of surface and bulk symmetries during structural optimization, and acceleration of calculations through automated search procedures and parallelization. viperleed.calc is designed with the vast scientific Python ecosystem in mind and leverages established numerical and scientific libraries such as NumPy [44], SciPy [45], Matplotlib [46], and Scikit-learn [47]. At the same time, it has an open application programming interface for future projects to exploit its novel features, such as the automated plane-group symmetry detection and structure symmetrization introduced in Section II D 2. II. PROGRAM DESCRIPTION As mentioned in Section I C, ViPErLEED is based on the TensErLEED package [14] used to perform the core LEED- _I_ ( _V_ ) calculations. These include the “fulldynamic” reference calculations, the calculation of amplitude changes _δAi,_ g as a function of parameter variations, as well as the search for an optimal combination of these variations. Input and output processing, as well as most high-level logic, are handled in a Python module named viperleed.calc, described in more detail below. Direct user interaction with the TensErLEED scripts is not required at any point. Some aspects of TensErLEED are also updated to a version 2.0 that is being released with, but independent of, the viperleed.calc Python package. The updated TensErLEED version is more computationally efficient and supports calculations on larger systems. For completeness, these changes are also briefly discussed in Section II G. Finally, a graphical user interface (GUI) provides LEED pattern previews and can be used to generate input for the spot-tracking program [9]. The viperleed.calc package is optimized for UNIXbased systems (Linux, MacOS, and Windows subsystem for Linux – WSL). Running natively on Windows is possible, but it involves some additional installation steps and configuration of the Fortran compilers. Installation instructions and details on setting up Fortran compilers can be found in the ViPErLEED documentation available online [48] or in the Supplemental Material [27]. A. ViPErLEED workflow LEED- _I_ ( _V_ ) users wishing to work with existing solutions like TensErLEED, mostly based on the Van Hove–Tong codes [10], are faced with several challenges. The first hurdle regards the input files: Specific input formats are expected, and these may be difficult for new users to understand. Specifically, standardized structure files, often obtained as a result of density-functional theory (DFT) calculations, cannot be used as input directly. Instead, they have to be translated to “LEED formats” manually, which is tiresome and error prone. The standard output files are also problematic. To the best of the authors’ knowledge, none of the existing codes applying tensor-LEED calculations output the optimized structure in a standard crystal-structure format. As an example, TensErLEED optimization returns only a list of indices corresponding to the displacements of individual atoms that minimize the _R_ factor [14]. Translating these raw indices back to atomic coordinates of the bestfit structure is, again, cumbersome and a likely source of mistakes. When multiple optimization steps are required, all of these steps must be performed by hand repeatedly. Lastly, users are often required to manually compile the source code at runtime. This is for example the case for TensErLEED: many array dimensions depend on the input data and Fortran 77 does not allow dynamic memory allocation. viperleed.calc addresses these issues. It accepts input in a standard format and automatically translates it into the custom format required by TensErLEED. Likewise, TensErLEED outputs are translated back to the same standard formats by keeping track of the inputs and variations. viperleed.calc also removes the need for manual compilation at runtime. For each TensErLEED segment, it performs the steps shown in Fig. 3(b): (i) Translate the user input into the format required by TensErLEED, (ii) compile the relevant TensErLEED code with appropriate array dimensions, (iii) execute the compiled code as a subprocess with adequate parallelization and with real-time monitoring if required, and (iv) process the TensErLEED output, producing user-readable output or input for the next TensErLEED segment. The compilation and execution of source code is a potential safety threat, as the source files may be modified with malicious intent. To ensure that only the expected TensErLEED code is ex ecuted, viperleed.calc contains hardcoded checksums for all expected Fortran files, and by default will only compile and run files conforming to these checksums. Finally, ViPErLEED also includes a “bookkeeping” utility that keeps track of the performed calculations. It automatically updates a plain-text file ( `history.info` ) with information about the run segments, the resulting _R_ factors, and optional notes by the user. Additionally, it archives input and output files for every calculation into a `history` directory. B. Main ViPErLEED input The main input parameters defining viperleed.calc behavior are passed via the `PARAMETERS` input file. In the minimal case, this file defines which segments of TensErLEED should be executed and provides some information on how to interpret the structure files. However, the `PARAMETERS` file also allows in-depth control of TensErLEED calculation parameters and ViPErLEED defaults. More information on these parameters and the choice of defaults will be given in Section II D. A comprehensive list of parameters and their default values is found in the ViPErLEED documentation [48]. Other than the general run parameters, the only input strictly required for calculating _I_ ( _V_ ) curves is the structural data, that is, an atomic model for the diffracting surface. The chosen standard is the POSCAR format used by the Vienna _ab-initio_ simulation package (VASP) [49]. This choice is based on the assumption that many LEED- _I_ ( _V_ ) calculations start from a DFToptimized structure; POSCAR files can easily be generated by standard structure viewers such as VESTA [50]. However, structural data can also be passed to ViPErLEED directly from the atomic simulation environment (ASE) package [51], which supports a variety of structural formats. Note that the surface is required to face the + _z_ direction, with the first two unit-cell vectors a and b in the surface ( _x, y_ ) plane. Additionally, viperleed.calc assumes the bottommost layers (lowest _z_ coordinates) to be bulklike. This means that symmetric slabs commonly used in DFT are not allowed. However, a ViPErLEED-compatible slab can be obtained from a standard “DFT slab” by cutting below the “fixed” bulklike layers. If structural optimization is to be performed, viperleed.calc requires two additional inputs: experimental _I_ ( _V_ ) curves (file `EXPBEAMS.csv` ), and instructions on optimization parameters and ranges (file `DISPLACEMENTS` ). For _I_ ( _V_ ) curves, ViPErLEED uses standard CSV formatting for all input and output. The `DISPLACEMENTS` file defines the range over which each structural parameter is varied during tensor-LEED optimization, and can contain instructions about the order in which the parameters are optimized. Structural parameters that can be varied are (i) atom positions, (ii) vibration amplitudes, and (iii) site occupation (including changes of statistical chemical composition through, e.g., vacancies, dopants, or alloy constituents). For convenience, the `DISPLACEMENTS` file supports a variety of shorthand forms to address groups of atoms by element, layer, specific site type, or atom number. The exact syntax for the `DISPLACEMENTS` file is described in the ViPErLEED documentation [48]. Planegroup symmetries of the surface are automatically preserved by viperleed.calc during displacements, such that symmetry-equivalent atoms in the input structure are kept symmetry equivalent during the optimization, unless the user explicitly reduces the symmetry by setting the desired plane group in the `PARAMETERS` file (see Section II D 2). Besides the mandatory input discussed above, users can optionally provide additional files. Otherwise, these are automatically generated by viperleed.calc: - First, an `IVBEAMS` file that specifies the _I_ ( _V_ ) curves to be calculated. This can be automatically generated to match available experimental data. When no experimental data is given, `IVBEAMS` must be supplied by the user. - Second, a starting guess for vibration amplitudes [52] and site occupations. This information can be included in the `VIBROCC` file. Otherwise, sites are assumed to be “chemically pure”. If vibration amplitudes are not specified, an initial guess can be generated based on the Debye temperature ΘD of the material and the experimental sample temperature _T_ - both specified in `PARAMETERS` (see the ViPErLEED documentation [48] for more details). In addition, a scaling factor may be defined for groups of atoms to reflect differences in the coordination environments. For example, undercoordinated atoms at the surface are expected to have a larger vibration amplitude. Since the vibration amplitudes themselves are parameters in the tensor-LEED optimization, this approximation is sufficient to obtain a reasonable starting point even when the Debye temperature is not known precisely. - Finally, energy-dependent phase shifts for electrons scattering on each type of atom in the structure. If not provided by the user (via a `PHASESHIFTS` file), these phase shifts will be generated automatically based on the input structure, using the EEASiSSS program [25], distributed with the ViPErLEED package with permission by the author. C. Main ViPErLEED output ViPErLEED output files use the same formats as the input files. This ensures that, if further optimization steps are required, output from previous ViPErLEED runs can be used directly as input for subsequent runs. The optimized structure is written to the (a) Experimental and calculated _I_ ( _V_ ) curves ( 1| 1) _R_ = 0.1342 ( 1|−1) _R_ = 0.1491 Theoretical ( 2| 0) Theoretical Experimental _R_ = 0.1562 Experimental Theoretical Experimental Theoretical Experimental ( 0|−2) _R_ = 0.1254 (b) _R_ factor vs. displacement Atoms #1–2 (Fe_surf) along _z_ Atoms #3–4 (Fe_def) along _z_ Atoms #17–18 (O_surf) along _z_ Atoms #19–20 (O_def) along _z_ Atoms #21–22 (O_def) along _z_ _<mark>R</mark>_ P <mark>+ var(</mark> _<mark>R</mark>_ P <mark>)</mark> −0.04 −0.02 0.00 0.02 0.04 Deviation from best-fit value (Å) 0.50 0.45 0.40 0.35 0.30 0.25 0.20 0.15 0 100 200 300 400 500 600 Energy (eV) 0 100 200 300 400 500 600 Energy (eV) FIG. 4. (a) Comparison of calculated to experimental LEED- _I_ ( _V_ ) curves for _α_ -Fe2O3(1102)-(1 _×_ 1). All parts of the calculation have been performed using the viperleed.calc package. The figures are taken from the output files produced at the end of execution. Diffraction order and individual _R_ factors are indicated for each beam. (b) Error curves for the same system. They show the variation of the Pendry _R_ factor with respect to geometric out-of-plane displacements for the atoms in the topmost layer (cf. labels in Fig. 2). The horizontal gray line indicates the minimum value of the Pendry _R_ factor plus its standard error. The intersection points of this line with an error curve (marked with vertical arrows for the blue curve) can be used as an estimate for the uncertainty of the corresponding parameter [7]. files `POSCAR` `OUT` and `VIBROCC` ~~`O`~~ `UT`, and calculated _I_ ( _V_ ) curves are again written in CSV format. In addition, viperleed.calc generates PDF files with plots comparing the calculated beams to experimental data, annotated with _R_ factors for each beam. Some <u>plots</u> as output by viperleed.calc for the _α_ -Fe2O3(1102)-(1 _×_ 1) example system are shown in Fig. 4. More examples can be found in the ViPErLEED documentation [48]. During structural optimization, a PDF file illustrating the search progress and state of convergence is generated in addition to the text-based log files (see Fig. S1 of the Supplemental Material [27]). For diagnostic purposes, several supplementary files are written during each viperleed.calc run and stored in a directory called `SUPP` . These include the inputs and outputs of the TensErLEED programs, as well as modified `POSCAR` files generated during the structure analysis for troubleshooting. D. Structure analysis and dynamic defaults As discussed in Section II B, one goal of ViPErLEED is to reduce the number of parameters required as user input. While some TensErLEED parameters can simply be set to a default value that is normally appropriate, others must be chosen in accordance with the structure in question. However, in most cases, it is still possible to define case-specific defaults through educated guesses. To give an example, the scattering phase shifts _δℓ_ ( _E_ ) depend on the angular momentum _ℓ_ . At large _ℓ_, the phase shifts become small. Since the computing time strongly depends on the _ℓ_ values (Section I C), a cutoff _ℓ_ max must be defined. viperleed.calc automati cally selects the cutoff such that phase-shift values at _ℓ>_ _ℓ_ max are smaller than a user-defined threshold (parameter `PHASESHIFT` `EPS` ). Similar considerations apply to many parameters that can be determined from the structural input. For most low-to-medium-complexity cases, viperleed.calc requires user input of less than ten parameters for a standard optimization. A full list of parameters, their defaults, and descriptions on how they are determined is given in the ViPErLEED documentation [48], and some example inputs are included in the Supplemental Material [27]. Here, the focus is on two non-trivial sets of parameters that viperleed.calc detects from the structural input: the repeat unit of the bulk, and plane-group symmetry. _1._ _Detecting_ _and_ _constructing_ _the_ _bulk_ The shape of the _I_ ( _V_ ) curves is strongly affected by (multiple) scattering events deep within the bulk, especially at high energies, where the mean free path of the electrons is long. The number of layers to be considered is determined dynamically during the full-dynamic LEED calculations. Hence, it is not sensible to provide slabs of fixed thickness as input; rather, the structural input should include a construction rule defining how to add additional bulk layers as required during the calculations. As discussed in Section I B, this is implemented in TensErLEED through a bulk-doubling scheme [6, 14]. Two ingredients are needed: the repeat unit of the bulk, and a bulk repeat vector that, when applied iteratively, reconstructs the bulk structure. Since typical structure formats (like the `POSCAR` file) do not contain this information, it is necessary to either determine it automatically, or to include it explicitly as a user input. Both options are supported in viperleed.calc. _Detecting_ _bulk_ _repeat._ The user can manually define how many layers at the bottom of the slab constitute a bulk repeat unit (parameter `N` `BULK` ~~`L`~~ `AYERS` ), as well as the bulk repeat vector (parameter `BULK` ~~`R`~~ `EPEAT`, see Fig. 2). However, viperleed.calc can also detect these automatically. It can determine the bulk repeat vector if the repeat unit of the bulk is explicitly provided (via `N` ~~`B`~~ `ULK` `LAYERS` ). It can even identify both if the slab contains at least two layers that are sufficiently bulklike. In this case, users only need to specify the limit below which the slab is bulklike (parameter `BULK` ~~`L`~~ `IKE` ~~`B`~~ `ELOW` ). To find a repeat unit, the program iteratively tests downwards translations that shift atoms of the _i_ -th layer from the bottom to make them coincide with the position of the bottommost atom in the slab. Then, it compares the slabs before and after translation; if the atomic positions in the bulklike region are identical (within the tolerance given by parameter `SYMMETRY` ~~`E`~~ `PS` ), the translation vector is accepted as a bulk repeat vector. Note that even when the repeat unit of the bulk is detected automatically as discussed above, the `N` `BULK` ~~`L`~~ `AYERS` and `BULK` ~~`R`~~ `EPEAT` parameters are written to the `PARAMETERS` file explicitly. This causes `BULK` ~~`L`~~ `IKE` `BELOW` to be ignored in subsequent runs of viperleed.calc, ensuring that the repeat vector detected originally is preserved. _Detecting_ _surface_ _superstructures._ Another property that can be detected automatically in the initialization stage of the calculation is the relationship between the surface and bulk in-plane unit cells, that is, the periodicity of surface superstructures with respect to the bulk. Again, this relationship can be defined manually (parameter `SUPERLATTICE`, given either in Wood’s notation or as a transformation matrix). It can also be detected automatically by checking all candidate in-plane translations, then choosing the smallest possible bulk unit cell. It is worth noting that when dealing with nontrivial surface-to-bulk relationships there may be multiple choices for the bulk unit cell and its orientation, which impact the numbering of diffraction spots. In such scenarios, users should ensure proper labeling of experimental beams. For this purpose, viperleed.calc generates an `experiment-symmetry.ini` file during initialization, containing details about detected unit cells and symmetry. This file can be utilized as an input for the ViPErLEED GUI to generate a “pattern file”. When employed with the ViPErLEED spot tracker [9], this facilitates consistent beam labeling between experiment and calculations. _Diagnostic_ _files_ _for_ _bulk_ _detection._ viperleed.calc provides two diagnostic files to confirm the correct detection of the bulk: First, `POSCAR` `bulk`, containing the bulk unit cell constructed from `BULK` ~~`R`~~ `EPEAT` and the two smallest unit vectors a bulk and b bulk in the surface plane; second, `POSCAR` ~~`b`~~ `ulk` `appended`, which is the original `POSCAR` with additional bulk units added at the bottom using the `BULK` ~~`R`~~ `EPEAT` vector. This allows a quick visual check of whether the detected bulk cell is aligned correctly with the slab and reproduces the bulk in all directions. _2._ _Symmetry_ _detection_ _and_ _structure_ _symmetrization_ The symmetry of crystal surfaces can be one of the 17 plane symmetry groups (also called “wallpaper groups”) defined by the unit cell and rotation axes, as well as mirror and glide planes of the structure (see Fig. 5). This symmetry may already be known from DFT calculations, from scanning-probe measurements, or from a qualitative comparison of the LEED beams. It is normally desirable to preserve such a symmetry during structural optimization. Symmetry reduces the dimensionality of the parameter space, drastically speeding up the structure search. In current implementations of LEED- _I_ ( _V_ ) calculations, the user is required to identify symmetry-equivalent atoms, and to ensure they are displaced in a symmetry-equivalent manner during optimization. While this is relatively straightforward for simple symmetry groups, it carries a high potential for user error, for example, when threefold rotation axes are involved. Figure 5 shows how the wallpaper groups constrain in-plane displacements for symmetry-equivalent atoms. viperleed.calc provides fully automatic detection of the plane symmetry group and by default preserves the symmetry during optimization. _Determining_ _the_ _minimal_ _surface_ _unit_ _cell._ To enforce some conventions and highlight the symmetry, viperleed.calc applies several automatic modifications to the unit cell in the structural input and output. First, unit cells are reduced to a minimum-circumference form while preserving the area, as shown in Fig. 6(a). This ensures that no higher-symmetry representation of a given structure is missed. An example is oblique cells that are reducible to a rectangular form: enforcing this transformation allows to find potential mirror planes. Second, for reasons of convention and simplicity, rhombic and hexagonal cells are expected in obtuse form (angle between a and b greater than 90 <sup>_◦_</sup> ). Acute unit cells are automatically transformed into obtuse while preserving handedness [Fig. 6(b)]. Third, to avoid ambiguous beam labeling, the first unit-cell vector a bulk of the bulk should always be taken as the shorter one. For example, for a rectangular bulk unit cell, a (2 _×_ 1) supercell is closer to square than a (1 _×_ 2) cell. However, this third point is not enforced, and viperleed.calc will only output a warning if the vectors are swapped. _Detecting_ _rotation_ _axes,_ _glide,_ _and_ _mirror_ _planes._ Once the unit-cell shape is set, viperleed.calc searches for rotation axes, glide planes, and mirror planes. The algorithm for finding the symmetry is briefly described in the following. First, it considers all rotational symmetries possible for the given unit-cell type (e.g., three- and six-fold rotations are only checked for hexagonal cells), and detects the highest-order rotation axes. Since only Mirrors: Glides: Rotations: (2-fold) (3-fold) (4-fold) (6-fold) Conventional origin: b b p1 b b Conventional origin: p3 a a a a a a a a a a b b b b b b pgg p2gg b a a a a b a a a b p2 pm b p1m1 b a p3m1 p31m p6 b b b b b cmm <u>a</u> <u>−</u> <u>b</u> a a c2mm a a p4g p6m p4gm p6mm a pg b p1g1 b a b a a a a a a <u>a</u> a p4 p4m p4mm cm c1m1 b b b b b <u>a</u> <u>−</u> <u>b</u> pmm b p2mm pmg b p2mg a a FIG. 5. The 17 plane symmetry groups. For each group, exemplary symmetry-equivalent atoms are shown as filled and open circles in the left panel, while the right panel shows the positions of the mirror, glide, and rotational symmetry elements. Symmetry elements drawn in red are related to those drawn in black via translations by integer multiples of the unit-cell vectors. Blue and black arrows indicate exemplary linked in-plane displacements. Double arrows in groups _pm_ and _cm_ indicate that movement is restricted along the mirror plane. Atoms on rotation axes cannot be displaced in plane. Full (four-character) plane group designations are indicated in gray, though ViPErLEED uses short forms in all input and output. 2D operations are of interest, it is most efficient to use the sublayer [53] with fewest atoms, as it yields the smallest set of candidate operations. Such candidates are then tested for the whole slab. If any rotation axes are found, the origin of the unit cell is shifted to the highest-order axis; if there are multiple highest-order rotation axes, the one closest to the original unit-cell origin is picked, as shown in Fig. 6(c). At this point, it is sufficient to check for mirror and glide planes going through the origin or through ( <sup><u>1</u></sup> 4 <sup>_,_</sup> <sup><u>1</u></sup> 4 <sup>)</sup> <sup>of</sup> <sup>the</sup> <sup>unit</sup> <sup>cell.</sup> <sup>As</sup> <sup>seen</sup> <sup>in</sup> <sup>Fig.</sup> <sup>5,</sup> this procedure uniquely determines the plane symmetry group. If no rotation axis is found, mirror and glide symmetries are detected in analogy to rotational symmetries. In the minimum-circumference form of the unit cell, only the unit-cell-vector directions a and b and the diagonals a + b and a _−_ b (plus all 30 <sup>_◦_</sup> -rotated directions 2 a + b, etc. for hexagonal cells) need to be considered to find all possible mirror/glide planes [54]. The unit-cell origin is again shifted (by the smallest possible distance) to coincide with a mirror plane, or with a glide plane if no mirror plane was found, as shown in Fig. 6(d). In cases where the orientation of the mirror/glide planes is am biguous (groups _pm_, _pg_, _cm_ and _pmg_ ), the symmetry can be fully specified by indicating the direction of the mirror or glide plane through the origin. For example, _pm_ [1 0] indicates _pm_ symmetry with mirror planes parallel to the a axis. The identified plane group symmetry is printed to the viperleed.calc log file and added as a comment in the `POSCAR` file. _Symmetrization._ Once the symmetry has been determined, viperleed.calc performs a symmetrization step to correct minor errors potentially introduced, for example, by not-fully-converged DFT relaxations. Positions of atoms that are equivalent within a given tolerance (parameter `SYMMETRY` `EPS` ) are averaged such that they are equivalent within floating-point precision. Atoms that should be locked to a rotation axis or mirror plane snap to that position, as shown in Fig. 6(e). This can be helpful since LEED- _I_ ( _V_ ) calculations are sensitive to position deviations in the picometre range. The applied symmetry group can also be reduced manually, for example when the surface is suspected to possess a lower symmetry than the initial input structure. The `SYMMETRY` ~~`F`~~ `IX` parameter allows to manually set any plane symmetry subgroup of the automatically detected (a) (b) b b b b a a a a (c) (d) b b b b a a a a (e) (f) b b <u>!</u> a a FIG. 6. Modifications of the input unit cell during initialization. (a) Reduction to minimum-circumference form; (b) change from acute to obtuse form; (c) snapping of the origin to the closest highest-order rotation axis, shown on a _p_ 4 _m_ cell; (d) snapping of the origin to the closest mirror plane when there is no rotational symmetry, shown on a _pm_ cell; (e) symmetrization shown for a threefold rotation axis, where an atom close to the rotation axis (filled black circle) is snapped to the axis, and position errors between three nominally symmetry-equivalent atoms (open black circles, gray circles show rotated positions) are averaged such that they become truly equivalent; (f) reduction to a minimum-area surface unit cell. Steps (a)–(e) are applied automatically, while step (f) only produces a warning and outputs a suggested `POSCAR` `mincell` file. group, including _p_ 1 if symmetry should be turned off entirely. In addition to the `SYMMETRY` ~~`F`~~ `IX` parameter, which globally modifies the symmetry to be used, there is also a more local option to deactivate or reduce symmetry only for specific operations in the `DISPLACEMENTS` file with the `SYM` ~~`D`~~ `ELTA` tag. However, since this will result in breaking the symmetry in subsequent runs, users are discouraged from utilizing the `SYM` `DELTA` tag except for highly specific cases. More details on both types of symmetry reductions are found in the ViPErLEED documentation [48]. _Detecting_ _beam_ _equivalence_ _and_ _beam_ _assignment._ Superstructures often exhibit different symmetry than the underlying bulk. Hence, single terraces of a sample may feature multiple “patches” of the same superstructure mirrored or rotated relative to one another, as induced by the plane group of the bulk. Additionally, different terrace orientations may be present when the bulk possesses screw or glide symmetry (some wellknown cases are, e.g., Si(001) [55] or Fe3O4(001) [56]). This induces corresponding rotation or mirroring of the superstructures. Since symmetry-induced domains normally have sizes larger than the typical coherence length of the electron beam, they contribute to the diffraction pattern inco herently. Such effect must be considered to correctly match calculated and experimental _I_ ( _V_ ) curves. viperleed.calc dramatically simplifies the user experience in this respect: instead of requiring the user to specify which calculated beams contribute to each experimental beam and should be averaged together, it detects beam equivalence automatically, assuming a statistical distribution of symmetry-induced domains. It also does not require the user to manually assign calculated to experimental beams: it does so automatically based on the beam labels [e.g., (1 0) is the first-order diffraction spot in the direction of the first reciprocal unit-cell vector of the bulk, a bulk <sup>_∗_</sup> <sup>].</sup> <sup>The</sup> <sup>automatic</sup> <sup>beam</sup> <sup>averaging</sup> <sup>is</sup> <sup>en-</sup> abled by viperleed.calc’s capability to detect symmetry (Section II D 2). The same algorithm used for the whole slab is applied to the bulk, extending the search also to glide planes and screw axes with translation vectors parallel to the surface normal. E. Automation and parallelization A typical LEED- _I_ ( _V_ ) optimization with TensErLEED proceeds as follows: (i) execution of a fulldynamic calculation for the starting guess structure; (ii) optimization along a given displacement direction; (iii) further optimizations along other directions. [Steps (ii) and (iii) are distinct because the TensErLEED search module only supports 1D displacements for atom positions, such that multiple executions are required to fully optimize 3D atomic positions.] Steps (i) and (iii) are repeated until convergence. In TensErLEED, the user must perform all of these steps manually. This becomes especially cumbersome as one segment’s output must be manually translated into an input for the next segment. viperleed.calc simplifies the workflow. First, it handles the input/output processing internally. Second, it allows arbitrary queuing of segments with the `RUN` parameter. Finally, it allows to specify multiple sets of displacements in the `DISPLACEMENTS` file, such that they are automatically executed in the requested order. These optimizations can be looped until the _R_ factor converges, allowing for an autonomous search in a wide parameter space. The ViPErLEED documentation [48] gives more details on the `RUN` parameter and `DISPLACEMENTS` file. As described in Section S1 of the Supplemental Material [27], viperleed.calc also speeds up each optimization run in TensErLEED by monitoring the search progress and adjusting convergence parameters accordingly. Besides automating the optimization workflow, viperleed.calc also enhances the parallelization of LEED_I_ ( _V_ ) calculations. The parallelization offered by the native TensErLEED code is limited to the “search” module. viperleed.calc introduces additional parallelization at the Python level. Parallelization is applied to the full-dynamic calculation by assigning individual energies to separate processes. This is possible since each energy step can be calculated independently from the oth ers. This approach enables further acceleration through a dynamic use of _ℓ_ max at each energy: At low energies, where phase shifts of large angular momenta are negligible, small _ℓ_ max values are used. Parallelization is also applied to the _δAi,_ g calculation. Here, the atoms under variation are independent and can be calculated in a parallel manner. Note that, since the single calculations are vastly more computationally expensive than the overhead, the parallelization offered by viperleed.calc comes close to the efficiency theoretically achievable with parallelization directly in the Fortran code. F. Advanced optimization _1._ _Mixed-termination_ _surfaces_ Many systems can sustain coexisting surface reconstructions. In such cases, the intensities measured experimentally originate from an incoherent superposition of the diffracted beams from each termination. Some packages (like TensErLEED [14] and MSATLEED [33]) already implement optimization for this scenario. viperleed.calc provides a simplified interface to the multi-domain optimization implemented in TensErLEED. A multi-domain calculation can be started either by supplying paths to the input structures or by providing pre-existing reference calculations (and corresponding `Tensor` files). In the latter case, viperleed.calc automatically performs a consistency check for compatibility of the input files. If the consistency check fails, viperleed.calc determines which parameters are shared between the different structures, harmonizes the input, and performs new, mutually compatible, full-dynamic calculations. Structural optimization is then performed using the tensor-LEED approximation including the fractional coverage of the domains as an additional parameter. _2._ _Full-dynamic_ _optimization_ viperleed.calc also provides an option for optimizing parameters that are inaccessible to the tensor-LEED approximation. Examples are the incidence angles _θ_ (polar) and _ϕ_ (azimuthal) of the primary electron beam, the imaginary part of the inner potential _V_ 0i, and the lattice parameters of the input unit cell. For the latter, a scaling factor can be applied to one of the unit-cell vectors, to both in-plane unit-cell vectors at once, or to all three at once (i.e., scaling the volume of the unit cell). Optimization of these parameters is enabled through repeated full-dynamic calculations. A “full-dynamic optimization” is set up using the `OPTIMIZE` parameter. It supports defining the parameter to optimize, the initial step size of variation, and convergence criteria. It is important to note that this kind of full-dynamic optimization is computationally significantly more expensive than tensor-LEED-based optimizations. G. TensErLEED version 2.0 Although ViPErLEED is backwards compatible with the most recent version of TensErLEED at the time of writing (version 1.6), it was expedient during development to also make some improvements on the TensErLEED codebase. This resulted in a new version 2.0 of TensErLEED [57], which is released with ViPErLEED but can also be used independently. Changes include some minor bug fixes, increased precision of some computational variables, and improved computational performance, especially of the full-dynamic “reference” calculation. The speed-ups mainly come from replacing custom matrix-algebra routines by better-optimized BLAS and LAPACK versions [58], skipping redundant calculations, and refactoring certain routines for more efficient memory access. The user interface (i.e., format of the input and output files) in TensErLEED 2.0 was modified to extend the size limits of systems that can be calculated. Previous TensErLEED versions severely limited the size of the unit cell, as well as related quantities such as the number of diffracted beams to calculate. The TensErLEED 2.0 input now allows larger values. Furthermore, some variables that were obsolete in the TensErLEED code but were still required in the input were removed, and others (e.g., imaginary part of the inner potential `VPI` and the filament work function `WORKFN` ) were moved from hardcoded values in a runtime-created Fortran script ( `muftin.f` ) to standard input parameters. Modifications to the TensErLEED code by the SolidState Physics group in Erlangen and the ViPErLEED team are released together with ViPErLEED under the terms of the GNU General Public License version 3 (or any later version) [59]. H. Ongoing development The ViPErLEED version 1.0 released with this work is a fully functional open-source package, licensed under the GNU General Public License version 3 or later [59]. Further development is in progress and will be published on the GitHub repository [60]. Already in version 1.0, ViPErLEED can start calculations based on structure input in the form of ASE `Atoms` objects [51]. This interface will be expanded to allow full control of all ViPErLEED features. This should, for the first time, allow easy high-throughput LEED- _I_ ( _V_ ) calculations for automatically generated surface structures. Many computational groups in the field are currently striving to solve complex surface structures without relying on human intuition [61–67]. As demonstrated in Ref. 68, the _R_ factor can be used as a cost function for guiding machine-learned structure prediction. The sensitive feedback provided by LEED _I_ ( _V_ ) may provide an attractive and new use of the technique for structure search in conjunction with total energies yielded by DFT calculations. A major benefit of using LEED _I_ ( _V_ ) for structure determination is its direct link to experimental data. Another major change currently under development concerns a replacement for the TensErLEED optimization (“search”) algorithm. While ViPErLEED will continue to use the TensErLEED code for the full-dynamic calculations and calculations of amplitude changes _δAi,_ g, the TensErLEED algorithm for finding the combination of _δAi,_ g that minimizes the _R_ factor is somewhat dated. In the future, the current one-dimensional, gridbound search may be replaced by a continuous search by calculating _δAi,_ g values on demand. This would allow direct application of, and free choice among established global optimization algorithms available from many optimized Python packages (e.g., SciPy [45], ScikitOptimze [69], Keras [70], Ray [71], JAX [72]). Most of these modern evolutionary or (stochastic) gradient-based algorithms are likely to be much more effective at optimizing the structure than the original custom algorithm implemented in TensErLEED. III. BENCHMARK RESULT: THE (1 _×_ 1) TERMINATION OF _α_ -Fe2O3(1102) The ViPErLEED documentation (see Supplemental Material [27]) guides the user through the application of ViPErLEED on a few example systems [among others, Ag(100), Ni(110), and Ir(100)-(2 _×_ 1)O]. This section outlines the main results obtained with ViPErLEED on a “medium-complexity” oxide surface: The (1 _×_ 1) termination of (1102)-oriented hematite ( _α_ -Fe2O3) [20– 22]. An introduction to the system and details on sample preparation are given in the Supplemental Material [27]. To ensure adequate sample conductivity of this widebandgap semiconducting material, LEED- _I_ ( _V_ ) data were acquired on a slightly Ti-doped (0.03 at.%) _α_ -Fe2O3(1102) film (see Section S2 in the Supplemental Material [27] for details on the growth). The Ti-doped films expose atomically flat, single-crystalline surfaces; their (1 _×_ 1) and (2 _×_ 1) structures are identical to those of undoped crystals [23, 24]. The (1 _×_ 1) termination was prepared through repeated cycles of sputtering (10 min at 1 keV, 5 _×_ 10 <sup>_−_</sup> <sup>7</sup> mbar Ar, _≈_ 65 nA/mm <sup>2</sup> ) and annealing (30 min at 550 <sup>_◦_</sup> C, 7 _×_ 10 <sup>_−_</sup> <sup>7</sup> mbar O2, 20 <sup>_◦_</sup> C/min ramp rate). Before each LEED measurement, the sample was heated for 10–20 min at _≈_ 300 <sup>_◦_</sup> C to desorb H2O [73]. The cleanliness and quality of the surface was ensured by x-ray photoelectron spectroscopy and scanning tunneling microscopy. LEED measurements were acquired at room temperature with an Omicron SpectaLEED (LaB6 cathode, three grids, one microchannel plate), and a DMK 33GX265 camera (The Imaging Source Europe GmbH, 80 ms exposure, 0 dB gain, 15-frames averaging, 3 _×_ 3 binning), using an electron energy range of 30–750 eV (0 _._ 5 eV steps). The extracted _I_ ( _V_ ) data span a total energy range of 10 _._ 8 keV after averaging symmetry-equivalent beams. Flat-field correction was performed by acquiring reference videos on the sample plate (see Part II [9] for more details). Intensities were normalized to the energy-dependent net beam current, _I_ 0, corrected for the energy-dependent current drawn by the LEED electronics, _I_ 00. To minimize artifacts from the LEED grids, the data were averaged from two sets of measurements acquired at sample–grid distances different by 2 mm (more details in Part II [9]). The data were taken during night to avoid magnetic-field fluctuations induced by streetcars traveling in front of the building. Static magnetic fields were compensated with the help of two coils mounted outside the vacuum chamber (see also Part III [8]). Since the sample has _pg_ planegroup symmetry, the LEED intensities at perpendicular incidence have mirror symmetry in only one direction and no rotational symmetry. The crystal was rotated around the [1101] in-plane direction to ensure that the incident beam lies in the mirror plane of the LEED pattern, <u>i.e.,</u> to achieve identical _I_ ( _V_ ) curves of the ( _h|k_ ) and ( _h|k_ ) spots. This ensures that the incidence plane is perpendicular to the surface. In turn, this allows to fix the azimuthal angle of incidence in the calculations, such that only the polar one requires fitting. Figure 7 summarizes the outcome of a LEED- _<u>I</u>_ ( _V_ ) analysis performed with ViPErLEED on _α_ -Fe2O3(1102)(1 _×_ 1). The Supplemental Material [27] includes the raw LEED data as well as final output files. It also describes in detail the steps leading to the optimization, as well as the parameters varied. Figure 7 shows two side views of the system, including values of atomic displacements predicted by the relaxed, lowest-energy DFT model (in parentheses), and by LEED- _I_ ( _V_ ) optimization. Figure 4(a) shows exemplary best-fit LEED- _I_ ( _V_ ) spectra to demonstrate the fit quality. All the experimental and calculated _I_ ( _V_ ) curves are plotted in Fig. S3 of the Supplemental Material [27]. The best-fit model of the structural analysis reproduces the measured LEED- _I_ ( _V_ ) spectra with an overall Pendry _R_ factor of _R_ P = 0 _._ 154. For educational purposes, LEED- _I_ ( _V_ ) optimization was started from a bulk-truncated slab [74] rather than the DFT-optimized model. The relaxations obtained by ViPErLEED and DFT are very close (within 3 _._ 5 pm), and consistent within the uncertainty estimates that can be derived from LEED _I_ ( _V_ ) (see also Table S1 of the Supplemental Material [27]). The largest relaxations involve atoms of the topmost layer (cf. displacements marked in Fig. 7). At the surface, the Fe atoms relax downwards into the plane of the four surrounding O atoms, while O atoms from the first subsurface “sublayer” move closer to the surface. Effectively, this moves the Fe atoms of the topmost cation layer to coincide with the plane of their equatorial O atoms (distances from the plane decreased from _≈_ 21 pm to _≈_ 3 pm). Table I summarizes the duration of the full-dynamic calculations for the (1 _×_ 1) termination of _α_ -Fe2O3(1102) reported in Fig. 7, as obtained with different setups. Through efficient use of parallelization, ViPErLEED pro TABLE I. Timing benchmarks for the full-dynamic “reference” calculation performed for _α_ -Fe2O3(1102)-(1 _×_ 1). TensErLEED v1.6.0 12 1 89 TensErLEED v2.0.0 12 1 69 ViPErLEED <sup>d</sup> 6–12 <sup>e</sup> 1 63 ViPErLEED <sup>d</sup> 6–12 <sup>e</sup> 48 2 _._ 5 a Calculations were performed on the Vienna scientific cluster (VSC-4 [75]) on a node with two Intel® Xeon® Platinum 8174 processors, with a total of 96 logical cores, and 96 GB memory. The `ifort` compiler (version 2021.7.1) from the Intel® oneAPI® high-performance computing packages was used. All calculations used a maximum of two threads for LAPACK parallelization, by setting the oneAPI® math-kernel library `MKL` `NUM` `THREADS` environment variable. b Maximum angular momentum quantum number used for the expansion in spherical harmonics, as described in Section I C. c Number of logical cores used for running calculations at different energies in parallel. See also Section II E. d Using TensErLEED v2.0.0. e Dynamically assigned by ViPErLEED with the default settings for the `LMAX` parameter. The same cutoff for phase shifts was employed in the calculation with dynamic _ℓ_ max as in the ones with fixed _ℓ_ max, but was evaluated independently at each energy, rather than using the _ℓ_ max determined at the highest beam energy for all calculations. IV. CONCLUSIONS This work describes a new user-friendly and flexible open-source package for LEED- _I_ ( _V_ ) calculations and structural optimization, built on top and as an extension of the well-established TensErLEED package. This is part of the larger ViPErLEED project that also addresses data acquisition [8] and extraction [9]. Both the barrier of entry for new users and the potential for human error are significantly reduced by an expedient use of default parameters. The defaults are either static or automatically derived from properties of the experimental data and surface structure. Most significantly, surface symmetries are automatically detected and preserved during optimization. The program also automatically detects how calculated beams should be averaged and matched to an experimental beam set. All segments of LEED- _I_ ( _V_ ) calculations run under one combined user interface with standard input and output formats. Additional developments include simple optimization procedures for parameters inaccessible to the tensor-LEED approach, such as the incidence angle of the electron beam or the imaginary part of the inner potential. Computational performance of the TensErLEED package was improved both via top-level parallelization of the full-dynamic “reference” calculations and calculations of “delta amplitudes” _δAi,_ g, and through optimization directly in the TensErLEED code. This gain in speed and accuracy (in the sense of freedom from human errors) can be leveraged to perform LEED analysis of large systems that were previously impractical to tackle, as exemplified by a recent work on a surface-telluride phase with (10 _×_ 10) periodicity on Setup <sup>a</sup> _ℓ_ max b `N` ~~`C`~~ `ORES` c Execution time (min) Δ _z_ Δ _x_ Δ _y_ Δ _z_ <u>−0.6 (−3.9)</u> <u>9.3 (9.6)</u> <u>13.1 (10.8)</u> <u>6.3 (5.8)</u> <u>4.5 (3.6)</u> - [1120] [1101] Bulk FIG. 7. Structure of the _α_ -Fe2O3(1102)-(1 _×_ 1) surface resulting from LEED- _I_ ( _V_ ) optimization. Oxygen atoms are drawn in red, iron atoms in <u>yellow.</u> The <u>left</u> and right panels show side views along the [1101] and [1120] in-plane directions, respectively. Dashed lines delimit one surface unit cell. Arrows indicate the displacements of atoms relative to the bulk-truncated _α_ -Fe2O3(1102) surface, and are exaggerated by a factor of ten. The bulk-truncated positions of atoms in the surface layer are represented as dashed circles. The _x_, _y_, and _z_ components of the displacements of the atoms in the topmost surface layer are indicated (in picometres). Numbers in parentheses refer to the corresponding displacements as obtained by DFT. Table S1 of the Supplemental Material [27] reports the displacement of all atoms, as well as their uncertainties, derived from LEED _I_ ( _V_ ). There, all the DFT displacements are also listed. See Section S3 of the Supplemental Material [27] for more details on the DFT calculations. duces results in less than 3 min, more than 30 times faster than the original TensErLEED configuration. This significant reduction of computation time not only enhances efficiency but also unlocks new opportunities for exploring larger, more complex, and previously inaccessible systems. More importantly, while harder to quantify, the time needed to set up this calculation with ViPErLEED is also on the order of minutes. In contrast, translating the structural and experimental data to TensErLEED input would be much more time intensive and error prone. For inexperienced users in particular, setting up the TensErLEED input for the first time can be daunting, given the numerous parameters with nontelling names that need definition. When the input contains mistakes, the Fortran modules crash, often without explanation. Instead, ViPErLEED requires only a handful of well-documented parameters. Moreover, it provides sensible feedback when executed, consisting of both fine-grained error messages, warnings based on a large number of “sanity checks”, as well as informative diagnostic files. Pt(111) [76]. ACKNOWLEDGMENTS This research was funded in part by the Austrian Science Fund (FWF) under [doi:10.55776/F81,](https://doi.org/10.55776/F81) Taming Complexity in Materials Modeling (TACO), and by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. 883395, Advanced Research Grant ‘WatFun’). For the purpose of open access, the authors have applied a CC BY public copyright licence to any Author Accepted Manuscript version arising from this submission. Part of the LEED- _I_ ( _V_ ) calculations were performed on the Vienna Scientific Cluster (VSC). The authors extend their acknowledgments to all [1] U. Scheithauer, G. Meyer, and M. Henzler, A new LEED instrument for quantitative spot profile analysis, [Surf.](https://doi.org/10.1016/0039-6028%0x2886%0x2990321-3) Sci. [178](https://doi.org/10.1016/0039-6028%0x2886%0x2990321-3), 441 (1986). [2] C. Brand, A. Hucht, H. Mehdipour, G. Jnawali, J. D. Fortmann, M. Tajik, R. Hild, B. Sothmann, P. Kratzer, R. Schuetzhold, and M. Horn-von Hoegen, Critical behavior of the dimerized Si(001) surface: Continuous order-disorder phase transition in the two-dimensional Ising universality class, Phys. Rev. [B](https://doi.org/10.1103/PhysRevB.109.134104) 109, 134104 [(2024).](https://doi.org/10.1103/PhysRevB.109.134104) [3] U. Starke, J. B. Pendry, and K. Heinz, Diffuse low energy electron diffraction, Prog. Surf. Sci. 52, 53 [(1996).](https://doi.org/10.1016/0079-6816%0x2896%0x2900007-X) [4] J. B. Pendry, Reliability factors for LEED calculations, J. Phys. C [13](https://doi.org/10.1088/0022-3719/13/5/024), 937 (1980). [5] W. T. Moore, D. C. Frost, and K. A. R. Mitchell, The Zanazzi-Jona and Pendry reliability indices compared in LEED crystallographic analyses for five surfaces, [J.](https://doi.org/10.1088/0022-3719/15/3/001) Phys. C 15, L5 (1982). [6] W. Moritz and M. A. Van Hove, _Surface_ _[Structure](https://doi.org/10.1017/9781108284578)_ _De-_ _termination_ _[by](https://doi.org/10.1017/9781108284578)_ _LEED_ _and_ _X-rays_ (Cambridge University Press, 2022). [7] K. Heinz, Electron Based Methods: 3.2.1 Low-Energy Electron Diffraction (LEED), in _Surface_ _[and](https://doi.org/10.1002/9783527680535.ch4)_ _Interface_ _[Science](https://doi.org/10.1002/9783527680535.ch4)_, edited by K. Wandelt (John Wiley & Sons, Ltd., 2013) Chap. 3.2, pp. 93–150. [8] F. D¨orr, M. Schmid, L. Hammer, U. Diebold, and M. Riva, ViPErLEED package III: Data acquisition for low-energy electron diffraction, Phys. Rev. Research (2024). [9] M. Schmid, F. Kraushofer, A. M. Imre, T. Kißlinger, L. Hammer, U. Diebold, and M. Riva, ViPErLEED package II: Spot tracking, extraction and processing of _I_ ( _V_ ) curves, Phys. Rev. Research <mark>ADD</mark> <mark>DOI</mark> <mark>LINK</mark> (2024). [10] M. A. Van Hove and S. Y. Tong, _[Surface crystallography](https://doi.org/10.1007/978-3-642-67195-1)_ _by_ _LEED:_ _theory,_ _[computation](https://doi.org/10.1007/978-3-642-67195-1)_ _and_ _structural_ _results_, Springer Series in Chemical Physics (Springer, Berlin, 1979). beta testers for reporting issues, and in particular to Jascha Bahlmann, Maximilian Buchta, Holger Diem, Julian Hochhaus, Jan Lachnitt, Matthias Meier, Simon Moser, Josef Mysliveˇcek, Samuel Petrov, Karl-Michael Schindler, Alexander Schneider, and Martin Setv´ın for their valuable feedback. Furthermore, Matthias Blatnik, Jes´us Carrete Monta˜na, Ralf Wanzenb¨ock, Florian Buchner, Georg Madsen, Florian Libisch, and Christoph Schattauer are thanked for fruitful discussions. Finally, the authors are grateful for the permission to redistribute as part of ViPErLEED the EEASiSSS program for calculating phase shifts (John Rundgren) [25, 26, 38] and its dependencies (Eric Shirley) [77], as well as TensErLEED (Volker Blum and Klaus Heinz) [14]. Volker Blum, Klaus Heinz, and Eric Shirley are acknowledged for relicensing their contributions to TensErLEED and EEASiSSS under the terms of the GNU GPLv3 (or later). [11] P. J. Rous, J. B. Pendry, D. K. Saldin, K. Heinz, K. M¨uller, and N. Bickel, Tensor LEED: A Technique for High-Speed Surface-Structure Determination, [Phys.](https://doi.org/10.1103/PhysRevLett.57.2951) Rev. Lett. 57, 2951 (1986). [12] P. J. Rous and J. B. Pendry, The theory of tensor LEED, Surf. Sci. [219](https://doi.org/10.1016/0039-6028%0x2889%0x2990513-X), 355 (1989). [13] P. J. Rous, The tensor LEED approximation and surface [crystallography by low-energy electron diffraction, Prog.](https://doi.org/10.1016/0079-6816%0x2892%0x2990005-3) Surf. [Sci.](https://doi.org/10.1016/0079-6816%0x2892%0x2990005-3) 39, 3 (1992). [14] V. Blum and K. Heinz, Fast LEED intensity calculations [for surface crystallography using tensor LEED, Comput.](https://doi.org/10.1016/S0010-4655%0x2800%0x2900209-5) Phys. [Commun.](https://doi.org/10.1016/S0010-4655%0x2800%0x2900209-5) 134, 392 (2001). [15] T. Fauster, L. Hammer, K. Heinz, and M. A. Schneider, Surface Physics: Fundamentals and methods, in _[Surface](https://doi.org/10.1515/9783110636697)_ _[Physics](https://doi.org/10.1515/9783110636697)_ (De Gruyter Oldenbourg, 2020). [16] J. B. Pendry, _Low_ _Energy_ _Electron_ _Diffraction:_ _The_ _Theory_ _and_ _Its_ _Application_ _to_ _Determination_ _of_ _Surface_ _Structure_, Techniques of Physics No. 2 (Academic Press, London, 1974). [17] M. A. Van Hove, W. H. Weinberg, and C.-M. Chan, _Low-Energy_ _Electron_ _[Diffraction:](https://doi.org/10.1007/978-3-642-82721-1)_ _Experiment,_ _Theory_ _and_ _Surface_ _[Structure](https://doi.org/10.1007/978-3-642-82721-1)_ _Determination_, edited by G. Ertl and R. Gomer, Springer Series in Surface Sciences, Vol. 6 (Springer Verlag, Berlin, Heidelberg, 1986). [18] M. P. Seah and W. A. Dench, Quantitative electron spectroscopy of surfaces: A standard data base for electron inelastic mean free paths in solids, Surf. [Interface](https://doi.org/10.1002/sia.740010103) Anal. 1, 2 (1979). [19] The multiple-scattering nature of electron–solid interac tion is the main source of the high information density in LEED- _I_ ( _V_ ) data compared to, for example, surfacetruncation rods in x-ray scattering. [20] M. A. Henderson, Insights into the (1 _×_ 1)-to-(2 _×_ 1) phase transition of the _α_ -Fe2O3(012) surface using EELS, LEED and water TPD, Surf. Sci. 515, 253 [(2002).](https://doi.org/10.1016/S0039-6028%0x2802%0x2901917-9) [21] R. J. Lad and V. E. Henrich, Structure of _α_ -Fe2O3 single-crystal surfaces following Ar <sup>+</sup> ion-bombardment and annealing in O2, Surf. Sci. [193](https://doi.org/10.1016/0039-6028%0x2888%0x2990324-X), 81 (1988). [22] K. S. Tanwar, C. S. Lo, P. J. Eng, J. G. Catalano, D. A. Walko, G. E. Brown, Jr., G. A. Waychunas, A. M. Chaka, and T. P. Trainor, Surface diffraction study of the hydrated hematite (1102) surface, Surf. [Sci.](https://doi.org/10.1016/j.susc.2006.10.021) 601, [460](https://doi.org/10.1016/j.susc.2006.10.021) (2007). [23] G. Franceschi, F. Kraushofer, M. Meier, G. S. Parkin son, M. Schmid, U. Diebold, and M. Riva, A model system for photocatalysis: Ti-doped _α_ -Fe2O3(1102) singlecrystalline films, Chem. Mater. [32](https://doi.org/10.1021/acs.chemmater.9b04908), 3753 (2020). [24] F. Kraushofer, Z. Jakub, M. Bichler, J. Hulva, P. Dr mota, M. Weinold, M. Schmid, M. Setvin, U. Diebold, P. Blaha, and G. S. Parkinson, Atomic-scale structure of the hematite _α_ -Fe2O3(1102) “r-cut” surface, J. [Phys.](https://doi.org/10.1021/acs.jpcc.7b10515) Chem. C [122](https://doi.org/10.1021/acs.jpcc.7b10515), 1657 (2018). [25] J. Rundgren, Optimized surface-slab excited-state muffin-tin potential and surface core level shifts, [Phys.](https://doi.org/10.1103/PhysRevB.68.125405) Rev. B [68](https://doi.org/10.1103/PhysRevB.68.125405), 125405 (2003). [26] J. Rundgren, Elastic electron-atom scattering in amplitude-phase representation with application to electron diffraction and spectroscopy, Phys. [Rev.](https://doi.org/10.1103/PhysRevB.76.195441) B 76, [195441](https://doi.org/10.1103/PhysRevB.76.195441) (2007). [27] See Supplemental Material at <mark>URL</mark> for more details con cerning: the _α_ -Fe2O3(1102) sample; parameters used in the LEED- _I_ ( _V_ ) optimization and their best-fit value; DFT relaxation of the _α_ -Fe2O3(1102)-(1 _×_ 1) structure; input files for the LEED- _I_ ( _V_ ) optimization, description of the optimization steps, and final outputs from both LEED and DFT; a copy of the ViPErLEED documentation; the source code for ViPErLEED version 1.0.0 and TensErLEED version 2.0.0; raw LEED- _I_ ( _V_ ) data for _α_ -Fe2O3(1102)-(1 _×_ 1). The Supplemental Material additionally cites Refs. 78–99. [28] M. Kottcke and K. Heinz, A new approach to automated [structure optimization in LEED intensity analysis, Surf.](https://doi.org/10.1016/S0039-6028%0x2896%0x2901307-6) Sci. [376](https://doi.org/10.1016/S0039-6028%0x2896%0x2901307-6), 352 (1997). [29] U. Loffler, R. D¨oll, K. Heinz, and J. B. Pendry, Investi [gation of surface atom vibrations by tensor LEED, Surf.](https://doi.org/10.1016/0039-6028%0x2894%0x2991314-5) Sci. [301](https://doi.org/10.1016/0039-6028%0x2894%0x2991314-5), 346 (1994). [30] R. D¨oll, M. Kottcke, and K. Heinz, Chemical substi tution of surface atoms in structure determination by [tensor low-energy electron diffraction, Phys. Rev. B](https://doi.org/10.1103/PhysRevB.48.1973) 48, [1973](https://doi.org/10.1103/PhysRevB.48.1973) (1993). [31] S. Y. Tong, Theory of low-energy electron diffraction, Prog. Surf. [Sci.](https://doi.org/10.1016/0079-6816%0x2875%0x2990010-6) 7, 1 (1975). [32] M. A. Van Hove, W. Moritz, H. Over, P. J. Rous, A. Wander, A. Barbieri, N. Materer, U. Starke, and G. A. Somoraj, Automated-determination of complex surface-structures by LEED, Surf. Sci. [Rep.](https://doi.org/10.1016/0167-5729%0x2893%0x2990011-D) 19, 191 [(1993).](https://doi.org/10.1016/0167-5729%0x2893%0x2990011-D) [33] The Van Hove LEED packages are available for down load on the internet, `[https://www.icts.hkbu.edu.hk/](https://www.icts.hkbu.edu.hk/VanHove_files/leed/leedpack.html)` `[VanHove_files/leed/leedpack.html](https://www.icts.hkbu.edu.hk/VanHove_files/leed/leedpack.html)` . [34] A. Wander, A new modular low energy electron diffrac tion package - DL ~~L~~ EED, Comput. [Phys.](https://doi.org/10.1016/S0010-4655%0x2801%0x2900168-0) Commun. 137 [,](https://doi.org/10.1016/S0010-4655%0x2801%0x2900168-0) 4 (2001). [35] M. Blanco-Rey, P. de Andres, G. Held, and D. A. King, A FORTRAN-90 low-energy electron diffraction program (LEED90 v1.1), Comput. Phys. Commun. 161, [151](https://doi.org/10.1016/j.cpc.2004.05.002) (2004). [36] D. J. Titterington and C. G. Kinniburgh, Calculation of LEED diffracted intensities, Comput. [Phys.](https://doi.org/10.1016/0010-4655%0x2880%0x2990005-3) Commun. 20, [237](https://doi.org/10.1016/0010-4655%0x2880%0x2990005-3) (1980). [37] G. Held, M. P. Bessent, S. Titmuss, and D. A. King, Realistic molecular distortions and strong substrate buckling induced by the chemisorption of benzene on Ni _{_ 111 _}_, J. Chem. Phys. [105](https://doi.org/10.1063/1.472870), 11305 (1996). [38] J. Rundgren, B. E. Sernelius, and W. Moritz, Low energy electron diffraction with signal electron carrierwave wavenumber modulated by signal exchangecorrelation interaction, J. Phys. [Commun.](https://doi.org/10.1088/2399-6528/ac2c31) 5, 105012 [(2021).](https://doi.org/10.1088/2399-6528/ac2c31) [39] Some integration modules for specific applications of LEED _I_ ( _V_ ) also exist in the literature [100, 101]. Structure-optimization algorithms dedicated to electron-diffraction data have also been developed [102, 103]. [40] A. Mayer, H. Salopaasi, K. Pussi, and R. D. Diehl, A novel method for the extraction of intensity-energy spectra from low-energy electron diffraction patterns, [Com-](https://doi.org/10.1016/j.cpc.2012.02.019) put. Phys. [Commun.](https://doi.org/10.1016/j.cpc.2012.02.019) 183, 1443 (2012). [41] `[https://github.com/andim/easyleed](https://github.com/andim/easyleed)` . [42] `[https://github.com/empa-scientific-it/cleedpy](https://github.com/empa-scientific-it/cleedpy)` . [43] S. Crampin and P. J. Rous, The validity of the average _t_ -matrix approximation for low-energy electron diffraction from random alloys, Surf. Sci. [244](https://doi.org/10.1016/0039-6028%0x2891%0x2990486-C), L137 (1991). [44] C. R. Harris, K. J. Millman, S. J. van der Walt, R. Gom mers, P. Virtanen, D. Cournapeau, E. Wieser, J. Taylor, S. Berg, N. J. Smith, R. Kern, M. Picus, S. Hoyer, M. H. van Kerkwijk, M. Brett, A. Haldane, J. F. del Rio, M. Wiebe, P. Peterson, P. Gerard-Marchant, K. Sheppard, T. Reddy, W. Weckesser, H. Abbasi, C. Gohlke, and T. E. Oliphant, Array programming with NumPy, Nature 585 [,](https://doi.org/10.1038/s41586-020-2649-2) 357 (2020). [45] P. Virtanen, R. Gommers, T. E. Oliphant, M. Haber land, T. Reddy, D. Cournapeau, E. Burovski, P. Peterson, W. Weckesser, J. Bright, S. J. van der Walt, M. Brett, J. Wilson, K. J. Millman, N. Mayorov, A. R. J. Nelson, E. Jones, R. Kern, E. Larson, C. J. Carey, I. Polat, Y. Feng, E. W. Moore, J. VanderPlas, D. Laxalde, J. Perktold, R. Cimrman, I. Henriksen, E. A. Quintero, C. R. Harris, A. M. Archibald, A. H. Ribeiro, F. Pedregosa, P. van Mulbregt, and SciPy 1.0 Contributors, SciPy 1.0: fundamental algorithms for scientific computing in Python, Nat. [Methods](https://doi.org/10.1038/s41592-019-0686-2) 17, 261 [(2020).](https://doi.org/10.1038/s41592-019-0686-2) [46] J. D. Hunter, Matplotlib: A 2D graphics environment, Comput. Sci. [Eng.](https://doi.org/10.1109/MCSE.2007.55) 9, 90 (2007). [47] F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duches- <sup>´</sup> nay, Scikit-learn: [Machine learning in Python, J. Mach.](http://jmlr.org/papers/v12/pedregosa11a.html) Learn. [Res.](http://jmlr.org/papers/v12/pedregosa11a.html) 12, 2825 (2011). [48] The ViPErLEED documentation is available at `[https:](https://www.viperleed.org)` `[//www.viperleed.org](https://www.viperleed.org)` and as part of the ViPErLEED GitHub repository [60] (2024). [49] G. Kresse and J. Hafner, _Ab_ _initio_ molecular dynamics [for open-shell transition metals, Phys. Rev. B](https://doi.org/10.1103/PhysRevB.48.13115) 48, 13115 [(1993).](https://doi.org/10.1103/PhysRevB.48.13115) [50] K. Momma and F. Izumi, VESTA 3 for threedimensional visualization of crystal, volumetric and [morphology data, J. Appl. Crystallogr.](https://doi.org/doi:10.1107/S0021889811038970) 44, 1272 (2011). [51] A. Hjorth Larsen, J. Jørgen Mortensen, J. Blomqvist, I. E. Castelli, R. Christensen, M. Du�lak, J. Friis, M. N. Groves, B. Hammer, C. Hargus, E. D. Hermes, P. C. Jennings, P. Bjerre Jensen, J. Kermode, J. R. Kitchin, E. Leonhard Kolsbjerg, J. Kubal, K. Kaasbjerg, S. Lysgaard, J. Bergmann Maronsson, T. Maxson, T. Olsen, L. Pastewka, A. Peterson, C. Rostgaard, J. Schiøtz, O. Sch¨utt, M. Strange, K. S. Thygesen, T. Vegge, L. Vilhelmsen, M. Walter, Z. Zeng, and K. W. Jacobsen, The atomic simulation environment [a Python library for working with atoms, J. Phys.:](https://doi.org/10.1088/1361-648x/aa680e) Condens. Matter 29, 273002 (2017). [52] The vibration amplitude as defined here (i.e., the square root of the _⟨u_ <sup>2</sup> _⟩T_ value at temperature _T_ ) is based on the isotropic average of the squared 3D vibration displacements. These values may also include static disorder, such as small, random displacements due to defects or adsorbates. [53] A “sublayer” is defined as a set of chemically equivalent atoms with the same _z_ coordinate (within tolerance) to distinguish it from the notion of “layer” as used in TensErLEED: the latter is a composite object that may often be several ˚angstr¨oms thick. A “layer” is commonly composed of several “sublayers”. [54] Note that this approach implies that the correct symme try may not be found if the `POSCAR` unit cell is not primitive in the surface plane. However, viperleed.calc will automatically recognize non-primitive unit cells, output a warning, and write a `POSCAR` `mincell` file containing a slab with a primitive unit cell. [55] H. N. Waltenburg and J. T. Yates, Surface-chemistry of silicon, Chem. Rev. [95](https://doi.org/10.1021/cr00037a600), 1589 (1995). [56] R. Bliem, E. McDermott, P. Ferstl, M. Setv´ın, O. Gamba, J. Pavelec, M. A. Schneider, M. Schmid, U. Diebold, P. Blaha, L. Hammer, and G. S. Parkinson, Subsurface cation vacancy stabilization of the magnetite (001) surface, Science 346 [,](https://doi.org/10.1126/science.1260556) 1215 (2014). [57] The source code for TensErLEED and EEASiSSS is hosted on GitHub. The TensErLEED code is currently maintained by the ViPErLEED team, `[https://github.](https://github.com/viperleed/viperleed-tensorleed)` `[com/viperleed/viperleed-tensorleed](https://github.com/viperleed/viperleed-tensorleed)` . [58] E. Anderson, Z. Bai, C. Bischof, S. Blackford, J. Dem mel, J. Dongarra, J. Du Croz, A. Greenbaum, S. Hammarling, A. McKenney, and D. Sorensen, _[LAPACK](https://doi.org/10.1137/1.9780898719604)_ _[Users’](https://doi.org/10.1137/1.9780898719604)_ _Guide_, 3rd ed. (Society for Industrial and Applied Mathematics, Philadelphia, PA, 1999). [59] `[https://www.gnu.org/licenses/gpl-3.0.en.html](https://www.gnu.org/licenses/gpl-3.0.en.html)` . [60] `[https://github.com/viperleed/viperleed](https://github.com/viperleed/viperleed)` . [61] K. Noordhoek and C. Bartel, Accelerating the predic tion of inorganic surfaces with machine learning interatomic potentials, Nanoscale [16](https://doi.org/10.1039/D3NR06468A), 6365 (2024). [62] H. Li, Y. Jiao, K. Davey, and S.-Z. Qiao, Data-driven machine learning for understanding surface structures of heterogeneous catalysts, Angew. [Chem.,](https://doi.org/10.1002/anie.202216383) Int. Ed. 62, [e202216383](https://doi.org/10.1002/anie.202216383) (2023). [63] E. Musa, F. Doherty, and B. R. Goldsmith, Accelerating the structure search of catalysts with machine learning, Curr. Opin. Chem. [Eng.](https://doi.org/10.1016/j.coche.2021.100771) 35, 100771 (2022). [64] Y. Lee, J. Timmermann, C. Panosetti, C. Scheurer, and K. Reuter, Staged training of machine-learning potentials from small to large surface unit cells: Efficient global structure determination of the RuO2(100)- _c_ (2 _×_ 2) [reconstruction and (410) vicinal, J. Phys. Chem. C](https://doi.org/10.1021/acs.jpcc.3c04049) 127, [17599](https://doi.org/10.1021/acs.jpcc.3c04049) (2023). [65] R. Wanzenb¨ock, M. Arrigoni, S. Bichelmaier, F. Buch ner, J. Carrete, and G. K. H. Madsen, Neural-networkbacked evolutionary search for SrTiO3(110) surface reconstructions, Digital [Discovery](https://doi.org/10.1039/d2dd00072e) 1, 703 (2022). [66] L. R. Merte, M. K. Bisbo, I. Sokolovi´c, M. Setv´ın, B. Hagman, M. Shipilin, M. Schmid, U. Diebold, E. Lundgren, and B. Hammer, Structure of an ultrathin oxide on Pt3Sn(111) solved by machine learning enhanced global optimization, Angew. [Chem.,](https://doi.org/10.1002/anie.202204244) Int. Ed. 61, [e202204244](https://doi.org/10.1002/anie.202204244) (2022). [67] M. Hellstr¨om and J. Behler, Surface phase diagram pre diction from a minimal number of DFT calculations: redox-active adsorbates on zinc oxide, Phys. Chem. Chem. [Phys.](https://doi.org/10.1039/c7cp05182d) 19, 28731 (2017). [68] E. Primorac, H. Kuhlenbeck, and H. J. Freund, LEED I/V determination of the structure of a MoO3 monolayer on Au(111): Testing the performance of the CMA-ES evolutionary strategy algorithm, differential evolution, a genetic algorithm and tensor LEED based structural optimization, Surf. Sci. [649](https://doi.org/10.1016/j.susc.2016.01.030), 90 (2016). [69] T. Head, M. Kumar, H. Nahrstaedt, G. Louppe, and I. Shcherbatyi, [scikit-optimize/scikit-optimize](https://doi.org/10.5281/zenodo.1157319) (2021). [70] F. Chollet _et_ _al._, Keras, `[https://keras.io](https://keras.io)` (2015). [71] P. Moritz, R. Nishihara, S. Wang, A. Tumanov, R. Liaw, E. Liang, M. Elibol, Z. Yang, W. Paul, M. I. Jordan, and I. Stoica, Ray: [A distributed framework for emerging AI](https://doi.org/10.48550/arxiv.1712.05889) [applications,](https://doi.org/10.48550/arxiv.1712.05889) arXiv:1712.05889 (2018). [72] J. Bradbury, R. Frostig, P. Hawkins, M. J. Johnson, C. Leary, D. Maclaurin, G. Necula, A. Paszke, J. VanderPlas, S. Wanderman-Milne, and Q. Zhang, [JAX:](http://github.com/google/jax) composable [transformations](http://github.com/google/jax) of Python+NumPy pro[grams](http://github.com/google/jax) (2018). [73] Z. Jakub, F. Kraushofer, M. Bichler, J. Balajka, J. Hulva, J. Pavelec, I. Sokolovic, M. M¨ullner, M. Setv´ın, M. Schmid, U. Diebold, P. Blaha, and G. S. Parkinson, Partially dissociated water dimers at the water– hematite interface, ACS Energy [Lett.](https://doi.org/10.1021/acsenergylett.8b02324) 4, 390 (2019). [74] E. N. Maslen, V. A. Streltsov, N. R. Streltsova, and N. Ishizawa, Synchrotron x-ray study of the electron density in _α_ [-Fe2O3, Acta Crystallogr. B](https://doi.org/10.1107/S0108768194002284) 50, 435 (1994). [75] `[https://vsc.ac.at//systems/vsc-4/](https://vsc.ac.at//systems/vsc-4/)` . [76] T. Kißlinger, A. Schewski, A. Raabgrund, H. Loh, L. Hammer, and M. A. Schneider, Surface telluride phases on Pt(111): Reconstructive formation of unusual adsorption sites and well-ordered domain walls, [Phys.](https://doi.org/10.1103/PhysRevB.108.205412) Rev. B [108](https://doi.org/10.1103/PhysRevB.108.205412), 205412 (2023). [77] E. L. Shirley, _Quasiparticle_ _calculations_ _in_ _atoms_ _and_ _many-body_ _core-valence_ _partitioning_, Ph.D. thesis, University of Illinois at Urbana-Champaign (1991). [78] F. Kraushofer, N. Resch, M. Eder, A. Rafsanjani Abbasi, S. Tobisch, Z. Jakub, G. Franceschi, M. Riva, M. Meier, M. Schmid, U. Diebold, and G. S. Parkinson, Surface reduction state determines stabilization and incorporation of Rh on _α_ -Fe2O3(1102), Adv. [Mater.](https://doi.org/10.1002/admi.202001908) Interfaces 8 [,](https://doi.org/10.1002/admi.202001908) 2001908 (2021). [79] F. Kraushofer, L. Haager, M. Eder, A. Rafsanjani Abbasi, Z. Jakub, G. Franceschi, M. Riva, M. Meier, M. Schmid, U. Diebold, and G. <u>S.</u> Parkinson, Single Rh adatoms stabilized on _α_ -Fe2O3(1102) by coadsorbed water, ACS Energy [Lett.](https://doi.org/10.1021/acsenergylett.1c02405) 7, 375 (2022). [80] S. Gerhold, M. Riva, B. Yildiz, M. Schmid, and U. Diebold, Adjusting island density and morphology of the SrTiO3(110)-(4 _×_ 1) surface: Pulsed laser deposition combined with scanning tunneling microscopy, Surf. Sci. [651](https://doi.org/10.1016/j.susc.2016.03.010), 76 (2016). [81] V. Blum, L. Hammer, W. Meier, K. Heinz, M. Schmid, E. Lundgren, and P. Varga, Segregation and ordering at Fe1 _−x_ Al _x_ (100) surfaces – a model case for binary alloys, Surf. Sci. [474](https://doi.org/10.1016/S0039-6028%0x2800%0x2900987-0), 81 (2001). [82] P. Ferstl, T. Schmitt, M. A. Schneider, L. Hammer, A. Michl, and S. M¨uller, Structure and ordering of oxygen on unreconstructed Ir(100), Phys. [Rev.](https://doi.org/10.1103/PhysRevB.93.235406) B 93, [235406](https://doi.org/10.1103/PhysRevB.93.235406) (2016). [83] K. Johnson, Q. Ge, S. Titmuss, and D. A. King, Unusual bridged site for adsorbed oxygen adatoms: Theory and experiment for Ir _{_ 100 _}_ -(1 _×_ 2)O, J. Chem. [Phys.](https://doi.org/10.1063/1.481709) 112, [10460](https://doi.org/10.1063/1.481709) (2000). [84] T. Kißlinger, M. A. Schneider, and L. Hammer, Sub monolayer copper telluride phase on Cu(111): Ad-chain and trough formation, Phys. Rev. B [104](https://doi.org/10.1103/PhysRevB.104.155426), 155426 (2021). [85] M. Sporn, E. Platzgummer, S. Forsthuber, M. Schmid, W. Hofer, and P. Varga, The accuracy of quantitative LEED in determining chemical composition profiles of substitutionally disordered alloys: A case study, [Surf.](https://doi.org/10.1016/S0039-6028%0x2898%0x2900596-2) Sci. [416](https://doi.org/10.1016/S0039-6028%0x2898%0x2900596-2), 423 (1998). [86] G. Kresse and J. Furthm¨uller, Efficiency of _ab-initio_ to tal energy calculations for metals and semiconductors using a plane-wave basis set, Comput. [Mater.](https://doi.org/10.1016/0927-0256%0x2896%0x2900008-0) Sci. 6, 15 [(1996).](https://doi.org/10.1016/0927-0256%0x2896%0x2900008-0) [87] P. E. Bl¨ochl, Projector augmented-wave method, [Phys.](https://doi.org/10.1103/PhysRevB.50.17953) Rev. B [50](https://doi.org/10.1103/PhysRevB.50.17953), 17953 (1994). [88] G. Kresse and D. Joubert, From ultrasoft pseudopoten tials to the projector augmented-wave method, [Phys.](https://doi.org/10.1103/PhysRevB.59.1758) Rev. B [59](https://doi.org/10.1103/PhysRevB.59.1758), 1758 (1999). [89] J. P. Perdew, K. Burke, and M. Ernzerhof, Generalized [Gradient Approximation Made Simple, Phys. Rev. Lett.](https://doi.org/10.1103/PhysRevLett.77.3865) 77, [3865](https://doi.org/10.1103/PhysRevLett.77.3865) (1996). [90] V. I. Anisimov, J. Zaanen, and O. K. Andersen, Band theory and Mott insulators: Hubbard _U_ instead of Stoner _I_, Phys. Rev. B [44](https://doi.org/10.1103/PhysRevB.44.943), 943 (1991). [91] R. Ovcharenko, E. Voloshina, and J. Sauer, Water ad sorption and O-defect formation on Fe2O3(0001) surfaces, Phys. Chem. Chem. [Phys.](https://doi.org/10.1039/C6CP05313K) 18, 25560 (2016). [92] G. Rollmann, A. Rohrbach, P. Entel, and J. Hafner, First-principles calculation of the structure and magnetic phases of hematite, Phys. Rev. [B](https://doi.org/10.1103/PhysRevB.69.165107) 69, 165107 [(2004).](https://doi.org/10.1103/PhysRevB.69.165107) [93] P. K. George and E. D. Thompson, Debye temperature [of nickel from 0 to 300 degrees K, J. Phys. Chem. Solids](https://doi.org/10.1016/0022-3697%0x2867%0x2990040-6) 28, [2539](https://doi.org/10.1016/0022-3697%0x2867%0x2990040-6) (1967). [94] J. G. Kim, K. H. Han, C. H. Lee, J. Y. Jeong, and K. H. Shin, Crystallographic and magnetic properties of nanostructured hematite synthesized by the sol-gel process, J. Korean Phys. [Soc.](https://www.jkps.or.kr/journal/download_pdf.php?spage=798&volume=38&number=6) 38, 798 (2001). [95] E. De Grave, L. H. Bowen, D. D. Amarasiriwardena, and R. E. Vandenberghe, <sup>5</sup> 7Fe M¨o-effect study of highly substituted aluminum hematites - determination of the magnetic hyperfine field distributions, J. [Magn.](https://doi.org/10.1016/0304-8853%0x2888%0x2990181-3) Magn. Mater. [72](https://doi.org/10.1016/0304-8853%0x2888%0x2990181-3), 129 (1988). [96] F. Bødker, M. F. Hansen, C. B. Koch, K. Lefmann, and S. Mørup, Magnetic properties of hematite nanoparticles, Phys. Rev. B [61](https://doi.org/10.1103/PhysRevB.61.6826), 6826 (2000). [97] A. H. Morrish, Heat capacity and other thermodynamic quantities, in _Canted_ _[Antiferromagnetism:](https://doi.org/10.1142/9789812831569_0005)_ _Hematite_ (World Scientific Publishing Co. Pte. Ltd, Singapore, 1995) Chap. 5, pp. 76–80. [98] F. Grønvold and E. J. Samuelsen, Heat-capacity and thermodynamic properties of _α_ -Fe2O3 in the region 300–1050 k. antiferromagnetic transition, J. [Phys.](https://doi.org/10.1016/0022-3697%0x2875%0x2990017-7) Chem. [Solids](https://doi.org/10.1016/0022-3697%0x2875%0x2990017-7) 36, 249 (1975). [99] M. Catti, G. Valerio, and R. Dovesi, Theoretical study of electronic, magnetic, and structural properties of _α_ fe2o3 (hematite), Phys. Rev. B [51](https://doi.org/10.1103/PhysRevB.51.7441), 7441 (1995). [100] M. Blanco-Rey, P. de Andres, G. Held, and D. A. King, Molecular t-matrices for low-energy electron diffraction (TMOL v1.1), Comput. Phys. [Commun.](https://doi.org/10.1016/j.cpc.2004.05.003) 161, 166 [(2004).](https://doi.org/10.1016/j.cpc.2004.05.003) [101] P. L. de Andres and D. A. King, Anisotropic and anhar monic effects through the t-matrix for low-energy elec[tron diffraction (TMAT v1.1), Comput. Phys. Commun.](https://doi.org/10.1016/S0010-4655%0x2801%0x2900239-9) 138, 281 (2001). [102] M. Blanco-Rey and P. L. de Andres, Surface diffraction structure determination from combinatorial simultaneous optimization, Surf. Sci. [600](https://doi.org/10.1016/j.susc.2006.01.049), L91 (2006). [103] D. A. Duncan, J. I. J. Choi, and D. P. Woodruff, Global search algorithms in surface structure determination using photoelectron diffraction, Surf. Sci. [606](https://doi.org/10.1016/j.susc.2011.10.003), 278 (2012).

섹션 본문 73문단 · 60,506자

(제목 없음)

1Low-energy electron diffraction (LEED) is a widely used technique in surface-science laboratories.Yet, it is rarely used to its full potential.The quantitative information about the surface structure, contained in the modulation of the intensities of the diffracted beams as a function of incident electron energy, LEED I(V ), is underutilized.To acquire these data, only minor adjustments would be required in most experimental setups, but existing analysis software is cumbersome to use and often computationally inefficient.The ViPErLEED (Vienna package for Erlangen LEED) project lowers these barriers, introducing a combined solution for user-friendly data acquisition, extraction, and computational analysis.These parts are discussed in three separate publications.Here, the focus is on the computational part of ViPErLEED, which performs highly automated LEED-I(V ) calculations and structural optimization.Minimal user input is required, and the functionality is significantly enhanced compared to existing solutions.Computation is performed by embedding the existing Erlangen tensor-LEED package (TensErLEED).ViPErLEED manages additional parallelization, monitors convergence, and processes all input and output.This makes LEED I(V ) more accessible to new users while minimizing the potential for errors and the manual labor.Added functionalities include intelligent structure-dependent defaults for most calculation parameters, automatic detection of bulk and surface symmetries and their relationship, automated search procedures that preserve the symmetry and speed up convergence, adjustments to the TensErLEED code to handle larger systems than before, as well as parallelization and optimization.Modern file formats are used as input and output, and there is a direct interface to the Atomic Simulation Environment (ASE) package.The software is implemented primarily in Python (version ≥ 3.7) and provided as an open-source package (GNU GPLv3 or any later version).A structure determination of the α-Fe2O3(1102)-(1 × 1) surface is presented as an example for the application of the software.

2Low-energy electron diffraction (LEED) is a versatile, quick and easy-to-use characterization technique routinely used in many surface-science laboratories.Acquiring LEED images typically takes minutes, limited more by the time it takes to move a sample into position than the actual measurement.The resulting LEED pattern offers a reciprocal-space fingerprint of the surface unit cell, where each "spot" corresponds to a beam of diffracted electrons that fulfills the constructive-interference Bragg condition of the 2D periodicity of the surface.These data can indicate whether a given sample preparation yields the desired surface structure.However, this snapshot of the reciprocal lattice is only a fraction of the full information available from LEED.Spot-profile analysis (SPA)LEED [1,2], as well as analysis of the background [3], can offer information about defects and surface order.LEED I(V ) can yield accurate positions for the atoms in the unit cell.In LEED I(V ), the intensities I of the scattered electron beams are measured as a function of electron energy, tuned via the accelerating voltage V .Since these "I(V ) curves" can also be calculated theoretically, experimental LEED-I(V ) data can be directly compared to a structural model of a surface.Comparison between calculations and experiment is performed through the so-called R factor, which evaluates agreement across the entire beam set and breaks it down into a single value [4,5].Thus, with a relatively quick and simple laboratory-based experiment, one can confirm or reject hypothetical surface models, perform local optimizations of the atomic coordinates in such a model, or obtain a robust fingerprint to confirm the reproducibility of sample preparation [6,7].

3Crucially, the hardware for these experiments is already present in many surface-science laboratories, and only minor adjustments are required to upgrade most standard LEED setups to LEED-I(V ) capability.The bigger hurdles are the analysis of the data and the calculation of the theoretical I(V ) curves based on a given model.ViPErLEED, presented here, is a comprehensive package that combines a simple hardware add-on with software for acquiring and extracting the I(V ) data, and for calculating and comparing to theoretical I(V ) curves. Figure 1 shows the workflow with input and output.

4The whole package consists of three parts, which are presented in three separate publications: The data ac- [8] and Part II [9], respectively.This work describes the LEED-I(V ) calculations, indicated in panel (c).The relationship between TensErLEED and ViPErLEED is visualized in more detail in Fig. 3. Example data in this figure are from measurements on α-Fe2O3(1102)-(1 × 1).

5quisition (hardware), discussed in Part III [8]; the data extraction (spot tracking) and processing, discussed in Part II [9]; and the LEED-I(V ) calculation and optimization, presented here.Specifically, this work discusses the software to calculate I(V ) curves for a given reference structure and to optimize this structure based on the match with experimental data.While these three parts are optimized to be used together, they all employ standard file formats (such as comma-separated values -CSV) for input and output and can be used independently.

B. Basics of LEED I(V )

6An extensive treatment of the theory of quantitative LEED, as well as the standard computational treatment, can be found in Refs.4, 6, 7, 10-17.These are only outlined briefly here to introduce important terms and concepts used in this work.

7LEED is highly surface sensitive due to the low inelastic mean free path of electrons in solids (≈5-15 Å in the relevant energy range of up to 1000 eV [18]).Because of the strong electron-solid interaction, electrons typically experience multiple scattering events before leaving the surface [19].Thus, calculations of LEED-I(V ) spectra need to include paths with multiple scattering events.Crucially, small displacements (on the order of a few picometres) strongly affect the intensities of scattered beams.The high sensitivity to atomic positions gives LEED I(V ) the potential for accurate determination of atomic coordinates.This, however, can only be achieved through a careful optimization process while comparing calculated and experimental I(V ) curves.

8Scattering of low-energy (≈ 30-2000 eV) electrons with one atom in a solid is well approximated as occurring in a spherically symmetric potential (muffin-tin approximation) and conserving the angular momentum ℓ.Single scattering events of electrons with energy E at a given site can then be described by partial-wave phase shifts δ ℓ (E).Electron-phonon scattering is included as an effective Debye-Waller factor, which depends on the vibration amplitudes of the atoms.Inelastic scattering is treated via an imaginary part of the inner potential, leading to an exponential decay with distance.The real part of the inner potential is defined by an approximate function, derived together with the scattering phase shifts with a boundary condition to the vacuum [25,26].With these few approximations, one can perform full-dynamic calculations of the multiple scattering of electrons, yielding theoretical I(V ) curves that can be compared to experiment [10].

9In a typical LEED calculation, the surface is split into "layers", which should be separated along the surface normal by distances of at least 1 Å.Each layer can consist of one or multiple atoms.Multiple scattering within each layer is then evaluated in angular-momentum space, resulting in layer-diffraction matrices.Propagation and scattering between the layers can be treated in a planewave representation [10,14].Figure 2 shows a typical layer definition for an example system of medium complexity: the α-Fe 2 O 3 (1102)-(1 × 1) surface [24].This system will be referred to several times below, and it is one of the examples given in the ViPErLEED documentation (see the Supplemental Material [27]).This layering scheme also allows for straightforward treatment of scattering far below the surface: One or two layers are defined as a bulk repeat unit (e.g., Layer 4 in Fig. 2) with a given bulk repeat vector.This bulk unit can then be stacked through repeated doubling until the norm of the reflection and transmission matrices of the bulk remains unchanged between successive steps [14].

C. The tensor-LEED approximation

10The "full-dynamic" LEED calculations discussed so far are computationally demanding.The most expensive part is the inversion of matrices needed for intralayer scattering, which scales as d n (n = 2.38-3, depending on the algorithm) for d × d matrices.Intralayer scattering matrices have d = N (ℓ max + 1) 2 for N atoms in the layer and a maximum angular momentum ℓ max [7].As discussed in Section I B, the high sensitivity to atomic coordinates on the picometre scale implies that basic comparisons of theoretical models to experimental data require local optimization of these coordinates, entailing numerous calculations.The number of optimization parameters also scales with system size, with a concomitant increase in the number of trial calculations [28].

11The so-called tensor-LEED approximation makes these optimizations more efficient: A full-dynamic calculation is performed only for a reference structure; changes to the diffraction intensities through small modifications of the reference structure are treated by first-order perturbation theory [11][12][13].This approach is ideal for structural optimization aimed at improving the agreement between theoretical and experimental I(V ) curves, as the full-dynamic calculation only needs to be performed once.The optimization can then be performed using much cheaper evaluations of a set of perturbations, which scale linearly with the number of parameters under variation [12].Importantly, the initial structural guess must be close to the target structure: The tensor-LEED approximation breaks down for displacements of more than ≈ 0.4 Å [12], and significant errors are already introduced much sooner.This means that new reference calculations must be performed when changes to the original structure become too large.It is worth noting that the tensor-LEED approximation is not limited to purely geometrical perturbations of the reference structure.Changes of atomic vibration amplitudes [29] and statistical chemical substitutions [30] (including vacancies) can be treated with the same method and even concurrently [7, p. 135].

12Several implementations exist for calculating LEED-I(V ) curves, most of which are derived from the pioneering works of Pendry [16], Tong [31], and Van Hove [10].Perhaps the most widely known is the Barbieri-Van Hove symmetrized automated LEED (SATLEED) package and its derivatives (MSATLEED, SATCLEED, ATLMLEED) [32,33].Alternatives include TensEr-LEED [14], described below, as well as DL LEED [34], LEED90 [35], CAVLEED [36], CLEED [37] and LEED-FIT [38], though the latter four do not implement the tensor-LEED approximation, while DL LEED has a partial tensor-LEED implementation [39].The various packages encompass different capabilities, but none automates the structure-optimization process.Recently, the AQuaLEED package was published to simplify use of the SATLEED codes through a Python wrapper program [40,41] in a similar, though much less broad, approach as the ViPErLEED package described here.A Python wrapper has also been recently developed for CLEED [42].

13The theoretical foundation and code architecture of the TensErLEED package are described in detail in Ref. 14.Briefly, the package consists of three main modules, shown in Fig. 3(a), which perform different segments of the LEED-I(V ) calculation.The "referencecalculation" module performs full-dynamic LEED-I(V ) calculations, producing the complex amplitudes A g of the diffracted beams, g, as implemented previously in the Van Hove-Tong code [10].In addition, it also stores information necessary for the tensor-LEED approximation in separate output files, named "Tensors" in Ref. 14.The second TensErLEED segment is a "delta-amplitudes" calculation, which computes the changes δA i,g for a small perturbation to the position, vibration amplitude, or site occupation (including mixing of chemical species as described by the average t-matrix approximation [43]) of an atom i.These δA i,g are calculated for all atoms under variation and for each step in a given atom's range of displacements.The third segment, the "search", aims for the set of δA i,g that, together with the reference amplitudes A g , minimizes the R factor (i.e., the disagreement) between the calculated and experimental beams.Simply put, the full-dynamic reference calculation is a "precise" LEED calculation for a given reference structure, while the δA i,g calculation and "search" compose the structural optimization using tensor LEED.

14Altogether, the TensErLEED package [14] is a powerful and versatile tool for LEED-I(V ) calculations, but it has shortcomings.Employing the package with its custom settings demands significant experience and poses a serious burden of entry for LEED-I(V ) experimenters.

15ViPErLEED drastically simplifies the user experience and expands the functionality and performance of existing solutions.The Python package controlling the computational aspects is named viperleed.calc.It manages the LEED-I(V ) calculations -acting as a wrapper for the established TensErLEED modules -and contains higher-level logic and automation.By defining suitable defaults based on the theoretical structure and experimental data, viperleed.calcdramatically cuts down the required user input.Moreover, it provides additional functionality, such as optimization procedures not supported in the tensor-LEED formalism, automatic detection and preservation of surface and bulk symmetries during structural optimization, and acceleration of calculations through automated search procedures and parallelization.

16viperleed.calc is designed with the vast scientific Python ecosystem in mind and leverages established numerical and scientific libraries such as NumPy [44], SciPy [45], Matplotlib [46], and Scikit-learn [47].At the same time, it has an open application programming interface for future projects to exploit its novel features, such as the automated plane-group symmetry detection and structure symmetrization introduced in Section II D 2.

II. PROGRAM DESCRIPTION

17As mentioned in Section I C, ViPErLEED is based on the TensErLEED package [14] used to perform the core LEED-I(V ) calculations.These include the "fulldynamic" reference calculations, the calculation of amplitude changes δA i,g as a function of parameter variations, as well as the search for an optimal combination of these variations.Input and output processing, as well as most high-level logic, are handled in a Python module named viperleed.calc,described in more detail below.Direct user interaction with the TensErLEED scripts is not required at any point.Some aspects of TensEr-LEED are also updated to a version 2.0 that is being released with, but independent of, the viperleed.calcPython package.The updated TensErLEED version is more computationally efficient and supports calculations on larger systems.For completeness, these changes are also briefly discussed in Section II G. Finally, a graphical user interface (GUI) provides LEED pattern previews and can be used to generate input for the spot-tracking program [9].

18The viperleed.calcpackage is optimized for UNIXbased systems (Linux, MacOS, and Windows subsystem for Linux -WSL).Running natively on Windows is possible, but it involves some additional installation steps and configuration of the Fortran compilers.Installation instructions and details on setting up Fortran compilers can be found in the ViPErLEED documentation available online [48] or in the Supplemental Material [27].

A. ViPErLEED workflow

19LEED-I(V ) users wishing to work with existing solutions like TensErLEED, mostly based on the Van Hove-Tong codes [10], are faced with several challenges.The first hurdle regards the input files: Specific input formats are expected, and these may be difficult for new users to understand.Specifically, standardized structure files, often obtained as a result of density-functional theory (DFT) calculations, cannot be used as input directly.Instead, they have to be translated to "LEED formats" manually, which is tiresome and error prone.The standard output files are also problematic.To the best of the authors' knowledge, none of the existing codes applying tensor-LEED calculations output the optimized structure in a standard crystal-structure format.As an example, TensErLEED optimization returns only a list of indices corresponding to the displacements of individual atoms that minimize the R factor [14].Translating these raw indices back to atomic coordinates of the bestfit structure is, again, cumbersome and a likely source of mistakes.When multiple optimization steps are required, all of these steps must be performed by hand repeatedly.Lastly, users are often required to manually compile the source code at runtime.This is for example the case for TensErLEED: many array dimensions depend on the input data and Fortran 77 does not allow dynamic memory allocation.

20viperleed.calcaddresses these issues.It accepts input in a standard format and automatically translates it into the custom format required by TensErLEED.Likewise, TensErLEED outputs are translated back to the same standard formats by keeping track of the inputs and variations.viperleed.calcalso removes the need for manual compilation at runtime.For each TensErLEED segment, it performs the steps shown in Fig. 3(b): (i) Translate the user input into the format required by TensErLEED, (ii) compile the relevant TensErLEED code with appropriate array dimensions, (iii) execute the compiled code as a subprocess with adequate parallelization and with real-time monitoring if required, and (iv) process the TensErLEED output, producing user-readable output or input for the next TensErLEED segment.The compilation and execution of source code is a potential safety threat, as the source files may be modified with malicious intent.To ensure that only the expected TensErLEED code is ex-ecuted, viperleed.calccontains hardcoded checksums for all expected Fortran files, and by default will only compile and run files conforming to these checksums.

21Finally, ViPErLEED also includes a "bookkeeping" utility that keeps track of the performed calculations.It automatically updates a plain-text file (history.info)with information about the run segments, the resulting R factors, and optional notes by the user.Additionally, it archives input and output files for every calculation into a history directory.

B. Main ViPErLEED input

22The main input parameters defining viperleed.calcbehavior are passed via the PARAMETERS input file.In the minimal case, this file defines which segments of TensErLEED should be executed and provides some information on how to interpret the structure files.However, the PARAMETERS file also allows in-depth control of TensErLEED calculation parameters and ViPErLEED defaults.More information on these parameters and the choice of defaults will be given in Section II D. A comprehensive list of parameters and their default values is found in the ViPErLEED documentation [48].

23Other than the general run parameters, the only input strictly required for calculating I(V ) curves is the structural data, that is, an atomic model for the diffracting surface.The chosen standard is the POSCAR format used by the Vienna ab-initio simulation package (VASP) [49].This choice is based on the assumption that many LEED-I(V ) calculations start from a DFToptimized structure; POSCAR files can easily be generated by standard structure viewers such as VESTA [50].However, structural data can also be passed to ViPEr-LEED directly from the atomic simulation environment (ASE) package [51], which supports a variety of structural formats.Note that the surface is required to face the +z direction, with the first two unit-cell vectors a and b in the surface (x, y) plane.Additionally, viperleed.calcassumes the bottommost layers (lowest z coordinates) to be bulklike.This means that symmetric slabs commonly used in DFT are not allowed.However, a ViPErLEED-compatible slab can be obtained from a standard "DFT slab" by cutting below the "fixed" bulklike layers.

24If structural optimization is to be performed, viperleed.calcrequires two additional inputs: experimental I(V ) curves (file EXPBEAMS.csv),and instructions on optimization parameters and ranges (file DISPLACEMENTS).For I(V ) curves, ViPErLEED uses standard CSV formatting for all input and output.The DISPLACEMENTS file defines the range over which each structural parameter is varied during tensor-LEED optimization, and can contain instructions about the order in which the parameters are optimized.Structural parameters that can be varied are (i) atom positions, (ii) vibration amplitudes, and (iii) site occupation (including changes of statistical chemical composition through, e.g., vacancies, dopants, or alloy constituents).For convenience, the DISPLACEMENTS file supports a variety of shorthand forms to address groups of atoms by element, layer, specific site type, or atom number.The exact syntax for the DISPLACEMENTS file is described in the ViPErLEED documentation [48].Planegroup symmetries of the surface are automatically preserved by viperleed.calcduring displacements, such that symmetry-equivalent atoms in the input structure are kept symmetry equivalent during the optimization, unless the user explicitly reduces the symmetry by setting the desired plane group in the PARAMETERS file (see Section II D 2).

25Besides the mandatory input discussed above, users can optionally provide additional files.Otherwise, these are automatically generated by viperleed.calc:

26• First, an IVBEAMS file that specifies the I(V ) curves to be calculated.This can be automatically generated to match available experimental data.When no experimental data is given, IVBEAMS must be supplied by the user.

27• Second, a starting guess for vibration amplitudes [52] and site occupations.This information can be included in the VIBROCC file.Otherwise, sites are assumed to be "chemically pure".If vibration amplitudes are not specified, an initial guess can be generated based on the Debye temperature Θ D of the material and the experimental sample temperature T -both specified in PARAMETERS (see the ViPErLEED documentation [48] for more details).In addition, a scaling factor may be defined for groups of atoms to reflect differences in the coordination environments.For example, undercoordinated atoms at the surface are expected to have a larger vibration amplitude.Since the vibration amplitudes themselves are parameters in the tensor-LEED optimization, this approximation is sufficient to obtain a reasonable starting point even when the Debye temperature is not known precisely.

28• Finally, energy-dependent phase shifts for electrons scattering on each type of atom in the structure.

29If not provided by the user (via a PHASESHIFTS file), these phase shifts will be generated automatically based on the input structure, using the EEA-SiSSS program [25], distributed with the ViPEr-LEED package with permission by the author.

C. Main ViPErLEED output

30ViPErLEED output files use the same formats as the input files.This ensures that, if further optimization steps are required, output from previous ViPEr-LEED runs can be used directly as input for subsequent runs.The optimized structure is written to the 1102)-(1 × 1).All parts of the calculation have been performed using the viperleed.calcpackage.The figures are taken from the output files produced at the end of execution.Diffraction order and individual R factors are indicated for each beam.(b) Error curves for the same system.They show the variation of the Pendry R factor with respect to geometric out-of-plane displacements for the atoms in the topmost layer (cf.labels in Fig. 2).The horizontal gray line indicates the minimum value of the Pendry R factor plus its standard error.The intersection points of this line with an error curve (marked with vertical arrows for the blue curve) can be used as an estimate for the uncertainty of the corresponding parameter [7].

31files POSCAR OUT and VIBROCC OUT, and calculated I(V ) curves are again written in CSV format.In addition, viperleed.calcgenerates PDF files with plots comparing the calculated beams to experimental data, annotated with R factors for each beam.Some plots as output by viperleed.calcfor the α-Fe 2 O 3 (1102)-(1 × 1) example system are shown in Fig. 4.More examples can be found in the ViPErLEED documentation [48].During structural optimization, a PDF file illustrating the search progress and state of convergence is generated in addition to the text-based log files (see Fig. S1 of the Supplemental Material [27]).

32For diagnostic purposes, several supplementary files are written during each viperleed.calcrun and stored in a directory called SUPP.These include the inputs and outputs of the TensErLEED programs, as well as modified POSCAR files generated during the structure analysis for troubleshooting.

D. Structure analysis and dynamic defaults

33As discussed in Section II B, one goal of ViPErLEED is to reduce the number of parameters required as user input.While some TensErLEED parameters can simply be set to a default value that is normally appropriate, others must be chosen in accordance with the structure in question.However, in most cases, it is still possible to define case-specific defaults through educated guesses.

34To give an example, the scattering phase shifts δ ℓ (E) depend on the angular momentum ℓ.At large ℓ, the phase shifts become small.Since the computing time strongly depends on the ℓ values (Section I C), a cutoff ℓ max must be defined.viperleed.calcautomati-cally selects the cutoff such that phase-shift values at ℓ > ℓ max are smaller than a user-defined threshold (parameter PHASESHIFT EPS).Similar considerations apply to many parameters that can be determined from the structural input.For most low-to-medium-complexity cases, viperleed.calcrequires user input of less than ten parameters for a standard optimization.A full list of parameters, their defaults, and descriptions on how they are determined is given in the ViPErLEED documentation [48], and some example inputs are included in the Supplemental Material [27].Here, the focus is on two non-trivial sets of parameters that viperleed.calcdetects from the structural input: the repeat unit of the bulk, and plane-group symmetry.

Detecting and constructing the bulk

35The shape of the I(V ) curves is strongly affected by (multiple) scattering events deep within the bulk, especially at high energies, where the mean free path of the electrons is long.The number of layers to be considered is determined dynamically during the full-dynamic LEED calculations.Hence, it is not sensible to provide slabs of fixed thickness as input; rather, the structural input should include a construction rule defining how to add additional bulk layers as required during the calculations.As discussed in Section I B, this is implemented in TensErLEED through a bulk-doubling scheme [6,14].Two ingredients are needed: the repeat unit of the bulk, and a bulk repeat vector that, when applied iteratively, reconstructs the bulk structure.Since typical structure formats (like the POSCAR file) do not contain this information, it is necessary to either determine it automatically, or to include it explicitly as a user input.Both options are supported in viperleed.calc.

36Detecting bulk repeat.The user can manually define how many layers at the bottom of the slab constitute a bulk repeat unit (parameter N BULK LAYERS), as well as the bulk repeat vector (parameter BULK REPEAT, see Fig. 2).However, viperleed.calccan also detect these automatically.It can determine the bulk repeat vector if the repeat unit of the bulk is explicitly provided (via N BULK LAYERS).It can even identify both if the slab contains at least two layers that are sufficiently bulklike.In this case, users only need to specify the limit below which the slab is bulklike (parameter BULK LIKE BELOW).To find a repeat unit, the program iteratively tests downwards translations that shift atoms of the i-th layer from the bottom to make them coincide with the position of the bottommost atom in the slab.Then, it compares the slabs before and after translation; if the atomic positions in the bulklike region are identical (within the tolerance given by parameter SYMMETRY EPS), the translation vector is accepted as a bulk repeat vector.Note that even when the repeat unit of the bulk is detected automatically as discussed above, the N BULK LAYERS and BULK REPEAT parameters are written to the PARAMETERS file explicitly.This causes BULK LIKE BELOW to be ignored in subsequent runs of viperleed.calc,ensuring that the repeat vector detected originally is preserved.

37Detecting surface superstructures.Another property that can be detected automatically in the initialization stage of the calculation is the relationship between the surface and bulk in-plane unit cells, that is, the periodicity of surface superstructures with respect to the bulk.Again, this relationship can be defined manually (parameter SUPERLATTICE, given either in Wood's notation or as a transformation matrix).It can also be detected automatically by checking all candidate in-plane translations, then choosing the smallest possible bulk unit cell.It is worth noting that when dealing with nontrivial surface-to-bulk relationships there may be multiple choices for the bulk unit cell and its orientation, which impact the numbering of diffraction spots.In such scenarios, users should ensure proper labeling of experimental beams.For this purpose, viperleed.calcgenerates an experiment-symmetry.ini file during initialization, containing details about detected unit cells and symmetry.This file can be utilized as an input for the ViPErLEED GUI to generate a "pattern file".When employed with the ViPErLEED spot tracker [9], this facilitates consistent beam labeling between experiment and calculations.

38Diagnostic files for bulk detection.viperleed.calcprovides two diagnostic files to confirm the correct detection of the bulk: First, POSCAR bulk, containing the bulk unit cell constructed from BULK REPEAT and the two smallest unit vectors a bulk and b bulk in the surface plane; second, POSCAR bulk appended, which is the original POSCAR with additional bulk units added at the bottom using the BULK REPEAT vector.This allows a quick visual check of whether the detected bulk cell is aligned correctly with the slab and reproduces the bulk in all directions.

Symmetry detection and structure symmetrization

39The symmetry of crystal surfaces can be one of the 17 plane symmetry groups (also called "wallpaper groups") defined by the unit cell and rotation axes, as well as mirror and glide planes of the structure (see Fig. 5).This symmetry may already be known from DFT calculations, from scanning-probe measurements, or from a qualitative comparison of the LEED beams.It is normally desirable to preserve such a symmetry during structural optimization.Symmetry reduces the dimensionality of the parameter space, drastically speeding up the structure search.In current implementations of LEED-I(V ) calculations, the user is required to identify symmetry-equivalent atoms, and to ensure they are displaced in a symmetry-equivalent manner during optimization.While this is relatively straightforward for simple symmetry groups, it carries a high potential for user error, for example, when threefold rotation axes are involved.Figure 5 shows how the wallpaper groups constrain in-plane displacements for symmetry-equivalent atoms.viperleed.calcprovides fully automatic detection of the plane symmetry group and by default preserves the symmetry during optimization.

40Determining the minimal surface unit cell.To enforce some conventions and highlight the symmetry, viperleed.calcapplies several automatic modifications to the unit cell in the structural input and output.First, unit cells are reduced to a minimum-circumference form while preserving the area, as shown in Fig. 6(a).This ensures that no higher-symmetry representation of a given structure is missed.An example is oblique cells that are reducible to a rectangular form: enforcing this transformation allows to find potential mirror planes.Second, for reasons of convention and simplicity, rhombic and hexagonal cells are expected in obtuse form (angle between a and b greater than 90 • ).Acute unit cells are automatically transformed into obtuse while preserving handedness [Fig.6(b)].Third, to avoid ambiguous beam labeling, the first unit-cell vector a bulk of the bulk should always be taken as the shorter one.For example, for a rectangular bulk unit cell, a (2 × 1) supercell is closer to square than a (1 × 2) cell.However, this third point is not enforced, and viperleed.calcwill only output a warning if the vectors are swapped.

41Detecting rotation axes, glide, and mirror planes.Once the unit-cell shape is set, viperleed.calcsearches for rotation axes, glide planes, and mirror planes.The algorithm for finding the symmetry is briefly described in the following.First, it considers all rotational symmetries possible for the given unit-cell type (e.g., three-and six-fold rotations are only checked for hexagonal cells), and detects the highest-order rotation axes.Since only 2D operations are of interest, it is most efficient to use the sublayer [53] with fewest atoms, as it yields the smallest set of candidate operations.Such candidates are then tested for the whole slab.If any rotation axes are found, the origin of the unit cell is shifted to the highest-order axis; if there are multiple highest-order rotation axes, the one closest to the original unit-cell origin is picked, as shown in Fig. 6(c).At this point, it is sufficient to check for mirror and glide planes going through the origin or through ( 1 4 , 1 4 ) of the unit cell.As seen in Fig. 5, this procedure uniquely determines the plane symmetry group.

42If no rotation axis is found, mirror and glide symmetries are detected in analogy to rotational symmetries.In the minimum-circumference form of the unit cell, only the unit-cell-vector directions a and b and the diagonals a + b and a − b (plus all 30 • -rotated directions 2a + b, etc. for hexagonal cells) need to be considered to find all possible mirror/glide planes [54].The unit-cell origin is again shifted (by the smallest possible distance) to coincide with a mirror plane, or with a glide plane if no mirror plane was found, as shown in Fig. 6(d).In cases where the orientation of the mirror/glide planes is am-biguous (groups pm, pg, cm and pmg), the symmetry can be fully specified by indicating the direction of the mirror or glide plane through the origin.For example, pm[1 0] indicates pm symmetry with mirror planes parallel to the a axis.The identified plane group symmetry is printed to the viperleed.calclog file and added as a comment in the POSCAR file.

43Symmetrization.Once the symmetry has been determined, viperleed.calcperforms a symmetrization step to correct minor errors potentially introduced, for example, by not-fully-converged DFT relaxations.Positions of atoms that are equivalent within a given tolerance (parameter SYMMETRY EPS) are averaged such that they are equivalent within floating-point precision.Atoms that should be locked to a rotation axis or mirror plane snap to that position, as shown in Fig. 6(e).This can be helpful since LEED-I(V ) calculations are sensitive to position deviations in the picometre range.

44The applied symmetry group can also be reduced manually, for example when the surface is suspected to possess a lower symmetry than the initial input structure.The SYMMETRY FIX parameter allows to manually set any plane symmetry subgroup of the automatically detected group, including p1 if symmetry should be turned off entirely.In addition to the SYMMETRY FIX parameter, which globally modifies the symmetry to be used, there is also a more local option to deactivate or reduce symmetry only for specific operations in the DISPLACEMENTS file with the SYM DELTA tag.However, since this will result in breaking the symmetry in subsequent runs, users are discouraged from utilizing the SYM DELTA tag except for highly specific cases.More details on both types of symmetry reductions are found in the ViPErLEED documentation [48].

45Detecting beam equivalence and beam assignment.Superstructures often exhibit different symmetry than the underlying bulk.Hence, single terraces of a sample may feature multiple "patches" of the same superstructure mirrored or rotated relative to one another, as induced by the plane group of the bulk.Additionally, different terrace orientations may be present when the bulk possesses screw or glide symmetry (some wellknown cases are, e.g., Si(001) [55] or Fe 3 O 4 (001) [56]).This induces corresponding rotation or mirroring of the superstructures.

46Since symmetry-induced domains normally have sizes larger than the typical coherence length of the electron beam, they contribute to the diffraction pattern inco-herently.Such effect must be considered to correctly match calculated and experimental I(V ) curves.viperleed.calcdramatically simplifies the user experience in this respect: instead of requiring the user to specify which calculated beams contribute to each experimental beam and should be averaged together, it detects beam equivalence automatically, assuming a statistical distribution of symmetry-induced domains.It also does not require the user to manually assign calculated to experimental beams: it does so automatically based on the beam labels [e.g., (1 0) is the first-order diffraction spot in the direction of the first reciprocal unit-cell vector of the bulk, a * bulk ].The automatic beam averaging is enabled by viperleed.calc'scapability to detect symmetry (Section II D 2).The same algorithm used for the whole slab is applied to the bulk, extending the search also to glide planes and screw axes with translation vectors parallel to the surface normal.

E. Automation and parallelization

47A typical LEED-I(V ) optimization with TensEr-LEED proceeds as follows: (i) execution of a fulldynamic calculation for the starting guess structure; (ii) optimization along a given displacement direction; (iii) further optimizations along other directions.[Steps (ii) and (iii) are distinct because the TensErLEED search module only supports 1D displacements for atom positions, such that multiple executions are required to fully optimize 3D atomic positions.]Steps (i) and (iii) are repeated until convergence.In TensErLEED, the user must perform all of these steps manually.This becomes especially cumbersome as one segment's output must be manually translated into an input for the next segment.viperleed.calcsimplifies the workflow.First, it handles the input/output processing internally.Second, it allows arbitrary queuing of segments with the RUN parameter.Finally, it allows to specify multiple sets of displacements in the DISPLACEMENTS file, such that they are automatically executed in the requested order.These optimizations can be looped until the R factor converges, allowing for an autonomous search in a wide parameter space.The ViPErLEED documentation [48] gives more details on the RUN parameter and DISPLACEMENTS file.As described in Section S1 of the Supplemental Material [27], viperleed.calcalso speeds up each optimization run in TensErLEED by monitoring the search progress and adjusting convergence parameters accordingly.

48Besides automating the optimization workflow, viperleed.calcalso enhances the parallelization of LEED-I(V ) calculations.The parallelization offered by the native TensErLEED code is limited to the "search" module.viperleed.calcintroduces additional parallelization at the Python level.Parallelization is applied to the full-dynamic calculation by assigning individual energies to separate processes.This is possible since each energy step can be calculated independently from the oth-ers.This approach enables further acceleration through a dynamic use of ℓ max at each energy: At low energies, where phase shifts of large angular momenta are negligible, small ℓ max values are used.Parallelization is also applied to the δA i,g calculation.Here, the atoms under variation are independent and can be calculated in a parallel manner.Note that, since the single calculations are vastly more computationally expensive than the overhead, the parallelization offered by viperleed.calccomes close to the efficiency theoretically achievable with parallelization directly in the Fortran code.

Mixed-termination surfaces

49Many systems can sustain coexisting surface reconstructions.In such cases, the intensities measured experimentally originate from an incoherent superposition of the diffracted beams from each termination.Some packages (like TensErLEED [14] and MSATLEED [33]) already implement optimization for this scenario.

50viperleed.calcprovides a simplified interface to the multi-domain optimization implemented in TensEr-LEED.A multi-domain calculation can be started either by supplying paths to the input structures or by providing pre-existing reference calculations (and corresponding Tensor files).In the latter case, viperleed.calcautomatically performs a consistency check for compatibility of the input files.If the consistency check fails, viperleed.calcdetermines which parameters are shared between the different structures, harmonizes the input, and performs new, mutually compatible, full-dynamic calculations.Structural optimization is then performed using the tensor-LEED approximation including the fractional coverage of the domains as an additional parameter.

Full-dynamic optimization

51viperleed.calcalso provides an option for optimizing parameters that are inaccessible to the tensor-LEED approximation.Examples are the incidence angles θ (polar) and ϕ (azimuthal) of the primary electron beam, the imaginary part of the inner potential V 0i , and the lattice parameters of the input unit cell.For the latter, a scaling factor can be applied to one of the unit-cell vectors, to both in-plane unit-cell vectors at once, or to all three at once (i.e., scaling the volume of the unit cell).

52Optimization of these parameters is enabled through repeated full-dynamic calculations.A "full-dynamic optimization" is set up using the OPTIMIZE parameter.It supports defining the parameter to optimize, the initial step size of variation, and convergence criteria.It is important to note that this kind of full-dynamic optimization is computationally significantly more expensive than tensor-LEED-based optimizations.

G. TensErLEED version 2.0

53Although ViPErLEED is backwards compatible with the most recent version of TensErLEED at the time of writing (version 1.6), it was expedient during development to also make some improvements on the TensEr-LEED codebase.This resulted in a new version 2.0 of TensErLEED [57], which is released with ViPErLEED but can also be used independently.Changes include some minor bug fixes, increased precision of some computational variables, and improved computational performance, especially of the full-dynamic "reference" calculation.The speed-ups mainly come from replacing custom matrix-algebra routines by better-optimized BLAS and LAPACK versions [58], skipping redundant calculations, and refactoring certain routines for more efficient memory access.

54The user interface (i.e., format of the input and output files) in TensErLEED 2.0 was modified to extend the size limits of systems that can be calculated.Previous TensErLEED versions severely limited the size of the unit cell, as well as related quantities such as the number of diffracted beams to calculate.The TensErLEED 2.0 input now allows larger values.Furthermore, some variables that were obsolete in the TensErLEED code but were still required in the input were removed, and others (e.Already in version 1.0, ViPErLEED can start calculations based on structure input in the form of ASE Atoms objects [51].This interface will be expanded to allow full control of all ViPErLEED features.This should, for the first time, allow easy high-throughput LEED-I(V ) calculations for automatically generated surface structures.Many computational groups in the field are currently striving to solve complex surface structures without relying on human intuition [61][62][63][64][65][66][67].As demonstrated in Ref. 68, the R factor can be used as a cost function for guiding machine-learned structure prediction.The sensitive feedback provided by LEED I(V ) may provide an attractive and new use of the technique for structure search in conjunction with total energies yielded by DFT calculations.A major benefit of using LEED I(V ) for structure determination is its direct link to experimental data.

55Another major change currently under development concerns a replacement for the TensErLEED optimization ("search") algorithm.While ViPErLEED will continue to use the TensErLEED code for the full-dynamic calculations and calculations of amplitude changes δA i,g , the TensErLEED algorithm for finding the combination of δA i,g that minimizes the R factor is somewhat dated.In the future, the current one-dimensional, gridbound search may be replaced by a continuous search by calculating δA i,g values on demand.This would allow direct application of, and free choice among established global optimization algorithms available from many optimized Python packages (e.g., SciPy [45], Scikit-Optimze [69], Keras [70], Ray [71], JAX [72]).Most of these modern evolutionary or (stochastic) gradient-based algorithms are likely to be much more effective at optimizing the structure than the original custom algorithm implemented in TensErLEED.

III. BENCHMARK RESULT: THE (1 × 1)

56TERMINATION OF α-Fe 2 O 3 (1102)

57The ViPErLEED documentation (see Supplemental Material [27]) guides the user through the application of ViPErLEED on a few example systems [among others, Ag(100), Ni(110), and Ir(100)-(2 × 1)O].This section outlines the main results obtained with ViPErLEED on a "medium-complexity" oxide surface: The (1 × 1) termination of (1102)-oriented hematite (α-Fe 2 O 3 ) [20][21][22].An introduction to the system and details on sample preparation are given in the Supplemental Material [27].

58To ensure adequate sample conductivity of this widebandgap semiconducting material, LEED-I(V ) data were acquired on a slightly Ti-doped (0.03 at.%) α-Fe 2 O 3 (1102) film (see Section S2 in the Supplemental Material [27] for details on the growth).The Ti-doped films expose atomically flat, single-crystalline surfaces; their (1 × 1) and (2 × 1) structures are identical to those of undoped crystals [23,24].The (1 × 1) termination was prepared through repeated cycles of sputtering (10 min at 1 keV, 5 × 10 −7 mbar Ar, ≈ 65 nA/mm 2 ) and annealing (30 min at 550 • C, 7 × 10 −7 mbar O 2 , 20 • C/min ramp rate).Before each LEED measurement, the sample was heated for 10-20 min at ≈ 300

59The cleanliness and quality of the surface was ensured by x-ray photoelectron spectroscopy and scanning tunneling microscopy.

60LEED measurements were acquired at room temperature with an Omicron SpectaLEED (LaB 6 cathode, three grids, one microchannel plate), and a DMK 33GX265 camera (The Imaging Source Europe GmbH, 80 ms exposure, 0 dB gain, 15-frames averaging, 3×3 binning), using an electron energy range of 30-750 eV (0.5 eV steps).The extracted I(V ) data span a total energy range of 10.8 keV after averaging symmetry-equivalent beams.Flat-field correction was performed by acquiring reference videos on the sample plate (see Part II [9] for more details).Intensities were normalized to the energy-dependent net beam current, I 0 , corrected for the energy-dependent current drawn by the LEED electronics, I 00 .To minimize artifacts from the LEED grids, the data were averaged from two sets of measurements acquired at sample-grid distances different by 2 mm (more details in Part II [9]).The data were taken during night to avoid magnetic-field fluctuations induced by streetcars traveling in front of the building.Static magnetic fields were compensated with the help of two coils mounted outside the vacuum chamber (see also Part III [8]).Since the sample has pg planegroup symmetry, the LEED intensities at perpendicular incidence have mirror symmetry in only one direction and no rotational symmetry.The crystal was rotated around the [1101] in-plane direction to ensure that the incident beam lies in the mirror plane of the LEED pattern, i.e., to achieve identical I(V ) curves of the (h|k) and (h|k) spots.This ensures that the incidence plane is perpendicular to the surface.In turn, this allows to fix the azimuthal angle of incidence in the calculations, such that only the polar one requires fitting.

61Figure 7 summarizes the outcome of a LEED-I(V ) analysis performed with ViPErLEED on α-Fe 2 O 3 (1102)-(1 × 1).The Supplemental Material [27] includes the raw LEED data as well as final output files.It also describes in detail the steps leading to the optimization, as well as the parameters varied.Figure 7 shows two side views of the system, including values of atomic displacements predicted by the relaxed, lowest-energy DFT model (in parentheses), and by LEED-I(V ) optimization.Figure 4(a) shows exemplary best-fit LEED-I(V ) spectra to demonstrate the fit quality.All the experimental and calculated I(V ) curves are plotted in Fig. S3 of the Supplemental Material [27].The best-fit model of the structural analysis reproduces the measured LEED-I(V ) spectra with an overall Pendry R factor of R P = 0.154.For educational purposes, LEED-I(V ) optimization was started from a bulk-truncated slab [74] rather than the DFT-optimized model.The relaxations obtained by ViPErLEED and DFT are very close (within 3.5 pm), and consistent within the uncertainty estimates that can be derived from LEED I(V ) (see also Table S1 of the Supplemental Material [27]).The largest relaxations involve atoms of the topmost layer (cf.displacements marked in Fig. 7).At the surface, the Fe atoms relax downwards into the plane of the four surrounding O atoms, while O atoms from the first subsurface "sublayer" move closer to the surface.Effectively, this moves the Fe atoms of the topmost cation layer to coincide with the plane of their equatorial O atoms (distances from the plane decreased from ≈ 21 pm to ≈ 3 pm).

62Table I summarizes the duration of the full-dynamic calculations for the (1 × 1) termination of α-Fe 2 O 3 (1102) reported in Fig. 7, as obtained with different setups.Through efficient use of parallelization, ViPErLEED pro- S1 of the Supplemental Material [27] reports the displacement of all atoms, as well as their uncertainties, derived from LEED I(V ).There, all the DFT displacements are also listed.See Section S3 of the Supplemental Material [27] for more details on the DFT calculations.

63duces results in less than 3 min, more than 30 times faster than the original TensErLEED configuration.This significant reduction of computation time not only enhances efficiency but also unlocks new opportunities for exploring larger, more complex, and previously inaccessible systems.More importantly, while harder to quantify, the time needed to set up this calculation with ViPErLEED is also on the order of minutes.In contrast, translating the structural and experimental data to TensEr-LEED input would be much more time intensive and error prone.For inexperienced users in particular, setting up the TensErLEED input for the first time can be daunting, given the numerous parameters with nontelling names that need definition.When the input contains mistakes, the Fortran modules crash, often without explanation.Instead, ViPErLEED requires only a handful of well-documented parameters.Moreover, it provides sensible feedback when executed, consisting of both fine-grained error messages, warnings based on a large number of "sanity checks", as well as informative diagnostic files.for the LMAX parameter.The same cutoff for phase shifts was employed in the calculation with dynamic ℓmax as in the ones with fixed ℓmax, but was evaluated independently at each energy, rather than using the ℓmax determined at the highest beam energy for all calculations.

IV. CONCLUSIONS

64This work describes a new user-friendly and flexible open-source package for LEED-I(V ) calculations and structural optimization, built on top and as an extension of the well-established TensErLEED package.This is part of the larger ViPErLEED project that also addresses data acquisition [8] and extraction [9].Both the barrier of entry for new users and the potential for human error are significantly reduced by an expedient use of default parameters.The defaults are either static or automatically derived from properties of the experimental data and surface structure.Most significantly, surface symmetries are automatically detected and preserved during optimization.The program also automatically detects how calculated beams should be averaged and matched to an experimental beam set.All segments of LEED-I(V ) calculations run under one combined user interface with standard input and output formats.Additional developments include simple optimization procedures for parameters inaccessible to the tensor-LEED approach, such as the incidence angle of the electron beam or the imaginary part of the inner potential.Computational performance of the TensErLEED package was improved both via top-level parallelization of the full-dynamic "reference" calculations and calculations of "delta amplitudes" δA i,g , and through optimization directly in the TensErLEED code.This gain in speed and accuracy (in the sense of freedom from human errors) can be leveraged to perform LEED analysis of large systems that were previously impractical to tackle, as exemplified by a recent work on a surface-telluride phase with (10 × 10) periodicity on

FIG. 1 .

65FIG. 1. Overview of the ViPErLEED package.Data acquisition (a) and data extraction (b) are discussed in Part III [8] and Part II [9], respectively.This work describes the LEED-I(V ) calculations, indicated in panel (c).The relationship between TensErLEED and ViPErLEED is visualized in more detail in Fig. 3. Example data in this figure are from measurements on α-Fe2O3(1102)-(1 × 1).

FIG. 2 .

66FIG. 2. Example of layer definitions as used in ViPEr-LEED and TensErLEED, shown for the α-Fe2O3(1102)-(1 × 1) bulk-truncated surface (side view along [1101]) [20-24].The layers are indicated by blue rectangles.Each layer contains four Fe atoms (large yellow spheres) and six O atoms (small red spheres) per unit cell.Interlayer vectors as used in TensErLEED are drawn as dashed blue arrows.Note that the interlayer vectors do not connect layer origins, but rather point from the z coordinate of the bottommost atom in one layer to the z coordinate of the topmost atom in the subsequent underlying layer.Layer 4 is defined as bulk.The black arrow indicates the bulk repeat vector, which can be automatically detected by ViPErLEED (see Section II D 1).

FIG. 3 .

67FIG. 3. (a) Simplified sketch of the TensErLEED workflow as described in Ref. 14. Red boxes represent user input (in TensErLEED formats), blue boxes represent the main TensErLEED modules.Additional modules used to calculate the R factor, produce theoretical beams after the search, or perform error calculations are not drawn.(b) Sketch showing how TensErLEED modules are embedded into the ViPErLEED code.Orange boxes represent logical steps, the blue box (iii) can stand for any TensErLEED module.

FIG. 4 .

68FIG. 4. (a)Comparison of calculated to experimental LEED-I(V ) curves for α-Fe2O3(1102)-(1 × 1).All parts of the calculation have been performed using the viperleed.calcpackage.The figures are taken from the output files produced at the end of execution.Diffraction order and individual R factors are indicated for each beam.(b) Error curves for the same system.They show the variation of the Pendry R factor with respect to geometric out-of-plane displacements for the atoms in the topmost layer (cf.labels in Fig.2).The horizontal gray line indicates the minimum value of the Pendry R factor plus its standard error.The intersection points of this line with an error curve (marked with vertical arrows for the blue curve) can be used as an estimate for the uncertainty of the corresponding parameter[7].

FIG. 5 .

69FIG. 5.The 17 plane symmetry groups.For each group, exemplary symmetry-equivalent atoms are shown as filled and open circles in the left panel, while the right panel shows the positions of the mirror, glide, and rotational symmetry elements.Symmetry elements drawn in red are related to those drawn in black via translations by integer multiples of the unit-cell vectors.Blue and black arrows indicate exemplary linked in-plane displacements.Double arrows in groups pm and cm indicate that movement is restricted along the mirror plane.Atoms on rotation axes cannot be displaced in plane.Full (four-character) plane group designations are indicated in gray, though ViPErLEED uses short forms in all input and output.

FIG. 6 .

70FIG. 6. Modifications of the input unit cell during initialization.(a) Reduction to minimum-circumference form; (b) change from acute to obtuse form; (c) snapping of the origin to the closest highest-order rotation axis, shown on a p4m cell; (d) snapping of the origin to the closest mirror plane when there is no rotational symmetry, shown on a pm cell; (e) symmetrization shown for a threefold rotation axis, where an atom close to the rotation axis (filled black circle) is snapped to the axis, and position errors between three nominally symmetry-equivalent atoms (open black circles, gray circles show rotated positions) are averaged such that they become truly equivalent; (f) reduction to a minimum-area surface unit cell.Steps (a)-(e) are applied automatically, while step (f) only produces a warning and outputs a suggested POSCAR mincell file.

71g., imaginary part of the inner potential VPI and the filament work function WORKFN) were moved from hardcoded values in a runtime-created Fortran script (muftin.f) to standard input parameters.Modifications to the TensErLEED code by the Solid-State Physics group in Erlangen and the ViPErLEED team are released together with ViPErLEED under the terms of the GNU General Public License version 3 (or any later version) [59].H. Ongoing development The ViPErLEED version 1.0 released with this work is a fully functional open-source package, licensed under the GNU General Public License version 3 or later [59].Further development is in progress and will be published on the GitHub repository [60].

FIG. 7 .

72FIG. 7. Structure of the α-Fe2O3(1102)-(1 × 1) surface resulting from LEED-I(V ) optimization.Oxygen atoms are drawn in red, iron atoms in yellow.The left and right panels show side views along the [1101] and [1120] in-plane directions, respectively.Dashed lines delimit one surface unit cell.Arrows indicate the displacements of atoms relative to the bulk-truncated α-Fe2O3(1102) surface, and are exaggerated by a factor of ten.The bulk-truncated positions of atoms in the surface layer are represented as dashed circles.The x, y, and z components of the displacements of the atoms in the topmost surface layer are indicated (in picometres).Numbers in parentheses refer to the corresponding displacements as obtained by DFT.TableS1of the Supplemental Material[27] reports the displacement of all atoms, as well as their uncertainties, derived from LEED I(V ).There, all the DFT displacements are also listed.See Section S3 of the Supplemental Material[27] for more details on the DFT calculations.

a

73TABLE I. Timing benchmarks for the full-dynamic "reference" calculation performed for α-Fe2O3(1102)-(1 × 1).Setup a ℓmax b N CORES c Execution time (min) Calculations were performed on the Vienna scientific cluster (VSC-4 [75]) on a node with two Intel® Xeon® Platinum 8174 processors, with a total of 96 logical cores, and 96 GB memory.The ifort compiler (version 2021.7.1) from the Intel® oneAPI® high-performance computing packages was used.All calculations used a maximum of two threads for LAPACK parallelization, by setting the oneAPI® math-kernel library MKL NUM THREADS environment variable.b Maximum angular momentum quantum number used for the expansion in spherical harmonics, as described in Section I C. c Number of logical cores used for running calculations at different energies in parallel.See also Section II E. d Using TensErLEED v2.0.0.e Dynamically assigned by ViPErLEED with the default settings

참고문헌 84건

  1. Low-Energy Electron Diffraction Springer series in surface sciences · Springer Nature · 1986 10.1007/978-3-642-82721-1
  2. Canted Antiferromagnetism: Hematite 1995 10.1142/2518
  3. Quasiparticle calculations in atoms and many-body core-valence partitioning PhDT · 1991
  4. Surface diffraction study of the hydrated hematite surface Surface Science · Elsevier BV · 2006 10.1016/j.susc.2006.10.021
  5. Band theory and Mott insulators: Hubbard<i>U</i>instead of Stoner<i>I</i> Physical review. B, Condensed matter · American Physical Society · 1991 10.1103/physrevb.44.943
  6. <i>Ab initio</i>molecular dynamics for open-shell transition metals Physical review. B, Condensed matter · American Physical Society · 1993 10.1103/physrevb.48.13115
  7. Projector augmented-wave method Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.50.17953
  8. Anisotropic and anharmonic effects through the t-matrix for Low-Energy Electron Diffraction (TMAT V1.1) Computer Physics Communications · Elsevier BV · 2001 10.1016/s0010-4655(01)00239-9
  9. Segregation and ordering at Fe1−xAlx(100) surfaces – a model case for binary alloys Surface Science · Elsevier BV · 2001 10.1016/s0039-6028(00)00987-0
  10. Low Energy Electron Diffraction: The Theory and Its Application to Determination of Surface Structure Physics Today · AIP Publishing · 1977 10.1063/1.3037416
  11. From ultrasoft pseudopotentials to the projector augmented-wave method Physical review. B, Condensed matter · American Physical Society · 1999 10.1103/physrevb.59.1758
  12. Generalized Gradient Approximation Made Simple Physical Review Letters · American Physical Society · 1996 10.1103/physrevlett.77.3865
  13. Surface diffraction structure determination from combinatorial simultaneous optimization Surface Science · Elsevier BV · 2006 10.1016/j.susc.2006.01.049
  14. Global search algorithms in surface structure determination using photoelectron diffraction Surface Science · Elsevier BV · 2011 10.1016/j.susc.2011.10.003
  15. A new approach to automated structure optimization in LEED intensity analysis Surface Science · Elsevier BV · 1997 10.1016/s0039-6028(96)01307-6
  16. A new LEED instrument for quantitative spot profile analysis Surface Science · Elsevier BV · 1986 10.1016/0039-6028(86)90321-3
  17. Reliability factors for LEED calculations Journal of Physics C Solid State Physics · IOP Publishing · 1980 10.1088/0022-3719/13/5/024
  18. Surface Chemistry of Silicon Chemical Reviews · American Chemical Society · 1995 10.1021/cr00037a600
  19. Structure of α-Fe2O3 single crystal surfaces following Ar+ ion bombardment and annealing in O2 Surface Science · Elsevier BV · 1988 10.1016/0039-6028(88)90324-x
  20. Theory of low-energy electron diffraction Progress in Surface Science · Elsevier BV · 1975 10.1016/0079-6816(75)90010-6
  21. Elastic electron-atom scattering in amplitude-phase representation with application to electron diffraction and spectroscopy Physical Review B · American Physical Society · 2007 10.1103/physrevb.76.195441
  22. Realistic molecular distortions and strong substrate buckling induced by the chemisorption of benzene on Ni{111} The Journal of Chemical Physics · American Institute of Physics · 1996 10.1063/1.472870
  23. Synchrotron X-ray study of the electron density in α-Fe<sub>2</sub>O<sub>3</sub> Acta Crystallographica Section B Structural Science · Wiley · 1994 10.1107/s0108768194002284
  24. Efficiency of ab-initio total energy calculations for metals and semiconductors using a plane-wave basis set Computational Materials Science · Elsevier BV · 1996 10.1016/0927-0256(96)00008-0
  25. The tensor LEED approximation and surface crystallography by low-energy electron diffraction Progress in Surface Science · Elsevier BV · 1992 10.1016/0079-6816(92)90005-3
  26. Matplotlib: A 2D Graphics Environment Computing in Science & Engineering · AIP Publishing · 2007 10.1109/mcse.2007.55
  27. <i>VESTA 3</i> for three-dimensional visualization of crystal, volumetric and morphology data Journal of Applied Crystallography · Wiley · 2011 10.1107/s0021889811038970
  28. Magnetic properties of hematite nanoparticles Physical review. B, Condensed matter · American Physical Society · 2000 10.1103/physrevb.61.6826
  29. Unusual bridged site for adsorbed oxygen adatoms: Theory and experiment for Ir{100}–(1×2)–O The Journal of Chemical Physics · American Institute of Physics · 2000 10.1063/1.481709
  30. The Zanazzi-Jona and Pendry reliability indices compared in LEED crystallographic analyses for five surfaces Journal of Physics C Solid State Physics · IOP Publishing · 1982 10.1088/0022-3719/15/3/001
  31. Insights into the (1×1)-to-(2×1) phase transition of the α-Fe2O3() surface using EELS, LEED and water TPD Surface Science · Elsevier BV · 2002 10.1016/s0039-6028(02)01917-9
  32. A FORTRAN-90 Low-Energy Electron Diffraction program (LEED90 v1.1) Computer Physics Communications · Elsevier BV · 2004 10.1016/j.cpc.2004.05.002
  33. The accuracy of quantitative LEED in determining chemical composition profiles of substitutionally disordered alloys: a case study Surface Science · Elsevier BV · 1998 10.1016/s0039-6028(98)00596-2
  34. A new modular low energy electron diffraction package — DL_LEED Computer Physics Communications · Elsevier BV · 2001 10.1016/s0010-4655(01)00168-0
  35. Theoretical study of electronic, magnetic, and structural properties of α-<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="normal">Fe</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="normal">O</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml… Physical review. B, Condensed matter · American Physical Society · 1995 10.1103/physrevb.51.7441
  36. First-principles calculation of the structure and magnetic phases of hematite Physical Review B · American Physical Society · 2004 10.1103/physrevb.69.165107
  37. Subsurface cation vacancy stabilization of the magnetite (001) surface Science · American Association for the Advancement of Science · 2014 10.1126/science.1260556
  38. Heat capacity and thermodynamic properties of α-Fe2O3 in the region 300–1050 K. antiferromagnetic transition Journal of Physics and Chemistry of Solids · Elsevier BV · 1975 10.1016/0022-3697(75)90017-7
  39. Molecular t-matrices for Low-Energy Electron Diffraction (TMOL v1.1) Computer Physics Communications · Elsevier BV · 2004 10.1016/j.cpc.2004.05.003
  40. Optimized surface-slab excited-state muffin-tin potential and surface core level shifts Physical review. B, Condensed matter · American Physical Society · 2003 10.1103/physrevb.68.125405
  41. 57Fe Mössbauer effect study of highly substituted aluminum hematites: determination of the magnetic hyperfine field distributions Journal of Magnetism and Magnetic Materials · Elsevier BV · 1988 10.1016/0304-8853(88)90181-3
  42. The theory of tensor LEED Surface Science · Elsevier BV · 1989 10.1016/0039-6028(89)90513-x
  43. Investigation of surface atom vibrations by tensor LEED Surface Science · Elsevier BV · 1994 10.1016/0039-6028(94)91314-5
  44. Diffuse low-energy electron diffraction Progress in Surface Science · Elsevier BV · 1996 10.1016/0079-6816(96)00007-x
  45. Tensor LEED: A Technique for High-Speed Surface-Structure Determination Physical Review Letters · American Physical Society · 1986 10.1103/physrevlett.57.2951
  46. Chemical substitution of surface atoms in structure determination by tensor low-energy electron diffraction Physical review. B, Condensed matter · American Physical Society · 1993 10.1103/physrevb.48.1973
  47. The validity of the average t-matrix approximation for low-energy electron diffraction from random alloys Surface Science · Elsevier BV · 1991 10.1016/0039-6028(91)90486-c
  48. Quantitative electron spectroscopy of surfaces: A standard data base for electron inelastic mean free paths in solids Surface and Interface Analysis · Wiley · 1979 10.1002/sia.740010103
  49. Fast LEED intensity calculations for surface crystallography using Tensor LEED Computer Physics Communications · Elsevier BV · 2001 10.1016/s0010-4655(00)00209-5
  50. Automated determination of complex surface structures by LEED Surface Science Reports · Elsevier BV · 1993 10.1016/0167-5729(93)90011-d
  51. The Debye temperature of nickel from 0 to 300°K Journal of Physics and Chemistry of Solids · Elsevier BV · 1967 10.1016/0022-3697(67)90040-6
  52. Role of RuO<sub>2</sub>(100) in surface oxidation and CO oxidation catalysis on Ru(0001) Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2015 10.1039/c5cp05807d
  53. LEED I/V determination of the structure of a MoO3 monolayer on Au(111): Testing the performance of the CMA-ES evolutionary strategy algorithm, differential evolution, a genetic algorithm and tensor LEED based structural optimization Surface Science · Elsevier BV · 2016 10.1016/j.susc.2016.01.030
  54. Adjusting island density and morphology of the SrTiO3(110)-(4 × 1) surface: Pulsed laser deposition combined with scanning tunneling microscopy Surface Science · Elsevier BV · 2016 10.1016/j.susc.2016.03.010
  55. Surface Crystallography by LEED Springer series in chemical physics · Springer Science+Business Media · 1979 10.1007/978-3-642-67195-1
  56. Water adsorption and O-defect formation on Fe<sub>2</sub>O<sub>3</sub>(0001) surfaces Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2016 10.1039/c6cp05313k
  57. Structure and ordering of oxygen on unreconstructed Ir(100) Physical review. B./Physical review. B · American Physical Society · 2016 10.1103/physrevb.93.235406
  58. The atomic simulation environment—a Python library for working with atoms Journal of Physics Condensed Matter · IOP Publishing · 2017 10.1088/1361-648x/aa680e
  59. Surface phase diagram prediction from a minimal number of DFT calculations: redox-active adsorbates on zinc oxide Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2017 10.1039/c7cp05182d
  60. Atomic-Scale Structure of the Hematite α-Fe<sub>2</sub>O<sub>3</sub>(11̅02) “R-Cut” Surface The Journal of Physical Chemistry C · American Chemical Society · 2017 10.1021/acs.jpcc.7b10515
  61. Partially Dissociated Water Dimers at the Water–Hematite Interface ACS Energy Letters · American Chemical Society · 2019 10.1021/acsenergylett.8b02324
  62. SciPy 1.0: fundamental algorithms for scientific computing in Python Nature Methods · Nature Portfolio · 2020 10.1038/s41592-019-0686-2
  63. A Model System for Photocatalysis: Ti-Doped α-Fe<sub>2</sub>O<sub>3</sub>(11̅02) Single-Crystalline Films Chemistry of Materials · American Chemical Society · 2020 10.1021/acs.chemmater.9b04908
  64. Array programming with NumPy Nature · Nature Portfolio · 2020 10.1038/s41586-020-2649-2
  65. Array programming with NumPy Nature · Nature Portfolio · 2020 10.1038/s41586-020-2649-2
  66. Surface Reduction State Determines Stabilization and Incorporation of Rh on α‐Fe<sub>2</sub>O<sub>3</sub>(11¯02) Advanced Materials Interfaces · Wiley · 2021 10.1002/admi.202001908
  67. Surface Reduction State Determines Stabilization and Incorporation of Rh on α‐Fe<sub>2</sub>O<sub>3</sub>(11¯02) Advanced Materials Interfaces · Wiley · 2021 10.1002/admi.202001908
  68. Low-energy electron diffraction with signal electron carrier-wave wavenumber modulated by signal exchange-correlation interaction Journal of Physics Communications · IOP Publishing · 2021 10.1088/2399-6528/ac2c31
  69. Submonolayer copper telluride phase on Cu(111): Ad-chain and trough formation Physical review. B./Physical review. B · American Physical Society · 2021 10.1103/physrevb.104.155426
  70. Accelerating the structure search of catalysts with machine learning Current Opinion in Chemical Engineering · Elsevier BV · 2021 10.1016/j.coche.2021.100771
  71. Single Rh Adatoms Stabilized on α-Fe<sub>2</sub>O<sub>3</sub>(11̅02) by Coadsorbed Water ACS Energy Letters · American Chemical Society · 2021 10.1021/acsenergylett.1c02405
  72. Surface Physics 2020 10.1515/9783110636697
  73. Structure of an Ultrathin Oxide on Pt <sub>3</sub> Sn(111) Solved by Machine Learning Enhanced Global Optimization** Angewandte Chemie International Edition · Wiley · 2022 10.1002/anie.202204244
  74. LAPACK Users' Guide 1999 10.1137/1.9780898719604
  75. Calculation of leed diffracted intensities Computer Physics Communications · Elsevier BV · 1980 10.1016/0010-4655(80)90005-3
  76. Neural-network-backed evolutionary search for SrTiO<sub>3</sub>(110) surface reconstructions Digital Discovery · Royal Society of Chemistry · 2022 10.1039/d2dd00072e
  77. Surface and Interface Science Wiley eBooks · Wiley · 2013 10.1002/9783527680542
  78. Surface Structure Determination by LEED and X-rays 2022 10.1017/9781108284578
  79. Data‐Driven Machine Learning for Understanding Surface Structures of Heterogeneous Catalysts Angewandte Chemie International Edition · Wiley · 2022 10.1002/anie.202216383
  80. Staged Training of Machine-Learning Potentials from Small to Large Surface Unit Cells: Efficient Global Structure Determination of the RuO<sub>2</sub>(100)-<i>c</i>(2 × 2) Reconstruction and (410) Vicinal The Journal of Physical Chemistry C · American Chemical Society · 2023 10.1021/acs.jpcc.3c04049
  81. Surface telluride phases on Pt(111): Reconstructive formation of unusual adsorption sites and well-ordered domain walls Physical review. B./Physical review. B · American Physical Society · 2023 10.1103/physrevb.108.205412
  82. Accelerating the prediction of inorganic surfaces with machine learning interatomic potentials Nanoscale · Royal Society of Chemistry · 2024 10.1039/d3nr06468a
  83. Critical behavior of the dimerized Si(001) surface: Continuous order-disorder phase transition in the two-dimensional Ising universality class Physical review. B./Physical review. B · American Physical Society · 2024 10.1103/physrevb.109.134104
  84. ViPErLEED package II: Spot tracking, extraction, and processing of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>I</mml:mi><mml:mo>(</mml:mo><mml:mi>V</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math> curves Physical Review Research · American Physical Society · 2025 10.1103/physrevresearch.7.013006