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

S<scp>iesta</scp>: Recent developments and applications

간접 관련 화학·수지 · (21) 에폭시수지 (6) PEM(고분자전해질막)(7) MEA(막전극접합체)(15) 디스플레이 패널재료

기본 정보

저자
  1. Alberto Garcı́a — Institut de Ciència de Materials de Barcelona (ICMAB-CSIC) 1 , Bellaterra E-08193, Spain
  2. Nick Papior — DTU Computing Center, Technical University of Denmark 2 , 2800 Kgs. Lyngby, Denmark
  3. Arsalan Akhtar — Catalan Institute of Nanoscience and Nanotechnology - ICN2, CSIC and BIST 3 , Campus UAB, 08193 Bellaterra, Spain
  4. Emilio Artacho — Donostia International Physics Center (DIPC), Paseo Manuel de Lardizabal 4, 20018 Donostia-San Sebastian, Spain|||Donostia International Physics Center (DIPC) 5 , Paseo Manuel de Lardizabal 4, 20018 Donostia-San Sebastian, Spain|||Ikerbasque, Basque Foundation for Science 6 , 48011 Bilbao, Spain|||Theory of Condensed Matter, Cavendish Laboratory, University of Cambridge 7 , Cambridge CB3 0HE, United Kingdom
  5. Volker Blüm — Department of Mechanical Engineering and Materials Science, Duke University 8 , Durham, North Carolina 27708, USA|||Department of Chemistry, Duke University 9 , Durham, North Carolina 27708, USA
  6. Emanuele Bosoni — Institut de Ciència de Materials de Barcelona (ICMAB-CSIC) 1 , Bellaterra E-08193, Spain
  7. Pedro Brandimarte — Donostia International Physics Center (DIPC) 5 , Paseo Manuel de Lardizabal 4, 20018 Donostia-San Sebastian, Spain
  8. Mads Brandbyge — DTU Physics, Center for Nanostructured Graphene (CNG), Technical University of Denmark 10 , Kgs. Lyngby DK-2800, Denmark
  9. Jorge I. Cerdá — Instituto de Ciencia de Materiales de Madrid ICMM-CSIC 11 , Cantoblanco, 28049 Madrid, Spain
  10. Fabiano Corsetti — CIC Nanogune BRTA 4 , Tolosa Hiribidea 76, 20018 San Sebastián, Spain
  11. R. Cuadrado — Catalan Institute of Nanoscience and Nanotechnology - ICN2, CSIC and BIST 3 , Campus UAB, 08193 Bellaterra, Spain
  12. Vladimir Dikan — Institut de Ciència de Materials de Barcelona (ICMAB-CSIC) 1 , Bellaterra E-08193, Spain
  13. Jaime Ferrer — Nanomaterials and Nanotechnology Research Center, CSIC - Universidad de Oviedo 13 , Oviedo 33007, Spain|||Department of Physics, University of Oviedo 12 , Oviedo 33007, Spain
  14. Julian D. Gale — Curtin Institute for Computation, Institute for Geoscience Research (TIGeR), School of Molecular and Life Sciences, Curtin University 14 , P.O. Box U1987, Perth, WA 6845, Australia
  15. Pablo García‐Fernández — Departamento de Ciencias de la Tierra y Física de la Materia Condensada, Universidad de Cantabria 15 , Cantabria Campus Internacional, Avenida de los Castros s/n, 39005 Santander, Spain
  16. Víctor M. García‐Suárez — Department of Physics, University of Oviedo 12 , Oviedo 33007, Spain|||Nanomaterials and Nanotechnology Research Center, CSIC - Universidad de Oviedo 13 , Oviedo 33007, Spain
  17. Sandra Sánchez García — Catalan Institute of Nanoscience and Nanotechnology - ICN2, CSIC and BIST 3 , Campus UAB, 08193 Bellaterra, Spain
  18. Georg Huhs — Barcelona Supercomputing Center 16 , c/Jordi Girona, 29, 08034 Barcelona, Spain
  19. S. Illera — Catalan Institute of Nanoscience and Nanotechnology - ICN2, CSIC and BIST 3 , Campus UAB, 08193 Bellaterra, Spain
  20. Richard Korytár — Department of Condensed Matter Physics, Faculty of Mathematics and Physics, Charles University 17 , Ke Karlovu 5, 121 16 Praha 2, Czech Republic
  21. Peter Koval — Simune Atomistics S.L. 18 , Tolosa Hiribidea, 76, 20018 Donostia-San Sebastian, Spain
  22. Irina V. Lebedeva — CIC Nanogune BRTA 4 , Tolosa Hiribidea 76, 20018 San Sebastián, Spain
  23. Lin Lin — Computational Research Division, Lawrence Berkeley National Laboratory 20 , Berkeley, California 94720, USA|||Department of Mathematics, University of California 19 , Berkeley, California 94720, USA
  24. Pablo López‐Tarifa — Centro de Física de Materiales, Centro Mixto CSIC-UPV/EHU 21 , Paseo Manuel de Lardizabal 5, 20018 Donostia-San Sebastian, Spain
  25. Sara G. Mayo — Departamento de Física de la Materia Condensada, Universidad Autónoma de Madrid 22 , 28049 Madrid, Spain
  26. Stephan Mohr — Barcelona Supercomputing Center 16 , c/Jordi Girona, 29, 08034 Barcelona, Spain
  27. Pablo Ordejón — Catalan Institute of Nanoscience and Nanotechnology - ICN2, CSIC and BIST 3 , Campus UAB, 08193 Bellaterra, Spain
  28. A. V. Postnikov — LCP-A2MC, Université de Lorraine 23 , 1 Bd Arago, F-57078 Metz, France
  29. Yann Pouillon — Departamento de Ciencias de la Tierra y Física de la Materia Condensada, Universidad de Cantabria 15 , Cantabria Campus Internacional, Avenida de los Castros s/n, 39005 Santander, Spain
  30. Miguel Pruneda — Catalan Institute of Nanoscience and Nanotechnology - ICN2, CSIC and BIST 3 , Campus UAB, 08193 Bellaterra, Spain
  31. Roberto Robles — Centro de Física de Materiales, Centro Mixto CSIC-UPV/EHU 21 , Paseo Manuel de Lardizabal 5, 20018 Donostia-San Sebastian, Spain
  32. Daniel Sánchez‐Portal — Donostia International Physics Center (DIPC) 5 , Paseo Manuel de Lardizabal 4, 20018 Donostia-San Sebastian, Spain|||Centro de Física de Materiales, Centro Mixto CSIC-UPV/EHU 21 , Paseo Manuel de Lardizabal 5, 20018 Donostia-San Sebastian, Spain
  33. José M. Soler — Departamento de Física de la Materia Condensada, Universidad Autónoma de Madrid 22 , 28049 Madrid, Spain|||Instituto de Física de la Materia Condensada (IFIMAC), Universidad Autónoma de Madrid 24 , 28049 Madrid, Spain
  34. Rafi Ullah — CIC Nanogune BRTA 4 , Tolosa Hiribidea 76, 20018 San Sebastián, Spain|||Departamento de Física de Materiales, UPV/EHU 25 , Paseo Manuel de Lardizabal 3, 20018 Donostia-San Sebastián, Spain
  35. Victor Yu — Department of Mechanical Engineering and Materials Science, Duke University 8 , Durham, North Carolina 27708, USA
  36. Javier Junquera — Departamento de Ciencias de la Tierra y Física de la Materia Condensada, Universidad de Cantabria 15 , Cantabria Campus Internacional, Avenida de los Castros s/n, 39005 Santander, Spain
DOI
10.1063/5.0005077
저널
The Journal of Chemical Physics
발행년도
2020
발행기관
American Institute of Physics
피인용수
417
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1063/5.0005077
토픽
Graphene research and applications
OpenAlex ID
W3121692464

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(6) PEM(고분자전해질막), (7) MEA(막전극접합체), (15) 디스플레이 패널재료
R&D 측면
분석·모델링
확신도
0.70
근거 용어
density functional theory, electronic-structure simulation, molecular-dynamics, materials simulation
판단 근거
이 논문은 원자 수준의 전자 구조를 계산하는 DFT 기반 시뮬레이션 소프트웨어인 SIESTA의 발전과 응용을 다루는 리뷰 논문입니다. 특정 제품을 직접 다루지는 않으나, 고분자 전해질막(PEM), 촉매층(MEA), 디스플레이 소재 등 코오롱인더스트리의 핵심 소재 설계 및 물성 예측을 위한 계산 과학 방법론으로서 활용 가치가 높습니다.
R&D 활용 포인트
신규 고분자 소재(PEM, 에폭시 등) 및 촉매/계면의 전자 구조와 열화 메커니즘을 실험 전 시뮬레이션으로 예측하여 R&D 기간을 단축하는 데 활용 가능합니다.
평가 입력
본문 185,800자 중 30,032자 발췌

초록

A review of the present status, recent enhancements, and applicability of the Siesta program is presented. Since its debut in the mid-1990s, Siesta's flexibility, efficiency, and free distribution have given advanced materials simulation capabilities to many groups worldwide. The core methodological scheme of Siesta combines finite-support pseudo-atomic orbitals as basis sets, norm-conserving pseudopotentials, and a real-space grid for the representation of charge density and potentials and the computation of their associated matrix elements. Here, we describe the more recent implementations on top of that core scheme, which include full spin-orbit interaction, non-repeated and multiple-contact ballistic electron transport, density functional theory (DFT)+U and hybrid functionals, time-dependent DFT, novel reduced-scaling solvers, density-functional perturbation theory, efficient van der Waals non-local density functionals, and enhanced molecular-dynamics options. In addition, a substantial effort has been made in enhancing interoperability and interfacing with other codes and utilities, such as wannier90 and the second-principles modeling it can be used for, an AiiDA plugin for workflow automatization, interface to Lua for steering Siesta runs, and various post-processing utilities. Siesta has also been engaged in the Electronic Structure Library effort from its inception, which has allowed the sharing of various low-level libraries, as well as data standards and support for them, particularly the PSeudopotential Markup Language definition and library for transferable pseudopotentials, and the interface to the ELectronic Structure Infrastructure library of solvers. Code sharing is made easier by the new open-source licensing model of the program. This review also presents examples of application of the capabilities of the code, as well as a view of on-going and future developments.

본문 185,800자

본문 펼치기
## Siesta: recent developments and applications Alberto García, <sup>1, a)</sup> Nick Papior, <sup>2, b)</sup> Arsalan Akhtar, <sup>3, c)</sup> Emilio Artacho, <sup>4, 5, 6, 7, d)</sup> Volker Blum, <sup>8, 9, e)</sup> Emanuele Bosoni, <sup>1, f)</sup> Pedro Brandimarte, <sup>5, g)</sup> Mads Brandbyge, <sup>10, h)</sup> J. I. Cerdá, <sup>11, i)</sup> Fabiano Corsetti, <sup>4, j)</sup> Ramón Cuadrado, <sup>3, k)</sup> Vladimir Dikan, <sup>1, l)</sup> Jaime Ferrer, <sup>12, 13, m)</sup> Julian Gale, <sup>14, n)</sup> Pablo García-Fernández, <sup>15, o)</sup> V. M. García-Suárez, <sup>12, 13, p)</sup> Sandra García, <sup>3, q)</sup> Georg Huhs, <sup>16, r)</sup> Sergio Illera, <sup>3, s)</sup> Richard Korytár, <sup>17, t)</sup> Peter Koval, <sup>18, u)</sup> Irina Lebedeva, <sup>4, v)</sup> Lin Lin, <sup>19, 20, w)</sup> Pablo López-Tarifa, <sup>21, x)</sup> Sara G. Mayo, <sup>22, y)</sup> Stephan Mohr, <sup>16, z)</sup> Pablo Ordejón, <sup>3, aa)</sup> Andrei Postnikov, <sup>23, bb)</sup> Yann Pouillon, <sup>15, cc)</sup> Miguel Pruneda, <sup>3, dd)</sup> Roberto Robles, <sup>21, ee)</sup> Daniel Sánchez-Portal, <sup>21, 5, ff)</sup> Jose M. Soler, <sup>22, 24, gg)</sup> Rafi Ullah, <sup>4, 25, hh)</sup> Victor Wen-zhe Yu, <sup>8, ii)</sup> and Javier Junquera <sup>15, jj)</sup> 1) _Institut de Ciència de Materials de Barcelona (ICMAB-CSIC), Bellaterra E-08193, Spain_ 2) _DTU Computing Center, Technical University of Denmark, 2800 Kgs._ _Lyngby, Denmark_ 3) _Catalan_ _Institute_ _of_ _Nanoscience_ _and_ _Nanotechnology_ _-_ _ICN2,_ _CSIC_ _and_ _BIST,_ _Campus_ _UAB,_ _08193_ _Bellaterra,_ _Spain_ 4) _CIC Nanogune BRTA, Tolosa Hiribidea 76, 20018 San Sebastián, Spain_ 5) _Donostia_ _International_ _Physics_ _Center_ _(DIPC),_ _Paseo_ _Manuel_ _de_ _Lardizabal_ _4,_ _20018_ _Donostia-San_ _Sebastian,_ _Spain_ 6) _Ikerbasque, Basque Foundation for Science, 48011 Bilbao, Spain_ 7) _Theory_ _of_ _Condensed_ _Matter,_ _Cavendish_ _Laboratory,_ _University_ _of_ _Cambridge,_ _Cambridge_ _CB3_ _0HE,_ _United Kingdom_ 8) _Department_ _of_ _Mechanical_ _Engineering_ _and_ _Materials_ _Science,_ _Duke_ _University,_ _Durham,_ _NC_ _27708,_ _USA_ 9) _Department of Chemistry, Duke University, Durham, NC 27708, USA_ 10) _DTU Physics, Center for Nanostructured Graphene (CNG), Technical University of Denmark, Kgs._ _Lyngby, DK-2800,_ _Denmark_ 11) _Instituto_ _de_ _Ciencia_ _de_ _Materiales_ _de_ _Madrid_ _ICMM-CSIC,_ _Cantoblanco,_ _28049_ _Madrid,_ _Spain_ 12) _Department of Physics, University of Oviedo, Oviedo, 33007, Spain_ 13) _Nanomaterials_ _and_ _Nanotechnology_ _Research_ _Center,_ _CSIC_ _-_ _Universidad_ _de_ _Oviedo,_ _Oviedo,_ _33007,_ _Spain_ 14) _Curtin Institute for Computation, Institute for Geoscience Research (TIGeR), School of Molecular and Life Sciences,_ _Curtin University, PO Box U1987, Perth, WA 6845, Australia_ 15) _Departamento_ _de_ _Ciencias_ _de_ _la_ _Tierra_ _y_ _Física_ _de_ _la_ _Materia_ _Condensada,_ _Universidad_ _de_ _Cantabria,_ _Cantabria Campus Internacional, Avenida de los Castros s/n, 39005 Santander, Spain_ 16) _Barcelona Supercomputing Center, c/ Jordi Girona, 29, 08034 Barcelona, Spain_ 17) _Department of Condensed Matter Physics,_ _Faculty of Mathematics and Physics,_ _Charles University,_ _Ke Karlovu 5,_ _121 16 Praha 2, Czech Republic_ 18) _Simune Atomistics S.L., Tolosa Hiribidea, 76, 20018, Donostia-San Sebastian, Spain_ 19) _Department of Mathematics, University of California, Berkeley, CA 94720, USA_ 20) _Computational_ _Research_ _Division,_ _Lawrence_ _Berkeley_ _National_ _Laboratory,_ _Berkeley,_ _CA_ _94720,_ _USA_ 21) _Centro de Física de Materiales, Centro Mixto CSIC-UPV/EHU, Paseo Manuel de Lardizabal 5, 20018 Donostia-San Sebastian,_ _Spain_ 22) _Departamento_ _de_ _Física_ _de_ _la_ _Materia_ _Condensada,_ _Universidad_ _Autónoma_ _de_ _Madrid,_ _28049_ _Madrid,_ _Spain_ 23) _LCP-A2MC, Université de Lorraine, 1 Bd Arago, F-57078 Metz, France_ 24) _Instituto_ _de_ _Física_ _de_ _la_ _Materia_ _Condensada_ _(IFIMAC),_ _Universidad_ _Autónoma_ _de_ _Madrid,_ _28049_ _Madrid,_ _Spain_ 25) _Departamento de Física de Materiales,_ _UPV/EHU, Paseo Manuel de Lardizabal 3,_ _20018 Donostia-San Sebastián,_ _Spain_ (Dated: April 20, 2020. Accepted by Jour. of Chem. Phys. After publication it can be found at https://doi.org/10.1063/5.0005077) A review of the present status, recent enhancements, and applicability of the SIESTA program is presented. Since its debut in the mid-nineties, SIESTA’s flexibility, efficiency and free distribution has given advanced materials simulation capabilities to many groups worldwide. The core methodological scheme of SIESTA combines finite-support pseudoatomic orbitals as basis sets, norm-conserving pseudopotentials, and a real-space grid for the representation of charge density and potentials and the computation of their associated matrix elements. Here we describe the more recent implementations on top of that core scheme, which include: full spin-orbit interaction, non-repeated and multiple-contact ballistic electron transport, DFT+ _U_ and hybrid functionals, time-dependent DFT, novel reduced-scaling solvers, densityfunctional perturbation theory, efficient Van der Waals non-local density functionals, and enhanced molecular-dynamics options. In addition, a substantial effort has been made in enhancing interoperability and interfacing with other codes and utilities, such as WANNIER90 and the second-principles modelling it can be used for, an AiiDA plugin for workflow automatization, interface to Lua for steering SIESTA runs, and various postprocessing utilities. SIESTA has also been engaged in the Electronic Structure Library effort from its inception, which has allowed the sharing of various low level libraries, as well as data standards and support for them, in particular the PSML definition and library for transferable pseudopotentials, and the interface to the ELSI library of solvers. Code sharing is made easier by the new open-source licensing model of the program. This review also presents examples of application of the capabilities of the code, as well as a view of on-going and future developments. I. INTRODUCTION. The possibility of treating large systems with firstprinciples electronic-structure methods has opened up new research avenues in many disciplines. The SIESTA method and its implementation have been key in this development, offering an efficient and flexible simulation paradigm based on the use of strictly localized basis sets. This approach enables the implementation of reduced scaling algorithms, and its accuracy and cost can be tuned in a wide range, from quick exploratory calculations to highly accurate simulations matching the quality of other approaches, such as plane-wave methods. The SIESTA method has been described in detail in Ref. 1, with an update in Ref. 2. In this paper we shall describe its present status, highlighting its strengths and documenting the steps that have recently been taken to improve its capabilities, performance, ease of use, and visibility in the electronicstructure community. a)Electronic mail: [albertog@icmab.es](mailto:albertog@icmab.es) b)Electronic mail: [nicpa@dtu.dk](mailto:nicpa@dtu.dk) c)Electronic mail: [arsalan.akhtar@icn2.cat](mailto:arsalan.akhtar@icn2.cat) d)Electronic mail: [ea245@cam.ac.uk](mailto:ea245@cam.ac.uk) e)Electronic mail: [volker.blum@duke.edu](mailto:volker.blum@duke.edu) f)Electronic mail: [ebosoni@icmab.es](mailto:ebosoni@icmab.es) g)Electronic mail: [pedro_brandimarte001@ehu.eus](mailto:pedro_brandimarte001@ehu.eus) h)Electronic mail: [mabr@dtu.dk](mailto:mabr@dtu.dk) i)Electronic mail: [jcerda@icmm.csic.es](mailto:jcerda@icmm.csic.es) j)Electronic mail: [fabiano.corsetti@gmail.com](mailto:fabiano.corsetti@gmail.com) k)Electronic mail: [ramon.cuadrado@gmail.com](mailto:ramon.cuadrado@gmail.com) l)Electronic mail: [vdikan@icmab.es](mailto:vdikan@icmab.es) m)Electronic mail: [ferrer@uniovi.es](mailto:ferrer@uniovi.es) n)Electronic mail: [J.Gale@curtin.edu.au](mailto:J.Gale@curtin.edu.au) o)Electronic mail: [garciapa@unican.es](mailto:garciapa@unican.es) p)Electronic mail: [vm.garciasuarez@gmail.com](mailto:vm.garciasuarez@gmail.com) q)Electronic mail: [sandragil@gmail.com](mailto:sandragil@gmail.com) r)Electronic mail: [ghuhs@physik.hu-berlin.de](mailto:ghuhs@physik.hu-berlin.de) s)Electronic mail: [sergiollera22@gmail.com](mailto:sergiollera22@gmail.com) t)Electronic mail: [korytar@karlov.mff.cuni.cz](mailto:korytar@karlov.mff.cuni.cz) u)Electronic mail: [koval.peter@gmail.com](mailto:koval.peter@gmail.com) v)Electronic mail: [i.lebedeva@nanogune.eu](mailto:i.lebedeva@nanogune.eu) w)Electronic mail: [linlin@math.berkeley.edu](mailto:linlin@math.berkeley.edu) x)Electronic mail: [pablolopeztarifa@gmail.com](mailto:pablolopeztarifa@gmail.com) y)Electronic mail: [sara.garciamayo@uam.es](mailto:sara.garciamayo@uam.es) z)Electronic mail: [stephan.mohr@bsc.es](mailto:stephan.mohr@bsc.es) aa)Electronic mail: [pablo.ordejon@icn2.cat](mailto:pablo.ordejon@icn2.cat) bb)Electronic mail: [andrei.postnikov@univ-lorraine.fr](mailto:andrei.postnikov@univ-lorraine.fr) cc)Electronic mail: [yann.pouillon@unican.es](mailto:yann.pouillon@unican.es) dd)Electronic mail: [miguel.pruneda@icn2.cat](mailto:miguel.pruneda@icn2.cat) ee)Electronic mail: [roberto.robles@ehu.eus](mailto:roberto.robles@ehu.eus) ff)Electronic mail: [daniel.sanchez@ehu.eus](mailto:daniel.sanchez@ehu.eus) gg)Electronic mail: [jose.soler@uam.es](mailto:jose.soler@uam.es) hh)Electronic mail: [ullah1@llnl.gov](mailto:ullah1@llnl.gov) ii)Electronic mail: [wenzhe.yu@duke.edu](mailto:wenzhe.yu@duke.edu) jj)Electronic mail: [javier.junquera@unican.es](mailto:javier.junquera@unican.es) As we shall see, the improvements touch many areas. We can underline the implementation of new core electronicstructure features (DFT+U, spin-orbit interaction, hybrid functionals), modes of operation (improved time-dependent density functional theory (TD-DFT), density functional perturbation theory (DFPT), and analysis methods and procedures to access new properties. A major effort has been spent in enhancing the interoperability of the code at various levels (sharing of pseudopotentials, a new wannierization interface opening the way to sophisticated post-processing, and an interface to multiscale methods). Very significant performance enhancements have been made, notably to the TRANSIESTA module through improved algorithms, and to the core electronic structure problem through the development of interfaces to new solvers. These advances have put SIESTA in a prominent place in the high-performance electronic-structure simulation scene, a role reinforced by its participation in important international initiatives and by its new open-source licensing model. The manuscript is organized as follows. We provide an overview of the underlying methodology and the capabilities of SIESTA in section II, which serves to place the code in the wider ecosystem of electronic-structure materials simulation. Section III presents the recent developments in and around the code, which are covered in sub-sections. To showcase SIESTA’s utility in the context of electronic-structure calculations, we present briefly some relevant applications and survey a few areas in which SIESTA is being profitably used in section IV. Plans for the future evolution of SIESTA are outlined in section V. II. KEY CONCEPTS OF SIESTA A. Theory background and context SIESTA appeared as a consequence of the push for linearscaling electronic structure methods of the mid nineties, which has been reviewed, for example, in Refs. 3 and 4. SIESTA was the first linear-scaling _self-consistent_ implementation of density functional theory (DFT). <sup>5,6</sup> The SIESTA method relies on atomic-like functions of finite support as basis sets <sup>7,8</sup> - of arbitrary number, angular momentum, radial shape, and centers – combined with a discretization of space for the computation of the Kohn-Sham Hamiltonian terms that involve more than two centers. The electron-ion interaction is represented by norm-conserving pseudopotentials. These key ingredients, through the optimized handling of sparse matrices, are used to compute the self-consistent Hamiltonian and overlap matrices with a computational expense that scales linearly with system size. The method is completed with a choice of solvers for that Hamiltonian, from optimized (but cube-scaling) diagonalization methods, to reduced-scaling solvers of different flavors. The orbitals in the SIESTA basis set are made of the product of a real spherical harmonic and a radial function, which is numerically tabulated in a grid. The shape of the radial part is in principle totally arbitrary, but the experience accumulated has proven that the numerical solution of the Schrodinger equation for a (confined) isolated atom with the corresponding pseudopotential is a very good choice in terms of accuracy versus computational cost. Fuller descriptions of the mechanisms to generate and optimize these pseudo-atomic orbitals (PAOs) are given in Refs. 8–10. The auxiliary real-space grid is an essential ingredient of the method, as it allows the efficient representation of charge densities and potentials, as well as the computation of the matrix elements of the Hamiltonian that cannot be handled as two-center integrals. This grid can be seen as the reciprocal space of a set of plane waves, and its fineness is most conveniently parametrized by an energy cutoff (the “density” cutoff of plane-wave methods). There are limits to the softness of the functions that can be described with such a grid, so core electrons are not considered (although semi-core electrons usually are), and their effect is incorporated into pseudopotentials. The real-space grid is also used to solve the Poisson equation involved in the computation of the electrostatic potential from the charge density, through the use of a fast-fourier-transform method. This means that SIESTA uses periodic boundary conditions. Non periodic systems, such as molecules, tubes, or slabs, are treated using appropriate supercells. SIESTA is now a mature code with more than 20 years of existence. In this period, the most important algorithms behind our implementation have been already fully described and documented in a series of papers. Readers interested in the details of how the basic elements defining the method are combined, as well as other relevant implementation details that make the method practical, can find them in the main SIESTA reference <sup>1</sup>, and in the update with the new capabilities of the code <sup>2</sup> . We note that the term SIESTA is regularly used to describe both the method (as outlined in the earliest papers <sup>5,6</sup> ) and its implementation in a computer program. The SIESTA method is at the basis of later independent implementations, such as OpenMX, <sup>11</sup> and QuantumATK. <sup>12</sup> Other subsequent codes built on the method, revising some of the fundamental ingredients. This is the case of FHI-aims, <sup>13</sup> which uses a more sophisticated real-space grid (atom-centered), thus extending the core scheme to all-electron calculations. In this paper we describe new additions to the SIESTA code, based on independent methodological advances, either preexistent or specifically developed for SIESTA, as specified and cited in each section below. B. Overview of Siesta capabilities As a general purpose implementation, SIESTA can provide the standard functionality available in mainstream DFT codes: energies, forces, molecular-dynamics simulations, band structures, densities of states, etc., and shares with those codes the basic current limitations of DFT (notably the description of strongly-correlated systems). What makes SIESTA different from most other codes, and is at the root of its key strengths, is the atomic-like, and strictly localized, character of its basis set. The use of a “good first approximation” to the full problem implies, first, that a much smaller number of basis functions is needed. Second, the finite-support of the orbitals leads to sparsity and the possibility to use reduced-scaling methods. Thus high performance emerges almost by default. Take first the basis cardinality: the number of basis orbital per atom in a typical SIESTA calculation is of the order of 10-20. This is to be compared with a few hundred in the typical plane-wave (PW) calculation. Furthermore, for systems whose description needs a vacuum region (e.g., slabs for surface calculations, 2D monolayers, etc), empty space is essentially “free” for SIESTA, whereas PW codes still need a basis set determined by the total size of the simulation cell. SIESTA is then quite capable of dealing with systems composed of dozens to hundreds of atoms on modest hardware, even when using cubic-scaling diagonalization solvers, which are the default as they are universally applicable. Electronic-structure solvers with a more favorable sizescaling can be applied to suitable systems. For example, one of SIESTA’s earlier calculations, in 1996, was a linear-scaling run for a strand of DNA with 650 atoms, performed on a desktop workstation of the era. <sup>6</sup> Reduced size-scaling is also a feature of the PEXSI solver described in section III G 1 below, and of the NTPoly solver mentioned in section III G 2. In addition to time-to-solution efficiency, these solvers have a smaller memory footprint than diagonalization, as the relevant matrices are kept in sparse form rather than converted to a dense format. Crucially, SIESTA’s baseline efficiency can be scaled up to ever-larger systems by parallelization. Both distributed (MPI) and shared-memory (OpenMP) parallelization options are implemented in the code. As some of the examples in section IV show, non-trivial calculations with thousands of atoms are used in applications in different contexts, from molecular biology to electronic transport. Work on the performance aspects of the code is continuous, mostly on the solvers, which usually take most of the computer time due to the very high efficiency of the Hamiltonian setup module in SIESTA. This task is facilitated (see section III O) by leveraging external libraries and developments generated by a number of international initiatives in which SIESTA participates. The code can still run efficiently in modest hardware, while also being able to exploit massive levels of parallelism in large supercomputers (see Fig. 1). It is worth noting also that the atomic character of the basis set enables the use of a very intuitive suite of analysis tools, sice most of the concepts relating to chemical bonding use the language of atomic orbitals. Hence SIESTA has a natural advantage in this area. Partial densities of states and atomic and crystal populations (COOP/COHP) are routinely used to gain insights into the stability and other properties of materials. 170,000 orbs 1D, sp=0.27% 180,000 orbs 2D, sp=0.91% FIG. 1. Parallel strong scaling of SIESTA-PEXSI and the (Scalapack) diagonalization approach for a DNA chain and a GrapheneBoron Nitride stack, prototypes of large (hundreds of thousands of orbitals) quasi one-dimensional and two-dimensional systems. “ppp” stands for the number of MPI processes used in each pole computation, and “sp” the sparsity of the Hamiltonian. (For more details, see section III G 1) For a recent example, see Ref. 14. Similarly, an atomic basis provides a very natural and adequate language for the firstprinciples simulation of electronic ballistic transport in nanosized systems, via the Green’s-function based Keldysh formalism implemented in TRANSIESTA, <sup>15</sup> a part of the SIESTA package. The very high number of citations of the SIESTA papers testify to the successful application of the code to widely different systems. With regard to specific capabilities and the levels of accuracy achievable, we can distinguish several levels. First, SIESTA implements DFT, one of the most versatile materials simulation frameworks. DFT has its shortcomings, notably in regard to the description of strongly-correlated systems, but these are being addressed (see sections on DFT+U and hybrid functionals below). Second, SIESTA uses pseudopotentials to represent the electron-ion interaction. The pseudopotential approach is firmly rooted in a sound physical approximation (that bonding effects depend mostly on the valence electrons); however, it is at a disadvantage when coreelectrons effects are important (but see section III N 6 below). Third, SIESTA employs periodic boundary conditions (PBC) for the solution of the Poisson problem, sharing with planewave codes the need to resort to repeated supercells for the study of low-dimensional systems, and to special techniques for the treatment of charged systems. It is important to note, however, that, unlike plane-wave codes, SIESTA is only bound to PBC because of the present treatment of the Hartree term of the single-particle Hamiltonian. This limitation is lifted by the incorporation of alternative Poisson solvers, as described in Sec. III O, which allow for open boundary conditions, as for isolated nano-systems, and hybrid open/periodic boundary conditions in different dimensions, as for isolated wires and slabs. It should be remembered that the three approximations mentioned in this paragraph are very widely used in the community, shared by some of the most popular electronic structure codes. Fourth, with regard to SIESTA specific approximations, particularly the basis set, it should be stressed that SIESTA is limited to basis sets composed of functions that are product of a radial part and spherical harmonics, but it does not constrain on how many, where such functions are centered, and the size of their finite-support region. Calculations can flexibly range from quick exploration to very high-quality simulations (one may recall that accuracy gold standards in electronic structure are provided by quantum-chemistry methods, based on LCAO). The use of an atomic-orbital basis set implies however the limitation of non-uniformity of convergence. As opposed to plane-wave methods, in which a single energy cutoff parameter monotonically determines the quality of the calculation, there is no univocal procedure for the choice of an appropriate basis set. It is a well-known problem, shared by the whole quantum-chemistry community, on which there is widely used and tested know-how. As Fig. 2 shows, it is possible to attain in practice an accuracy comparable to that of well-converged plane-wave calculations. The reader is also referred to sections IV B and IV C 1 for showcase examples of the accuracy of the code, among many others in the literature. To close this section, we stress that it has been a traditional and deliberate attitude by the SIESTA team that, although proposing sensible starting points to users as defaults, the choice of fundamental approximations and inputs to the program (not only basis sets, but also density functionals, and pseudopotentials) is a responsibility of the users, who retain full control and the flexibility to adapt the code to their specific needs. Nevertheless, tools for basis optimization are provided with the program, new curated databases of pseudopotentials are coming online, and new ways to ameliorate the correlation problem are being implemented. Some of these developments are described in the following sections. III. RECENT DEVELOPMENTS IN SIESTA A. New distribution model and development infrastructure A few years ago, in 2016, a decision was made to change the licensing model for SIESTA: traditionally it had always been free of charge to academics, but non-academic use required a special license and redistribution was not permitted. Now SIESTA is formally an open-source program, distributed according to the terms of the GPL license <sup>18</sup> . At the same time, the development infrastructure was made more transparent and scalable, using first the Launchpad platform <sup>19</sup> and now the Gitlab service <sup>20</sup> . The net effect of the changes has been a more fertile and dynamic development, with more contributors who can have direct access to the various branches of development, and a better experience for users, who can download code and raise issues in an integrated platform. These changes have been substantial for the core developers, and the transitory period is still being felt. The main code base is gradually absorbing new developments, both those that 250 240 230 PW 0.0 -0.4 -0.8 70 75 80 85 90 Number of basis functions 30 50 70 90 Number of basis functions FIG. 2. Basis set convergence for the binding energy ( _Eb_ ) of a water dimer. Details can be found in Ref. 16. The horizontal dotted line represents the converged plane-wave (PW) calculation (1300 eV cutoff) for the same system (dimer geometry and box), pseudopotentials and density functional, using the ABINIT code. <sup>17</sup> Inset: deviation of _Eb_ versus the PW reference. The deviation for the last point is of 10 _µ_ eV. were planned long in advance, and new ones made possible by the greater openness and fluidity of the development model. Most of the new features described below are already part of public releases, but a few are undergoing the last stages of testing before release. The work-flow is also moving from long-lived releases, hard to maintain with bug-fixes, to more frequent releases that will be maintained for a shorter time. B. New pseudopotential format for interoperability PSML (for PSeudopotential Markup Language) <sup>21,22</sup> is a file format for norm-conserving pseudopotential data which is designed to encapsulate as much as possible the abstract concepts involved in the domain, and to provide appropriate metadata and provenance information. This extra level of formalization aims at removing the interoperability problems associated to bespoke pseudopotential formats, which usually were designed to serve the needs of specific generators and client codes, and thus contain implicit assumptions about the meaning of the data or lack information not considered relevant. PSML files can be produced by the ONCVPSP <sup>23</sup> and ATOM <sup>24</sup> pseudopotential generator programs, and are a download-format option in the Pseudo-Dojo database of curated pseudopotentials <sup>25,26</sup> . The software library libPSML <sup>21,22</sup> can be used by electronic structure codes to transparently extract the information in a PSML file and incorporate it into their own data structures, or to create converters for other formats. It is currently used by SIESTA and ABINIT, <sup>17,27</sup> making possible a full pseudopotential interoperability and facilitating comparisons of calculation results. The use of this new format opens the door to benefit from the availability of a periodic table of reliable and accurate norm-conserving pseudopotentials, easing in most cases the task of pseudopotential quality control. C. DFT+U for correlated systems The LDA+U method, initially developed by Anisimov and coworkers <sup>28</sup> with the objective to improve the treatment of the electron-electron interaction for localized electrons within the bare LDA description, has been implemented in SIESTA. The idea behind the LDA+U consists in describing the “strongly correlated” electronic states of a system (typically, localized _d_ or _f_ orbitals) using the Hubbard model, whereas the rest of valence electrons are treated at the level of “standard” approximate DFT functionals. <sup>29</sup> In the current version of SIESTA the implementation is based on the simplified rotationally invariant functional proposed by Dudarev and coworkers. <sup>30</sup> Here, the corrections are made invariant under rotation of the atomic orbitals used to define the occupation number of the correlated subspace, at the cost of retaining only the lowest order Slater integrals in the factorization of the integrals of the Coulomb kernel of the electron-electron interaction, and neglecting the higher order ones (i.e. taking the exchange interaction J as 0). The expression of the corrective term as a functional of the occupation number _n_ <sup>_I_</sup> _ℓ_ <sup>_σ_</sup> _m_ <sup>of the localized correlated orbital</sup> <sup>_ℓm_</sup> with spin _σ_ within the atom _I_ is given by where only one interaction parameter _U_ <sup>_Iℓ_</sup> is needed to specify the interaction per atom and _ℓ_ -shell. In the practical SIESTA implementation, the populations on the correlated orbitals are computed using non-overlapping (i. e. orthogonal) localized projectors. They can be generated using either ( _i_ ) the same algorithm used to produce the first- _ζ_ orbitals of the basis set, but with a larger energy shift, or ( _ii_ ) cutting the exact solution of the pseudoatom with a Fermi function. The results of the LDA+U method are sensitively dependent on the numerical value of the effective on-site electronic interaction, the Hubbard _U_ . Although in principle the value of _U_ can be computed from first principles using linear response methods, <sup>31</sup> a common practice is to tune it semiempirically, seeking agreement of certain properties (for instance band gaps or magnetic moments) with available experimental measurements. Then, the fitted _U_ is used in subsequent calculations to predict other properties. The LDA+U corrects localized states, for which the selfinteraction correction is expected to be stronger, and is an effective method to improve the description of the (underestimated) band gap of insulators, as shown in Fig. 3 for the case of NiO. Once the Hubbard correction is switched on, the optical band gap increases up to 3.08 eV (from the bare GGAPBE value of 1.08 eV), very close to the experimental value for the onset of optical absorption in NiO <sup>32</sup> (3.10 eV). The magnetic moment on the Ni atom is also properly described, with a value of 1.67 _µ_ B which lies well within the experimental range of values (between 1.64 _µ_ B <sup>33</sup> and 1.9 _µ_ B <sup>34</sup> ), and ## ∑ _m_ �1 _−_ _n_ <sup>_I_</sup> _ℓ_ <sup>_σ_</sup> _m_ - <sup>�</sup> _,_ (1) _E_ U = ∑ _Iσ_ _ℓ_ _<u>U</u>_ <sup>_Iℓ_</sup> 2 _n_ <sup>_I_</sup> _ℓ_ <sup>_σ_</sup> _m_ improves on the result of 1.39 _µ_ B obtained with a bare GGAPBE functional. 5 0 -5 (a) -10 Γ L K T Γ X 5 0 -5 (b) -10 Γ L K T Γ X FIG. 3. Band structure of NiO in the undistorted rock-salt type structure with rhombohedral symmetry introduced by a type-II antiferromagnetic order. The experimental lattice spacing is used. The bands obtained within GGA-Perdew-Burke-Ernzerhof functional (panel a), and with a Hubbard U correction of 4.6 eV applied on the _d_ -orbitals of Ni (panel b), as in Ref. 31, are shown. The zero of the energy is set at the top of the valence band. D. Van der Waals functionals An efficient calculation of van der Waals (vdW) functionals <sup>35,36</sup> was developed and first implemented in SIESTA using a polynomial expansion in the local variables ( _q_ 1 _,_ _q_ 2) of the nonlocal interaction kernel Φ( _q_ 1 _,_ _q_ 2 _,_ _r_ 12) and a Fourier expansion in the relative position _r_ 12 <sup>37</sup> . As a result, the scaling of the vdW computation decreases from _O_ ( _N_ <sup>2</sup> ) to _O_ ( _N_ log _N_ ) and it becomes marginal within the overall cost. This scheme was later extended <sup>16</sup> to a more complex kernel <sup>38</sup> of the form Φ( _n_ 1 _,_ _|_ ∇ _n_ 1 _|,_ _n_ 2 _,_ _|_ ∇ _n_ 2 _|,_ _r_ 12), and it has been applied to a large variety of systems, like carbon nanotubes <sup>37</sup>, hydrogen adsorption <sup>39,40</sup>, or liquid water <sup>41</sup> . E. Hybrid functionals The screened hybrid functional HSE06 <sup>42–44</sup> has been implemented in SIESTA building on the work of Ref. 45. This functional is the result of adding nonlocal Hartree-Fock type exact exchange (HFX) into semilocal density functionals. The Coulomb potential that appears in the exchange interaction is screened, so it has a shorter range than 1 _/r_ . Here, to reduce the big prefactor involved in the computation of the HFX potential matrix elements, we fit the NAO of the basis set with Gaussian-type orbitals, specially suited to computing the four center electron repulsion integrals (ERIs) in a straightforward and efficient analytical way. An example of this fitting for the 2 _s_ and 2 _p_ atomic orbitals basis set of the oxygen is shown in Fig. 4. The LIBINT package <sup>46</sup> is required to calculate primitive ERIs, where recursive schemes of the Obara-Saika <sup>47</sup> method and the Head-Gordon and Pople’s variation <sup>48</sup> thereof are implemented. ERIs are calculated in the first SCF cycle and then stored in disk. Only the ERIs with non-negligible contributions are calculated, keeping the HFX Hamiltonian also sparse. This HSE06 functional has been used to compute the band structure of bulk Si [diamond structure; Fig. 5(a)] and BaTiO3 [cubic structure; Fig. 5(b)] with a double-zeta polarized basis set at the equilibrium lattice constant of the Perdew-BurkeErnzerhof functional <sup>49</sup> within the Generalized Gradient Approximation (5.499 Å for Si and 4.033 Å for BaTiO3). In both cases, the gap is opened with respect to the value obtained with the semilocal functional. In bulk Si the band gap is indirect: the top of the valence band is located at Γ and the bottom of the conduction band at a point along the Γ _→_ _X_ high-symmetry line. It increases from 0.64 eV within GGA to 1.00 eV with the hybrid functional, in good agreement with the experimental value of 1.17 eV <sup>50</sup> . For the case of the perovskite oxide BaTiO3, the band gap is also indirect, from _R_ to Γ, and its value increases from 1.87 eV with GGA to 3.28 eV with the HSE06 functional, almost matching the experimental value of 3.2 eV estimated by Wemple in the cubic phase <sup>51</sup> . F. Spin-orbit coupling The capability to include the spin–orbit (SO) interaction in SIESTA and in the analysis tools is seen as a strategic asset for the project in view of the recent interest in topological insulators and quasi–two–dimensional systems with important spin–orbit effects, like some of the transition metal dichalcogenides. Also, it brings the possibility to obtain the magnetic crystalline anisotropy (MCA) (change in the total energy of the system upon changing the spin quantization axis). In a standard collinear-spin DFT calculation, the total KS Hamiltonian is represented by two independent spin–blocks, _H_ ˆ _µν_ <sup>_σσ_</sup> <sup>[</sup> <sup>_σ_</sup> <sup>=</sup> <sup>_↑,_</sup> <sup>_↓_</sup> <sup>].</sup> <sup>However,</sup> <sup>when</sup> <sup>the</sup> <sup>SO</sup> <sup>coupling</sup> <sup>is</sup> <sup>included,</sup> off–diagonal spin blocks arise (i.e., there are non–zero couplings between the two spin components). Therefore, and similar to the non-collinear spin case, the Hamiltonian be 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0.0 5.0 4.0 3.0 2.0 1.0 0.0 0.5 1.0 1.5 2.0 2.5 r (Bohr) 0.5 1.0 1.5 2.0 2.5 r (Bohr) FIG. 4. Gaussian fits of the radial part of oxygen 2 _s_ (a) and 2 _p_ (b) orbitals using 6 Gaussian functions. The orbitals to fit are represented by blue dots and the corresponding Gaussian expansions by green continuous lines. Dashed vertical lines represent the standard deviations of individual Gaussians and a red continuous line marks their upper limit. The orbitals are set to zero in the yellow area, marking their cutoff radii. comes a full 2 _×_ 2 matrix in spin space _H_ ˆ _µν_ <sup>_KS_</sup> <sup>=</sup> - _H_ ˆ _µν↑↑_ _H_ ˆ _µν_ <sup>_↑↓_</sup> _µν_ _µν_ _H_ ˆ _µν_ <sup>_↓↑_</sup> _H_ ˆ _µν_ <sup>_↓↓_</sup> _µν_ <sup>_↓↑_</sup> _H_ ˆ _µν_ <sup>_↓↓_</sup> 10 5 0 -5 -10 (a) -15 L Γ X W K Γ 8 6 4 2 0 -2 -4 (b) -6 Γ X M R Γ M X R FIG. 5. Band structure of (a) bulk Si in the diamond structure, and (b) bulk BaTiO3 in the cubic structure obtained with the PerdewBurke-Ernzerhof functional (red lines) and with the HSE06 hybrid functional (black lines). The zero of energies have been set to the valence band maximum. In the current implementation the SO term is included non-perturbatively, so that the fully relativistic Hamiltonian is solved self-consistently after extending the Kohn–Sham wave–functions to full spinors. Two different approaches have been implemented in SIESTA to account for the SO term, _V_ <sup>ˆ</sup> <sup>_SO_</sup> : - _on–site_ approximation: Based on the work of Fernández-Seivane _et_ _al._ <sup>53,54</sup>, only the intra–atomic SO contributions within each _l_ shell of each atom are considered. In this approach the SO terms are obtained from analytical simple expressions for the angular integrals while the radial integrals are computed numerically. - _off–site_ approach: Here, _V_ ˆ <sup>_SO_</sup> is built following the Hemstreet (2) _µν_ where _µν_ subindexes refer to the SIESTA basis orbitals. The fully relativistic Hamiltonian _H_ <sup>ˆ</sup> <sup>_KS_</sup> is expressed as a sum of the kinetic energy _T_ <sup>ˆ</sup>, the scalar-relativistic pseudo-potential part in the form of Kleinman–Bylander projectors _V_ <sup>ˆ</sup> <sup>_KB_</sup>, the spin– orbit _V_ <sup>ˆ</sup> <sup>_SO_</sup> term and the Hartree _V_ <sup>ˆ</sup> <sup>_H_</sup> and exchange–correlation _V_ ˆ <sup>_XC_</sup> potentials: _H_ ˆ <sup>_KS_</sup> = _T_ ˆ + _V_ ˆ <sup>_KB_</sup> + _V_ ˆ <sup>_SO_</sup> + _V_ ˆ <sup>_H_</sup> + _V_ ˆ <sup>_XC_</sup> (3) The first three terms of the right hand side do not depend on the charge density, _ρ_ ( r ), and therefore do not change in the self–consistent cycle, while _V_ <sup>ˆ</sup> <sup>_SO_</sup> and _V_ <sup>ˆ</sup> <sup>_XC_</sup> are the only spin– dependent terms that couple both spin components. In order to compute the MCAs, different orientations of the spin quantization axis need to be considered. This may be done by rotating either _V_ <sup>ˆ</sup> <sup>_SO_</sup> (as done by Cuadrado and Cerdá <sup>52</sup> ) or the density matrix, which is the approach currently followed by SIESTA for compatibility with the non– collinear case. formalism <sup>52,55</sup> whereby a fully-relativistic pseudopotential (FR-PP) operator is constructed in a fully separable form, i.e., non–local in the radial part as well as in the angular variables, in order to substantially reduce the computational cost. The necessary _l j_ Kleinman–Bylander projectors may be either constructed by SIESTA itself from relativistic semilocal PPs, or directly read from appropriately generated PSML files, as provided by the Pseudo– Dojo project <sup>25,26</sup> . Moreover, we note that the FR-PP formalism (as well as the original one implemented in Ref. 52) uses the correct normalization constants _Cl±_ 1 _/_ 2, in contrast with what was erroneously stated in Ref. 56. Although we consider the _off–site_ approach more accurate, as it includes inter-shell and inter-atomic SO couplings, both approximations yield very similar results in most of the tested systems, with relevant qualitative differences only found in a few specific cases. Furthermore, the construction of the _Vµν_ <sup>_SO_</sup> matrix is very fast under both schemes and involves a tiny fraction of the entire self-consistent calculation. G. New electronic-structure solvers For most problems, SIESTA spends the largest fraction of cpu-time in the solver stage (solution of the generalized eigenvalue problem _H_ Φ = _εS_ Φ). The stage devoted to the calculation of the hamiltonian H and overlap S is typically much lighter weight, as those matrices are intrinsically sparse due to the use of a finite-support basis set. Accordingly, SIESTA’s performance is almost completely linked to the use of appropriate external solver libraries. Over the past few years we have expanded the choices available to users and refined the relevant interfaces. Initially, we added support for new individual solvers as detailed below, but recently we have consolidated some of the most important functionality under a new common interface to the ELSI library of solvers <sup>57,58</sup> . _1._ _Solvers_ _with_ _a_ _native_ _interface_ Diagonalization (solution of the generalized eigenproblem appropriate for non-orthogonal orbitals) is the default method for obtaining the density-matrix in SIESTA. A number of standard routines are contained in the SCALAPACK library <sup>59</sup>, but more efficient alternatives are possible. In particular, the ELPA library <sup>60–62</sup> uses an extra intermediate step in the tridiagonal conversion of the matrices to obtain better scalability and significant speedups over SCALAPACK. An interface to ELPA is offered in SIESTA, so this solver can be used as a drop-in replacement for SCALAPACK throughout the code. In addition, SIESTA has implemented interfaces to several methods not based on diagonalization. In most cases, the use of a finite-support basis set, leading to the appearance of sparse matrices, is a significant factor to achieve good performance: It would appear that having to invert matrices would still render this approach cubic-scaling, but in fact only _selected_ elements of _ρ_ ˆ have to be actually computed. This “pole expansion and selected inversion” method offers a reduced complexity (at most _O_ ( _N_ <sup>2</sup> ) for dense systems, and _O_ ( _N_ ) for quasi-one-dimensional systems), and trivial parallelization over poles, so it is well-suited for very large problems on large machines. For example, <sup>68</sup> computed the electronic structure of large (up to 11,700 atoms) graphene nanoflakes using SIESTA-PEXSI. _•_ The electronic structure problem can also be cast as a minimization problem (of an extended functional) without orthogonalization. When additional localization constraints are put in place, the original linear-scaling method in SIESTA results. Without the extra localization constraints, the cubic-scaling Orbital Minimization Method (OMM) <sup>69</sup> can be competitive with respect to diagonalization, as data can be reused across scf-cycle steps. _2._ _The_ _ELSI_ _interface_ We have considerably extended the range of solver choices and the performance enhancement possibilities of the code with the integration of the open-source ELSI library ( `[https:](https://elsi-interchange.org)` `[//elsi-interchange.org](https://elsi-interchange.org)` ), that provides a unified software interface that connects electronic structure codes to various high-performance solver libraries to solve or circumvent eigenproblems encountered in electronic structure theory <sup>57</sup> . ELSI also ships with its own tested versions of the individual solver libraries, but additionally, linking against already compiled upstream versions from each solver library is supported as much as possible. The ELPA, OMM, and PEXSI solvers, which had their own ad-hoc interfaces as described in the previous section, _•_ The Fermi Operator Expansion method (FOE) <sup>63</sup> uses the formal relationship between Hamiltonian and density-matrix, _ρ_ ˆ = _fFD_ ( _H_ <sup>ˆ</sup> _−_ _µ_ ), where _fFD_ is the Fermi-Dirac function. A simple polynomial expansion of _fFD_ can then be used to obtain _ρ_ ˆ without diagonalization. This method is implemented in the CheSS library <sup>64</sup>, developed within the BigDFT project <sup>65</sup> . _•_ The PEXSI method <sup>66,67</sup> uses a pole expansion of _fFD_ to get _ρ_ ˆ in the form: _ρ_ ˆ = Im - _P_ ## ∑ _l_ =1 _<u>ωl</u>_ <sup>_ρ_</sup> _H −_ ( _zl_ + _µ_ ) _S_ (4) where _ωl_ <sup>_ρ_</sup> <sup>and</sup> <sup>_zl_</sup> <sup>are the weights and poles for the cor-</sup> responding expansion of the Fermi-Dirac function. The number of poles needed is significantly smaller than for the polynomial version of the FOE, as its dependence on the spectrum size is only logarithmic. are now available through ELSI, which also supports other conventional dense eigensolvers (EigenExa <sup>70</sup>, MAGMA <sup>71</sup> ), sparse iterative eigensolvers (SLEPc <sup>72</sup> ), and linear scaling density matrix purification methods (NTPoly <sup>73</sup> ). As sketched in Fig. 6, an electronic structure code interfacing to ELSI automatically has access to all the eigensolvers and density matrix solvers supported in ELSI. In addition, the ELSI interface is able to convert arbitrarily distributed dense and sparse matrices to the specification expected by the solvers, taking this burden away from the electronic structure code. A comprehensive review of the capabilities in the latest version of ELSI, including parallel solution of problems found in spinpolarized systems (two spin channels) and periodic systems (multiple _k_ -points), scalable matrix I/O, density matrix extrapolation, iterative eigensolvers in a reverse communication interface (RCI) framework, has recently been completed <sup>58</sup> . FIG. 6. Interaction of the ELSI interface with electronic structure codes. ELSI serves as a bridge between electronic structure codes and solver libraries. An electronic structure code has access to various eigensolvers and density matrix solvers via the ELSI API. Whenever necessary, ELSI handles the conversion between different units, conventions, matrix formats, and programming languages. With the common interface in place, any additions and enhancements to the supported solvers can be used in SIESTA with almost no code changes. This is particularly relevant for performance enhancements. For example: _•_ Further levels of parallelization: A feature common in principle to all solvers is that the SIESTA-ELSI interface can exploit the full parallelization over k-points and spins mentioned above. This means that these calculations can use two extra levels of parallelization in the solver step beyond the standard one of parallelization over orbitals (see Fig. 7). _•_ The new version of the PEXSI solver integrated in ELSI can achieve the same level of precision with fewer poles, and offers an extra level of parallelization (6) where ∆ _t_ represents the finite time-step resulting from time discretization, and _S_ and _H_ represent the overlap and Hamiltonian matrices, respectively, in the representation given by over trial points for the determination of the chemicalpotential. _•_ Mixed-precision support: The ELPA solver can be invoked in single-precision mode, which can speed up the initial steps of the electronic self-consistent-field (scf) cycle. _•_ Accelerator offloading: The ELPA library offers GPU support in some kernels <sup>62</sup>, and there is scope for extending it to more kernels. ELSI also offers an interface to the accelerator-enabled MAGMA library. Finally, the PEXSI developers are working on adding GPU support to the solver. 1024 512 256 128 64 Scalapack Siesta-ELPA ELSI-ELPA multi-k-point Ideal 32 64 128 256 512 1024 MPI ranks FIG. 7. Performance improvement from the use of the extra level of parallelization over k-points in SIESTA using the ELSI interface with the ELPA solver, compared to the previous diagonalization scheme (using both the standard SCALAPACK solver and the existing ELPA interface in SIESTA). The system is bulk Si with H impurities, with 1040 atoms, 13328 orbitals, and a sampling of 8 k-points. The multik scheme is able to stay closer to ideal scalability for larger numbers of MPI processes. H. Time dependent DFT Time-dependent density-functional theory (TD-DFT) was first implemented into SIESTA in its real-time propagating form. It was first described in Ref. 74, and then briefly in Ref. 2. It was based on the Crank-Nicolson algorithm, by which, the effect of the evolution operator for an infinitesimal time step _U_ ˆ ( _t_ 0 + ∆ _t,t_ 0) = exp - _−iH_ <sup>ˆ</sup> ( _t_ )∆ _t_ - (5) on the wave-function coefficients matrix at a given time _t_ 0, _c_ ( _t_ 0) is approximated by _c_ ( _t_ 0) _c_ ( _t_ 0 + ∆ _t_ ) = - _S_ + _iH_ ( _t_ 0 + ∆ _t_ ) <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 - _S_ + _iH_ ( _t_ 0 + ∆ _t_ ) <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> - _−_ 1 � _S_ _−_ _iH_ ( _t_ 0) <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 a non-orthogonal basis set, as used by SIESTA. That expression is obtained from equating the first-order evolution of the coefficients forward, from _t_ 0 to _t_ 0 +∆ _t/_ 2, to the backward evolution from _t_ 0 + ∆ _t_ to the same intermediate step. It can be further simplified to - _−_ 1 � _S_ _−_ _iH_ ( _t_ 0) <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 steps per atomic motion step, if the nuclei are still significantly slower than electrons, for instance. The implementation of the Crank-Nicolson part is the same for both the fixed and moving basis. The square root and inverse square root are calculated by first computing its eigenvalues and eigenvectors, _S_ = _U EU_ <sup>†</sup> _,_ (12) where _E_ is a diagonal matrix with the eigenvalues of _S_ . And _U_ is a square matrix with the eigenvectors of _S_ as its columns. Then, _S_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> = _U E_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> _U_ <sup>†</sup> _,_ and _S_ <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>2</sup> = _U E_ <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>2</sup> _U_ <sup>†</sup> where _E_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> and _E_ <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>2</sup> are obtained by replacing diagonal elements of _E_ with their square root and inverse square root (in the latter case neglecting those eigenvalues below certain threshold value), respectively. The two-stage algorithm has been implemented in SIESTA in parallel, allowing for _k_ -point sampling and for collinear spin. The initial occupied states to be propagated are read from a file. SIESTA is prepared to run a conventional DFT calculation of whatever relevant initial state, and write a wavefunction continuation file that acts as initialization of the ulterior SIESTA run in real-time TD-DFT mode. As it stands, SIESTA evolves states defined as fully occupied; partial occupations are not currently supported. _1._ _Parallelization_ The two-step procedure described above requires matrixmatrix and matrix-scalar multiplication, matrix addition, and matrix inversion, plus the diagonalization of the overlap matrix for the Löwdin step. Since only the occupied states are propagated, the _c_ matrix is rectangular _N × N_, that is, number of propagating states _×_ number of basis functions, while _S_ and _H_ are square, _N_ _×_ _N_ . The computation of the overlap and Hamiltonian matrices is handled by pre-existing SIESTA routines, which are already parallelized and well-optimized for HPC environments <sup>69,81</sup> . The parallelization of the propagation following Eqs. (10) and (11) is done simply exploiting the MatrixSwitch library <sup>82</sup>, which allows for an abstracted manipulation of matrices, the details of parallelization, data formats, conversions etc. being taken care of underneath. In this case, MatrixSwitch is called to use the BLACS <sup>83</sup> and SCALAPACK <sup>84</sup> libraries, meaning that this part of the code is run on dense-matrix infrastructure, as already done with conventional diagonalization solvers. As for the latter, although the _H_ and _S_ matrices are sparse, the _c_ matrix is dense. Conversion between storage formats is an important consideration here. The native matrix storage format employed by SIESTA is a compressed sparse column (CSC) scheme with a one-dimensional block-cyclic distribution (1D-BCD) over MPI processes. A block-cyclic distribution is needed by BLACS and SCALAPACK package. The matrices can therefore be temporarily converted from sparse to dense using the _c_ ( _t_ 0 + ∆ _t_ ) = - _S_ + _iH_ ( _t_ 0) <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 _c_ ( _t_ 0) (7) for a smooth-enough variation of the Hamiltonian itself and a small enough ∆ _t_, thereby avoiding the self-consistency implied in propagation using Eq. 6. In Section III H 3 below, recent developments on efficient treatments of Eq. 6 beyond Eq. 7 are presented. Here we describe the parallelization and related features in the TD-DFT implementation now found in standard SIESTA releases. The implemented propagation is based on Eq. (7) (with the improvement possibilities described in Section III H 3), but proper consideration must be taken of the fact that not only the coefficients change in time, but also the basis set and the Hilbert space spanned by it when the atoms move. An analysis of the geometrical implications of this fact is presented in Ref. 75. The time-dependent Kohn-Sham equation _H|ψ⟩_ = _i∂t_ _|ψ⟩_ (8) becomes _Hc_ = _iS_ ( _∂t_ + _D_ ) _c_ (9) where _H_, _S_, and _c_ are the Hamiltonian, overlap and coefficients matrices, respectively, as before, and the _D_ matrix is the connection in the manifold given by the evolving Hilbert space <sup>75</sup>, _Dµν_ = _⟨φµ_ _|∂t_ _φν_ _⟩_, for _φµ_ and _φν_ basis functions. A way of taking such evolution into account in the discretized implementation was proposed by Tomfohr and Sankey <sup>76</sup>, and is based on a Löwdin orthonormalization. The scheme consists of two steps. First the wavefunctions are propagated using both _S_ and _H_ at time _t_ 0 using Eq. (7), but to an auxiliary coefficient matrix _c_ ˜, - _−_ 1 � _S_ _−_ _iH_ ( _t_ 0) <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 _c_ ˜( _t_ 0 + ∆ _t_ ) = - _S_ + _iH_ ( _t_ 0) <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 _c_ ( _t_ 0) _._ (10) Then, the propagation is followed by a change of basis operation (only needed if the ionic positions have changed), <u>1</u> _c_ ( _t_ 0 + ∆ _t_ ) = _S_ <sup>_−_</sup> <sup><u>1</u></sup> <u>2</u> ( _t_ 0 + ∆ _t_ ) _S_ <u>2</u> ( _t_ 0) _c_ ˜( _t_ 0 + ∆ _t_ ) _._ (11) This algorithm is unitary by construction, and so the preservation of orthonormality is guaranteed, regardless of the size of ∆ _t_ . As discussed in detail in Ref. 75, this algorithm can be shown not to be entirely consistent with the connection represented by the _D_ matrix defined above. Nevertheless, the discrepancies due to the mentioned inconsistency have been shown to be small in a series of studies using this formalism <sup>77–80</sup>, at least for low atomic velocities. The practical benefit of separating the two procedures is to perform the change of basis only when necessary, allowing for many electronic same parallel distribution; this is a very efficient operation, since no MPI communication is necessary. It should be noted that a two-dimensional (2D) BCD is known to be more efficient in terms of parallel scaling <sup>69</sup> . The conversion from 1D to 2D does however carry a heavier cost, as MPI communication is inevitable. The parallel efficiency of our implementation is therefore chiefly determined by that of the underlying SCALAPACK drivers. The matrix inversion in Eq. (10) is performed using _LU_ factorization. For the diagonalization of the overlap matrix we have implemented the option of using either a standard diagonalization approach (tridiagonal reduction followed by the implicit QR algorithm) or a divide-and-conquer algorithm as described in Ref.85. The latter is known to scale better with system size. The scaling with number of processors is very similar to the scaling of a conventional DFT SIESTA run using diagonalization as the solver option, since both procedures are run on routines of analogous scaling within the same dense-matrixalgebra library. Figure 8 shows the relative share in the total running time of the three main procedures involved: the Crank-Nicolson algorithm, the change of basis, and the calculation of the SCF Hamiltonian plus other minor processes in SIESTAsuch as building the density matrix. This was performed for a system of 5000 Ge + 1 He atoms described with a single-zeta polarized basis set. The Crank-Nicolson algorithm takes about 18% of the total time on 30 processors, which increases to 25% on 316 processors. Instead, the change of basis procedure takes about 38% of the total time on 30 processors, which decreases as the parallelization increases, reflecting its better scaling properties. The Löwdin step is the most expensive operation on all numbers of processors, which affects TD-DFT simulations (and only those steps) involving atomic motion. Crank-Nicolson Change-basis _Hscf_ + the rest 1 0 _._ 8 0 _._ 6 0 _._ 4 0 _._ 2 0 50 100 150 200 250 300 Processes FIG. 8. The relative share of the total running time for the CrankNicolson algorithm, the Löwdin step, and the rest of the program operations (including the building of the SCF Hamiltonian) for a system of 5000 Ge atoms and one He projectile, using 30-316 processors. _2._ _TD-DFT_ _Beyond_ _the_ _released_ _version_ There are many possible (and feasible) improvements on what has been described above, some of them in the pipeline. From a fundamental point of view, the Löwdin step will be replaced by another basis-changing step, in the direction of what was proposed in Ref. 75. It is needed if atoms move at velocities of around 1 atomic unit or more (1 a.u _∼_ _c/_ 137, being _c_ the speed of light). In that case the diagonalization step may be avoided (or replaced by the _N ×N_ diagonalization of the overlap matrix for the evolving states, instead of the _N_ _×_ _N_ for the basis set overlap). For fast moving atoms within Ehrenfest dynamics, there is also the need to implement correction terms to the forces related to both the change of basis and the rotation of the timedependent Hilbert space (the intrinsic curvature of the manifold). These terms are well known, <sup>86</sup> and their geometrical meaning in terms of the relevant curvature <sup>75</sup> will appear in Ref. 87. They are being tested and should be incorporated shortly to a visible branch in the open source repository, to be later merged into the trunk, and further incorporated into SIESTA releases. For efficiency, iterative inversion options will be explored replacing the present _LU_ implementation in SCALAPACK, and quite a few possibilities exist to incorporate more sophisticated algorithms to the described operations. What has been described is robust and quite transparent, but the MatrixSwitch abstraction should allow easy implementation of other techniques. _3._ _Improved_ _real-time_ _propagators_ Eq. (7) represents a fast approach of electronic propagation in real-time TD-DFT, especially suited to study systems where the perturbation of the electronic density is relatively small (e.g. optical linear response <sup>74</sup> ). If one is interested in simulating systems with heavily perturbed electronic densities by external forces (like those exerted by intense laser fields or fast atom collisions for instance), one should choose a more elaborate propagation scheme that preserves better the time-reversibility of the propagator operator. Some of the authors introduced in Ref. 79 an extrapolation algorithm to study the stopping power of prototype semiconductors. Briefly, the method uses Eq. (7) with an extrapolated Hamiltonian: Additionally, the user is given the option to divide each propagation step ∆ _t_ into _n_ sub-steps in an effort to increase the accuracy of the first-order expansion underlying the derivation <u>∆</u> _<u>t</u>_ 2 <u>∆</u> _<u>t</u>_ 2 - _−_ 1 � _S_ _−_ _iHext_ _c_ ( _t_ 0) _,_ (13) _c_ ( _t_ 0 + ∆ _t_ ) = _S_ + _iHext_ where the extrapolated Hamiltonian _Hext_ reads and _Hext_ = _H_ ( _t_ 0)+ <sup><u>1</u></sup> (14) 2 <sup>∆</sup> <sup>_H_</sup> ∆ _H_ = _H_ ( _t_ 0) _−_ _H_ ( _t_ 0 _−_ ∆ _t_ ) _._ (15) of Eq. (13). In this case, the final equation reads <u>∆</u> _<u>t</u>_ 2 _n_ <u>∆</u> _<u>t</u>_ 2 _n_ - _−_ 1 � _S_ _−_ _iHext_ <sup>_j_</sup> _c_ ( _t_ 0) _,_ (16) _c_ ( _t_ 0 + ∆ _t_ ) = with _n_ ## ∏ _j_ =1 _S_ + _iHext_ <sup>_j_</sup> _ext_ <sup>_j_</sup> <sup>=</sup> <sup>_H_</sup> <sup>(</sup> <sup>_t_</sup> 0 <sup>)+</sup> <sup><u>1</u></sup> _n_ (17) <sup><u>1</u></sup> 2 <sup>)∆</sup> <sup>_H_</sup> _H_ <sup>_j_</sup> <sup><u>1</u></sup> _n_ <sup>(</sup> <sup>_j −_</sup> <sup><u>1</u></sup> 2 Recently we introduced a third algorithm for propagation. Leaving aside in this description the complications associated with the possible subdivision of each time-step, the new algorithm is based on a two-step scheme where the electronic wavefunction is first propagated until half of the step, ∆ _t/_ 2, using extrapolation as in Eq. (13), <u>∆</u> _<u>t</u>_ 4 _c_ ( _t_ 0 + <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> _S_ + _iHext_ 2 <sup>) =</sup> _c_ ( _t_ 0) _,_ (18) <u>∆</u> _<u>t</u>_ 4 - _−_ 1 � _S_ _−_ _iHext_ then an explicit calculation of the half-step Hamiltonian, _H_ ( _t_ 0 + ∆ _t/_ 2), is performed using the coefficients _c_ ( _t_ 0 + ∆ _t/_ 2) obtained from Eq. (18). In a second step, the coefficients are evolved from the beginning of the step, _c_ ( _t_ 0), to the full step, _c_ ( _t_ 0 + ∆ _t_ ), using the half-step Hamiltonian: - _−_ 1 � _S_ _−_ _iH_ ( _t_ 0 + <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 <sup>)</sup> <sup><u>∆</u></sup> 2 <sup>_<u>t</u>_</sup> code <sup>89</sup> in the case of a double ionization of a uracil molecule in the gas phase <sup>90,91</sup> . Simulations of this type provide access to the ultrafast electronic dynamics that occurs at the atto and femto time-scales in the ionized genetic material (DNA and RNA) as a consequence of collisions with proton or carbon beams <sup>92</sup> . This particular simulation addresses the fragmentation pattern of a doubly-ionized uracil molecule (its deepest Kohn-Sham orbital is empty) using the BLYP density functional <sup>93,94</sup> . The technical details for the CPMD simulation used as a reference can be found in Refs. 90 and 91. SIESTA calculations using the same density functional and the integrators described above use a DZP basis set. As can be seen in Fig. 9 the standard SIESTA implementation cannot properly deal with such a highly excited system. The extrapolation scheme in Eq. (13) already provides a large improvement and gives an energy conservation similar to the CPMD simulations in Refs. 90 and 91. Finally, the two-step algorithm further improves the energy conservation. For smaller time steps the improvements given by the two-step scheme are even more clear, as shown in Fig. 10. FIG. 10. Energy drift comparison as in Fig. 9, for time steps ∆ _t_ = 0 _._ 24 and 1.2 attoseconds. _4._ _Electronic_ _stopping_ _of_ _atomic_ _projectiles_ Let us finish the TD-DFT section with a brief mention of its successful application to the problem of simulating the excitation of the electrons of a condensed matter system when traversed by a high-energy atomic projectile (so-called electronic stopping, since the electrons slow down the projectile). This physical problem is very relevant to questions of interest to the nuclear and aerospace industries, as well as to the treatment of cancer. In spite of its great relevance and of its having been researched since Rutherford’s experiment in 1911, the understanding of electronic stopping processes has been essentially limited to either weak effects in the linear-response regime or beyond linear but only for target systems close to the homogeneous electron liquid (jellium). An earlier version of the TD-DFT implementation in _c_ ( _t_ 0 +∆ _t_ ) = - _S_ + _iH_ ( _t_ 0 + <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 <sup>)</sup> <sup><u>∆</u></sup> 2 <sup>_<u>t</u>_</sup> _c_ ( _t_ 0) (19) This approach, although increasing the CPU time by around _∼_ 35% as compared to the two previous schemes, allows for better energy conservation for highly perturbed systems where the Kohn-Sham potential heavily varies in time. FIG. 9. Energy drift in an energy conserving TDDFT simulation of ionized-core uracil for the three propagation methods described here, as compared with the CPMD implementation, for a time step of ∆ _t_ = 0 _._ 24 attoseconds (0.01 atomic units). In order to provide a more quantitative comparison between the three schemes, namely, the default propagation of Eq. (7), the extrapolation propagation of Eq. (13) and the two-step propagation of Eqs. (18) and (19), we compare their performance versus the P-TDDFT implementation <sup>88</sup> of the CPMD <sup>_i_</sup> _αβ_ <sup>=</sup> SIESTA <sup>74</sup>, allowed the first explicit first-principles simulation of electronic stopping, for protons and antiprotons in LiF, a wide-band-gap insulator, which was quite successful. <sup>95</sup> The difference of sign between protons and antiprotons produces a significant difference in the stopping power (rate of energy excitation) beyond the linear-response paradigm (the Barkas effect), and the insulating character of the target makes it inaccessible to the jellium paradigm. The success stimulated further studies along this line <sup>77–80</sup> using improved versions of TD-DFT in SIESTA, as described here. Fig. 11 displays the electron deformation density around a proton displacing in a bulk Ge target. <sup>79</sup> They were also followed by analogous simulations using plane-wave codes by an increasing number of groups (for a review see Ref. 96), although the latter calculations do demand considerably larger computational resources. FIG. 11. Electron deformation density isosurfaces (blue positive, red negative) for a proton displacing leftwards, at a velocity of 1 a.u. in the bulk of a Ge crystal. I. Density Functional Perturbation Theory The original implementation of Density Functional Perturbation Theory, as a post-processing and independent code (LINRES <sup>97</sup> ) has been recently merged into SIESTA. It allows to compute the phonon dispersions using a supercell approach (Γ-point phonons). Both LDA and GGA functionals can be used (through LibXC). Calculation of the perturbed Hamiltonian and overlap matrix elements follows the same methodology as for ground-state calculations, with similar computational costs, which are comparable to those obtained with a finite difference approach. Figure 12 shows a comparison between both methods for model fullerene-type systems of different sizes. The solution of the Sternheimer equation, and calculation of the perturbed density matrix is the most demanding step. It requires the perturbed coefficients of the electronic wavefunctions to be obtained, where _Aij_ = ∑ _αβ_ _εi−αβε_ _j_ <sup>_ciβ_</sup> and ∆ <sup>_i_</sup> _αβ_ <sup>=</sup> - _∂_ _Hαβ −_ _εi∂_ _Sαβ_ �. The change in the density matrix is then given by where _Aij_ = ∑ _αβ_ _c_ <sup>_∗_</sup> _<u>jα</u>_ <sup>_∗_</sup> _<u>jα</u>_ <sup>∆</sup> <sup>_i_</sup> _<u>α</u>_ <sup>∆</sup> <sup>_i_</sup> _<u>αβ</u>_ <sup>_ciβ_</sup> and ∆ <sup>_i_</sup> _εi−ε_ _j_ - _∂_ _Hαβ −_ _εi∂_ _Sαβ_ <sup>_∗_</sup> _iµ_ <sup>_∂_</sup> <sup>_ciν_</sup> <sup>+</sup> <sup>_∂_</sup> <sup>_nic∗_</sup> _i_ <sup>_∗_</sup> _iµ_ <sup>_ciν_</sup> _∂ρµν_ = = = _−_ _all_ ## ∑ _i_ _occ_ ## ∑ _ij_ - _ni∂_ _c_ <sup>_∗_</sup> _i_ _c_ <sup>_∗_</sup> _iµ_ <sup>_ciν_</sup> <sup>+</sup> <sup>_nic∗_</sup> _i_ _c_ <sup>_∗_</sup> _jα_ <sup>_∂_</sup> <sup>_S_</sup> _αβ_ <sup>_c_</sup> _iβ_ <sup>+</sup> - = _all_ ## ∑ _i_ <sup>_∗_</sup> _jµ_ <sup>_ciν_</sup> <sup>+</sup> <sup>_c∗_</sup> _i_ <sup>_∗_</sup> _iµ_ <sup>_Aijc_</sup> <sup>_jν_</sup> _all_ ## ∑ _i_ _all_ ## ∑ _∂_ _nic_ <sup>_∗_</sup> _iµ_ <sup>_ciν_</sup> <sup>=</sup> _∂_ _nic_ <sup>_∗_</sup> _i_ _all_ ## ∑ _j_ _all_ ## ∑ _unocc_ ## ∑ _j_ - _A_ <sup>_∗_</sup> _ij_ <sup>_∗_</sup> _ij_ <sup>_c∗_</sup> _j_ <sup>_∗_</sup> _ij_ <sup>_c∗_</sup> _jµ_ - + _all_ ## ∑ _i_ _ni_ _ni_ - _A_ <sup>_∗_</sup> _ij_ <sup>_∗_</sup> _jµ_ <sup>_ciν_</sup> <sup>+</sup> <sup>_c∗_</sup> _i_ <sup>_∗_</sup> _iµ_ <sup>_Aijc jν_</sup> ## n jc ∗ iµ c jν ∑ _αβ_ _∂_ _nic_ <sup>_∗_</sup> _iµ_ <sup>_ciν_</sup> (21) _all_ ## ∑ _i_ _ciβ_ _c_ _jµ_ = ∑ _j_ - _∂_ _Hαβ_ _−_ _εi∂_ _Sαβ_ _εi −_ _ε_ _j_ _∂_ _ciµ_ = ∑ _j_ and a similar expression applies to the change in the energydensity matrix. The change in the occupation of the electronic state can be computed from the change in its eigenenergy _εi_ = ∑ _αβ ciα_ ∆ <sup>_i_</sup> _αβ_ <sup>_ciβ_</sup> <sup>and it is relevant in metals, for states close to</sup> the Fermi level. The Fermi level can also be shifted by the perturbation, and it can be determined through conservation of the number of electrons in the system, _Ne_ . FIG. 12. (Left panel): Comparison of the performance of the new DFPT approach with the conventional finite-differences method in SIESTA. The time required to compute a whole row of the dynamical matrix (derivative of the forces on all atoms when one atom is displaced in _x,_ _y,_ _z_ directions) is plotted as a function of the number of orbitals in carbon fullerenes of different sizes. (Right panel) Performance of the alternative algorithm described in the text (based on Eq. (22), blue circles), as compared to the original implementation based on Eq. (20) (black diamonds). The initialization (computing Ξ and Ω) is the most time-consuming step, although it has to be performed only once, and can be used for all perturbations (each atomic displacement). The new algorithm becomes more efficient for system sizes larger than the threshold value (green dashed line). . Obtaining _∂ρµν_ is the most computationally expensive part of the code. While the computation of _∂_ _Hµν_ basically has linear scaling with the system size, the matrix _Aij_ scales as ## j ∑ αβ _c_ <sup>_∗_</sup> _jα_ _Aijc_ _jµ_ (20) _αβ_ _Nb_ <sup>2</sup> for _N_ e _≥_ 1 electrodes. _Nb_ <sup>2</sup> <sup>_· M_</sup> <sup>,</sup> <sup>where</sup> <sup>_Nb_</sup> <sup>is</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>basis</sup> <sup>functions,</sup> <sup>and</sup> <sup>_M_</sup> <sup>is</sup> the maximum number of neighbour orbitals for any orbital in the system. Equation (20) then requires _Nb_ <sup>3</sup> <sup>operations</sup> <sup>for</sup> each atomic perturbation, and the change in the density matrix requires _Nb_ <sup>2</sup> <sup>_· M_</sup> <sup>loops.</sup> <sup>An</sup> <sup>alternative</sup> <sup>approach</sup> <sup>that</sup> <sup>offers</sup> <sup>a</sup> better computational scaling for systems with a gap has also <sup>e</sup> eq <sup>_≡_</sup> <sup>_<u>i</u>_</sup> 2 _π_ <sup>e</sup> e <sup>_′_</sup> <sup>_≡_</sup> <sup><u>1</u></sup> _ρ_ = _ρ_ <sup>e</sup> eq neq <sup>e</sup> <sup>_,_</sup> (23) ## e eq + ∑ <sup>_̸_</sup> ∆ <sup>e</sup> e e <sup>_′̸_</sup> =e <sup>e</sup> e <sup>_′_</sup> <sup>_≡_</sup> <sup>_ρ_</sup> <sup>e</sup> _nF,_ e( _ε_ ) _e_ <sup>_−i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> _,_ (24) _ρ_ <sup>e</sup> 2 _π_ �� BZ <sup>d</sup> <sup>k</sup> <sup>d</sup> <sup>_ε_</sup> - Gk ( _ε_ ) _−_ G <sup>†</sup> k <sup>†</sup> k <sup>(</sup> <sup>_ε_</sup> <sup>)</sup> been tested. If we define Ξ <sup>_i_</sup> _αβ_ <sup>= ∑</sup> <sup>_j_</sup> _c_ <sup>_∗_</sup> _<u>jα</u>_ _c_ <sup>_∗_</sup> _<u>jα</u>_ <sup>_c_</sup> _<u>jβ</u>_ _εi−ε_ _j_ <sup>, we obtain:</sup> ∆ <sup>e</sup> e _nF,_ e _′_ ( _ε_ ) _−_ _nF,_ e( _ε_ ) - _,_ 2 _π_ �� BZ <sup>d</sup> <sup>k</sup> <sup>d</sup> <sup>_ε A_</sup> <sup>e</sup> <sup>_′,_</sup> <sup>k</sup> <sup>(</sup> <sup>_ε_</sup> <sup>)</sup> <sup>_e−i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> <sup>�</sup> (25) _αβ_ _ciβ_ = ∑ _β_ where _ρ_ <sup>e</sup> where _ρ_ <sup>e</sup> eq <sup>is the equilibrium density matrix for electrode e,</sup> <sup>_G_</sup> is the retarded Green’s function matrix, and ∆ <sup>e</sup> e <sup>_′_</sup> <sup>is</sup> <sup>the</sup> <sup>cor-</sup> rection to the equilibrium part. The spectral function _A_ e = GΓ e G <sup>†</sup> and carries electrons from the electrode e. Finally, _nF,_ e is the Fermi function with chemical potential denoted by the electrode e. It is evident that the Fermi functions depend on the chemical potential _and_ the electronic temperature in the associated electrodes. By using different temperatures for each electrode one can calculate thermoelectric effects due to different reservoirs having separate electronic temperatures self-consistently. We note that TRANSIESTA uses a multiple complex energycontour algorithm to more accurately describe the total density _ρ_ . It does this by weighing each _ρ_ <sup>e</sup> neq <sup>using</sup> <sup>a</sup> <sup>simple</sup> scheme <sup>98</sup> (Sec. 3.2). So far, few multi-electrode calculations have been performed so the importance of the multiple contour algorithm is currently unknown <sup>100–102</sup> . However, for the well-known 2-electrode problem it allows smoother convergence properties <sup>15</sup> . _∂_ _ciµ_ = ∑ _β_ ## ∑ _α_ Ξ <sup>_i_</sup> <sup>_i_</sup> _αµ_ <sup>∆</sup> <sup>_i_</sup> Λ <sup>_i_</sup> _µβ_ <sup>_ciβ_</sup> (22) Λ <sup>_i_</sup> where Λ <sup>_i_</sup> <sup>_i_</sup> _µν_ <sup>= ∑</sup> _η_ <sup>Ξ</sup> _ηµ_ <sup>_i_</sup> _ηµ_ <sup>_i_</sup> <sup>∆</sup> <sup>_i_</sup> where Λ <sup>_i_</sup> _µν_ <sup>= ∑</sup> _η_ <sup>Ξ</sup> _ηµ_ <sup>_i_</sup> <sup>∆</sup> <sup>_i_</sup> _ην_ <sup>is</sup> <sup>a</sup> <sup>smooth</sup> <sup>function</sup> <sup>of</sup> <sup>_εi_</sup> <sup>and</sup> <sup>can</sup> be described by a Chebyshev’s expansion with a few selected energy points and their corresponding weights: <sup>(</sup> _αβ_ <sup>_l_</sup> <sup>)</sup> <sup>_ciβ_</sup> ## ω ˜ l,i ∑ _αβ_ Ξ <sup>(</sup> _αµ_ <sup>_l_</sup> <sup>)</sup> _∂_ _ciµ_ = ∑ _l_ ## ω ˜ l,i ∑ _β_ <sup>(</sup> _αµ_ <sup>_l_</sup> <sup>)</sup> <sup>∆(</sup> _αβ_ <sup>_l_</sup> <sup>)</sup> Λ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> _µβ_ <sup>_ciβ_</sup> <sup>= ∑</sup> _l_ Notice that Ξ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> _αβ_ <sup>is perturbation-independent,</sup> <sup>and could be</sup> computed only once and used for all the possible atomic displacements, with a cost that scales as _Nb_ <sup>2</sup> <sup>_· Nl_</sup> <sup>,</sup> <sup>with</sup> <sup>_Nl_</sup> <sup>being</sup> the number of Chebyshev’ polynomials. The change in the electronic density is then given by We note that TRANSIESTA uses a multiple complex energycontour algorithm to more accurately describe the total density _ρ_ . It does this by weighing each _ρ_ <sup>e</sup> neq <sup>using</sup> <sup>a</sup> <sup>simple</sup> _c_ <sup>_∗_</sup> _iµ_ <sup>_ω_</sup> <sup>˜</sup> <sup>_l,iciη_</sup> <sup>=</sup> Λ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> _νη_ ## + ∂ρµν ∼ ∑ _i_ ## ∑ _lη_ ## c ∗ iµ ∂ ciν = ∑ _lη_ _lηγ_ _c_ <sup>_∗_</sup> _i_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> ## νη ∑ _i_ Λ <sup>(</sup> _νη_ <sup>_l_</sup> <sup>)</sup> ## ( ηµ l ) = ∑ <sup>(</sup> _νη_ <sup>_l_</sup> <sup>)</sup> <sup>Ω(</sup> _ηµ_ <sup>_l_</sup> <sup>)</sup> <sup>(</sup> _γη_ <sup>_l_</sup> <sup>)</sup> <sup>Ω(</sup> _ηµ_ <sup>_l_</sup> <sup>)</sup> _ηµ_ Ξ <sup>(</sup> _γν_ <sup>_l_</sup> <sup>)</sup> <sup>(</sup> _γν_ <sup>_l_</sup> <sup>)∆(</sup> _γη_ <sup>_l_</sup> <sup>)</sup> where only the central term requires self-consistency, and Ω <sup>(</sup> _αβ_ <sup>_i_</sup> <sup>)</sup> <sup>= ∑</sup> <sup>_j c∗_</sup> _jα_ <sup>_ω_</sup> <sup>˜</sup> <sup>_i,_</sup> <sup>_jc_</sup> _jβ_ <sup>.</sup> <sup>Although computing the change in the</sup> density scales as _O_ ( _Nb_ <sup>2</sup> <sup>_M_</sup> <sup>),</sup> <sup>most</sup> <sup>of</sup> <sup>the</sup> <sup>computational</sup> <sup>cost</sup> is required in an initialization step to obtain Ξ and Ω that are perturbation-independent, enabling the extraction of the whole dynamical matrix with _O_ ( _Nb_ <sup>3)</sup> <sup>operations.</sup> <sup>A</sup> <sup>prelimi-</sup> nary serial calculation for C _n_ fullerenes shows that the threshold system size for the new algorithm to become more efficient than the original implementation lies at around 650 atoms. This value can be conveniently reduced by an efficient parallelization of the initialization step. J. TranSiesta The transport code TRANSIESTA, initially developed by Brandbyge and co-workers <sup>15</sup>, enables open-boundary condition calculations by extending periodic regions with bulk electrodes. It is based on the non-equilibrium Green function formalism which allows biased calculations. TRANSIESTA has been completely re-written and now uses advanced inversion algorithms, enables _N_ e _≥_ 1 electrodes, allows thermo-electric calculations, performing real-space calculations (without k -points) and adds phonon transport calculations using the Hessian <sup>98,99</sup>, The non-equilibrium Green function formalism can be summarized in the following equations which are generalized In the latest TRANSIESTA we implement 3 different inversion algorithms; _i_ ) a block-tri-diagonal algorithm (BTD), _ii_ ) MUMPS sparse algorithm and _iii_ ) a dense algorithm (LAPACK). The performance of these (speedup compared to TRANSIESTA 3.1) is summarized in Fig. 13. Since the BTD algorithm is linear scaling for constant width it can easily outperform the dense algorithm by a factor 100. This performance gain is also important for the memory footprint which enables even larger systems. The BTD algorithm favors long and narrow systems, but uses less memory for all types of systems. A recent addition to the TRANSIESTA package is the use of real space self-energy terms <sup>99,103</sup> . These self-energies are semi-infinite in more than 1 direction and can thus be used as surrounding electrodes, for e.g. single defects in 2D or 3D structures or line defects. Real space self-energies are superior to BZ integrated quantities since they correctly describe the infinite bulk by leaving out image couplings and also removes the need for k -point sampling. When taking into account the complete procedure for a TRANSIESTA calculation the real space self-energies provide an increased throughput since the SCF k -point sampling and the subsequent k -point sampled transport calculation are completely removed <sup>99</sup> . Additionally, TBTRANS enables calculations of user defined tight-binding models and also interfaces to phonon transport using the Hessian matrix (program named PHTRANS). The phonon Green function is similar to the electron Gq ( _ω_ ) = �( _ω_ <sup>2</sup> + _iη_ <sup>2</sup> ) I _−_ Dq _−_ Σq ( _ω_ )� _−_ 1 _,_ (26) 100 90 0 _._ 75 V 80 70 60 50 40 30 20 10 0 1 _,_ 500 3 _,_ 000 4 _,_ 500 6 _,_ 000 # of orbitals a) LAPACK MUMPS BTD b) 60 0 V 50 40 30 20 10 0 1 _,_ 500 3 _,_ 000 4 _,_ 500 6 _,_ 000 # of orbitals FIG. 13. Performance characterization of TRANSIESTA using a pristine graphene cell (24 atoms wide). Speedup for (a) EGF and (b) NEGF calculations of pristine graphene compared against the dense implementation. The BTD method exhibits more than 40 times the speed of the LAPACK implementation for the largest size. MUMPS gains speed after 5 _,_ 000 orbitals. where D is the Hessian and _ω_ the phonon frequency. Finally, inelastic transport involving phonon-excitation can be treated with perturbation theory in a postprocessing step with the INELASTICA package <sup>104,105</sup> . K. Wannierization The interface between SIESTA and WANNIER90 <sup>106,107</sup> (version 3.0.0) has been implemented, so the latter code can be called directly from SIESTA as a library, or used as a postprocessing tool. WANNIER90 is an open-source code for generating maximally-localized Wannier functions <sup>108,109</sup> and using them to compute advanced electronic properties of materials with high efficiency and accuracy. The Wannier functions can be considered as a unitary transformation (more precisely, a Fourier transformation) of a set of Bloch functions associated with a given manifold of bands. We can view the Bloch and Wannier functions as providing two different basis sets describing the same manifold of states associated with the electron band manifold in question. The Wannier functions display a number of very interesting properties. <sup>110</sup> Among them, we can enumerate: ( _i_ ) they are localized in real space, each of them concentrated around a given unit cell (see Fig. 14); ( _ii_ ) Wannier functions centered on different cells are translational images of one another; ( _iii_ ) they form an orthonormal basis set; ( _iv_ ) they span the same subspace of the Hilbert space as is spanned by the Bloch functions from which they are constructed. Because of the gauge freedom in the definition of the phases of the Bloch functions, the Wannier functions are not unique. However, the location of their centers in the home unit cell is unique to within a lattice vector, i.e. they are gauge invariant. <sup>110</sup> The high degree of arbitrariness in the definition of the phases can be exploited to produce unitary transformation matrices between Bloch and Wannier functions in such a way that a localization functional that measures the sum of the quadratic spreads of the Wannier functions in the home unit cell around their centers is minimized. <sup>108</sup> In a practical procedure to construct Wannier functions, a set of localized functions is used to generate an initial guess for the <u>un</u> ~~itary~~ transformations. These localized f ~~un~~ ctions should be ~~ro~~ <u>ughly</u> located on sites where Wannier f ~~<u>un</u>~~ ctions are e <mark>xp</mark> ect ~~<u>ed</u>~~ <u><mark>to</mark></u> be centered and have appropriate angular cha <mark>ract</mark> er. In o ~~ur im~~ plementation, we can directly use t ~~he~~ loca <mark>lized</mark> atomic ~~o~~ rbitals of the basis, or the hydrogenoid loc <mark>alize</mark> d functions (including hybrid orbitals), as suggested i ~~n~~ <mark>W</mark> ANNIER90. The Wannier functions provide an exact tight-binding representation of the dispersion of the Bloch bands. This property will be exploited to extract in an automatic and user blind way the parameters required to run multiscale simulations as described in Sec. III L. FIG. 14. Maximally localized Wannier functions (MLWFs) for graphene. Top panel displays the character of _σ_ -bonded combinations of _sp_ <sup>2</sup> hybrids. Bottom panel displays the _π_ character of the bands with weight on the _pz_ orbitals. Isosurfaces of different colors correspond to two opposite values for the amplitudes of the real-valued MLWFs. Yellow spheres represent the position of the C atoms, while smaller blue spheres mark the center of the bonding. Currently, WANNIER90 can be used as a post-processing tool, or it can be directly called from SIESTA in a library mode. Within this last approach, the unitary matrices that transform the Bloch states into Wannier functions are directly accessible in SIESTA, allowing a clear and straightforward interconnection between the two alternatives to span the Hilbert space. Besides, the use of Wannier functions opens the door to a wide range of potential applications. Already implemented in SIESTA is the possibility of performing SCF convergence under the constraint of a rigid shift on the energy associated with a given Wannier function to be used to calculate electronelectron interactions for multiscale simulations as detailed in Sec. III L. The interface with the self-consistent dynamical mean field theory DMFTWDFT code <sup>111</sup> using MLWF has been already implemented <sup>112</sup> . Also, alternative approaches to compute the exact Hartree-Fock exchange in extended insulating systems with a linear scaling computational cost us ing MLWFs have been proposed, being another interesting research line for the future. <sup>113</sup> L. Multiscale methods Density Functional Theory can be used as the basis for parameterized multiscale methods, that can be used to carry out simulations including tens or even hundreds of thousands of atoms. <sup>114</sup> First-principles methods are used to produce detailed models that are subsequently used to predict properties that require large-scale simulations. The models are created for specific materials and their accuracy can be systematically improved to converge towards DFT precision. Given the dependence on first-principles, we refer to these methods as _second-principles_ _DFT_ (SPDFT) and are run on an independent code called SCALE-UP. <sup>114</sup> SPDFT is based on a division of the total electronic density, _n_ ( _r⃗_ ), into a reference ( _n_ 0( _r⃗_ )) and a deformation ( _δ_ _n_ ( _r⃗_ )) contributions, _n_ ( _r⃗_ ) = _n_ 0( _r⃗_ )+ _δ_ _n_ ( _r⃗_ ) _,_ (27) where _δ_ _n_ ( _r⃗_ ) is considered as a small perturbation with respect to _n_ 0( _r⃗_ ) that, in non-magnetic cases, represents the ground state of the system <sup>114</sup> . This division is then used <sup>114</sup> to expand the DFT energy with _δ_ _n_ finding that the zeroth order term, _E_ <sup>(0)</sup>, corresponds with the full DFT energy for the reference density. The corrections to this reference energy only depend on _δ_ _n_ (and parametrically on _n_ 0) which, given its smallness, can be efficiently calculated leading to a fast and accurate approximation of the full DFT energy. The expansion is usually taken to second-order, _E ≈_ _E_ <sup>(0)</sup> + _E_ <sup>(1)</sup> + _E_ <sup>(2)</sup> + _...,_ (28) resulting in a stationary problem that is equivalent to HartreeFock with the important distinction that the interactions are _screened_ by the exchange-correlation potential. In order to keep _δ_ _n_ small the application of the method is restricted to problems where atomic bonds are not created or destroyed, i.e. to processes that display an invariant bond topology. The _E_ <sup>(0)</sup> term represents the exact DFT energy for the reference density. We represent it for a variety of geometries with an accurate force-field <sup>115</sup> that allows for fast evaluation. The _E_ <sup>(1)</sup> and _E_ <sup>(2)</sup> terms account for the changes in the electronic structure that are represented by geometry-dependent Wannier functions. Under this basis _E_ <sup>(1)</sup> becomes a tight-binding model while _E_ <sup>(2)</sup> represents electron-electron interactions. The interconnection between the first (SIESTA) and the second (SCALE-UP) principles simulations is carried out through a python script, MODELMAKER. Taking a few cutoff distances MODELMAKER is able to produce a model’s terms and automatically carry out DFT simulations with SIESTA to determine the force field, a Wannier Hamiltonian to represent the bands, electron-lattice terms to account how the bands change with geometry and electron-electron interactions to describe, for example, magnetism. While, so far, few publications with SPDFT methods include explicit treatment of electronic degrees of freedom, the lattice part has successfully been used in several applications. One of the main fields of research has been thermal conductivity in perovskites. In particular it was employed to study the electrophononic coupling in SrTiO3 <sup>116</sup> and PbTiO3 <sup>117</sup> and the proposal of a thermal switch in PbTiO3. <sup>118</sup> It has also been used to study the competition between various ferroelectric domain structures in PbTiO3/SrTiO3 superlattices as a function of strain. <sup>119</sup> As a result it was found that tensile strains lead to the appearance of chiral ferroelectric vortices while ferroelectric skyrmions were predicted and experimentally observed for more compressive strain values. <sup>119</sup> The calculated dielectric properties of these superlattices <sup>120</sup> are in very good agreement with measured values and show very large electric susceptibility consistent with regions of negative, static electric permittivity situated at the core of the vortices and the PbTiO3/SrTiO3 interfaces. M. Scripting and integration in external frameworks An ongoing trend in many areas of computational science is to move away from rigid and monolithic codes, favoring instead a more flexible approach in which the internal functionality of a program is somehow exposed to the outside world. If done in a proper and well-documented way, this can serve to enhance the interoperability of codes with different functionalities, playing to the relative strengths of each, and/or to implement new functionalities by combining the available basic blocks. In SIESTA we have followed two different but complementary routes to these ends: the development of an internal scripting framework based on the Lua language, which enables new functionality without code recompilation, and the implementation of a formal interface to the AiiDA platform. _1._ _Lua_ _interface_ Lua <sup>121</sup> is an easy-to-learn and fast scripting language built for embedding. It is very lightweight (its memory footprint is less than 300kB), and provides very simple ways to interface to the data structures and routines of a host program. A Lua script, interpreted by the Lua interpreter embedded in the program, can then control the flow of execution and the data. Different user-level scripts can implement new functionalities, _without recompilation_ of the host code. The strategy we have followed in SIESTA is based on handling control to the Lua interpreter at specific relevant points in the program flow (e.g. at the beginning of a geometry step, at the end of a scf step, etc). Lua scripts implement handlers appropriate to the point they want to hook into, and can request access to specific data structures. For example, a script intended to implement a better scf mixing algorithm would be executed after every scf step, inspecting the convergence data, and changing mixing parameters or schemes, as appropriate. As another example, convergence checks over mesh-cutoffs and k -point sampling can be performed automatically. The above mixing scenario exemplifies an important area of usefulness of the approach: the prototyping in Lua, (followed eventually by a full implementation), of new ideas and algorithms. We have implemented a number of custom molecular dynamics modes, geometry relaxation algorithms, and advanced optimization schemes, in a pure Lua library FLOS <sup>122</sup> . The code in the library can be re-used, or taken as starting point for other implementations by users. These user-level scripts can in turn be shared, opening the way to the development of new functionality with faster turnaround that the traditional approach that needs a careful integration into the program’s code base. As a specific showcase of the power of the Lua embedding, we have developed a number of variations of the nudgedelastic band method (NEB) <sup>123,124</sup> for transition-state search. Previously proposed implementations in SIESTA involved significant, hard to maintain code changes, and did not make into the mainstream version. With Lua, we have been able to implement, non-intrusively, not only the standard algorithm, but a Double Nudged Elastic Band (DNEB) <sup>125</sup> variation, and also another version which treats atomic coordinates and lattice variables on an equal footing (the variable-cell NEB, or VC-NEB, method <sup>126</sup> ). The integration of Lua functionality in SIESTA has been made possible by the development of an intermediate layer, FLOOK <sup>127</sup>, (for “fortran-Lua-hook”), which provides wrappers for access to Fortran data structures and subroutines. _2._ _AiiDA_ _plugins_ _and_ _workflows_ The AiiDA framework <sup>128–130</sup> provides support for highthroughput computations in materials science, keeping full provenance of the calculations and facilitating data handling and sharing. The framework is open-source, written in Python, and designed to support arbitrary codes via a plugin interface. A plugin for SIESTA has been implemented and is distributed as the open-source package `aiida-siesta` <sup>131</sup> . The plugin provides the basic operations of preparing the input files for a calculation using AiiDA-specific input objects, and parsing the results and generating AiiDA output objects. The AiiDA data are stored in a graph database that keeps a permanent record of the inputs and outputs of the calculation, and is fully searchable for, e.g. data analytics purposes. AiiDA also provides robust support for the creation of workflows that incorporate all the necessary steps in the calculation of potentially complex properties, together with the proper heuristics and fail-safe features. The `aiida-siesta` package provides a base workflow and a few workflows for standard materials properties, such as band structures. Fig. 15 shows the execution graph of a workflow designed to generate a synthetic STM image from a given structure. Work is ongoing to implement more complex ones. In addition to an interface to the computational capabilities of the SIESTA code via the plugin and workflows, the `aiida-siesta` package also provides an implementation of basic objects representing pseudopotential files, notably one for PSML. Families of pseudopotentials can be uploaded to an AiiDA database and shared via the provided mechanisms for data export and import, facilitating the interoperability of STM image of benzene molecule FIG. 15. Automatically generated graph for the execution of an AiiDA workflow for simulation of STM images. different codes. N. Utilities for post-processing and supplementary features SIESTA offers several features beyond the core functionality of solving the electronic structure problem and performing optional geometry relaxations and molecular dynamics runs. It is worth noting in particular that the atomic character of the basis set enables the use of a very intuitive suite of analysis tools, which take advantage of the fact that most of the concepts relating to chemical bonding use the language of atomic orbitals. The (partial) density of states, atomic and orbital populations, and other useful output can be obtained directly from the program. The SIESTA distribution includes also several tools in the `Util` directory for band-structure and wavefunction plotting, bonding analysis, etc. Beyond these, special tool packages that implement a specific feature that extends the functionality of the main program, or that provide extra options for visualization or post-processing in general, are available in alternate distribution points. We describe in what follows the most relevant developments. _1._ _Updates_ _to_ _core_ _utilities_ A number of improvements, enhancements, and additions have been made to the core utilities shipped with the SIESTA distribution. There is now a “fat-bands” feature, by which bands can be decorated with information about the relative weight of given orbitals in each state. The wave-function-related analysis tools have been extended to the non-collinear and spinorbit case. This includes the COOP/COHP bonding analysis, band-structures, and a new tool spin-texture calculation. There have been also improvements to band-structure plotting CREATE Str (3148) code protocol Code (2845)'plstm-4.0' stm_code StructureData (3149)CH CREATE WorkCalculation (3150) CREATE 'siesta-4.0-new'Code (1603) CREATE CREATE CREATE structure CREATE ParameterData (3153) output_structure ParameterData (3154) ParameterData (3156) ParameterData (3157) WorkCalculation (3158) CALL Bool (3151) Int (3152) 2x2x2 (+0.0,0.0,0.0)KpointsData (3155) parameters basis settings options clean_workdir max_iterations kpoints stm_array kpoints remote_folder output_structure output_parameters retrieved CALL SiestaCalculation (3162) FINISHED output_structure output_parameters retrieved output_array remote_folder StructureData (3166)CH ParameterData (3165) FolderData (3164) ParameterData (3173) ArrayData (3167) output_parameters RemoteData (3171) RemoteData (3163) parent_calc_folder STMCalculation (3170) FINISHED remote_folder retrieved FolderData (3172) CALL stm_array ArrayData (3174) utilities and to the visualization of charge densities, potentials, and other magnitudes represented in a real-space grid. A band unfolding utility has been added. Based on the Fourier decomposition of the Bloch wave functions, it allows to perform a “full unfolding” even for non-periodic systems (e. g. liquids) calculated with a large simulation cell. By refolding the fully unfolded bands, from the reciprocal supercell of a perturbed or defective crystal, into the reciprocal unit cell of the primitive crystal, one recovers the conventional “unfolded” bands <sup>132</sup> . _2._ _sisl_ SISL is a Python toolbox that was initially conceived to handle and manipulate SIESTA/TRANSIESTA output <sup>103</sup> . It has since been extended to support other DFT codes, with the aim of offering equivalent operations for them. By reading the LCAO outputs from SIESTA one can postprocess the Hamiltonian and calculate e.g. Brillouin zone integrated DOS, wave functions expanded on grids, eigenvalues, band velocities and many more. SISL can process nearly all the SIESTA output files. In particular, it is also able to post-process data on the real-space grid. Its command line interface allows data format changes, e.g. conversion of SIESTA `XV` files to `xyz` / `xsf` files or SIESTA binary grid data ( `VH`, `VT`, ... ) to `cube` / `xsf` files. As it can process density matrices from SIESTA, one can also use SISL to prepare an input electronic-structure for new calculations, which may be helpful to reduce initial SCF steps. SISL also allows creation of custom tight-binding models (both orthogonal and non-orthogonal), and since it extracts the DFT Hamiltonian matrix one can manipulate the Hamiltonian to retain certain band-structure features and thus perform large-scale simulations <sup>133</sup> . This allows calculating far-field currents using reduced basis-sets with very little loss of accuracy. The Atomic Simulation Environment (ASE) <sup>134</sup> and SISL have a certain degree of overlap in terms of geometry handling functionality. One can easily convert to and from ASE objects in SISL, thus allowing seamless interaction. _3._ _Other_ _post-processing_ _and_ _visualization_ _utilities_ The body of utilities contributed by non-core developers and other SIESTA users has continued to expand. In particular, we feature in this section two suites of utilities, one dealing with alternate visualization tools for some SIESTA results, and another one specifically dealing with lattice dynamics. For structures, the `xv2xsf` and `xv2vesta` converters process data from the SIESTA `.XV` file into the native formats of XCrySDen <sup>135</sup> and VESTA <sup>136</sup>, respectively. Each of these two codes offers many options of graphical representation of structures, adding translations, clipping fragments etc. Threedimensional spatial functions (e.g., charge density, local density of states integrated throughout the chosen energy range), computed by SIESTA on a real-space grid. Tools are provided for interpolating the data from the SIESTA output grid (fixed by the unit cell dimensions and the `MeshCutoff` parameter) onto an arbitrarily cut (and possibly rotated or resampled) parallelepipedic box. XCrysDen provides a number of display options, including contour lines over grid planes, or isosurfaces. A special feature available in XCrySDen is plotting the Fermi surfaces. A special script, `eig2bxsf`, serves to analyze the list of k -points handled by SIESTA, expanding it onto a regular sequence, and writing the respective band energies in the necessary format. The tools concerning the lattice dynamics have been developed having in mind the Γ phonons calculated for a large enough supercell, that is a typical case in a simulation of molecular crystals or disordered substitutional alloys. For visualization, `vib2xsf` and `vib2vesta` place arrows at the atoms according to the vibration pattern stored in the eigenvectors file ( `.vectors` ), produced by the core `Vibra` utility, and can also be used to make animations (sequences of snapshots) of selected vibration modes. Both `vib2xsf` and `vib2vesta` tools allow the selection of a part of the system to be exposed. The `phdos` tool is designed for analyzing zone-center vibration results. As the system is supposed to be large (e.g., a supercell chosen for a periodic crystal), the (artificially broadened, for convenience) discrete spectrum may serve as a fair approximation to the total density of modes, and if weighted with (squared) components of eigenvectors at different atoms – provide a decomposition into contributions of different atoms in the total density of vibration modes. A more sophisticated option is the _projection_ of different eigenvectors according to various criteria. The typical system under study is a supercell in which e.g. an alloying, or some kind of deformation, breaks the underlying perfect periodicity. Still, some trends related to the latter can be revealed by appropriate projections. The two obvious cases are the projections onto (1) q -vectors of the underlying lattice and (2) irreducible representations of the space group of the underlying lattice; the corresponding formulas and some results can be found in Ref. 137. The first type of projection, if done for a sequence of q values, helps to reveal “phonon dispersions”, obviously blurred by the broken periodicity, also making distinction between transversal and longitudinal modes – see Ref. 138 for an example of use. To make the trends more pronounced, the supercell needs to be sufficiently long in the direction concerned - see, e.g., Fig. 16. The simplest case, a projection onto a single q =0 value, may also be of interest, since it enhances the modes which are expected to dominate the infrared or Raman spectra, and thus facilitates their comparison with experiment. The symmetry projection may help to isolate in a possibly complex spectrum those modes which are expected to dominate according to a given selection rule, again in view of their verification against the experiments. The group-symmetry information needed for the projections is available e.g. from the Bilbao Crystallographic Server, <sup>139</sup> and the technical details are explained in the documentation included in the tools. The `vibent` tool performs a straightforward calculation (see, e.g., Sec. II.C in Ref. 140, or Sec. 5.3 in Ref. 141) of Be32Zn64Se96 ; Zn contribution projected vibration DOS for q = ( 0 0 qz) TO 002-reduced LO qz (Bohr-1) 0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 "Ni4": frozen phonon calculation Ni H Mo O 0 500 1000 1500 2000 2500 3000 3500 4000 Frequency (cm-1) "Ni4": molecular dynamics at 600 K Velocity autocorrelation function 0 100 200 300 400 500 600 700 800 900 1000 MD steps <mark>cos - VCF</mark> 0 500 1000 1500 2000 2500 3000 3500 4000 Frequency (cm-1) 0.05 0 -0.05 0.006 0.004 0.002 0 Be Zn Se 0 100 200 300 400 wave number (cm-1) FIG. 16. Left panel: a 192-at. quasirandom supercell representative for the Be1 _/_ 3Zn2 _/_ 3Se solid solution; right panel: density of modes within the frequency range of Zn-Se vibrations, extracted with `phdos` and projected onto different values of _qz_ and different polarisations, parallel (labelled LO) and perpendicular (TO) to q . These results were partially shown in Fig. 4 of Ref. 138 and discussed in that work. Cu2ZnSnS4: 64-at. supercell, total density of modes Σ (64at.) Cu (16 at.) Zn (8 at.) Sn (8 at.) S (32 at.) 0 50 100 150 200 250 300 350 400 ZnCu(Sn-pl.)+0 ZnCu(Zn-pl.)+0 Cu+0Zn Zn+0Sn | <sup>__</sup> | Cu(Sn-pl.)+0 0.1 0 -0.1 -0.2 -0.3 -0.4 -0.5 0.4 0.2 0 -0.2 -0.4 Vibrational properties of point defects in CZTS: doped minus perfect <u>0</u> <u>200</u> <u>400</u> <u>600</u> <u>800</u> <u>1000</u> Temperature (K) ZnCu(Sn-pl.)+0 ZnCu(Zn-pl.)+0 +0 +0 Cu| +0+0Sn+0Zn CuZn+0Sn+0Zn | <sup>__</sup> | Cu(Sn-pl.)+0 | <sup>__</sup> | Cu(Zn-pl.)+0 || <sup>____</sup> || Zn S+0+0 | <sup>__</sup> | +0 | <sup>__</sup> |+0Zn +0 | <sup>__</sup> | Cu(Zn-pl.) | <sup>__</sup> |+0Zn | <sup>__</sup> |+0S 0 50 100 150 200 250 300 350 400 Frequency (cm-1) 0 200 400 600 800 1000 Temperature (K) FIG. 17. Vibration properties of Cu2ZnSnS4 (CZTS) with substitutional impurities, used in Ref. 140. Left panel: densities of modes (extracted with `phdos` ); right panel: vibration contributions to the free energy and entropy (calculated with `vibent` ). Adapted from Fig. 5.3 and 5.4 of Ref. 141. temperature-dependent vibration contributions to the free energy and entropy – see Fig. 17 as an example. The necessary input information is the vibration spectrum, originating from the `Vibra` frozen phonon calculation on a sufficiently large system. The `velcf` tool calculates the velocity autocorrelation function and its Fourier transform from a (presumably sufficiently long) molecular dynamics (MD) history, recorded in the `.MD` or `.ANI` file. This technique <sup>142</sup> can be used to obtain phonon frequencies, and was applied along with a SIESTA calculation in Ref. 143. An example of such simulation (1000 FIG. 18. Vibration properties of “Ni4” molecular magnet, [Mo12O30( _µ_ 2-OH)10H2{Ni(H2O)3}4] _·_ 14H2O. Left panel: density of modes from frozen phonon calculation; right panel: velocity autocorrelation function, its Fourier transform and hence resulting density of vibration modes. MD steps at 600 K) is shown in Fig. 18 in comparison with frozen phonon results, revealing similarities of the spectra obtained. _4._ _Optical_ _properties_ _of_ _finite_ _systems:_ _linear_ _response_ _TDDFT_ _starting_ _from_ Siesta _orbitals_ The SIESTA package offers at least two ways of obtaining optical properties of finite systems. The first way uses real-time TD-DFT propagation by applying an external electric field with a simple time dependence (e.g., a Heaviside step-function) <sup>74</sup> . The second way is by computing the noninteracting dielectric function <sup>1,2</sup> . Both methods are implemented in SIESTA and can be employed without any external tools. However, they are limited in different aspects. The non-interacting dielectric function often underestimates the HOMO-LUMO gaps and calls for the use of the phenomenological scissor-shift operator. Real-time propagation makes cumbersome the analysis of the optical response properties in the frequency domain. Furthermore, the frequency resolution scales with the duration of the real-time simulation. Thus, accurate spectra require long simulations. Fortunately, there are two efficient implementations of _linear-response_ TDDFT that use the Kohn-Sham orbitals from SIESTA as a starting point and are available for the opensource community <sup>144,145</sup> . In both packages, the linear density response _δ_ _n_ ( _r_ _,_ _ω_ ) is obtained directly in the frequency domain which makes straightforward the analysis of derived properties. However, there are differences between both implementations on the construction of the auxiliary basis necessary to expand the orbital products. These differences can severely affect the computational cost of the calculation. The linear-response TDDFT is built on the concept of the induced electronic density _δ_ _n_ ( _r_ _,_ _ω_ ) in response to a small perturbation of the external potential _δV_ ext( _r_ _,_ _ω_ ). The integral operator connecting _δ_ _n_ ( _r_ _,_ _ω_ ) to _δV_ ext( _r_ _,_ _ω_ ) is the interacting density response function _χ_ ( _r_ _,_ _r_ <sup>_′_</sup> _,_ _ω_ ). By virtue of the KS equations, _χ_ ( _r_ _,_ _r_ <sup>_′_</sup> _,_ _ω_ ) can be connected to the non-interacting density response function _χ_ 0( _r_ _,_ _r_ <sup>_′_</sup> _,_ _ω_ ) <sup>146</sup> with a Dyson equation Ag561 ## Ag309 Clusters Ag147 Ag55 Ag13 2 3 4 5 6 7 8 ω (eV) _χ_ ( _ω_ ) = _χ_ 0( _ω_ )+ _χ_ 0( _ω_ ) _Kχ_ ( _ω_ ) _,_ (29) where the interaction kernel _K_ ( _r_ _,_ _r_ <sup>_′_</sup> ) contains the bare Coulomb interaction and the so-called exchange and correlation kernel _Kxc_, which is a known operator for simple functionals like LDA and GGA. The non-interacting response function _χ_ 0( _r_ _,_ _r_ <sup>_′_</sup> _,_ _ω_ ) can be expressed as a sum over electronhole excitations within the basis formed by the KS orbitals Ψ _n_ ( _r_ ) <sup>145–147</sup> 2 1.6 1.2 0.8 0.4 0 ( _fn −_ _fm_ ) <sup><u>Ψ</u></sup> <sup>_<u>n</u>_</sup> <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup><u>)Ψ</u></sup> <sup>_<u>m</u>_</sup> <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup><u>)Ψ</u></sup> <sup>_<u>m</u>_</sup> <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_′_</sup> <sup><u>)Ψ</u></sup> <sup>_<u>n</u>_</sup> <sup><u>(</u></sup> <sup>_<u>r</u>_</sup> <sup>_′_</sup> <sup><u>)</u></sup> _χ_ 0( _r_ _,_ _r_ <sup>_′_</sup> _,_ _ω_ ) = ∑ _,_ _nm_ _ω −_ _Em_ + _En_ (30) where _fn_ are occupations of the KS orbitals and _En_ are their energies. The optical polarizability tensor _α_ ( _ω_ ) is related to the induced density by _α_ ( _ω_ ) = - _r_ _δ_ _n_ ( _r_ _,_ _ω_ ) _d_ _r_ or alternatively FIG. 19. The absorption cross sections of silver clusters of icosahedral shape. One can recognize sharp surface-plasmon resonances around 3–4 eV and a broad resonance at 6–7 eV. FIG. 20. The isosurfaces of density change Re( _δ_ _n_ ( _r_ _,_ _ω_ )) of the Ag147 cluster close to the frequency of the surface-plasmon resonance of the cluster (3.4 eV). _5._ _Thermal_ _transport_ _by_ _the_ _AEMD_ _method_ The approach to equilibrium molecular dynamics (AEMD) method <sup>153</sup> has been implemented to obtain the thermal conductivity. In the first stage of the method, the system is decomposed in two different regions, each one equilibrated to a different initial temperature (canonical run with Bose, or Anneal MD). Then, a microcanonical run (Verlet) is carried out for the whole system, and the average temperature of each subsystem is monitored. This temperature transient regime is then used to extract the thermal conductivity from the exact solution of the heat transport equation. <sup>154</sup> _6._ _Core_ _level_ _shifts_ Core-level shifts can serve to analyze changes in the local and chemical environment of atoms of a given species. Density-functional-theory calculations have proved to be quite useful in complementing the experimental information, which is sometimes hard to interpret. Two schemes have been _α_ ( _ω_ ) = �� _r_ _χ_ 0( _r_ _,_ _r_ <sup>_′_</sup> _,_ _ω_ ) _δVs_ ( _r_ <sup>_′_</sup> _,_ _ω_ ) _d_ _r_ _d_ _r_ <sup>_′_</sup> _,_ (31) where due to Eq. (29) and using the dipole approximation for the electron-photon coupling, the screened effective perturbation _δVs_ ( _r_ <sup>_′_</sup> _,_ _ω_ ) satisfies the linear integral equation (I _−_ _Kχ_ 0( _ω_ )) _δVs_ ( _ω_ ) = _r_ _._ (32) The efficiency of the methods presented in References 144 and 145 comes from solving iteratively Eq. (32) for _δVs_ ( _ω_ ) instead of using standard matrix inversion to obtain _χ_ ( _ω_ ) from Eq. (29). Once _δVs_ ( _ω_ ) is known, Eqs. (30) and (31) allow the computation of the optical properties of the system. Furthermore, it is also possible to perform different types of analysis. For example, it is easy to partition the polarizability tensor _α_ ( _ω_ ) in terms of electron-hole contributions <sup>147,148</sup> due to existence of the sum over the electron-hole pairs in Eq. (30). Similarly, one can achieve other types of Mulliken-like analysis <sup>145,147,149</sup> of the optical polarizability tensor _α_ ( _ω_ ) or the induced density _δ_ _n_ ( _r_ _,_ _ω_ ). The Python implementation of linear response TDDFT in the PySCF-NAO package as described in Ref. 145 is convenient to use and rather potent. It is capable of computing the optical properties of compact metallic objects containing up to several hundreds of atoms <sup>147,150,151</sup> . For example, we were able to track down the different size-dependence of the plasmon resonance in sodium and silver clusters due to the screening effect of silver _d_ -orbitals in the latter case <sup>152</sup> . In those calculations, using an optimized version that incorporates some additional memory-saving features not present in the currently distributed version of PySCF-NAO, icosahedral silver and sodium clusters containing up to 5043 atoms were studied. In Figures 19 and 20, we show the photo-absorption cross sections of a series of compact silver clusters <sup>147</sup> and the real part of induced density change in the cluster Ag147 close to its surface-plasmon frequency (3.4 eV), respectively. implemented in SIESTA for the calculation of core-level shifts within a pseudopotential approach <sup>155</sup> . In the so-called _initial-state_ approximation the electronic relaxation in the presence of the core hole is neglected, and the photo-electron’s binding energy is directly related to the eigenvalue of the core level. A pseudopotential calculation obviously cannot compute the latter, but differences in core eigenvalues in different environments can be estimated by the changes in the expectation value of the crystal potential using the core state’s atomic wavefunctions _ψn_ <sup>_lm_</sup> at different sites. These can be extracted from the matrix elements _V_ <sup>_mm′_</sup> = _d_ <sup>3</sup> _r_ ( _ψn_ <sup>_lm_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> _n_ <sup>_lm_</sup> <sup>(</sup> <sup>_r⃗_</sup> <sup>_−⃗_</sup> <sup>_τ_</sup> <sup>))</sup> <sup>_∗V_</sup> <sup>(</sup> <sup>_r⃗_</sup> <sup>)</sup> <sup>_ψ_</sup> _n_ <sup>_lm′_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> _n_ <sup>_lm′_</sup> <sup>(</sup> <sup>_r⃗_</sup> <sup>_−⃗_</sup> <sup>_τ_</sup> <sup>)</sup> (33) they have enabled a much simpler bookkeeping of the data structures needed for a richer control of molecular-mechanics and scf iterations. Regarding performance-oriented developments, in the recent past we have implemented a mixed MPI/OpenMP programming model, which allows, for suitable systems, to better balance arithmetic intensity and communications needs. The deployment of this model is more advanced in the TranSiesta module, and significant speedups have been obtained for large systems. Some of the above software-engineering developments have been enabled and strengthened by the participation of SIESTA in a number of international partnerships, notably the MaX (Materials at the eXascale) EU center of excellence <sup>158</sup> and the Electronic Structure Library initiative <sup>159</sup> . The “separation of concerns” described above in the context of modularization is an example of the so-called “open-innovation” paradigm, at the foundation of the ESL strategy for code reusability, and is also a cornerstone of MaX’s efforts to achieve exascale-readiness for its flagship materials science codes (with SIESTA among them): performance-enhancement efforts are to be focused on relevant domain-specific modules. A number of modules from SIESTA have been turned into stand-alone libraries which now feature in the ESL: `libGridXC` for exchange and correlation calculations, `libPSML` as a handler of PSML files, `xmlf90` for general purpose handling of XML files, etc. Conversely, SIESTA uses some of the libraries offered by the ESL, notably the ELSI library of electronic-structure solvers mentioned in Sect. III G 2, whose development, including its API design and internal data organization, has been in turn influenced by contributions and feedback from the SIESTA project, among others. There are also plans to incorporate the PSolver library <sup>160</sup> for the solution of the Poisson problem, a contribution to the ESL from the BigDFT project. We should mention that the renewed dynamism of SIESTA development and the advances made possible by the interaction with community initiatives are both a blessing and a challenge. It is non-trivial, for example, to handle the building process of a code that relies on a number of different external libraries, programming models, and special features such as the embedded Lua interpreter. Luckily, as will be discussed in Sect. V, these are issues that are being addressed in wider contexts, and SIESTA is well placed to take advantage of it. IV. APPLICATIONS We present here a few showcase applications that illustrate the capabilities of SIESTA, in breadth, efficiency, and accuracy. A. 4 terminal NEGF on germanium surface Breakthrough simulations using the new multi-terminal implementation on TRANSIESTA were fundamental to elucidate the electronic transport mechanism on a novel and complex with a further step of averaging to remove the splittings stemming from the loss of spherical symmetry. In the _final-state_ approximation, the relaxation is explicitly taken into account, and the experimental shifts (measured via the kinetic energy of an exiting electron) are correlated with the differences in the energy of the crystal with a “core-hole” in different sites. For this, a special pseudopotential with a missing core electron has to be generated, and a full SIESTA calculation is needed for each different site. The implemented methodology has been used to study, for example, the shifts induced by hydrogen bonding in organic molecules <sup>156</sup> . O. Software-engineering advances and partnerships The traditional development model for scientific codes in academic settings has been typically based on multiple contributions with various levels of programming competence, and with very little time to plan ahead in the face of pressing scientific demands. SIESTA has been no exception, and has grown in features and complexity over the years. It is very important to keep complexity under control, or else a project becomes un-maintainable and cannot survive. It is not simple, however, to balance the need of incorporation of new features, and the need to increase the computing performance in a landscape of constantly evolving hardware and programming models. One essential route is modularization, which allows the separation of concerns at various levels. In the context of a code like SIESTA, this means that the scientific ideas and algorithms should be handled at a high level, calling on lower-level modules for specific functionality (domainspecific libraries, mathematical libraries, communication protocols, etc). These lower-level modules can hopefully be reused by different codes and, most importantly, can be focused on by highly-skilled programmers for optimization on relevant architectures. Another important method of taming complexity involves the streamlining of the data structures of the code. This is an ongoing process (see Sect. V), but has already taken a very significant step by the introduction of reference-counted data structures. They build on a well-known and not particularly advanced technique of memory-handling <sup>157</sup>, but in SIESTA FIG. 21. First-principles transport simulations for the two-probe experiments. a) Representation of the four-terminal setup. The electrode regions are highlighted by blue boxes, two of them located at each Ge(001)-c(4 _×_ 2) slab terminations (leads left and right) and the other two at each Au model tip (leads tip1 and tip2). The 50 Ge atoms closest to each tip were allowed to fully relax, adapted from Ref. 101. experiment. <sup>101</sup> For the first time a two-probe scanning tunneling microscopy/spectroscopy (STM/STS) with probes operating in tunneling conditions over the same atomic-scale system was used to extract detailed information of in-plane electronic transport. The addressed system was the reconstructed (001) surface of germanium, where electrons injected from one STM tip at a position determined with atomic precision were collected at the same Ge dimer row at a distance as short as 30 nm. The experiment was theoretically modeled by a system composed of a twelve-layer Ge(001)-c(4 _×_ 2) slab contacted by Au tips oriented along the (100) direction (Fig. 21). On this self-consistent 4-terminal treatment, two Ge electrodes were connected at each slab termination and other two at the Au model tips. The whole system was defined by 4924 atoms (36442 atomic orbitals), in a super-cell of dimensions _∼_ 32 _×_ 160 _×_ 80Å3, and where 5 different tip to-sample distances were considered. Besides the large dimensions of the system, another important challenge of such simulation was the level alignment between the metallic and semiconducting leads and the scattering region, for which a method had to be devised. A remarkable agreement was found between the calculated transmission function and the experimental transconductance spectra, allowing the identification and assignment of the observed resonances to transport channels existing along the surface Ge dimer rows. Moreover, the simulations elucidated the transport directionality of the injected hot electrons, revealing a transition from 2D to quasi1D coherent transport regime as a function of the carrier’s energy. This work shows that complex experiment setups combined with advanced calculations can provide new insights into transport properties at the nanoscale. B. Novel topological phases in ferroelectric materials In material systems with several interacting degrees of freedom (such as spin, charge and lattice distortions), the complex interplay between these factors can give rise to exotic phases. A prototypical example are the superlattices of alternating lead titanate and strontium titanate layers. Simulations on such PbTiO3/SrTiO3 heterostructures, consisting on _n_ unit cells of PbTiO3 and _n_ unit cells of SrTiO3 stacked along the [001] direction were carried out with SIESTA. As a function of the periodicity, the superlattices undergo a phase transition from a monodomain configuration (small periodicity, _n_ ≲ 3 _−_ 4) with a normal component of the polarization that is preserved throughout the structure, to a multidomain configuration (large periodicity, _n_ ≳ 3 _−_ 4) with alternating up and down domains. <sup>161</sup> In order to further reduce the electrostatic energy costs, the local dipoles within the PbTiO3 layer continuously rotate forming a sequence of clock-wise/counterclockwise array of vortices along the [100] direction. The theoretical predictions, done with SIESTA <sup>162</sup> after the relaxation of supercells of up to 1000 atoms, were experimentally confirmed five years later by atomic-scale mapping of the polar atomic displacements by scanning transmission electron microscopy <sup>163</sup> (Fig. 22) Moreover, the appearance of an axial component of the polarization pointing in the direction of the vortices make the systems chiral and optically active, as lately confirmed by circular dichroism experiments <sup>164</sup> . C. 1D and 2D systems SIESTA is particularly well suited to study low dimensional nanostructures, such as 1D and 2D systems where a large vacuum region is needed within the simulation cell. When, in addition, a large number of atoms is required to study particular physical effects is where SIESTA could excel with respect to other methods. There is extensive literature on simulations of graphene and other exfoliated materials, where the properties of point defects, edges or grain boundaries are of much relevance. To list a few examples, the magnetic properties of impurities, <sup>165,166</sup> and edges <sup>167</sup>, but also electronic properties, including transport characteristics, in grain boundaries <sup>168,169</sup>, ribbons <sup>170</sup>, nanoporous graphene <sup>171</sup>, large graphene flakes <sup>68,172</sup>, or the effect of substrates <sup>173</sup> . Other materials, such as mono- and multi-layered dichalcogenides <sup>174,175</sup> or phosphorene <sup>176,177</sup>, are also being widely studied, including optical properties in nanoflakes with up to a few thousand atoms. <sup>178</sup> . _1._ _CDWs_ A number of recent studies on charge density waves (CDW) in low dimensional materials illustrates the impressive accuracy that can be obtained with SIESTA for systems with very subtle electronic structures. <sup>179</sup> For example, in 2H-NbSe2 SIESTA calculations were able to predict the existence of six different atomic structures within a narrow energy range of a FIG. 22. Top panel: local polarization profile of polydomain structures in (PbTiO3) _n_ /(SrTiO3) _n_ with _n_ =6 obtained from an atomic relaxation with SIESTA. The PbTiO3 and SrTiO3 are depicted as grey and white regions respectively. Clockwise and counterclockwise vortices within the PbTiO3 are clearly visible. Red dashed square in the SrTiO3 layers mark the position where antivortices are formed. Reprinted with permission from Aguado-Puente and Junquera <sup>162</sup> Phys. Rev. B 85, 184105 (2012). Bottom panel: experimental observation of vortex–antivortex structures in a crosssectional high-resolution scanning transmission electron microscopy image with an overlay of the polar displacement vectors for a (SrTiO3)10/(PbTiO3)10 superlattice, showing that an array of vortex–antivortex pairs is present in each PbTiO3 layer. Courtesy of R. Ramesh, adapted from Ref. 163. few meV, all of them compatible with the experimental 3 _×_ 3 CDW modulation. Careful analysis of theoretical and experimental STM images for different bias potentials allowed to identify two of these structures that can coexist in the same image. <sup>180</sup> In a different work, <sup>181</sup> the temperature dependency of the electronic Lindhard response function in blue bronze K0 _._ 3MoO3 was studied. This system has a rather complex monoclinic structure, with twenty formula units per unit cell where MoO6 octahedra form chains along one direction (baxis). The Lindhard function shows well decoupled sharp responses that correspond to intra- and interband Fermi surface nesting. By fitting these peaks one can obtain the coherence length of the fluctuating 1D electron-hole pair (that determines the length scale of the experimental intrachain CDW correlations), and the intrachain modulation of the response (that determines the shape of the Kohn anomaly measured in experiments), providing, for the first time, a quantitative evidence of the weak electron-phonon coupling scenario for the Peierls transition. D. Siesta in biology: pilin proteins as conductors SIESTA’s efficiency and the clear band gaps of biomolecules in general have made molecular biology a very suitable field for SIESTA since the beginning, <sup>182</sup> and have stimulated targeted developments of the code for the field, such as QM/MM. <sup>183,184</sup> An interesting illustration of its suitability in an all-quantum biological problem is the study of the electrostatics around the pilin protein in aqueous solution. <sup>185</sup> The pilin considered here is the main protein in the pili (external filaments) of the _geobacter_ _sulfurreducens_ _bacterium_, which have been shown to be able to transmit electronic current, allowing the microbe to feed by remote redox reactions on ferrous mineral particles in the soil. As a nanowire designed by natural evolution, understanding the mechanism for charge transport is of obvious interest. Peculiar to this protein is the fact that its main alpha helix, the main feature of this elongated protein, is singly oriented, that is, there is no back alpha helix (as in a common hairpin configuration) that would counter the polarization of the single alpha helix: In an alpha helix all peptide-bond dipoles point in the same direction along the axis of the helix, which, in solid-state parlance, represents a polarization, with clear electrostatic implications. Indeed, a DFT calculation of the molecule in vacuum shows a well defined electrostatic potential ramp along the protein, which tends to close the effective band gap. The question is then, how does an aqueous environment affect this depolarizing field. Long molecular mechanics (MM) simulations were performed for the protein in a suitable solution of NaCl at a concentration of 0.1 M. The protein’s residues had charge states corresponding to _pH_ = 7, and the MM field was validated with SIESTAcalculations in vacuum (944-atom dynamic relaxation in a 104.4 <sup>3</sup> Å <sup>3</sup> box). The wet system contained 4580 atoms, and the statistical average of the electrostatic potential around the molecule (see Fig. 23) was obtained from a sample of full SIESTA calculations of statistically independent snapshots, taken every 50 ps during the last 0.5 ns of the simulation. FIG. 23. Colour coded electrostatic potential on a plane cutting along the main axis of the geobacter sulfurreducens pilin molecule in wet conditions. A perspective ball rendering of the atomic strucuture of the protein is superposed. For the meaning and details on this Figure see Ref. 185 (Figure courtesy of Gustavo T. Feliciano). Fig. 23 shows how the aqueous environment kills the quite homogeneous potential ramp along the protein axis that appears in vacuum and replaces it with long-wave-length slow, but quite significant fluctuations. The gap remains sizeable, and coherent transport is not likely. However, the frontier orbitals evolve in a very suggestive way for enhanced diffusive electron transport. <sup>185</sup> E. Use of Siesta in other fields Although an exhaustive summary of all the recent results obtained with SIESTA is out of the scope of this work, we would like to point the attention of the reader to a sample of recent reviews in various fields in which the program is featured. These cover biological sciences <sup>186</sup> (including interaction between organic and inorganic materials <sup>187,188</sup> ), geology and materials under high-pressure <sup>189</sup>, isotopic fractionation predictions for Martian geochemistry <sup>190</sup>, the engineering of typical core structural materials used in nuclear reactors, <sup>191</sup> or even in astrophysical and atmospheric systems <sup>192</sup> . The reactivity of metallic nanoparticles for catalysis was treated by Viñes, Gomes, and Illas <sup>193</sup>, and the role of SIESTA in the computation of the kinetic and dynamics of catalytic reaction at surfaces (including adsorption and desorption of reactants or products) was explored in Chapter 8 of Ref. 194 by Catapan and coworkers. V. FUTURE EVOLUTION Work on enhancing SIESTA’s capabilities, performance, and robustness is continuing, driven by a good number of developers and collaborators. A mature and flexible development platform and practices are essential to keep them productive. Our recent platform changes have forced developers to shift workflows twice in the past four years. Through the changes we have learned a lot but also spent a significant amount of time on ensuring SIESTA’s continuous development. At the current state we believe we have stabilized the development platform on GitLab while we will add more integrated development features in the coming years, e.g. continuous integration (CI) and source code checks. Using CI will also enable easier code-style checks to conform to coding standards. We hope that our open-platform initiative will keep external contributions coming into the program. Our basic-development plans include also refactoring, apparently unexciting but essential to streamline the code base to enable further implementations. Also, we foresee a change in the release model, moving away from coexisting long-lived release branches whose maintenance takes up a lot of time, and offering instead more frequent and short-maintenance releases. We plan to exploit the idea of modularization, continuing the abstraction of relevant reusable pieces, but also dealing with a higher-level, exposing the core electronic-structure capabilities of SIESTA to other programs. It will be necessary to redesign some of the internal data structures to remove global variables and encapsulate them into objects or derived types associated to particular configurations and stages of the calculations. This encapsulation will be matched by a streamlining of the input/output operations. This work will open the door to the creation of complex workflows leveraging the strengths of various codes. Accelerated hybrid architectures (including, for example, GPUs) are very likely going to feature prominently in the upcoming exascale machines. In the case of SIESTA, the data indirection associated to the handling of sparse matrices limits the acceleration possibilities of the section of the code that builds the Hamiltonian and overlap matrices, but the solver stage is more amenable to porting, and in fact several solver libraries used by SIESTA are being enhanced to offer GPU support, as mentioned in Sec. III G 2. Modularization and the use of new programming models cause an increase in the complexity of the building and deployment of the code. We will leverage the ESL bundle, created to facilitate the use of the modules in the ESL collection, to streamline SIESTA’s building process, and explore containerization as an option for deployment of the code. The “pseudopotential barrier to entry” has been lowered by the availability of curated databases supporting the PSML format. Basis sets are a perennial challenge, but new tools and ideas are being explored to provide users with appropriate basis sets: High-throughput workflows for optimization; "tiers" of quality/cost, but perhaps not just of a simple “periodic table” form, as offered by other codes (e.g., FHI-aims <sup>13</sup> ), but with a possible dependence on an approximate characterization of the chemical environment in which a given atom finds itself. Complementary to the underlying basis-set optimization that focuses on providing an adequate variational freedom, an on-the-fly contraction of the basis set, which results in a set of lower-cardinality adapted to the description of the occupied subspace can be exploited for increased efficiency. This is particularly relevant for FOE methods (see Sect. III G 1, in which the number of polynomial terms depends on the extent of the spectrum. The original claim to fame of SIESTA was based on its linear-scaling solver. We are in the process of a re-design of the _O_ ( _N_ ) code with a new, more efficient backend, based on the DBCSR library for handling distributed block-sparse matrices <sup>195,196</sup> with the MatrixSwitch library <sup>82</sup> acting as an intermediary interface between it and high-level physical ideas and algorithms. A connection between the internal SIESTA formats and MatrixSwitch itself has been recently provided, using initially the cubic-scaling libOMM library <sup>197</sup> as a test bed, hence still using a dense coefficient matrix, as it corresponds to the case without localization constraints in the solution of the electronic-structure problem. The implementation of a sparse coefficient matrix will make it possible to perform efficient _O_ ( _N_ ) calculations. The computational effort can be further reduced through the analysis of sparsity of the Hamiltonian and overlap matrices and their re-organization in the block-compressed sparse form. Other developments in the pipeline are linear-response calculations for arbitrary distortions, electronic transport calcu lations with spin-orbit coupling, thermal transport with the Green-Kubo formalism, as described in Ref. 198, a redesign of the molecular dynamics subsystem, and the development of workflows for the generation of data for SCALE-UP. ACKNOWLEDGMENTS SIESTA development has been historically supported by different Spanish National Plan projects: MEC-DGESPB95-0202, MCyT-BFM2000-1312, MEC-BFM2003-03372, FIS2006-12117, FIS2009-12721, FIS2012-37549, FIS201564886-P, and RTC-2016-5681-7, the latter one together with Simune Atomistics Ltd. Currently, we thank financial support from the Spanish Ministry of Science, Innovation and Universities through the grant No. PGC2018-096955-B. We acknowledge the Severo Ochoa Centers of Excellence Program under Grants No. SEV-2015-0496 (ICMAB), and SEV-2017-0706 (ICN2), the GenCat Grant No. 2017SGR1506, and the European Union MaX Center of Excellence (EU-H2020 Grant No. 824143). P.G.-F. acknowledges support from Ramón y Cajal Grant No. RyC-2013-12515. J.I.C acknowledges RTI2018-097895B-C41. R.C. acknowledges to the European Union’s Horizon 2020 research and innovation program under the Marie Skłodoswka–Curie grant agreement no. 665919. D.S.P, P.K, and P.B acknowledge MAT2016-78293-C6, FET-Open No. 863098, and UPV-EHU Grant IT1246-19. V. Yu was supported by a MolSSI fellowship (U.S. NSF award 1547580), and the ELSI development (V.B.,V.Yu) by NSF award 1450280. We also acknowledge Honghui Shang and Xinming Qin for giving us access to the HONPAS code, where a preliminary version of the hybrid functionals support described here was implemented. We are indebted to other contributors to the SIESTA project, whose names can be seen in the file in the `Docs/Contributors.txt` file of the SIESTA distribution, and we thank those, too many to list, contributing fixes, comments, clarifications, and documentation for the code. The data that support the findings of this study are available from the corresponding author upon reasonable request. 1J. M. Soler, E. Artacho, J. D. Gale, A. García, J. Junquera, P. Ordejón, and D. Sánchez-Portal, “The SIESTA method for ab initio order-n materials simulation,” J. Phys.: [Condens. Matter](http://dx.doi.org/ 10.1088/0953-8984/14/11/302) 14, 2745–2779 (2002). 2E. Artacho, E. Anglada, O. Diéguez, J. D. Gale, A. García, J. Junquera, R. M. Martin, P. Ordejón, J. M. Pruneda, D. Sánchez-Portal, and J. M. Soler, “The SIESTA method; developments and applicability,” J. [Phys.:](http://dx.doi.org/10.1088/0953-8984/20/6/064208) [Condens. Matter](http://dx.doi.org/10.1088/0953-8984/20/6/064208) 20, 064208 (2008). 3G. Galli, “Linear scaling methods for electronic structure calculations and [quantum molecular dynamics simulations,” Curr. Opin. Solid State Mater.](http://dx.doi.org/ https://doi.org/10.1016/S1359-0286%0x2896%0x2980114-8) Sci. 1 [, 864 – 874 (1996).](http://dx.doi.org/ https://doi.org/10.1016/S1359-0286%0x2896%0x2980114-8) 4S. Goedecker, “Linear scaling electronic structure methods,” Rev. Mod. Phys. 71 [, 1085–1123 (1999).](http://dx.doi.org/ 10.1103/RevModPhys.71.1085) 5P. Ordejón, E. Artacho, and J. M. Soler, “Self-consistent order- _n_ densityfunctional calculations for very large systems,” Phys. Rev. B [53](http://dx.doi.org/ 10.1103/PhysRevB.53.R10441), R10441– [R10444 (1996).](http://dx.doi.org/ 10.1103/PhysRevB.53.R10441) 6D. Sánchez-Portal, P. Ordejón, E. Artacho, and J. M. Soler, “Density[functional method for very large systems with lcao basis sets,” Int. J. Quan-](http://dx.doi.org/ 10.1002/%0x28SICI%0x291097-461X%0x281997%0x2965:5<453::AID-QUA9>3.0.CO;2-V) tum Chem. 65 [, 453–461 (1997).](http://dx.doi.org/ 10.1002/%0x28SICI%0x291097-461X%0x281997%0x2965:5<453::AID-QUA9>3.0.CO;2-V) 7O. F. Sankey and D. J. Niklewski, “Ab initio multicenter tight-binding model for molecular-dynamics simulations and other applications in covalent systems,” Phys. Rev. B 40 [, 3979–3995 (1989).](http://dx.doi.org/ 10.1103/PhysRevB.40.3979) 8E. Artacho, D. Sánchez-Portal, P. Ordejón, A. García, and J. M. Soler, “Linear-scaling ab-initio calculations for large and complex systems,” [Phys. Status Solidi (b)](http://dx.doi.org/ 10.1002/%0x28SICI%0x291521-3951%0x28199909%0x29215:1<809::AID-PSSB809>3.0.CO;2-0) 215, 809–817 (1999). 9J. Junquera, O. Paz, D. Sánchez-Portal, and E. Artacho, “Numerical atomic orbitals for linear-scaling calculations,” Phys. Rev. [B](http://dx.doi.org/ 10.1103/PhysRevB.64.235111) 64, 235111 [(2001).](http://dx.doi.org/ 10.1103/PhysRevB.64.235111) 10E. Anglada, J. M. Soler, J. Junquera, and E. Artacho, “Systematic genera[tion of finite-range atomic basis sets for linear-scaling calculations,” Phys.](http://dx.doi.org/ 10.1103/PhysRevB.66.205101) Rev. B 66 [, 205101 (2002).](http://dx.doi.org/ 10.1103/PhysRevB.66.205101) 11http://www.openmx-square.org/. 12https://www.synopsys.com/silicon/quantumatk.html. 13V. Blum, R. Gehrke, F. Hanke, P. Havu, V. Havu, X. Ren, K. Reuter, and M. Scheffler, “Ab initio molecular simulations with numeric atomcentered orbitals,” Comput. Phys. Commun. [180](http://dx.doi.org/https://doi.org/10.1016/j.cpc.2009.06.022), 2175 – 2196 (2009). 14A. Carreras, S. Conejeros, A. Camón, A. García, N. Casañ-Pastor, P. Alemany, and E. Canadell, “Charge delocalization, oxidation states, and sil[ver mobility in the mixed silver–copper oxide agcuo2,” Inorg. Chem.](http://dx.doi.org/ 10.1021/acs.inorgchem.9b00662) 58, [7026–7035 (2019).](http://dx.doi.org/ 10.1021/acs.inorgchem.9b00662) 15M. Brandbyge, J.-L. Mozos, P. Ordejón, J. Taylor, and K. Stokbro, [“Density-functional method for nonequilibrium electron transport,” Phys.](http://dx.doi.org/10.1103/PhysRevB.65.165401) Rev. B 65 [, 165401 (2002).](http://dx.doi.org/10.1103/PhysRevB.65.165401) 16F. Corsetti, E. Artacho, J. M. Soler, S. S. Alexandre, and M.-V. FernándezSerra, “Room temperature compressibility and diffusivity of liquid water from first principles,” J. Chem. Phys. [139](http://dx.doi.org/10.1063/1.4832141), 194502 (2013). 17X. Gonze, B. Amadon, P.-M. Anglade, J.-M. Beuken, F. Bottin, P. Boulanger, F. Bruneval, D. Caliste, R. Caracas, M. Côté, T. Deutsch, L. Genovese, P. Ghosez, M. Giantomassi, S. Goedecker, D. Hamann, P. Hermet, F. Jollet, G. Jomard, S. Leroux, M. Mancini, S. Mazevet, M. Oliveira, G. Onida, Y. Pouillon, T. Rangel, G.-M. Rignanese, D. Sangalli, R. Shaltaf, M. Torrent, M. Verstraete, G. Zerah, and J. Zwanziger, “Abinit: First-principles approach to material and nanosystem properties,” Comput. Phys. Commun. [180](http://dx.doi.org/ https://doi.org/10.1016/j.cpc.2009.07.007), 2582 – 2615 (2009). 18See: `[https://www.gnu.org/licenses/gpl-3.0.html](https://www.gnu.org/licenses/gpl-3.0.html)` . 19See: `[https://launchpad.net/siesta](https://launchpad.net/siesta)` . 20See: `[https://gitlab.com/siesta-project](https://gitlab.com/siesta-project)` . 21A. García, M. J. Verstraete, Y. Pouillon, and J. Junquera, “The psml format and library for norm-conserving pseudopotential data curation and inter[operability,” Comput. Phys. Commun.](http://dx.doi.org/ https://doi.org/10.1016/j.cpc.2018.02.011) 227, 51 – 71 (2018). 22See: `[https://siesta-project.github.io/psml-docs](https://siesta-project.github.io/psml-docs)`, accessed November 2019. 23D. R. Hamann, “Optimized norm-conserving vanderbilt pseudopotentials,” Phys. Rev. B 88 [, 085117 (2013).](http://dx.doi.org/ 10.1103/PhysRevB.88.085117) 24 ATOM code for the generation of norm-conserving pseudopotentials. The version maintained by the SIESTA project can be accessed at `[http:](http://icmab.es/siesta/Pseudopotentials/index.html)` `[//icmab.es/siesta/Pseudopotentials/index.html](http://icmab.es/siesta/Pseudopotentials/index.html)` . An alternative version is available at `[http://bohr.inesc-mn.pt/~jlm/pseudo.](http://bohr.inesc-mn.pt/~jlm/pseudo.html)` `[html](http://bohr.inesc-mn.pt/~jlm/pseudo.html)` . (Accessed July 2017). 25M. J. van Setten, M. Giantomassi, E. Bousquet, M. J. Verstraete, D. R. Hamann, X. Gonze, and G. M. Rignanese, “The PSEUDODOJO: Training and grading a 85 element optimized norm-conserving pseudopotential [table,” Comput. Phys. Commun.](http://dx.doi.org/10.1016/j.cpc.2018.01.012) 226, 39–54 (2018). 26See: `[http://www.pseudo-dojo.org](http://www.pseudo-dojo.org)` . 27X. Gonze, F. Jollet, F. Abreu Araujo, D. Adams, B. Amadon, T. Applencourt, C. Audouze, J.-M. Beuken, J. Bieder, A. Bokhanchuk, E. Bousquet, F. Bruneval, D. Caliste, M. Côté, F. Dahm, F. Da Pieve, M. Delaveau, M. Di Gennaro, B. Dorado, C. Espejo, G. Geneste, L. Genovese, A. Gerossier, M. Giantomassi, Y. Gillet, D. Hamann, L. He, G. Jomard, J. Laflamme Janssen, S. Le Roux, A. Levitt, A. Lherbier, F. Liu, I. Lukaˇcevi´c, A. Martin, C. Martins, M. Oliveira, S. Poncé, Y. Pouillon, T. Rangel, G.-M. Rignanese, A. Romero, B. Rousseau, O. Rubel, A. Shukri, M. Stankovski, M. Torrent, M. Van Setten, B. Van Troeye, M. Verstraete, D. Waroquiers, J. Wiktor, B. Xu, A. Zhou, and J. Zwanziger, “Recent developments in the ABINIT software package,” [Comput. Phys. Commun.](http://dx.doi.org/ 10.1016/j.cpc.2016.04.003) 205, 106–131 (2016). 28V. I. Anisimov, J. Zaanen, and O. K. Andersen, “Band theory and mott insulators: Hubbard u instead of stoner i,” Phys. Rev. B 44 [, 943–954 (1991).](http://dx.doi.org/ 10.1103/PhysRevB.44.943) 29B. Himmetoglu, A. Floris, S. de Gironcoli, and M. Cococcioni, “Hubbard corrected dft energy functionals: The lda+u description of correlated sys[tems,” Int. J. Quantum Chem.](http://dx.doi.org/ 10.1002/qua.24521) 114, 14–49 (2014). 30S. L. Dudarev, G. A. Botton, S. Y. Savrasov, C. J. Humphreys, and A. P. Sutton, “Electron-energy-loss spectra and the structural stability of nickel oxide: An lsda+u study,” Phys. Rev. B 57 [, 1505–1509 (1998).](http://dx.doi.org/ 10.1103/PhysRevB.57.1505) 31M. Cococcioni and S. de Gironcoli, “Linear response approach to the calculation of the effective interaction parameters in the LDA + U method,” Phys. Rev. B 71 [, 035105 (2005).](http://dx.doi.org/ 10.1103/PhysRevB.71.035105) [32R. J. Powell and W. E. Spicer, “Optical properties of nio and coo,” Phys.](http://dx.doi.org/10.1103/PhysRevB.2.2182) Rev. B 2 [, 2182–2193 (1970).](http://dx.doi.org/10.1103/PhysRevB.2.2182) 33H. A. Alperin, J. Phys. Soc. Jpn. Suppl. B 17, 12 (1962). 34A. K. Cheetham and D. A. O. Hope, “Magnetic ordering and exchange effects in the antiferromagnetic solid solutions mn _x_ ni1 _−x_ [O,” Phys. Rev. B](http://dx.doi.org/10.1103/PhysRevB.27.6964) 27 [, 6964–6967 (1983).](http://dx.doi.org/10.1103/PhysRevB.27.6964) 35M. Dion, H. Rydberg, E. Schröder, D. C. Langreth, and B. I. Lundqvist, [“Van der waals density functional for general geometries,” Phys. Rev. Lett.](http://dx.doi.org/10.1103/PhysRevLett.92.246401) 92 [, 246401 (2004).](http://dx.doi.org/10.1103/PhysRevLett.92.246401) 36K. Berland and P. Hyldgaard, “Exchange functional that tests the robustness of the plasmon description of the van der waals density functional,” Phys. Rev. B 89 [, 035412 (2014).](http://dx.doi.org/10.1103/PhysRevB.89.035412) 37G. Román-Pérez and J. M. Soler, “Efficient implementation of a van der waals density functional: Application to double-wall carbon nanotubes,” Phys. Rev. Lett. [103](http://dx.doi.org/ 10.1103/PhysRevLett.103.096102), 096102 (2009). 38O. A. Vydrov and T. Van Voorhis, “Nonlocal van der waals density functional: The simpler the better,” J. Chem. Phys. [133](http://dx.doi.org/ 10.1063/1.3521275), 244103 (2010). 39L. Kong, G. Román-Pérez, J. M. Soler, and D. C. Langreth, “Energetics and dynamics of h 2 adsorbed in a nanoporous material at low temperature,” Phys. Rev. Lett. [103](http://dx.doi.org/10.1103/PhysRevLett.103.096103), 096103 (2009). 40H. González-Herrero, J. M. Gómez-Rodríguez, P. Mallet, M. Moaied, J. J. Palacios, C. Salgado, M. M. Ugeda, J.-Y. Veuillen, F. Yndurain, and I. Brihuega, “Atomic-scale control of graphene magnetism by using hydrogen atoms,” Science 352 [, 437–441 (2016).](http://dx.doi.org/10.1126/science.aad8038) 41J. Wang, G. Román-Pérez, J. M. Soler, E. Artacho, and M.-V. FernándezSerra, “Density, structure, and dynamics of water: The effect of van der waals interactions,” J. Chem. Phys. [134](http://dx.doi.org/10.1063/1.3521268), 024516 (2011). 42J. Heyd, G. E. Scuseria, and M. Ernzerhof, “Hybrid functionals based on a screened coulomb potential,” J. Chem. Phys. 118 [, 8207–8215 (2003).](http://dx.doi.org/10.1063/1.1564060) 43J. Heyd, G. E. Scuseria, and M. Ernzerhof, “Erratum: “hybrid function[als based on a screened coulomb potential”,” J. Chem. Phys.](http://dx.doi.org/ 10.1063/1.2204597) 124, 219906 [(2006).](http://dx.doi.org/ 10.1063/1.2204597) 44A. V. Krukau, O. A. Vydrov, A. F. Izmaylov, and G. E. Scuseria, “Influence of the exchange screening parameter on the performance of screened hybrid functionals,” J. Chem. Phys. [125](http://dx.doi.org/10.1063/1.2404663), 224106 (2006). 45H. Shang, Z. Li, and J. Yang, “Implementation of screened hybrid density functional for periodic systems with numerical atomic orbitals: Basis function fitting and integral screening,” J. Chem. Phys. [135](http://dx.doi.org/ 10.1063/1.3610379), 034110 (2011). 46(), see: `[https://sourceforge.net/projects/libint/](https://sourceforge.net/projects/libint/)`, provided by E. Valeev and J. T. Fermann. 47S. Obara and A. Saika, “Efficient recursive computation of molecular integrals over cartesian gaussian functions,” J. Chem. Phys. [84](http://dx.doi.org/10.1063/1.450106), 3963–3974 [(1986).](http://dx.doi.org/10.1063/1.450106) 48M. Head-Gordon and J. A. Pople, “A method for two-electron gaussian integral and integral derivative evaluation using recurrence relations,” [J.](http://dx.doi.org/10.1063/1.455553) Chem. Phys. 89 [, 5777–5786 (1988).](http://dx.doi.org/10.1063/1.455553) 49J. P. Perdew, K. Burke, and M. Ernzerhof, “Generalized gradient approximation made simple,” Phys. Rev. Lett. 77 [, 3865–3868 (1996).](http://dx.doi.org/10.1103/PhysRevLett.77.3865) 50C. Kittel, _Introduction_ _to_ _Solid_ _State_ _Physics_ (John Wiley & Sons, New York, 1986). 51S. H. Wemple, “Polarization fluctuations and the optical-absorption edge in batio3,” Phys. Rev. B 2 [, 2679–2689 (1970).](http://dx.doi.org/10.1103/PhysRevB.2.2679) 52R. Cuadrado and J. I. Cerdá, “Fully relativistic pseudopotential formalism under an atomic orbital basis: spin–orbit splittings and magnetic anisotropies,” J. Phys.: [Condens. Matter](http://dx.doi.org/10.1088/0953-8984/24/8/086005) 24, 086005 (2012). 53L. Fernández-Seivane, M. A. Oliveira, S. Sanvito, and J. Ferrer, “Onsite approximation for spin–orbit coupling in linear combination of atomic orbitals density functional methods,” J. Phys.: [Condens. Matter](http://dx.doi.org/ 10.1088/0953-8984/18/34/012) 18, 7999– [8013 (2006).](http://dx.doi.org/ 10.1088/0953-8984/18/34/012) 54F. Fernández-Seivane, M. A. Oliveira, S. Sanvito, and J. Ferrer, “Erratum: On-site approximation for spin–orbit coupling in lcao density functional methods,” J. Phys.: [Condens. Matter](http://dx.doi.org/10.1088/0953-8984/19/48/489001) 19, 489001 (2007). 55L. A. Hemstreet, C. Y. Fong, and J. S. Nelson, “First-principles calculations of spin-orbit splittings in solids using nonlocal separable pseudopotentials,” Phys. Rev. B [47](http://dx.doi.org/10.1103/PhysRevB.47.4238), 4238 (1993). 56F. Zirkelbach, P.-Y. Prodhomme, P. Han, R. Cherian, and G. Bester, “Large-scale atomic effective pseudopotential program including an effi[cient spin-orbit coupling treatment in real space,” Phys. Rev. B](http://dx.doi.org/10.1103/PhysRevB.91.075119) 91, 075119 [(2015).](http://dx.doi.org/10.1103/PhysRevB.91.075119) 57V. W. zhe Yu, F. Corsetti, A. García, W. P. Huhn, M. Jacquelin, W. Jia, B. Lange, L. Lin, J. Lu, W. Mi, A. Seifitokaldani, Álvaro VázquezMayagoitia, C. Yang, H. Yang, and V. Blum, “Elsi: A unified software [interface for kohn-sham electronic structure solvers,” Comput. Phys. Com-](http://dx.doi.org/https://doi.org/10.1016/j.cpc.2017.09.007) mun. 222 [, 267 – 285 (2018).](http://dx.doi.org/https://doi.org/10.1016/j.cpc.2017.09.007) 58V. W. zhe Yu, C. Campos, W. Dawson, A. García, V. Havu, B. Hourahine, W. P. Huhn, M. Jacquelin, W. Jia, M. Keçeli, R. Laasner, Y. Li, L. Lin, J. Lu, J. Moussa, J. E. Roman, Álvaro Vázquez-Mayagoitia, C. Yang, and V. Blum, “Elsi - an open infrastructure for electronic structure solvers,” [(2019), arXiv:1912.13403 [physics.comp-ph].](http://arxiv.org/abs/1912.13403) 59J. Choi, J. Demmel, I. Dhillon, J. Dongarra, S. Ostrouchov, A. Petitet, K. Stanley, D. Walker, and R. Whaley, “Scalapack: a portable linear algebra library for distributed memory computers — design issues and perfor[mance,” Comput. Phys. Commun.](http://dx.doi.org/ https://doi.org/10.1016/0010-4655%0x2896%0x2900017-3) 97, 1 – 15 (1996). 60T. Auckenthaler, V. Blum, H.-J. Bungartz, T. Huckle, R. Johanni, L. Krämer, B. Lang, H. Lederer, and P. Willems, “Parallel solution of partial symmetric eigenvalue problems from electronic structure calculations,” Parallel Comput. [37](http://dx.doi.org/ https://doi.org/10.1016/j.parco.2011.05.002), 783 – 794 (2011). 61A. Marek, V. Blum, R. Johanni, V. Havu, B. Lang, T. Auckenthaler, A. Heinecke, H.-J. Bungartz, and H. Lederer, “The ELPA library: scalable parallel eigenvalue solutions for electronic structure theory and computational science,” J. Phys.: [Condens. Matter](http://dx.doi.org/ 10.1088/0953-8984/26/21/213201) 26, 213201 (2014). 62P. K˙us, A. Marek, S. Koecher, H.-H. Kowalski, C. Carbogno, C. Scheurer, K. Reuter, M. Scheffler, and H. Lederer, “Optimizations of the eigensolvers in the elpa library,” Parallel Comput. [85](http://dx.doi.org/https://doi.org/10.1016/j.parco.2019.04.003), 167 – 177 (2019). 63S. Goedecker, “Integral representation of the fermi distribution and its applications in electronic-structure calculations,” Phys. Rev. [B](http://dx.doi.org/ 10.1103/PhysRevB.48.17573) 48, 17573– [17575 (1993).](http://dx.doi.org/ 10.1103/PhysRevB.48.17573) 64S. Mohr, W. Dawson, M. Wagner, D. Caliste, T. Nakajima, and L. Genovese, “Efficient Computation of Sparse Matrix Functions for Large-Scale Electronic Structure Calculations: The <scp>CheSS</scp> Library,” [J.](http://dx.doi.org/10.1021/acs.jctc.7b00348) [Chem. Theory Comput.](http://dx.doi.org/10.1021/acs.jctc.7b00348) 13, 4684–4698 (2017). 65L. Genovese, A. Neelov, S. Goedecker, T. Deutsch, S. A. Ghasemi, A. Willand, D. Caliste, O. Zilberberg, M. Rayson, A. Bergman, and R. Schneider, “Daubechies wavelets as a basis set for density functional pseudopotential calculations,” J. Chem. Phys. [129](http://dx.doi.org/10.1063/1.2949547), 014109 (2008). 66L. Lin, M. Chen, C. Yang, and L. He, “Accelerating atomic orbital-based electronic structure calculation via pole expansion and selected inversion,” J. Phys.: [Condens. Matter](http://dx.doi.org/ 10.1088/0953-8984/25/29/295501) 25, 295501 (2013). 67L. Lin, A. García, G. Huhs, and C. Yang, “SIESTA-PEXSI: massively parallel method for efficient and accurateab initiomaterials simulation without matrix diagonalization,” J. Phys.: [Condens. Matter](http://dx.doi.org/10.1088/0953-8984/26/30/305503) 26, 305503 (2014). 68W. Hu, L. Lin, C. Yang, and J. Yang, “Electronic structure and aromaticity of large-scale hexagonal graphene nanoflakes,” J. Chem. [Phys.](http://dx.doi.org/10.1063/1.4902806) 141, [214704 (2014).](http://dx.doi.org/10.1063/1.4902806) 69F. Corsetti, “The orbital minimization method for electronic structure calculations with finite-range atomic basis sets,” Comput. [Phys.](http://dx.doi.org/ https://doi.org/10.1016/j.cpc.2013.12.008) Commun. 185 [, 873 – 883 (2014).](http://dx.doi.org/ https://doi.org/10.1016/j.cpc.2013.12.008) 70T. Imamura, S. Yamada, and M. Machida, “Development of a highperformance eigensolver on a peta-scale next-generation supercomputer [system,” Progress in Nuclear Science and Technology](http://dx.doi.org/10.15669/pnst.2.643) 2, 643–650 (2011). 71J. Dongarra, M. Gates, A. Haidar, J. Kurzak, P. Luszczek, S. Tomov, and I. Yamazaki, “Accelerating numerical dense linear algebra calculations with GPUs,” Numerical Computations with GPUs, 1–26 (2014). 72V. Hernandez, J. E. Roman, and V. Vidal, “SLEPc: A scalable and flexible toolkit for the solution of eigenvalue problems,” ACM Transactions on Mathematical Software 31, 351–362 (2005). 73W. Dawson and T. Nakajima, “Massively parallel sparse matrix function [calculations with ntpoly,” Comput. Phys. Commun.](http://dx.doi.org/ https://doi.org/10.1016/j.cpc.2017.12.010) 225, 154 – 165 (2018). 74A. Tsolakidis, D. Sánchez-Portal, and R. M. Martin, “Calculation of the optical response of atomic clusters using time-dependent density functional theory and local orbitals,” Phys. Rev. B 66 [, 235416 (2002).](http://dx.doi.org/ 10.1103/PhysRevB.66.235416) 75E. Artacho and D. D. O’Regan, “Quantum mechanics in an evolving hilbert space,” Phys. Rev. B 95 [, 115155 (2017).](http://dx.doi.org/ 10.1103/PhysRevB.95.115155) 76J. K. Tomfohr and O. F. Sankey, “Time-dependent simulation of conduc[tion through a molecule,” Phys. Status Solidi (b)](http://dx.doi.org/ 10.1002/1521-3951%0x28200107%0x29226:1<115::AID-PSSB115>3.0.CO;2-5) 226, 115–123 (2001). 77A. A. Correa, J. Kohanoff, E. Artacho, D. Sánchez-Portal, and A. Caro, “Nonadiabatic forces in ion-solid interactions: The initial stages of radiation damage,” Phys. Rev. Lett. [108](http://dx.doi.org/ 10.1103/PhysRevLett.108.213201), 213201 (2012). 78M. A. Zeb, J. Kohanoff, D. Sánchez-Portal, A. Arnau, J. I. Juaristi, and E. Artacho, “Electronic stopping power in gold: The role of _d_ electrons and the H _/_ He anomaly,” Phys. Rev. Lett. [108](http://dx.doi.org/ 10.1103/PhysRevLett.108.225504), 225504 (2012). 79R. Ullah, F. Corsetti, D. Sánchez-Portal, and E. Artacho, “Electronic stopping power in a narrow band gap semiconductor from first principles,” Phys. Rev. B 91 [, 125203 (2015).](http://dx.doi.org/ 10.1103/PhysRevB.91.125203) 80J. Halliday and E. Artacho, “Anisotropy of electronic stopping power in graphite,” Phys. Rev. B [100](http://dx.doi.org/ 10.1103/PhysRevB.100.104112), 104112 (2019). 81F. Corsetti, “Performance analysis of electronic structure codes on hpc systems: A case study of siesta,” PLOS ONE [9](http://dx.doi.org/10.1371/journal.pone.0095390), 1–8 (2014). 82F. Corsetti, https://gitlab.e-cam2020.eu/esl/omm. 83E. Anderson, A. Benzoni, J. Dongarra, S. Moulton, S. Ostrouchov, B. Tourancheau, and R. van de Geijn, “Basic linear algebra comrnunication subprograms,” in _The_ _Sixth_ _Distributed_ _[Memory](http://dx.doi.org/10.1109/DMCC.1991.633146)_ _Computing_ _Con-_ _[ference, 1991. Proceedings](http://dx.doi.org/10.1109/DMCC.1991.633146)_ (1991) pp. 287–290. 84L. S. Blackford, J. Choi, A. Cleary, E. D’Azevedo, J. Demmel, I. Dhillon, J. Dongarra, S. Hammarling, G. Henry, A. Petitet, K. Stanley, D. Walker, and R. C. Whaley, _ScaLAPACK_ _Users’_ _Guide_ (Society for Industrial and Applied Mathematics, Philadelphia, PA, 1997). 85F. Tisseur and J. Dongarra, “A parallel divide and conquer algorithm for the symmetric eigenvalue problem on distributed memory architectures,” SIAM J. Sci. Comput. [20](http://dx.doi.org/ 10.1137/S1064827598336951), 2223–2236 (1999). 86T. N. Todorov, “Time-dependent tight binding,” J. Phys.: [Condens. Matter](http://dx.doi.org/10.1088/0953-8984/13/45/302) 13 [, 10125–10148 (2001).](http://dx.doi.org/10.1088/0953-8984/13/45/302) 87J. Halliday and E. Artacho, (in preparation) (2020). 88I. Tavernelli, U. F. Röhrig, and U. Rothlisberger, “Molecular dynamics in electronically excited states using time-dependent density functional theory,” Mol. Phys. 103 [, 963–981 (2005).](http://dx.doi.org/10.1080/00268970512331339378) 89“Cpmd v3.13,” Copyright IBM Corp (1990-2008), copyright MPI fuer Festkoerperforschung Stuttgart (1997-2001). 90P. López-Tarifa, M.-A. Hervé du Penhoat, R. Vuilleumier, M.-P. Gaigeot, I. Tavernelli, A. Le Padellec, J.-P. Champeaux, M. Alcamí, P. MorettoCapelle, F. Martín, and M.-F. Politis, “Ultrafast nonadiabatic fragmentation dynamics of doubly charged uracil in a gas phase,” Phys. [Rev.](http://dx.doi.org/ 10.1103/PhysRevLett.107.023202) Lett. 107 [, 023202 (2011).](http://dx.doi.org/ 10.1103/PhysRevLett.107.023202) 91P. López-Tarifa, M.-A. Penhoat, R. Vuilleumier, M.-P. Gaigeot, U. Rothlisberger, I. Tavernelli, A. Le Padellec, J.-P. Champeaux, M. Alcami, P. moretto capelle, F. Martín, and M. Politis, “Time-dependent density functional theory molecular dynamics simulation of doubly charged uracil in gas phase,” Cent. Eur. J. Phys. [12](http://dx.doi.org/10.2478/s11534-014-0428-0), 97–102 (2014). 92M.-P. Gaigeot, P. Lopez-Tarifa, F. Martin, M. Alcami, R. Vuilleumier, I. Tavernelli, M.-A. Penhoat, and M. Politis, “Theoretical investigation of the ultrafast dissociation of ionised biomolecules immersed in water: Direct and indirect effects,” Mutat. Res. [704](http://dx.doi.org/10.1016/j.mrrev.2010.01.004), 45–53 (2010). 93A. D. Becke, “Density-functional exchange-energy approximation with correct asymptotic behavior,” Phys. Rev. A 38 [, 3098–3100 (1988).](http://dx.doi.org/10.1103/PhysRevA.38.3098) 94C. Lee, W. Yang, and R. G. Parr, “Development of the colle-salvetti [correlation-energy formula into a functional of the electron density,” Phys.](http://dx.doi.org/10.1103/PhysRevB.37.785) Rev. B 37 [, 785–789 (1988).](http://dx.doi.org/10.1103/PhysRevB.37.785) 95J. M. Pruneda, D. Sánchez-Portal, A. Arnau, J. I. Juaristi, and E. Artacho, “Electronic stopping power in lif from first principles,” Phys. [Rev.](http://dx.doi.org/10.1103/PhysRevLett.99.235501) Lett. 99 [, 235501 (2007).](http://dx.doi.org/10.1103/PhysRevLett.99.235501) 96A. A. Correa, “Calculating electronic stopping power in materials from first principles,” Comp. Mater. Sci. [150](http://dx.doi.org/https://doi.org/10.1016/j.commatsci.2018.03.064), 291 – 303 (2018). 97J. M. Pruneda, S. K. Estreicher, J. Junquera, J. Ferrer, and P. Ordejón, “Ab [initio local vibrational modes of light impurities in silicon,” Phys. Rev. B](http://dx.doi.org/ 10.1103/PhysRevB.65.075210) 65 [, 075210 (2002).](http://dx.doi.org/ 10.1103/PhysRevB.65.075210) 98N. Papior, N. Lorente, T. Frederiksen, A. García, and M. Brandbyge, “Improvements on non-equilibrium and transport green function techniques: The next-generation transiesta,” Comput. Phys. [Commun.](http://dx.doi.org/https://doi.org/10.1016/j.cpc.2016.09.022) 212, 8 - 24 [(2017).](http://dx.doi.org/https://doi.org/10.1016/j.cpc.2016.09.022) 99N. Papior, G. Calogero, S. Leitherer, and M. Brandbyge, “Removing all periodic boundary conditions: Efficient nonequilibrium Green’s function calculations,” Phys. Rev. B [100](http://dx.doi.org/10.1103/PhysRevB.100.195417), 195417 (2019). 100K. W. Jacobsen, J. T. Falkenberg, N. Papior, P. Bøggild, A.-P. Jauho, and M. Brandbyge, “All-graphene edge contacts: Electrical resistance of graphene t-junctions,” Carbon 101 [, 101 – 106 (2016).](http://dx.doi.org/ https://doi.org/10.1016/j.carbon.2016.01.084) 101M. Kolmer, P. Brandimarte, J. Lis, R. Zuzak, S. Godlewski, H. Kawai, A. Garcia-Lekue, N. Lorente, T. Frederiksen, C. Joachim, D. SanchezPortal, and M. Szymonski, “Electronic transport in planar atomic-scale [structures measured by two-probe scanning tunneling spectroscopy,” Nat.](http://dx.doi.org/ 10.1038/s41467-019-09315-6) Commun. [10](http://dx.doi.org/ 10.1038/s41467-019-09315-6), 1573 (2019). 102P. Brandimarte, M. Engelund, N. Papior, A. Garcia-Lekue, T. Frederiksen, and D. Sánchez-Portal, “A tunable electronic beam splitter realized with crossed graphene nanoribbons,” J. Chem. Phys. [146](http://dx.doi.org/ 10.1063/1.4974895), 092318 (2017). 103N. Papior, “sisl: [v0.9.7,”](http://dx.doi.org/10.5281/zenodo.597181) (2019). 104https://github.com/tfrederiksen/inelastica/. 105T. Frederiksen, M. Paulsson, M. Brandbyge, and A.-P. Jauho, “Inelastic transport theory from first principles: Methodology and application to nanoscale devices,” Phys. Rev. B 75 [, 205413 (2007).](http://dx.doi.org/10.1103/PhysRevB.75.205413) 106See: `[http://www.wannier.org](http://www.wannier.org)` . 107G. Pizzi, V. Vitale, R. Arita, S. Blügel, F. Freimuth, G. Géranton, M. Gibertini, D. Gresch, C. Johnson, T. Koretsune, J. Ibañez-Azpiroz, H. Lee, J.-M. Lihm, D. Marchand, A. Marrazzo, Y. Mokrousov, J. I. Mustafa, Y. Nohara, Y. Nomura, L. Paulatto, S. Poncé, T. Ponweiser, J. Qiao, F. Thöle, S. S. Tsirkin, M. Wierzbowska, N. Marzari, D. Vanderbilt, I. Souza, A. A. Mostofi, and J. R. Yates, “Wannier90 as a community code: new features and applications,” J. Phys.: [Condens. Matter](http://dx.doi.org/10.1088/1361-648x/ab51ff) 32, 165902 (2020). 108N. Marzari and D. Vanderbilt, “Maximally localized generalized wannier functions for composite energy bands,” Phys. Rev. B [56](http://dx.doi.org/10.1103/PhysRevB.56.12847), 12847–12865 [(1997).](http://dx.doi.org/10.1103/PhysRevB.56.12847) 109N. Marzari, A. A. Mostofi, J. R. Yates, I. Souza, and D. Vanderbilt, “Maximally localized wannier functions: [Theory and applications,” Rev. Mod.](http://dx.doi.org/10.1103/RevModPhys.84.1419) Phys. 84 [, 1419–1475 (2012).](http://dx.doi.org/10.1103/RevModPhys.84.1419) 110D. Vanderbilt, _Berry_ _phases_ _in_ _electronic_ _structure_ _theory_ (Cambridge University Press, 2018). 111https://github.com/romerogroup/DMFTwDFT. 112V. Singh, U. Herath, B. Wah, X. Liao, A. H. Romero, and H. Park, “Dmftwdft: An open-source code combining dynamical mean field theory with various density functional theory packages,” (2020), [arXiv:2002.00068v1.](http://arxiv.org/abs/2002.00068v1) 113X. Wu, A. Selloni, and R. Car, “Order- _n_ implementation of exact exchange in extended insulating systems,” Phys. Rev. B 79 [, 085102 (2009).](http://dx.doi.org/ 10.1103/PhysRevB.79.085102) 114P. García-Fernández, J. C. Wojdeł, J. Íñiguez, and J. Junquera, “Secondprinciples method for materials simulations including electron and lattice degrees of freedom,” Phys. Rev. B 93 [, 195137 (2016).](http://dx.doi.org/10.1103/PhysRevB.93.195137) 115J. C. Wojdeł, P. Hermet, M. P. Ljungberg, P. Ghosez, and J. Íñiguez, “Firstprinciples model potentials for lattice-dynamical studies: general methodology and example of application to ferroic perovskite oxides,” J. [Phys.:](http://dx.doi.org/ 10.1088/0953-8984/25/30/305401) [Condens. Matter](http://dx.doi.org/ 10.1088/0953-8984/25/30/305401) 25, 305401 (2013). 116P. Torres, J. A. Seijas-Bellido, C. Escorihuela-Sayalero, J. Íñiguez, and R. Rurali, “Theoretical investigation of lattice thermal conductivity and electrophononic effects in srtio3,” Phys. Rev. Mater. [3](http://dx.doi.org/ 10.1103/PhysRevMaterials.3.044404), 044404 (2019). 117J. A. Seijas-Bellido, J. Íñiguez, and R. Rurali, “Anisotropy-driven ther[mal conductivity switching and thermal hysteresis in a ferroelectric,” Appl.](http://dx.doi.org/10.1063/1.5127825) Phys. Lett. [115](http://dx.doi.org/10.1063/1.5127825), 192903 (2019). 118J. A. Seijas-Bellido, H. Aramberri, J. Íñiguez, and R. Rurali, “Electric [control of the heat flux through electrophononic effects,” Phys. Rev. B](http://dx.doi.org/ 10.1103/PhysRevB.97.184306) 97, [184306 (2018).](http://dx.doi.org/ 10.1103/PhysRevB.97.184306) 119S. Das, Y. L. Tang, Z. Hong, M. A. P. Gonçalves, M. R. McCarter, C. Klewe, K. X. Nguyen, F. Gómez-Ortiz, P. Shafer, E. Arenholz, V. A. Stoica, S.-L. Hsu, B. Wang, C. Ophus, J. F. Liu, C. T. Nelson, S. Saremi, B. Prasad, A. B. Mei, D. G. Schlom, J. Íñiguez, P. García-Fernández, D. A. Muller, L. Q. Chen, J. Junquera, L. W. Martin, and R. Ramesh, “Observation of room-temperature polar skyrmions,” Nature 568 [, 368–372 (2019).](http://dx.doi.org/10.1038/s41586-019-1092-8) 120A. K. Yadav, K. X. Nguyen, Z. Hong, P. García-Fernández, P. AguadoPuente, C. T. Nelson, S. Das, B. Prasad, D. Kwon, S. Cheema, A. I. Khan, C. Hu, J. Íñiguez, J. Junquera, L.-Q. Chen, D. A. Muller, R. Ramesh, and [S. Salahuddin, “Spatially resolved steady-state negative capacitance,” Na-](http://dx.doi.org/10.1038/s41586-018-0855-y) ture 565 [, 468–471 (2019).](http://dx.doi.org/10.1038/s41586-018-0855-y) 121R.Ierusalimschy, _Programming in Lua, Fourth Edition_ (Feisty Duck Digital Book Distribution, 2016). 122https://siesta-project.github.io/flos/ldoc/index.html (). 123S. Smidstrup, A. Pedersen, K. Stokbro, and H. Jónsson, “Improved initial [guess for minimum energy path calculations,” J. Chem. Phys.](http://dx.doi.org/10.1063/1.4878664) 140, 214106 [(2014).](http://dx.doi.org/10.1063/1.4878664) 124D. Sheppard, R. Terrell, and G. Henkelman, “Optimization methods for finding minimum energy paths,” J. Chem. Phys. [128](http://dx.doi.org/10.1063/1.2841941), 134106 (2008). 125S. A. Trygubenko and D. J. Wales, “A doubly nudged elastic band method for finding transition states,” J. Chem. Phys. 120 [, 2082–2094 (2004).](http://dx.doi.org/ 10.1063/1.1636455) 126G. R. Qian, X. Dong, X. F. Zhou, Y. Tian, A. R. Oganov, and H. T. Wang, “Variable cell nudged elastic band method for studying solid-solid struc[tural phase transitions,” Comput. Phys. Commun.](http://dx.doi.org/10.1016/j.cpc.2013.04.004) 184, 2111–2118 (2013). 127https://esl.cecam.org/Flook (). 128G. Pizzi, A. Cepellotti, R. Sabatini, N. Marzari, and B. Kozinsky, “Aiida: automated interactive infrastructure and database for computational science,” Comput. Mater. Sci. [111](http://dx.doi.org/ https://doi.org/10.1016/j.commatsci.2015.09.013), 218 – 230 (2016). 129(), see: `[http://www.aiida.net/](http://www.aiida.net/)` . 130https://aiida.readthedocs.io/ (). 131https://aiida-siesta-plugin.readthedocs.io/. 132S. G. Mayo, F. Yndurain, and J. M. Soler, “Band unfolding made simple,” J. Phys.: [Condens. Matter](http://dx.doi.org/10.1088/1361-648x/ab6e8e) 32, 205902 (2020). 133G. Calogero, N. Papior, M. Koleini, M. Larsen, and M. Brandbyge, “Multi-scale approach to first-principles electron transport beyond 100 nm,” Nanoscale 11 [, 6153–6164 (2019).](http://dx.doi.org/10.1039/c9nr00866g) 134A. H. Larsen, J. J. Mortensen, J. Blomqvist, I. E. Castelli, R. Christensen, M. Dułak, J. Friis, M. N. Groves, B. Hammer, C. Hargus, E. D. Hermes, P. C. Jennings, P. B. Jensen, J. Kermode, J. R. Kitchin, E. L. Kolsbjerg, J. Kubal, K. Kaasbjerg, S. Lysgaard, J. B. Maronsson, T. Maxson, T. Olsen, L. Pastewka, A. Peterson, C. Rostgaard, J. Schiøtz, O. Schütt, 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.: Condens. Matter 29, 273002 [(2017).](http://stacks.iop.org/0953-8984/29/i=27/a=273002) [135A. Kokalj, “XCrySDen, a crystalline and molecular structure visualisation](http://www.xcrysden.org) [program,” http://www.xcrysden.org.](http://www.xcrysden.org) 136K. Momma, “VESTA, a 3D [visualization](http://jp-minerals.org/vesta/en/) program for structural models, volumetric data, and crystal morphologies,” http://jpminerals.org/vesta/en/. 137A. Postnikov and N. B. Mortazavi Amiri, “Calculated vibration spectrum of monoclinic Cu2SnSe3 in comparison with kesterite-type Cu2ZnSnSe4,” Phys. Status Solidi A [210](http://dx.doi.org/ 10.1002/pssa.201200837), 1332–1335 (2013). 138M. N. Rao, D. Lamago, A. Ivanov, M. d’Astuto, A. V. Postnikov, R. Hajj Hussein, T. Basak, S. L. Chaplot, F. Firszt, W. Paszkowicz, S. K. Deb, and O. Pagés, “Lattice dynamics of the model percolation-type (Zn,Be)Se alloy: Inelastic neutron scattering, _ab_ _initio_ study, and shellmodel calculations,” Phys. Rev. B 89 [, 155201 (2014).](http://dx.doi.org/10.1103/PhysRevB.89.155201) 139“Bilbao Crystallographic Server _→_ [Raman](https://www.cryst.ehu.es/rep/sam.html) and Hyper-Raman scattering _→_ [Specral Active Modes,” https://www.cryst.ehu.es/rep/sam.html.](https://www.cryst.ehu.es/rep/sam.html) 140V. Kosyak, N. B. Mortazavi Amiri, A. Postnikov, and M. A. Scarpulla, “Model of native point defect equilibrium in Cu2ZnSnS4 and application to one-zone annealing,” J. Appl. Phys. [114](http://dx.doi.org/10.1063/1.4819206), 124501 (2013). 141N. B. Mortazavi Amiri, _Relation entre motifs structuraux et dynamique de_ _réseau_ _dans_ _les_ _cristaux_ _mixtes_ _Cu-Zn-Sn-Se:_ _étude_ _premiers_ _principes_, [Ph.D. thesis, Université de Lorraine (2013).](http://theses.fr/2013LORR0333) 142M. P. Allen and D. J. Tildesley, _Computer Simulation of Liquids_ (Oxford University Press, Oxford, 1987). 143A. V. Postnikov, “Vibrations in solids and small particles from firstprinciples calculations,” in _Comput. Mater. Sci._, NATO Science Series III (Computer and System Science), Vol. 187, edited by C. R. A. Catlow and E. Kotomin (IOS Press, 2003) pp. 153–166, proceedings of the NATO Advanced Study Institute “Computational Materials Science”, Il Ciocco, September 9–22, 2001. 144O. Coulaud, P. Bordat, P. Fayon, V. Le Bris, I. Baraille, and R. Brown, “Extensions of the Siesta DFT [Code](https://hal.inria.fr/hal-00787088) for Simulation of Molecules,” Research Report RR-8221 (INRIA, 2013). 145P. Koval, M. Barbry, and D. Sánchez-Portal, “Pyscf-nao: An efficient and flexible implementation of linear response time-dependent density functional theory with numerical atomic orbitals,” Comput. [Phys.](http://dx.doi.org/ https://doi.org/10.1016/j.cpc.2018.08.004) Commun. 236 [, 188 – 204 (2019).](http://dx.doi.org/ https://doi.org/10.1016/j.cpc.2018.08.004) 146M. Petersilka, U. Gossmann, and E. Gross, “Excitation Energies from [Time-Dependent Density-Functional Theory,” Phys. Rev. Lett.](http://dx.doi.org/ 10.1103/PhysRevLett.76.1212) 76, 1212– [1215 (1996).](http://dx.doi.org/ 10.1103/PhysRevLett.76.1212) 147P. Koval, F. Marchesin, D. Foerster, and D. Sánchez-Portal, “Optical response of silver clusters and their hollow shells from linear-response TDDFT,” J. Phys.: [Condens. Matter](http://dx.doi.org/10.1088/0953-8984/28/21/214001) 28, 214001 (2016). 148Y. Li and C. A. Ullrich, “The particle–hole map: A computational tool to [visualize electronic excitations,” J. Chem. Theory Comput.](http://dx.doi.org/10.1021/acs.jctc.5b00987) 11, 5838–5852 [(2015).](http://dx.doi.org/10.1021/acs.jctc.5b00987) 149R. Dronskowski and P. E. Blöchl, “Crystal orbital hamilton populations (cohp): energy-resolved visualization of chemical bonding in solids based on density-functional calculations,” The Journal of Physical Chemistry 97, 8617–8624 (1993). 150M. Barbry, P. Koval, F. Marchesin, R. Esteban, A. G. Borisov, J. Aizpurua, and D. Sánchez-Portal, “Atomistic Near-Field Nanoplasmonics: Reaching Atomic-Scale Resolution in Nanooptics,” Nano Lett. [15](http://dx.doi.org/ 10.1021/acs.nanolett.5b00759), 3410–3419 [(2015).](http://dx.doi.org/ 10.1021/acs.nanolett.5b00759) 151F. Marchesin, P. Koval, M. Barbry, J. Aizpurua, and D. Sánchez-Portal, “Optical response of metallic nanojunctions driven by single atom motion,” ACS Photonics 3 [, 269–277 (2016).](http://dx.doi.org/ 10.1021/acsphotonics.5b00609) 152M. Barbry, _Plasmons_ _in_ _Nanoparticles:_ _Atomistic_ _Ab_ _Initio_ _Theory_ _for_ _Large Systems_ [, Ph.D. thesis, University of Basque Country, Donostia-San](http://cfm.ehu.es/education/thesis/) Sebastián, Spain (2018), `[http://cfm.ehu.es/view/files/MArc_](http://cfm.ehu.es/view/files/MArc_barbry_2-1.pdf)` `[barbry_2-1.pdf](http://cfm.ehu.es/view/files/MArc_barbry_2-1.pdf)` (accessed June 14 2019). 153E. Lampin, P. L. Palla, P.-A. Francioso, and F. Cleri, “Thermal conductivity from approach-to-equilibrium molecular dynamics,” J. [Appl.](http://dx.doi.org/ 10.1063/1.4815945) Phys. 114 [, 033525 (2013).](http://dx.doi.org/ 10.1063/1.4815945) 154S. Illera, M. Pruneda, L. Colombo, and P. Ordejón, “Thermal and transport properties of pristine single-layer hexagonal boron nitride: A first principles investigation,” Phys. Rev. Mater. [1](http://dx.doi.org/10.1103/PhysRevMaterials.1.044006), 044006 (2017). 155S. García-Gil, A. García, and P. Ordejón, “Calculation of core level shifts [within dft using pseudopotentials and localized basis sets,” Eur. Phys. J. B](http://dx.doi.org/10.1140/epjb/e2012-30334-5) 85 [, 239 (2012).](http://dx.doi.org/10.1140/epjb/e2012-30334-5) 156S. Garcia-Gil, A. Arnau, and A. Garcia-Lekue, “Exploring large o 1s and n 1s core level shifts due to intermolecular hydrogen bond formation in organic molecules,” Surf. Sci. 613 [, 102 – 107 (2013).](http://dx.doi.org/https://doi.org/10.1016/j.susc.2013.03.017) 157See: `[https://en.wikipedia.org/wiki/Reference_counting](https://en.wikipedia.org/wiki/Reference_counting)` . 158See: `[https://www.max-centre.eu/](https://www.max-centre.eu/)` . 159See: `[https://esl.cecam.org/](https://esl.cecam.org/)` . 160See: `[https://l_sim.gitlab.io/psolver/](https://l_sim.gitlab.io/psolver/)` . 161P. Zubko, N. Jecklin, A. Torres-Pardo, P. Aguado-Puente, A. Gloter, C. Lichtensteiger, J. Junquera, O. Stéphan, and J.-M. Triscone, “Electrostatic coupling and local structural distortions at interfaces in ferroelectric/paraelectric superlattices,” Nano Lett. 12 [, 2846–2851 (2012).](http://dx.doi.org/ 10.1021/nl3003717) 162P. Aguado-Puente and J. Junquera, “Structural and energetic properties of domains in pbtio3/srtio3 superlattices from first principles,” Phys. [Rev.](http://dx.doi.org/10.1103/PhysRevB.85.184105) B 85 [, 184105 (2012).](http://dx.doi.org/10.1103/PhysRevB.85.184105) 163A. K. Yadav, C. T. Nelson, S. L. Hsu, Z. Hong, J. D. Clarkson, C. M. Schlepütz, A. R. Damodaran, P. Shafer, E. Arenholz, L. R. Dedon, D. Chen, A. Vishwanath, A. M. Minor, L. Q. Chen, J. F. Scott, L. W. Martin, and R. Ramesh, “Observation of polar vortices in oxide superlattices,” Nature 530 [, 198–201 (2016).](http://dx.doi.org/10.1038/nature16463) 164P. Shafer, P. García-Fernández, P. Aguado-Puente, A. R. Damodaran, A. K. Yadav, C. T. Nelson, S.-L. Hsu, J. C. Wojdeł, J. Íñiguez, L. W. Martin, E. Arenholz, J. Junquera, and R. Ramesh, “Emergent chirality in the electric polarization texture of titanate superlattices,” Proc. Natl. Acad. Sci. U.S.A. 115 [, 915–920 (2018).](http://dx.doi.org/10.1073/pnas.1711652115) 165D. W. Boukhvalov, M. I. Katsnelson, and A. I. Lichtenstein, “Hydrogen on graphene: Electronic structure, total energy, structural distortions and magnetism from first-principles calculations,” Phys. Rev. [B](http://dx.doi.org/ 10.1103/PhysRevB.77.035427) 77, 035427 [(2008).](http://dx.doi.org/ 10.1103/PhysRevB.77.035427) 166O. V. Yazyev and L. Helm, “Defect-induced magnetism in graphene,” Phys. Rev. B 75 [, 125408 (2007).](http://dx.doi.org/10.1103/PhysRevB.75.125408) 167M. Slota, A. Keerthi, W. K. Myers, E. Tretyakov, M. Baumgarten, A. Ardavan, H. Sadeghi, C. J. Lambert, A. Narita, K. Müllen, and L. Bogani, “Magnetic edge states and coherent manipulation of graphene nanoribbons,” Nature 557 [, 691–695 (2018).](http://dx.doi.org/ 10.1038/s41586-018-0154-7) 168O. V. Yazyev and S. G. Louie, “Electronic transport in polycrystalline graphene,” Nat. Mater. 9 [, 806–809 (2010).](http://dx.doi.org/10.1038/nmat2830) 169O. V. Yazyev and S. G. Louie, “Topological defects in graphene: Dislocations and grain boundaries,” Phys. Rev. B 81 [, 195420 (2010).](http://dx.doi.org/ 10.1103/PhysRevB.81.195420) 170W. Y. Kim and K. S. Kim, “Prediction of very large values of magnetore[sistance in a graphene nanoribbon device,” Nat. Nanotechnol.](http://dx.doi.org/10.1038/nnano.2008.163) 3, 408–412 [(2008).](http://dx.doi.org/10.1038/nnano.2008.163) 171C. Moreno, M. Vilas-Varela, B. Kretz, A. Garcia-Lekue, M. V. Costache, M. Paradinas, M. Panighel, G. Ceballos, S. O. Valenzuela, D. Peña, and A. Mugarza, “Bottom-up synthesis of multifunctional nanoporous graphene,” Science 360 [, 199–203 (2018).](http://dx.doi.org/10.1126/science.aar2009) 172W. Hu, Y. Huang, X. Qin, L. Lin, E. Kan, X. Li, C. Yang, and J. Yang, “Room-temperature magnetism and tunable energy gaps in edgepassivated zigzag graphene quantum dots,” NPJ 2D [Mater.](http://dx.doi.org/10.1038/s41699-019-0098-2) Appl. 3, 17 [(2019).](http://dx.doi.org/10.1038/s41699-019-0098-2) 173S. Kim, J. Ihm, H. J. Choi, and Y.-W. Son, “Origin of anomalous electronic [structures of epitaxial graphene on silicon carbide,” Phys. Rev. Lett.](http://dx.doi.org/ 10.1103/PhysRevLett.100.176802) 100, [176802 (2008).](http://dx.doi.org/ 10.1103/PhysRevLett.100.176802) 174H. S. S. Ramakrishna Matte, A. Gomathi, A. K. Manna, D. J. Late, R. Datta, S. K. Pati, and C. N. R. Rao, “Mos2 and ws2 analogues of graphene,” Angew. Chem. Int. Ed. [49](http://dx.doi.org/10.1002/anie.201000009), 4059–4062 (2010). 175I. Popov, G. Seifert, and D. Tománek, “Designing electrical contacts to mos2 monolayers: [A computational study,” Phys. Rev. Lett.](http://dx.doi.org/10.1103/PhysRevLett.108.156802) 108, 156802 [(2012).](http://dx.doi.org/10.1103/PhysRevLett.108.156802) 176H. Liu, A. T. Neal, Z. Zhu, Z. Luo, X. Xu, D. Tománek, and P. D. Ye, “Phosphorene: An unexplored 2d semiconductor with a high hole mobility,” ACS Nano 8 [, 4033–4041 (2014).](http://dx.doi.org/ 10.1021/nn501226z) 177J. Guan, Z. Zhu, and D. Tománek, “Phase coexistence and metal-insulator transition in few-layer phosphorene: A computational study,” [Phys.](http://dx.doi.org/10.1103/PhysRevLett.113.046804) Rev. Lett. 113 [, 046804 (2014).](http://dx.doi.org/10.1103/PhysRevLett.113.046804) 178W. Hu, L. Lin, C. Yang, J. Dai, and J. Yang, “Edge-modified phosphorene nanoflake heterojunctions as highly efficient solar cells,” Nano [Lett.](http://dx.doi.org/ 10.1021/acs.nanolett.5b04593) 16, [1675–1682 (2016).](http://dx.doi.org/ 10.1021/acs.nanolett.5b04593) 179I. B. Guster, _A bird’s-eye view of charge and spin density wave from first_ _principles calculations_, Ph.D. thesis, Universitat Autonoma de Barcelona (2019). 180B. Guster, C. Rubio-Verdú, R. Robles, J. Zaldívar, P. Dreher, M. Pruneda, J. A. Silva-Guillén, D.-J. Choi, J. I. Pascual, M. M. Ugeda, P. Ordejón, and E. Canadell, “Coexistence of elastic modulations in the charge density wave state of 2h-nbse2,” Nano Lett. 19 [, 3027–3032 (2019).](http://dx.doi.org/10.1021/acs.nanolett.9b00268) 181B. Guster, M. Pruneda, P. Ordejón, E. Canadell, and J.-P. Pouget, “Evidence for the weak coupling scenario of the peierls transition in the blue bronze,” Phys. Rev. Mater. [3](http://dx.doi.org/ 10.1103/PhysRevMaterials.3.055001), 055001 (2019). 182P. J. de Pablo, F. Moreno-Herrero, J. Colchero, J. Gómez Herrero, P. Herrero, A. M. Baró, P. Ordejón, J. M. Soler, and E. Artacho, “Absence of dc-conductivity in _λ_ -dna,” Phys. Rev. Lett. 85 [, 4992–4995 (2000).](http://dx.doi.org/10.1103/PhysRevLett.85.4992) 183A. Crespo, D. A. Scherlis, M. A. Martí, P. Ordejón, A. E. Roitberg, and D. A. Estrin, “A dft-based qm-mm approach designed for the treatment of large molecular systems: application to chorismate mutase,” J. [Phys.](http://dx.doi.org/10.1021/jp036236h) Chem. B 107 [, 13728–13736 (2003).](http://dx.doi.org/10.1021/jp036236h) 184C. F. Sanz-Navarro, R. Grima, A. García, E. A. Bea, A. Soba, J. M. Cela, and P. Ordejón, “An efficient implementation of a qm-mm method in siesta,” Theor. Chem. Acc. [128](http://dx.doi.org/10.1007/s00214-010-0816-5), 825–833 (2011). 185G. T. Feliciano, A. J. R. da Silva, G. Reguera, and E. Artacho, “Molecular and electronic structure of the peptide subunit of geobacter sulfurreducens conductive pili from first principles,” J. Phys. Chem. [A](http://dx.doi.org/10.1021/jp302232p) 116, 8023–8030 [(2012).](http://dx.doi.org/10.1021/jp302232p) 186D. J. Cole and N. D. M. Hine, “Applications of large-scale density functional theory in biology,” J. Phys.: [Condens. Matter](http://dx.doi.org/ 10.1088/0953-8984/28/39/393001) 28, 393001 (2016). 187M. Darvish Ganji, “Amino acids interacting with defected carbon nanotubes: ab initio calculations,” Journal of [Pharmaceutical](http://jphs.iautmu.ac.ir/article_527133.html) & Health Sciences 4 [, 157–166 (2016).](http://jphs.iautmu.ac.ir/article_527133.html) 188W. Li, K. Kotsis, and S. Manzhos, “Comparative density functional theory and density functional tight binding study of arginine and arginine-rich cell penetrating peptide tat adsorption on anatase tio2,” Phys. [Chem.](http://dx.doi.org/ 10.1039/C6CP02671K) Chem. Phys. 18 [, 19902–19917 (2016).](http://dx.doi.org/ 10.1039/C6CP02671K) 189A. Hermann, “Chemical bonding at high pressure,” in _Reviews_ _in_ _Com-_ _[putational Chemistry](http://dx.doi.org/10.1002/9781119356059.ch1)_ (John Wiley & Sons, Ltd, 2017) Chap. 1, pp. 1–41, [https://onlinelibrary.wiley.com/doi/pdf/10.1002/9781119356059.ch1.](http://arxiv.org/abs/https://onlinelibrary.wiley.com/doi/pdf/10.1002/9781119356059.ch1) 190T. Liu, E. Artacho, F. Gázquez, G. Walters, and D. Hodell, “Prediction of equilibrium isotopic fractionation of the gypsum/bassanite/water system [using first-principles calculations,” Geochim. Cosmochim. Ac.](http://dx.doi.org/https://doi.org/10.1016/j.gca.2018.08.045) 244, 1 – 11 [(2019).](http://dx.doi.org/https://doi.org/10.1016/j.gca.2018.08.045) 191E. Mayoral, A. Rey, J. Klapp, A. Gómez, and M. Mayoral, “Ab initio dft calculations for materials in nuclear research,” in _High_ _Performance_ _Computing_, edited by C. J. Barrios Hernández, I. Gitler, and J. Klapp (Springer International Publishing, Cham, 2017) pp. 329–339. 192R. Escribano and G. M. Muñoz Caro, “Introduction to spectroscopy and astronomical observations,” in _Laboratory_ _[Astrophysics](http://dx.doi.org/ 10.1007/978-3-319-90020-9_3)_, edited by G. M. Muñoz Caro and R. Escribano (Springer International Publishing, Cham, 2018) pp. 27–47. 193F. Viñes, J. R. B. Gomes, and F. Illas, “Understanding the reactivity of metallic nanoparticles: beyond the extended surface model for catalysis,” Chem. Soc. Rev. 43 [, 4922–4939 (2014).](http://dx.doi.org/10.1039/C3CS60421G) 194F. Tao, W. Schneider, and P. Kamat, _[Heterogeneous](https://books.google.es/books?id=GaCbBgAAQBAJ)_ _Catalysis_ _at_ _[Nanoscale for Energy Applications](https://books.google.es/books?id=GaCbBgAAQBAJ)_ (Wiley, 2015). 195https://www.cp2k.org/dbcsr. 196I. Sivkov, P. Seewald, A. Lazzaro, and J. Hutter, “DBCSR: A blocked sparse tensor algebra library,” [(2019), arXiv:1910.13555.](http://arxiv.org/abs/1910.13555) 197http://esl.cecam.org/libOMM (). 198A. Marcolongo, P. Umari, and S. Baroni, “Microscopic theory and quantum simulation of atomic heat transport,” Nat. Phys. 12 [, 80–84 (2016).](http://dx.doi.org/ 10.1038/nphys3509)

섹션 본문 182문단 · 104,693자

(제목 없음)

1A review of the present status, recent enhancements, and applicability of the SIESTA program is presented. Since its debut in the mid-nineties, SIESTA's flexibility, efficiency and free distribution has given advanced materials simulation capabilities to many groups worldwide. The core methodological scheme of SIESTA combines finite-support pseudoatomic orbitals as basis sets, norm-conserving pseudopotentials, and a real-space grid for the representation of charge density and potentials and the computation of their associated matrix elements. Here we describe the more recent implementations on top of that core scheme, which include: full spin-orbit interaction, non-repeated and multiple-contact ballistic electron transport, DFT+U and hybrid functionals, time-dependent DFT, novel reduced-scaling solvers, densityfunctional perturbation theory, efficient Van der Waals non-local density functionals, and enhanced molecular-dynamics options. In addition, a substantial effort has been made in enhancing interoperability and interfacing with other codes and utilities, such as WANNIER90 and the second-principles modelling it can be used for, an AiiDA plugin for workflow automatization, interface to Lua for steering SIESTA runs, and various postprocessing utilities. SIESTA has also been arXiv:2006.01270v1 [physics.comp-ph] 1 Jun 2020 SIESTA 2 engaged in the Electronic Structure Library effort from its inception, which has allowed the sharing of various low level libraries, as well as data standards and support for them, in particular the PSML definition and library for transferable pseudopotentials, and the interface to the ELSI library of solvers. Code sharing is made easier by the new open-source licensing model of the program. This review also presents examples of application of the capabilities of the code, as well as a view of on-going and future developments.The possibility of treating large systems with firstprinciples electronic-structure methods has opened up new research avenues in many disciplines. The SIESTA method and its implementation have been key in this development, offering an efficient and flexible simulation paradigm based on the use of strictly localized basis sets. This approach enables the implementation of reduced scaling algorithms, and its accuracy and cost can be tuned in a wide range, from quick exploratory calculations to highly accurate simulations matching the quality of other approaches, such as plane-wave methods.The SIESTA method has been described in detail in Ref. 1, with an update in Ref. 2. In this paper we shall describe its present status, highlighting its strengths and documenting the steps that have recently been taken to improve its capabilities, performance, ease of use, and visibility in the electronicstructure community.

2As we shall see, the improvements touch many areas. We can underline the implementation of new core electronicstructure features (DFT+U, spin-orbit interaction, hybrid functionals), modes of operation (improved time-dependent density functional theory (TD-DFT), density functional perturbation theory (DFPT), and analysis methods and procedures to access new properties. A major effort has been spent in enhancing the interoperability of the code at various levels (sharing of pseudopotentials, a new wannierization interface opening the way to sophisticated post-processing, and an interface to multiscale methods). Very significant performance enhancements have been made, notably to the TRANSIESTA module through improved algorithms, and to the core electronic structure problem through the development of interfaces to new solvers. These advances have put SIESTA in a prominent place in the high-performance electronic-structure simulation scene, a role reinforced by its participation in important international initiatives and by its new open-source licensing model.

3The manuscript is organized as follows. We provide an overview of the underlying methodology and the capabilities of SIESTA in section II, which serves to place the code in the wider ecosystem of electronic-structure materials simulation. Section III presents the recent developments in and around the code, which are covered in sub-sections. To showcase SIESTA's utility in the context of electronic-structure calculations, we present briefly some relevant applications and survey a few areas in which SIESTA is being profitably used in section IV. Plans for the future evolution of SIESTA are outlined in section V.

II. KEY CONCEPTS OF SIESTA

4A. Theory background and context SIESTA appeared as a consequence of the push for linearscaling electronic structure methods of the mid nineties, which has been reviewed, for example, in Refs. 3 and 4. SIESTA was the first linear-scaling self-consistent implementation of density functional theory (DFT). 5,6 The SIESTA method relies on atomic-like functions of finite support as basis sets 7,8 -of arbitrary number, angular momentum, radial shape, and centers -combined with a discretization of space for the computation of the Kohn-Sham Hamiltonian terms that involve more than two centers. The electron-ion interaction is represented by norm-conserving pseudopotentials. These key ingredients, through the optimized handling of sparse matrices, are used to compute the self-consistent Hamiltonian and overlap matrices with a computational expense that scales linearly with system size. The SIESTA 3 method is completed with a choice of solvers for that Hamiltonian, from optimized (but cube-scaling) diagonalization methods, to reduced-scaling solvers of different flavors.

5The orbitals in the SIESTA basis set are made of the product of a real spherical harmonic and a radial function, which is numerically tabulated in a grid. The shape of the radial part is in principle totally arbitrary, but the experience accumulated has proven that the numerical solution of the Schrodinger equation for a (confined) isolated atom with the corresponding pseudopotential is a very good choice in terms of accuracy versus computational cost. Fuller descriptions of the mechanisms to generate and optimize these pseudo-atomic orbitals (PAOs) are given in Refs. 8-10. The auxiliary real-space grid is an essential ingredient of the method, as it allows the efficient representation of charge densities and potentials, as well as the computation of the matrix elements of the Hamiltonian that cannot be handled as two-center integrals. This grid can be seen as the reciprocal space of a set of plane waves, and its fineness is most conveniently parametrized by an energy cutoff (the "density" cutoff of plane-wave methods). There are limits to the softness of the functions that can be described with such a grid, so core electrons are not considered (although semi-core electrons usually are), and their effect is incorporated into pseudopotentials. The real-space grid is also used to solve the Poisson equation involved in the computation of the electrostatic potential from the charge density, through the use of a fast-fourier-transform method. This means that SIESTA uses periodic boundary conditions. Non periodic systems, such as molecules, tubes, or slabs, are treated using appropriate supercells.

6SIESTA is now a mature code with more than 20 years of existence. In this period, the most important algorithms behind our implementation have been already fully described and documented in a series of papers. Readers interested in the details of how the basic elements defining the method are combined, as well as other relevant implementation details that make the method practical, can find them in the main SIESTA reference 1 , and in the update with the new capabilities of the code 2 .

7We note that the term SIESTA is regularly used to describe both the method (as outlined in the earliest papers 5,6 ) and its implementation in a computer program. The SIESTA method is at the basis of later independent implementations, such as OpenMX, 11 and QuantumATK. 12 Other subsequent codes built on the method, revising some of the fundamental ingredients. This is the case of FHI-aims, 13 which uses a more sophisticated real-space grid (atom-centered), thus extending the core scheme to all-electron calculations.

8In this paper we describe new additions to the SIESTA code, based on independent methodological advances, either preexistent or specifically developed for SIESTA, as specified and cited in each section below.

B. Overview of Siesta capabilities

9As a general purpose implementation, SIESTA can provide the standard functionality available in mainstream DFT codes: energies, forces, molecular-dynamics simulations, band structures, densities of states, etc., and shares with those codes the basic current limitations of DFT (notably the description of strongly-correlated systems).

10What makes SIESTA different from most other codes, and is at the root of its key strengths, is the atomic-like, and strictly localized, character of its basis set. The use of a "good first approximation" to the full problem implies, first, that a much smaller number of basis functions is needed. Second, the finite-support of the orbitals leads to sparsity and the possibility to use reduced-scaling methods. Thus high performance emerges almost by default.

11Take first the basis cardinality: the number of basis orbital per atom in a typical SIESTA calculation is of the order of 10-20. This is to be compared with a few hundred in the typical plane-wave (PW) calculation. Furthermore, for systems whose description needs a vacuum region (e.g., slabs for surface calculations, 2D monolayers, etc), empty space is essentially "free" for SIESTA, whereas PW codes still need a basis set determined by the total size of the simulation cell. SIESTA is then quite capable of dealing with systems composed of dozens to hundreds of atoms on modest hardware, even when using cubic-scaling diagonalization solvers, which are the default as they are universally applicable.

12Electronic-structure solvers with a more favorable sizescaling can be applied to suitable systems. For example, one of SIESTA's earlier calculations, in 1996, was a linear-scaling run for a strand of DNA with 650 atoms, performed on a desktop workstation of the era. 6 Reduced size-scaling is also a feature of the PEXSI solver described in section III G 1 below, and of the NTPoly solver mentioned in section III G 2. In addition to time-to-solution efficiency, these solvers have a smaller memory footprint than diagonalization, as the relevant matrices are kept in sparse form rather than converted to a dense format.

13Crucially, SIESTA's baseline efficiency can be scaled up to ever-larger systems by parallelization. Both distributed (MPI) and shared-memory (OpenMP) parallelization options are implemented in the code. As some of the examples in section IV show, non-trivial calculations with thousands of atoms are used in applications in different contexts, from molecular biology to electronic transport.

14Work on the performance aspects of the code is continuous, mostly on the solvers, which usually take most of the computer time due to the very high efficiency of the Hamiltonian setup module in SIESTA. This task is facilitated (see section III O) by leveraging external libraries and developments generated by a number of international initiatives in which SIESTA participates. The code can still run efficiently in modest hardware, while also being able to exploit massive levels of parallelism in large supercomputers (see Fig. 1).

15It is worth noting also that the atomic character of the basis set enables the use of a very intuitive suite of analysis tools, sice most of the concepts relating to chemical bonding use the language of atomic orbitals. Hence SIESTA has a natural advantage in this area. Partial densities of states and atomic and crystal populations (COOP/COHP) are routinely used to gain insights into the stability and other properties of materials. for ScaLAPACK, Siesta-PEXSI needs only 144 cores for C-BN 0.00 and 64 for DNA-25. In the case of DNA even this minimal configuration is more than four times faster than diagonalization with 5120 processors. PEXSI's beneficial scaling with the system size, as described in section II C, guarantees that for large enough systems Siesta-PEXSI will always be faster than diagonalization. The scaling of the computational cost is demonstrated for DNA and C-BN in figure 3.

16In all tests full parallelization over poles is used. In this configuration the influence of the symbolic factorization would change the character of the method. Because in future this influence will be negligible, the time for symbolic factorization is not taken into account for the analysis.

17The numbers of processes for each system size are chosen to be an e cient trade-o↵ of reducing the time to solution while keeping the cost, which increases with the number of processes due to ine ciencies, as small as possible. Following this guideline it turns out, that for C-BN one can use more processors with Siesta-PEXSI than with ScaLAPACK. This also means, that the advantage of Siesta-PEXSI in terms of solution-time is even larger than the benefit of cost. For very sparse problems, like the largest DNA examples, the amount of processors that can be used is similar for both methods, but Siesta-PEXSI is about two orders of magnitude faster. More details are listed in The very high number of citations of the SIESTA papers testify to the successful application of the code to widely different systems. With regard to specific capabilities and the levels of accuracy achievable, we can distinguish several levels. First, SIESTA implements DFT, one of the most versatile materials simulation frameworks. DFT has its shortcomings, notably in regard to the description of strongly-correlated systems, but these are being addressed (see sections on DFT+U and hybrid functionals below). Second, SIESTA uses pseudopotentials to represent the electron-ion interaction. The pseudopotential approach is firmly rooted in a sound physical approximation (that bonding effects depend mostly on the valence electrons); however, it is at a disadvantage when coreelectrons effects are important (but see section III N 6 below). Third, SIESTA employs periodic boundary conditions (PBC) for the solution of the Poisson problem, sharing with planewave codes the need to resort to repeated supercells for the study of low-dimensional systems, and to special techniques for the treatment of charged systems. It is important to note, however, that, unlike plane-wave codes, SIESTA is only bound to PBC because of the present treatment of the Hartree term of the single-particle Hamiltonian. This limitation is lifted by the incorporation of alternative Poisson solvers, as described in Sec. III O, which allow for open boundary conditions, as for isolated nano-systems, and hybrid open/periodic boundary conditions in different dimensions, as for isolated wires and slabs. It should be remembered that the three approximations mentioned in this paragraph are very widely used in the community, shared by some of the most popular electronic structure codes.

18Fourth, with regard to SIESTA specific approximations, particularly the basis set, it should be stressed that SIESTA is limited to basis sets composed of functions that are product of a radial part and spherical harmonics, but it does not constrain on how many, where such functions are centered, and the size of their finite-support region. Calculations can flexibly range from quick exploration to very high-quality simulations (one may recall that accuracy gold standards in electronic structure are provided by quantum-chemistry methods, based on LCAO).

19The use of an atomic-orbital basis set implies however the limitation of non-uniformity of convergence. As opposed to plane-wave methods, in which a single energy cutoff parameter monotonically determines the quality of the calculation, there is no univocal procedure for the choice of an appropriate basis set. It is a well-known problem, shared by the whole quantum-chemistry community, on which there is widely used and tested know-how. As Fig. 2 shows, it is possible to attain in practice an accuracy comparable to that of well-converged plane-wave calculations. The reader is also referred to sections IV B and IV C 1 for showcase examples of the accuracy of the code, among many others in the literature.

20To close this section, we stress that it has been a traditional and deliberate attitude by the SIESTA team that, although proposing sensible starting points to users as defaults, the choice of fundamental approximations and inputs to the program (not only basis sets, but also density functionals, and pseudopotentials) is a responsibility of the users, who retain full control and the flexibility to adapt the code to their specific needs. Nevertheless, tools for basis optimization are provided with the program, new curated databases of pseudopotentials are coming online, and new ways to ameliorate the correlation problem are being implemented. Some of these developments are described in the following sections.

III. RECENT DEVELOPMENTS IN SIESTA

21A. New distribution model and development infrastructure A few years ago, in 2016, a decision was made to change the licensing model for SIESTA: traditionally it had always been free of charge to academics, but non-academic use required a special license and redistribution was not permitted. Now SIESTA is formally an open-source program, distributed according to the terms of the GPL license 18 . At the same time, the development infrastructure was made more transparent and scalable, using first the Launchpad platform 19 and now the Gitlab service 20 . The net effect of the changes has been a more fertile and dynamic development, with more contributors who can have direct access to the various branches of development, and a better experience for users, who can download code and raise issues in an integrated platform.

22These changes have been substantial for the core developers, and the transitory period is still being felt. The main code base is gradually absorbing new developments, both those that were planned long in advance, and new ones made possible by the greater openness and fluidity of the development model. Most of the new features described below are already part of public releases, but a few are undergoing the last stages of testing before release. The work-flow is also moving from long-lived releases, hard to maintain with bug-fixes, to more frequent releases that will be maintained for a shorter time.

23B. New pseudopotential format for interoperability PSML (for PSeudopotential Markup Language) 21,22 is a file format for norm-conserving pseudopotential data which is designed to encapsulate as much as possible the abstract concepts involved in the domain, and to provide appropriate metadata and provenance information. This extra level of formalization aims at removing the interoperability problems associated to bespoke pseudopotential formats, which usually were designed to serve the needs of specific generators and client codes, and thus contain implicit assumptions about the meaning of the data or lack information not considered relevant.

24PSML files can be produced by the ONCVPSP 23 and ATOM 24 pseudopotential generator programs, and are a download-format option in the Pseudo-Dojo database of curated pseudopotentials 25,26 .

25The software library libPSML 21,22 can be used by electronic structure codes to transparently extract the information in a PSML file and incorporate it into their own data structures, or to create converters for other formats. It is currently used by SIESTA and ABINIT, 17,27 making possible a full pseudopotential interoperability and facilitating comparisons of calculation results.

26The use of this new format opens the door to benefit from the availability of a periodic table of reliable and accurate norm-conserving pseudopotentials, easing in most cases the task of pseudopotential quality control.

C. DFT+U for correlated systems

27The LDA+U method, initially developed by Anisimov and coworkers 28 with the objective to improve the treatment of the electron-electron interaction for localized electrons within the bare LDA description, has been implemented in SIESTA. The idea behind the LDA+U consists in describing the "strongly correlated" electronic states of a system (typically, localized d or f orbitals) using the Hubbard model, whereas the rest of valence electrons are treated at the level of "standard" approximate DFT functionals. 29 In the current version of SIESTA the implementation is based on the simplified rotationally invariant functional proposed by Dudarev and coworkers. 30 Here, the corrections are made invariant under rotation of the atomic orbitals used to define the occupation number of the correlated subspace, at the cost of retaining only the lowest order Slater integrals in the factorization of the integrals of the Coulomb kernel of the electron-electron interaction, and neglecting the higher order ones (i.e. taking the exchange interaction J as 0). The expression of the corrective term as a functional of the occupation number n Iσ m of the localized correlated orbital m with spin σ within the atom I is given by

28where only one interaction parameter U I is needed to specify the interaction per atom and -shell. In the practical SIESTA implementation, the populations on the correlated orbitals are computed using non-overlapping (i. e. orthogonal) localized projectors. They can be generated using either (i) the same algorithm used to produce the first-ζ orbitals of the basis set, but with a larger energy shift, or (ii) cutting the exact solution of the pseudoatom with a Fermi function. The results of the LDA+U method are sensitively dependent on the numerical value of the effective on-site electronic interaction, the Hubbard U. Although in principle the value of U can be computed from first principles using linear response methods, 31 a common practice is to tune it semiempirically, seeking agreement of certain properties (for instance band gaps or magnetic moments) with available experimental measurements. Then, the fitted U is used in subsequent calculations to predict other properties.

29The LDA+U corrects localized states, for which the selfinteraction correction is expected to be stronger, and is an effective method to improve the description of the (underestimated) band gap of insulators, as shown in Fig. 3 for the case of NiO. Once the Hubbard correction is switched on, the optical band gap increases up to 3.08 eV (from the bare GGA-PBE value of 1.08 eV), very close to the experimental value for the onset of optical absorption in NiO 32 (3.10 eV). The magnetic moment on the Ni atom is also properly described, with a value of 1.67 µ B which lies well within the experimental range of values (between 1.64 µ B 33 and 1.9 µ B 34 ), and SIESTA 6 improves on the result of 1.39 µ B obtained with a bare GGA-PBE functional.

D. Van der Waals functionals

30An efficient calculation of van der Waals (vdW) functionals 35,36 was developed and first implemented in SIESTA using a polynomial expansion in the local variables (q 1 , q 2 ) of the nonlocal interaction kernel Φ(q 1 , q 2 , r 12 ) and a Fourier expansion in the relative position r 12 37 . As a result, the scaling of the vdW computation decreases from O(N 2 ) to O(N log N) and it becomes marginal within the overall cost. This scheme was later extended 16 to a more complex kernel 38 of the form Φ(n 1 , |∇n 1 |, n 2 , |∇n 2 |, r 12 ), and it has been applied to a large variety of systems, like carbon nanotubes 37 , hydrogen adsorption 39,40 , or liquid water 41 .

E. Hybrid functionals

31The screened hybrid functional HSE06 [42][43][44] has been implemented in SIESTA building on the work of Ref. 45. This functional is the result of adding nonlocal Hartree-Fock type exact exchange (HFX) into semilocal density functionals. The Coulomb potential that appears in the exchange interaction is screened, so it has a shorter range than 1/r. Here, to reduce the big prefactor involved in the computation of the HFX potential matrix elements, we fit the NAO of the basis set with Gaussian-type orbitals, specially suited to computing the four center electron repulsion integrals (ERIs) in a straightforward and efficient analytical way. An example of this fitting for the 2s and 2p atomic orbitals basis set of the oxygen is shown in Fig. 4 49 within the Generalized Gradient Approximation (5.499 Å for Si and 4.033 Å for BaTiO 3 ). In both cases, the gap is opened with respect to the value obtained with the semilocal functional. In bulk Si the band gap is indirect: the top of the valence band is located at Γ and the bottom of the conduction band at a point along the Γ → X high-symmetry line. It increases from 0.64 eV within GGA to 1.00 eV with the hybrid functional, in good agreement with the experimental value of 1.17 eV 50 . For the case of the perovskite oxide BaTiO 3 , the band gap is also indirect, from R to Γ, and its value increases from 1.87 eV with GGA to 3.28 eV with the HSE06 functional, almost matching the experimental value of 3.2 eV estimated by Wemple in the cubic phase 51 .

F. Spin-orbit coupling

32The capability to include the spin-orbit (SO) interaction in SIESTA and in the analysis tools is seen as a strategic asset for the project in view of the recent interest in topological insulators and quasi-two-dimensional systems with important spin-orbit effects, like some of the transition metal dichalcogenides. Also, it brings the possibility to obtain the magnetic crystalline anisotropy (MCA) (change in the total energy of the system upon changing the spin quantization axis).

33In a standard collinear-spin DFT calculation, the total KS Hamiltonian is represented by two independent spin-blocks, H σ σ µν [σ =↑, ↓]. However, when the SO coupling is included, off-diagonal spin blocks arise (i.e., there are non-zero couplings between the two spin components). Therefore, and similar to the non-collinear spin case, the Hamiltonian be- comes a full 2×2 matrix in spin spacê

34where µν subindexes refer to the SIESTA basis orbitals. The fully relativistic HamiltonianĤ KS is expressed as a sum of the kinetic energyT , the scalar-relativistic pseudo-potential part in the form of Kleinman-Bylander projectorsV KB , the spin-orbitV SO term and the HartreeV H and exchange-correlation V XC potentials:

35The first three terms of the right hand side do not depend on the charge density, ρ(r), and therefore do not change in the self-consistent cycle, whileV SO andV XC are the only spindependent terms that couple both spin components. In order to compute the MCAs, different orientations of the spin quantization axis need to be considered. This may be done by rotating eitherV SO (as done by Cuadrado and Cerdá 52 ) or the density matrix, which is the approach currently followed by SIESTA for compatibility with the noncollinear case. In the current implementation the SO term is included non-perturbatively, so that the fully relativistic Hamiltonian is solved self-consistently after extending the Kohn-Sham wave-functions to full spinors. Two different approaches have been implemented in SIESTA to account for the SO term,V SO :

36on-site approximation:

37Based on the work of Fernández-Seivane et al. 53,54 , only the intra-atomic SO contributions within each lshell of each atom are considered. In this approach the SO terms are obtained from analytical simple expressions for the angular integrals while the radial integrals are computed numerically.

38off-site approach:

39Here,V SO is built following the Hemstreet SIESTA 8 formalism 52,55 whereby a fully-relativistic pseudopotential (FR-PP) operator is constructed in a fully separable form, i.e., non-local in the radial part as well as in the angular variables, in order to substantially reduce the computational cost. The necessary l j Kleinman-Bylander projectors may be either constructed by SIESTA itself from relativistic semilocal PPs, or directly read from appropriately generated PSML files, as provided by the Pseudo-Dojo project 25,26 . Moreover, we note that the FR-PP formalism (as well as the original one implemented in Ref. 52) uses the correct normalization constants C l±1/2 , in contrast with what was erroneously stated in Ref. 56.

40Although we consider the off-site approach more accurate, as it includes inter-shell and inter-atomic SO couplings, both approximations yield very similar results in most of the tested systems, with relevant qualitative differences only found in a few specific cases. Furthermore, the construction of the V SO µν matrix is very fast under both schemes and involves a tiny fraction of the entire self-consistent calculation.

G. New electronic-structure solvers

41For most problems, SIESTA spends the largest fraction of cpu-time in the solver stage (solution of the generalized eigenvalue problem HΦ = εSΦ). The stage devoted to the calculation of the hamiltonian H and overlap S is typically much lighter weight, as those matrices are intrinsically sparse due to the use of a finite-support basis set. Accordingly, SIESTA's performance is almost completely linked to the use of appropriate external solver libraries.

42Over the past few years we have expanded the choices available to users and refined the relevant interfaces. Initially, we added support for new individual solvers as detailed below, but recently we have consolidated some of the most important functionality under a new common interface to the ELSI library of solvers 57,58 .

Solvers with a native interface

43Diagonalization (solution of the generalized eigenproblem appropriate for non-orthogonal orbitals) is the default method for obtaining the density-matrix in SIESTA. A number of standard routines are contained in the SCALAPACK library 59 , but more efficient alternatives are possible. In particular, the ELPA library [60][61][62] uses an extra intermediate step in the tridiagonal conversion of the matrices to obtain better scalability and significant speedups over SCALAPACK. An interface to ELPA is offered in SIESTA, so this solver can be used as a drop-in replacement for SCALAPACK throughout the code.

44In addition, SIESTA has implemented interfaces to several methods not based on diagonalization. In most cases, the use of a finite-support basis set, leading to the appearance of sparse matrices, is a significant factor to achieve good performance:

45• The Fermi Operator Expansion method (FOE) 63 uses the formal relationship between Hamiltonian and density-matrix,ρ = f FD (Ĥ − µ), where f FD is the Fermi-Dirac function. A simple polynomial expansion of f FD can then be used to obtainρ without diagonalization. This method is implemented in the CheSS library 64 , developed within the BigDFT project 65 .

46• The PEXSI method 66,67 uses a pole expansion of f FD to getρ in the form:

47where ω ρ l and z l are the weights and poles for the corresponding expansion of the Fermi-Dirac function. The number of poles needed is significantly smaller than for the polynomial version of the FOE, as its dependence on the spectrum size is only logarithmic.

48It would appear that having to invert matrices would still render this approach cubic-scaling, but in fact only selected elements ofρ have to be actually computed. This "pole expansion and selected inversion" method offers a reduced complexity (at most O(N 2 ) for dense systems, and O(N) for quasi-one-dimensional systems), and trivial parallelization over poles, so it is well-suited for very large problems on large machines. For example, 68 computed the electronic structure of large (up to 11,700 atoms) graphene nanoflakes using SIESTA-PEXSI.

49• The electronic structure problem can also be cast as a minimization problem (of an extended functional) without orthogonalization. When additional localization constraints are put in place, the original linear-scaling method in SIESTA results. Without the extra localization constraints, the cubic-scaling Orbital Minimization Method (OMM) 69 can be competitive with respect to diagonalization, as data can be reused across scf-cycle steps.

The ELSI interface

50We have considerably extended the range of solver choices and the performance enhancement possibilities of the code with the integration of the open-source ELSI library (https: //elsi-interchange.org), that provides a unified software interface that connects electronic structure codes to various high-performance solver libraries to solve or circumvent eigenproblems encountered in electronic structure theory 57 . ELSI also ships with its own tested versions of the individual solver libraries, but additionally, linking against already compiled upstream versions from each solver library is supported as much as possible.

51The ELPA, OMM, and PEXSI solvers, which had their own ad-hoc interfaces as described in the previous section, SIESTA 9 are now available through ELSI, which also supports other conventional dense eigensolvers (EigenExa 70 , MAGMA 71 ), sparse iterative eigensolvers (SLEPc 72 ), and linear scaling density matrix purification methods (NTPoly 73 ). As sketched in Fig. 6, an electronic structure code interfacing to ELSI automatically has access to all the eigensolvers and density matrix solvers supported in ELSI. In addition, the ELSI interface is able to convert arbitrarily distributed dense and sparse matrices to the specification expected by the solvers, taking this burden away from the electronic structure code. A comprehensive review of the capabilities in the latest version of ELSI, including parallel solution of problems found in spinpolarized systems (two spin channels) and periodic systems (multiple k-points), scalable matrix I/O, density matrix extrapolation, iterative eigensolvers in a reverse communication interface (RCI) framework, has recently been completed 58 .

52FIG. 6. Interaction of the ELSI interface with electronic structure codes. ELSI serves as a bridge between electronic structure codes and solver libraries. An electronic structure code has access to various eigensolvers and density matrix solvers via the ELSI API. Whenever necessary, ELSI handles the conversion between different units, conventions, matrix formats, and programming languages.

53With the common interface in place, any additions and enhancements to the supported solvers can be used in SIESTA with almost no code changes. This is particularly relevant for performance enhancements. For example:

54• Further levels of parallelization: A feature common in principle to all solvers is that the SIESTA-ELSI interface can exploit the full parallelization over k-points and spins mentioned above. This means that these calculations can use two extra levels of parallelization in the solver step beyond the standard one of parallelization over orbitals (see Fig. 7).

55• The new version of the PEXSI solver integrated in ELSI can achieve the same level of precision with fewer poles, and offers an extra level of parallelization over trial points for the determination of the chemicalpotential.

56• Mixed-precision support: The ELPA solver can be invoked in single-precision mode, which can speed up the initial steps of the electronic self-consistent-field (scf) cycle.

57• Accelerator offloading: The ELPA library offers GPU support in some kernels 62 , and there is scope for extending it to more kernels. ELSI also offers an interface to the accelerator-enabled MAGMA library. Finally, the PEXSI developers are working on adding GPU support to the solver. Performance improvement from the use of the extra level of parallelization over k-points in SIESTA using the ELSI interface with the ELPA solver, compared to the previous diagonalization scheme (using both the standard SCALAPACK solver and the existing ELPA interface in SIESTA). The system is bulk Si with H impurities, with 1040 atoms, 13328 orbitals, and a sampling of 8 k-points. The multik scheme is able to stay closer to ideal scalability for larger numbers of MPI processes.

H. Time dependent DFT

58Time-dependent density-functional theory (TD-DFT) was first implemented into SIESTA in its real-time propagating form. It was first described in Ref. 74, and then briefly in Ref. 2. It was based on the Crank-Nicolson algorithm, by which, the effect of the evolution operator for an infinitesimal time stepÛ

59on the wave-function coefficients matrix at a given time t 0 , c(t 0 ) is approximated by

60where ∆t represents the finite time-step resulting from time discretization, and S and H represent the overlap and Hamiltonian matrices, respectively, in the representation given by a non-orthogonal basis set, as used by SIESTA. That expression is obtained from equating the first-order evolution of the coefficients forward, from t 0 to t 0 +∆t/2, to the backward evolution from t 0 + ∆t to the same intermediate step.

61It can be further simplified to

62for a smooth-enough variation of the Hamiltonian itself and a small enough ∆t, thereby avoiding the self-consistency implied in propagation using Eq. 6. In Section III H 3 below, recent developments on efficient treatments of Eq. 6 beyond Eq. 7 are presented. Here we describe the parallelization and related features in the TD-DFT implementation now found in standard SIESTA releases. The implemented propagation is based on Eq. (7) (with the improvement possibilities described in Section III H 3), but proper consideration must be taken of the fact that not only the coefficients change in time, but also the basis set and the Hilbert space spanned by it when the atoms move. An analysis of the geometrical implications of this fact is presented in Ref. 75. The time-dependent Kohn-Sham equation

63becomes

64where H, S, and c are the Hamiltonian, overlap and coefficients matrices, respectively, as before, and the D matrix is the connection in the manifold given by the evolving Hilbert space 75 , D µν = φ µ |∂ t φ ν , for φ µ and φ ν basis functions. A way of taking such evolution into account in the discretized implementation was proposed by Tomfohr and Sankey 76 , and is based on a Löwdin orthonormalization. The scheme consists of two steps. First the wavefunctions are propagated using both S and H at time t 0 using Eq. (7), but to an auxiliary coefficient matrixc,

65Then, the propagation is followed by a change of basis operation (only needed if the ionic positions have changed),

66This algorithm is unitary by construction, and so the preservation of orthonormality is guaranteed, regardless of the size of ∆t. As discussed in detail in Ref. 75, this algorithm can be shown not to be entirely consistent with the connection represented by the D matrix defined above. Nevertheless, the discrepancies due to the mentioned inconsistency have been shown to be small in a series of studies using this formalism [77][78][79][80] , at least for low atomic velocities. The practical benefit of separating the two procedures is to perform the change of basis only when necessary, allowing for many electronic steps per atomic motion step, if the nuclei are still significantly slower than electrons, for instance. The implementation of the Crank-Nicolson part is the same for both the fixed and moving basis.

67The square root and inverse square root are calculated by first computing its eigenvalues and eigenvectors,

68where E is a diagonal matrix with the eigenvalues of S. And U is a square matrix with the eigenvectors of S as its columns. Then,

69where E 1/2 and E −1/2 are obtained by replacing diagonal elements of E with their square root and inverse square root (in the latter case neglecting those eigenvalues below certain threshold value), respectively. The two-stage algorithm has been implemented in SIESTA in parallel, allowing for k-point sampling and for collinear spin. The initial occupied states to be propagated are read from a file. SIESTA is prepared to run a conventional DFT calculation of whatever relevant initial state, and write a wavefunction continuation file that acts as initialization of the ulterior SIESTA run in real-time TD-DFT mode. As it stands, SIESTA evolves states defined as fully occupied; partial occupations are not currently supported.

Parallelization

70The two-step procedure described above requires matrixmatrix and matrix-scalar multiplication, matrix addition, and matrix inversion, plus the diagonalization of the overlap matrix for the Löwdin step. Since only the occupied states are propagated, the c matrix is rectangular N × N , that is, number of propagating states × number of basis functions, while S and H are square, N × N . The computation of the overlap and Hamiltonian matrices is handled by pre-existing SIESTA routines, which are already parallelized and well-optimized for HPC environments 69,81 .

71The parallelization of the propagation following Eqs. (10) and (11) is done simply exploiting the MatrixSwitch library 82 , which allows for an abstracted manipulation of matrices, the details of parallelization, data formats, conversions etc. being taken care of underneath. In this case, MatrixSwitch is called to use the BLACS 83 and SCALAPACK 84 libraries, meaning that this part of the code is run on dense-matrix infrastructure, as already done with conventional diagonalization solvers. As for the latter, although the H and S matrices are sparse, the c matrix is dense.

72Conversion between storage formats is an important consideration here. The native matrix storage format employed by SIESTA is a compressed sparse column (CSC) scheme with a one-dimensional block-cyclic distribution (1D-BCD) over MPI processes. A block-cyclic distribution is needed by BLACS and SCALAPACK package. The matrices can therefore be temporarily converted from sparse to dense using the same parallel distribution; this is a very efficient operation, since no MPI communication is necessary. It should be noted that a two-dimensional (2D) BCD is known to be more efficient in terms of parallel scaling 69 . The conversion from 1D to 2D does however carry a heavier cost, as MPI communication is inevitable.

73The parallel efficiency of our implementation is therefore chiefly determined by that of the underlying SCALAPACK drivers. The matrix inversion in Eq. (10) is performed using LU factorization. For the diagonalization of the overlap matrix we have implemented the option of using either a standard diagonalization approach (tridiagonal reduction followed by the implicit QR algorithm) or a divide-and-conquer algorithm as described in Ref. 85. The latter is known to scale better with system size.

74The scaling with number of processors is very similar to the scaling of a conventional DFT SIESTA run using diagonalization as the solver option, since both procedures are run on routines of analogous scaling within the same dense-matrixalgebra library. Figure 8 shows the relative share in the total running time of the three main procedures involved: the Crank-Nicolson algorithm, the change of basis, and the calculation of the SCF Hamiltonian plus other minor processes in SIESTAsuch as building the density matrix. This was performed for a system of 5000 Ge + 1 He atoms described with a single-zeta polarized basis set. The Crank-Nicolson algorithm takes about 18% of the total time on 30 processors, which increases to 25% on 316 processors. Instead, the change of basis procedure takes about 38% of the total time on 30 processors, which decreases as the parallelization increases, reflecting its better scaling properties. The Löwdin step is the most expensive operation on all numbers of processors, which affects TD-DFT simulations (and only those steps) involving atomic motion.

TD-DFT Beyond the released version

75There are many possible (and feasible) improvements on what has been described above, some of them in the pipeline. From a fundamental point of view, the Löwdin step will be replaced by another basis-changing step, in the direction of what was proposed in Ref. 75. It is needed if atoms move at velocities of around 1 atomic unit or more (1 a.u ∼ c/137, being c the speed of light). In that case the diagonalization step may be avoided (or replaced by the N ×N diagonalization of the overlap matrix for the evolving states, instead of the N × N for the basis set overlap).

76For fast moving atoms within Ehrenfest dynamics, there is also the need to implement correction terms to the forces related to both the change of basis and the rotation of the timedependent Hilbert space (the intrinsic curvature of the manifold). These terms are well known, 86 and their geometrical meaning in terms of the relevant curvature 75 will appear in Ref. 87. They are being tested and should be incorporated shortly to a visible branch in the open source repository, to be later merged into the trunk, and further incorporated into SIESTA releases.

77For efficiency, iterative inversion options will be explored replacing the present LU implementation in SCALAPACK, and quite a few possibilities exist to incorporate more sophisticated algorithms to the described operations. What has been described is robust and quite transparent, but the Ma-trixSwitch abstraction should allow easy implementation of other techniques.

Improved real-time propagators

78Eq. (7) represents a fast approach of electronic propagation in real-time TD-DFT, especially suited to study systems where the perturbation of the electronic density is relatively small (e.g. optical linear response 74 ). If one is interested in simulating systems with heavily perturbed electronic densities by external forces (like those exerted by intense laser fields or fast atom collisions for instance), one should choose a more elaborate propagation scheme that preserves better the time-reversibility of the propagator operator. Some of the authors introduced in Ref. 79 an extrapolation algorithm to study the stopping power of prototype semiconductors. Briefly, the method uses Eq. (7) with an extrapolated Hamiltonian:

79where the extrapolated Hamiltonian H ext reads

80and

81Additionally, the user is given the option to divide each propagation step ∆t into n sub-steps in an effort to increase the accuracy of the first-order expansion underlying the derivation SIESTA 12 of Eq. (13). In this case, the final equation reads

82with

83Recently we introduced a third algorithm for propagation. Leaving aside in this description the complications associated with the possible subdivision of each time-step, the new algorithm is based on a two-step scheme where the electronic wavefunction is first propagated until half of the step, ∆t/2, using extrapolation as in Eq. (13),

84then an explicit calculation of the half-step Hamiltonian, H(t 0 + ∆t/2), is performed using the coefficients c(t 0 + ∆t/2) obtained from Eq. (18). In a second step, the coefficients are evolved from the beginning of the step, c(t 0 ), to the full step, c(t 0 + ∆t), using the half-step Hamiltonian:

85This approach, although increasing the CPU time by around ∼35% as compared to the two previous schemes, allows for better energy conservation for highly perturbed systems where the Kohn-Sham potential heavily varies in time. FIG. 9. Energy drift in an energy conserving TDDFT simulation of ionized-core uracil for the three propagation methods described here, as compared with the CPMD implementation, for a time step of ∆t = 0.24 attoseconds (0.01 atomic units).

86In order to provide a more quantitative comparison between the three schemes, namely, the default propagation of Eq. (7), the extrapolation propagation of Eq. (13) and the two-step propagation of Eqs. (18) and (19), we compare their performance versus the P-TDDFT implementation 88 of the CPMD code 89 in the case of a double ionization of a uracil molecule in the gas phase 90,91 . Simulations of this type provide access to the ultrafast electronic dynamics that occurs at the atto and femto time-scales in the ionized genetic material (DNA and RNA) as a consequence of collisions with proton or carbon beams 92 . This particular simulation addresses the fragmentation pattern of a doubly-ionized uracil molecule (its deepest Kohn-Sham orbital is empty) using the BLYP density functional 93,94 . The technical details for the CPMD simulation used as a reference can be found in Refs. 90 and 91. SIESTA calculations using the same density functional and the integrators described above use a DZP basis set. As can be seen in Fig. 9 the standard SIESTA implementation cannot properly deal with such a highly excited system. The extrapolation scheme in Eq. (13) already provides a large improvement and gives an energy conservation similar to the CPMD simulations in Refs. 90 and 91. Finally, the two-step algorithm further improves the energy conservation. For smaller time steps the improvements given by the two-step scheme are even more clear, as shown in Fig. 10.

Electronic stopping of atomic projectiles

87Let us finish the TD-DFT section with a brief mention of its successful application to the problem of simulating the excitation of the electrons of a condensed matter system when traversed by a high-energy atomic projectile (so-called electronic stopping, since the electrons slow down the projectile). This physical problem is very relevant to questions of interest to the nuclear and aerospace industries, as well as to the treatment of cancer. In spite of its great relevance and of its having been researched since Rutherford's experiment in 1911, the understanding of electronic stopping processes has been essentially limited to either weak effects in the linear-response regime or beyond linear but only for target systems close to the homogeneous electron liquid (jellium).

88An earlier version of the TD-DFT implementation in SIESTA 74 , allowed the first explicit first-principles simulation of electronic stopping, for protons and antiprotons in LiF, a wide-band-gap insulator, which was quite successful. 95 The difference of sign between protons and antiprotons produces a significant difference in the stopping power (rate of energy excitation) beyond the linear-response paradigm (the Barkas effect), and the insulating character of the target makes it inaccessible to the jellium paradigm. The success stimulated further studies along this line [77][78][79][80] using improved versions of TD-DFT in SIESTA, as described here. Fig. 11 displays the electron deformation density around a proton displacing in a bulk Ge target. 79 They were also followed by analogous simulations using plane-wave codes by an increasing number of groups (for a review see Ref. 96), although the latter calculations do demand considerably larger computational resources.

89FIG. 11. Electron deformation density isosurfaces (blue positive, red negative) for a proton displacing leftwards, at a velocity of 1 a.u. in the bulk of a Ge crystal.

I. Density Functional Perturbation Theory

90The original implementation of Density Functional Perturbation Theory, as a post-processing and independent code (LINRES 97 ) has been recently merged into SIESTA. It allows to compute the phonon dispersions using a supercell approach (Γ-point phonons). Both LDA and GGA functionals can be used (through LibXC). Calculation of the perturbed Hamiltonian and overlap matrix elements follows the same methodology as for ground-state calculations, with similar computational costs, which are comparable to those obtained with a finite difference approach. Figure 12 shows a comparison between both methods for model fullerene-type systems of different sizes.

91The solution of the Sternheimer equation, and calculation of the perturbed density matrix is the most demanding step. It requires the perturbed coefficients of the electronic wavefunctions to be obtained,

92The change in the density matrix is then given by

93and a similar expression applies to the change in the energydensity matrix. The change in the occupation of the electronic state can be computed from the change in its eigenenergy ε i = ∑ αβ c iα ∆ i αβ c iβ and it is relevant in metals, for states close to the Fermi level. The Fermi level can also be shifted by the perturbation, and it can be determined through conservation of the number of electrons in the system, N e . and Ω) is the most time-consuming step, although it has to be performed only once, and can be used for all perturbations (each atomic displacement). The new algorithm becomes more efficient for system sizes larger than the threshold value (green dashed line). .

94Obtaining ∂ ρ µν is the most computationally expensive part of the code. While the computation of ∂ H µν basically has linear scaling with the system size, the matrix A i j scales as

95where N b is the number of basis functions, and M is the maximum number of neighbour orbitals for any orbital in the system. Equation (20) then requires N 3 b operations for each atomic perturbation, and the change in the density matrix requires N 2 b · M loops. An alternative approach that offers a better computational scaling for systems with a gap has also been tested. If we define Ξ i αβ = ∑ j c * jα c jβ ε i −ε j , we obtain:

96where Λ i µν = ∑ η Ξ i η µ ∆ i ην is a smooth function of ε i and can be described by a Chebyshev's expansion with a few selected energy points and their corresponding weights:

97αβ is perturbation-independent, and could be computed only once and used for all the possible atomic displacements, with a cost that scales as N 2 b · N l , with N l being the number of Chebyshev' polynomials. The change in the electronic density is then given by

98where only the central term requires self-consistency, and Ω (i) αβ = ∑ j c * jαω i, j c jβ . Although computing the change in the density scales as O(N 2 b M), most of the computational cost is required in an initialization step to obtain Ξ and Ω that are perturbation-independent, enabling the extraction of the whole dynamical matrix with O(N 3 b ) operations. A preliminary serial calculation for C n fullerenes shows that the threshold system size for the new algorithm to become more efficient than the original implementation lies at around 650 atoms. This value can be conveniently reduced by an efficient parallelization of the initialization step.

J. TranSiesta

99The transport code TRANSIESTA, initially developed by Brandbyge and co-workers 15 , enables open-boundary condition calculations by extending periodic regions with bulk electrodes. It is based on the non-equilibrium Green function formalism which allows biased calculations. TRAN-SIESTA has been completely re-written and now uses advanced inversion algorithms, enables N e ≥ 1 electrodes, allows thermo-electric calculations, performing real-space calculations (without k-points) and adds phonon transport calculations using the Hessian 98,99 ,

100The non-equilibrium Green function formalism can be summarized in the following equations which are generalized for N e ≥ 1 electrodes.

101∆ e e ≡ 1 2π BZ dkdε A e ,k (ε)e −ik·R n F,e (ε) − n F,e (ε) ,

102where ρ e eq is the equilibrium density matrix for electrode e, G is the retarded Green's function matrix, and ∆ e e is the correction to the equilibrium part. The spectral function A e = GΓ e G † and carries electrons from the electrode e. Finally, n F,e is the Fermi function with chemical potential denoted by the electrode e. It is evident that the Fermi functions depend on the chemical potential and the electronic temperature in the associated electrodes. By using different temperatures for each electrode one can calculate thermoelectric effects due to different reservoirs having separate electronic temperatures self-consistently.

103We note that TRANSIESTA uses a multiple complex energycontour algorithm to more accurately describe the total density ρ. It does this by weighing each ρ e neq using a simple scheme 98 (Sec. 3.2). So far, few multi-electrode calculations have been performed so the importance of the multiple contour algorithm is currently unknown [100][101][102] . However, for the well-known 2-electrode problem it allows smoother convergence properties 15 .

104In the latest TRANSIESTA we implement 3 different inversion algorithms; i) a block-tri-diagonal algorithm (BTD), ii) MUMPS sparse algorithm and iii) a dense algorithm (LA-PACK). The performance of these (speedup compared to TRANSIESTA 3.1) is summarized in Fig. 13. Since the BTD algorithm is linear scaling for constant width it can easily outperform the dense algorithm by a factor 100. This performance gain is also important for the memory footprint which enables even larger systems. The BTD algorithm favors long and narrow systems, but uses less memory for all types of systems.

105A recent addition to the TRANSIESTA package is the use of real space self-energy terms 99,103 . These self-energies are semi-infinite in more than 1 direction and can thus be used as surrounding electrodes, for e.g. single defects in 2D or 3D structures or line defects. Real space self-energies are superior to BZ integrated quantities since they correctly describe the infinite bulk by leaving out image couplings and also removes the need for k-point sampling. When taking into account the complete procedure for a TRANSIESTA calculation the real space self-energies provide an increased throughput since the SCF k-point sampling and the subsequent k-point sampled transport calculation are completely removed 99 .

106Additionally, TBTRANS enables calculations of user defined tight-binding models and also interfaces to phonon transport using the Hessian matrix (program named PH-TRANS). The phonon Green function is similar to the electron where D is the Hessian and ω the phonon frequency. Finally, inelastic transport involving phonon-excitation can be treated with perturbation theory in a postprocessing step with the IN-ELASTICA package 104,105 .

K. Wannierization

107The interface between SIESTA and WANNIER90 106,107 (version 3.0.0) has been implemented, so the latter code can be called directly from SIESTA as a library, or used as a postprocessing tool. WANNIER90 is an open-source code for generating maximally-localized Wannier functions 108,109 and using them to compute advanced electronic properties of materials with high efficiency and accuracy.

108The Wannier functions can be considered as a unitary transformation (more precisely, a Fourier transformation) of a set of Bloch functions associated with a given manifold of bands. We can view the Bloch and Wannier functions as providing two different basis sets describing the same manifold of states associated with the electron band manifold in question. The Wannier functions display a number of very interesting properties. 110 Among them, we can enumerate: (i) they are localized in real space, each of them concentrated around a given unit cell (see Fig. 14); (ii) Wannier functions centered on different cells are translational images of one another; (iii) they form an orthonormal basis set; (iv) they span the same subspace of the Hilbert space as is spanned by the Bloch functions from which they are constructed. Because of the gauge freedom in the definition of the phases of the Bloch functions, the Wannier functions are not unique. However, the location of their centers in the home unit cell is unique to within a lattice vector, i.e. they are gauge invariant. 110 The high degree of arbitrariness in the definition of the phases can be exploited to produce unitary transformation matrices between Bloch and Wannier functions in such a way that a localization functional that measures the sum of the quadratic spreads of the Wannier functions in the home unit cell around their centers is minimized. 108 In a practical procedure to construct Wannier functions, a set of localized functions is used to generate an initial guess for the unitary transformations. These localized functions should be roughly located on sites where Wannier functions are expected to be centered and have appropriate angular character. In our implementation, we can directly use the localized atomic orbitals of the basis, or the hydrogenoid localized functions (including hybrid orbitals), as suggested in WANNIER90.

109The Wannier functions provide an exact tight-binding representation of the dispersion of the Bloch bands. This property will be exploited to extract in an automatic and user blind way the parameters required to run multiscale simulations as described in Sec. III L. Currently, WANNIER90 can be used as a post-processing tool, or it can be directly called from SIESTA in a library mode. Within this last approach, the unitary matrices that transform the Bloch states into Wannier functions are directly accessible in SIESTA, allowing a clear and straightforward interconnection between the two alternatives to span the Hilbert space. Besides, the use of Wannier functions opens the door to a wide range of potential applications. Already implemented in SIESTA is the possibility of performing SCF convergence under the constraint of a rigid shift on the energy associated with a given Wannier function to be used to calculate electronelectron interactions for multiscale simulations as detailed in Sec. III L. The interface with the self-consistent dynamical mean field theory DMFTWDFT code 111 using MLWF has been already implemented 112 . Also, alternative approaches to compute the exact Hartree-Fock exchange in extended insulating systems with a linear scaling computational cost us-ing MLWFs have been proposed, being another interesting research line for the future. 113

L. Multiscale methods

110Density Functional Theory can be used as the basis for parameterized multiscale methods, that can be used to carry out simulations including tens or even hundreds of thousands of atoms. 114 First-principles methods are used to produce detailed models that are subsequently used to predict properties that require large-scale simulations. The models are created for specific materials and their accuracy can be systematically improved to converge towards DFT precision. Given the dependence on first-principles, we refer to these methods as second-principles DFT (SPDFT) and are run on an independent code called SCALE-UP. 114 SPDFT is based on a division of the total electronic density, n( r), into a reference (n 0 ( r)) and a deformation (δ n( r)) contributions, n( r) = n 0 ( r) + δ n( r),

111where δ n( r) is considered as a small perturbation with respect to n 0 ( r) that, in non-magnetic cases, represents the ground state of the system 114 . This division is then used 114 to expand the DFT energy with δ n finding that the zeroth order term, E (0) , corresponds with the full DFT energy for the reference density. The corrections to this reference energy only depend on δ n (and parametrically on n 0 ) which, given its smallness, can be efficiently calculated leading to a fast and accurate approximation of the full DFT energy. The expansion is usually taken to second-order,

112resulting in a stationary problem that is equivalent to Hartree-Fock with the important distinction that the interactions are screened by the exchange-correlation potential. In order to keep δ n small the application of the method is restricted to problems where atomic bonds are not created or destroyed, i.e. to processes that display an invariant bond topology. The E (0) term represents the exact DFT energy for the reference density. We represent it for a variety of geometries with an accurate force-field 115 that allows for fast evaluation. The E (1) and E (2) terms account for the changes in the electronic structure that are represented by geometry-dependent Wannier functions. Under this basis E (1) becomes a tight-binding model while E (2) represents electron-electron interactions.

113The interconnection between the first (SIESTA) and the second (SCALE-UP) principles simulations is carried out through a python script, MODELMAKER. Taking a few cutoff distances MODELMAKER is able to produce a model's terms and automatically carry out DFT simulations with SIESTA to determine the force field, a Wannier Hamiltonian to represent the bands, electron-lattice terms to account how the bands change with geometry and electron-electron interactions to describe, for example, magnetism.

114While, so far, few publications with SPDFT methods include explicit treatment of electronic degrees of freedom, the lattice part has successfully been used in several applications. One of the main fields of research has been thermal conductivity in perovskites. In particular it was employed to study the electrophononic coupling in SrTiO 3 116 and PbTiO 3 117 and the proposal of a thermal switch in PbTiO 3 . 118 It has also been used to study the competition between various ferroelectric domain structures in PbTiO 3 /SrTiO 3 superlattices as a function of strain. 119 As a result it was found that tensile strains lead to the appearance of chiral ferroelectric vortices while ferroelectric skyrmions were predicted and experimentally observed for more compressive strain values. 119 The calculated dielectric properties of these superlattices 120 are in very good agreement with measured values and show very large electric susceptibility consistent with regions of negative, static electric permittivity situated at the core of the vortices and the PbTiO 3 /SrTiO 3 interfaces.

M. Scripting and integration in external frameworks

115An ongoing trend in many areas of computational science is to move away from rigid and monolithic codes, favoring instead a more flexible approach in which the internal functionality of a program is somehow exposed to the outside world. If done in a proper and well-documented way, this can serve to enhance the interoperability of codes with different functionalities, playing to the relative strengths of each, and/or to implement new functionalities by combining the available basic blocks. In SIESTA we have followed two different but complementary routes to these ends: the development of an internal scripting framework based on the Lua language, which enables new functionality without code recompilation, and the implementation of a formal interface to the AiiDA platform.

Lua interface

116Lua 121 is an easy-to-learn and fast scripting language built for embedding. It is very lightweight (its memory footprint is less than 300 kB), and provides very simple ways to interface to the data structures and routines of a host program. A Lua script, interpreted by the Lua interpreter embedded in the program, can then control the flow of execution and the data. Different user-level scripts can implement new functionalities, without recompilation of the host code. The strategy we have followed in SIESTA is based on handling control to the Lua interpreter at specific relevant points in the program flow (e.g. at the beginning of a geometry step, at the end of a scf step, etc). Lua scripts implement handlers appropriate to the point they want to hook into, and can request access to specific data structures. For example, a script intended to implement a better scf mixing algorithm would be executed after every scf step, inspecting the convergence data, and changing mixing parameters or schemes, as appropriate. As another example, convergence checks over mesh-cutoffs and k-point sampling can be performed automatically.

117The above mixing scenario exemplifies an important area of usefulness of the approach: the prototyping in Lua, (followed eventually by a full implementation), of new ideas and algorithms. We have implemented a number of custom molecular dynamics modes, geometry relaxation algorithms, and advanced optimization schemes, in a pure Lua library FLOS 122 . The code in the library can be re-used, or taken as starting point for other implementations by users. These user-level scripts can in turn be shared, opening the way to the development of new functionality with faster turnaround that the traditional approach that needs a careful integration into the program's code base.

118As a specific showcase of the power of the Lua embedding, we have developed a number of variations of the nudgedelastic band method (NEB) 123,124 for transition-state search. Previously proposed implementations in SIESTA involved significant, hard to maintain code changes, and did not make into the mainstream version. With Lua, we have been able to implement, non-intrusively, not only the standard algorithm, but a Double Nudged Elastic Band (DNEB) 125 variation, and also another version which treats atomic coordinates and lattice variables on an equal footing (the variable-cell NEB, or VC-NEB, method 126 ).

119The integration of Lua functionality in SIESTA has been made possible by the development of an intermediate layer, FLOOK 127 , (for "fortran-Lua-hook"), which provides wrappers for access to Fortran data structures and subroutines.

AiiDA plugins and workflows

120The AiiDA framework [128][129][130] provides support for highthroughput computations in materials science, keeping full provenance of the calculations and facilitating data handling and sharing. The framework is open-source, written in Python, and designed to support arbitrary codes via a plugin interface. A plugin for SIESTA has been implemented and is distributed as the open-source package aiida-siesta 131 . The plugin provides the basic operations of preparing the input files for a calculation using AiiDA-specific input objects, and parsing the results and generating AiiDA output objects. The AiiDA data are stored in a graph database that keeps a permanent record of the inputs and outputs of the calculation, and is fully searchable for, e.g. data analytics purposes.

121AiiDA also provides robust support for the creation of workflows that incorporate all the necessary steps in the calculation of potentially complex properties, together with the proper heuristics and fail-safe features. The aiida-siesta package provides a base workflow and a few workflows for standard materials properties, such as band structures. Fig. 15 shows the execution graph of a workflow designed to generate a synthetic STM image from a given structure. Work is ongoing to implement more complex ones.

122In addition to an interface to the computational capabilities of the SIESTA code via the plugin and workflows, the aiida-siesta package also provides an implementation of basic objects representing pseudopotential files, notably one for PSML. Families of pseudopotentials can be uploaded to an AiiDA database and shared via the provided mechanisms for data export and import, facilitating the interoperability of SIESTA offers several features beyond the core functionality of solving the electronic structure problem and performing optional geometry relaxations and molecular dynamics runs. It is worth noting in particular that the atomic character of the basis set enables the use of a very intuitive suite of analysis tools, which take advantage of the fact that most of the concepts relating to chemical bonding use the language of atomic orbitals.

123The (partial) density of states, atomic and orbital populations, and other useful output can be obtained directly from the program. The SIESTA distribution includes also several tools in the Util directory for band-structure and wavefunction plotting, bonding analysis, etc. Beyond these, special tool packages that implement a specific feature that extends the functionality of the main program, or that provide extra options for visualization or post-processing in general, are available in alternate distribution points. We describe in what follows the most relevant developments.

Updates to core utilities

124A number of improvements, enhancements, and additions have been made to the core utilities shipped with the SIESTA distribution.

125There is now a "fat-bands" feature, by which bands can be decorated with information about the relative weight of given orbitals in each state. The wave-function-related analysis tools have been extended to the non-collinear and spinorbit case. This includes the COOP/COHP bonding analysis, band-structures, and a new tool spin-texture calculation. There have been also improvements to band-structure plotting utilities and to the visualization of charge densities, potentials, and other magnitudes represented in a real-space grid.

126A band unfolding utility has been added. Based on the Fourier decomposition of the Bloch wave functions, it allows to perform a "full unfolding" even for non-periodic systems (e. g. liquids) calculated with a large simulation cell. By refolding the fully unfolded bands, from the reciprocal supercell of a perturbed or defective crystal, into the reciprocal unit cell of the primitive crystal, one recovers the conventional "unfolded" bands 132 .

sisl

127SISL is a Python toolbox that was initially conceived to handle and manipulate SIESTA/TRANSIESTA output 103 . It has since been extended to support other DFT codes, with the aim of offering equivalent operations for them.

128By reading the LCAO outputs from SIESTA one can postprocess the Hamiltonian and calculate e.g. Brillouin zone integrated DOS, wave functions expanded on grids, eigenvalues, band velocities and many more. SISL can process nearly all the SIESTA output files. In particular, it is also able to post-process data on the real-space grid. Its command line interface allows data format changes, e.g. conversion of SIESTA XV files to xyz/xsf files or SIESTA binary grid data (VH, VT, . . . ) to cube/xsf files.

129As it can process density matrices from SIESTA, one can also use SISL to prepare an input electronic-structure for new calculations, which may be helpful to reduce initial SCF steps. SISL also allows creation of custom tight-binding models (both orthogonal and non-orthogonal), and since it extracts the DFT Hamiltonian matrix one can manipulate the Hamiltonian to retain certain band-structure features and thus perform large-scale simulations 133 . This allows calculating far-field currents using reduced basis-sets with very little loss of accuracy.

130The Atomic Simulation Environment (ASE) 134 and SISL have a certain degree of overlap in terms of geometry handling functionality. One can easily convert to and from ASE objects in SISL, thus allowing seamless interaction.

Other post-processing and visualization utilities

131The body of utilities contributed by non-core developers and other SIESTA users has continued to expand. In particular, we feature in this section two suites of utilities, one dealing with alternate visualization tools for some SIESTA results, and another one specifically dealing with lattice dynamics.

132For structures, the xv2xsf and xv2vesta converters process data from the SIESTA .XV file into the native formats of XCrySDen 135 and VESTA 136 , respectively. Each of these two codes offers many options of graphical representation of structures, adding translations, clipping fragments etc. Threedimensional spatial functions (e.g., charge density, local density of states integrated throughout the chosen energy range), computed by SIESTA on a real-space grid. Tools are provided for interpolating the data from the SIESTA output grid (fixed by the unit cell dimensions and the MeshCutoff parameter) onto an arbitrarily cut (and possibly rotated or resampled) parallelepipedic box. XCrysDen provides a number of display options, including contour lines over grid planes, or isosurfaces. A special feature available in XCrySDen is plotting the Fermi surfaces. A special script, eig2bxsf, serves to analyze the list of k-points handled by SIESTA, expanding it onto a regular sequence, and writing the respective band energies in the necessary format.

133The tools concerning the lattice dynamics have been developed having in mind the Γ phonons calculated for a large enough supercell, that is a typical case in a simulation of molecular crystals or disordered substitutional alloys. For visualization, vib2xsf and vib2vesta place arrows at the atoms according to the vibration pattern stored in the eigenvectors file (.vectors), produced by the core Vibra utility, and can also be used to make animations (sequences of snapshots) of selected vibration modes. Both vib2xsf and vib2vesta tools allow the selection of a part of the system to be exposed.

134The phdos tool is designed for analyzing zone-center vibration results. As the system is supposed to be large (e.g., a supercell chosen for a periodic crystal), the (artificially broadened, for convenience) discrete spectrum may serve as a fair approximation to the total density of modes, and if weighted with (squared) components of eigenvectors at different atoms -provide a decomposition into contributions of different atoms in the total density of vibration modes.

135A more sophisticated option is the projection of different eigenvectors according to various criteria. The typical system under study is a supercell in which e.g. an alloying, or some kind of deformation, breaks the underlying perfect periodicity. Still, some trends related to the latter can be revealed by appropriate projections. The two obvious cases are the projections onto (1) q-vectors of the underlying lattice and (2) irreducible representations of the space group of the underlying lattice; the corresponding formulas and some results can be found in Ref. 137. The first type of projection, if done for a sequence of q values, helps to reveal "phonon dispersions", obviously blurred by the broken periodicity, also making distinction between transversal and longitudinal modessee Ref. 138 for an example of use. To make the trends more pronounced, the supercell needs to be sufficiently long in the direction concerned -see, e.g., Fig. 16. The simplest case, a projection onto a single q=0 value, may also be of interest, since it enhances the modes which are expected to dominate the infrared or Raman spectra, and thus facilitates their comparison with experiment.

136The symmetry projection may help to isolate in a possibly complex spectrum those modes which are expected to dominate according to a given selection rule, again in view of their verification against the experiments. The group-symmetry information needed for the projections is available e.g. from the Bilbao Crystallographic Server, 139 and the technical details are explained in the documentation included in the tools.

137The vibent tool performs a straightforward calculation (see, e.g., Sec. II.C in Ref. 140 temperature-dependent vibration contributions to the free energy and entropy -see Fig. 17 as an example. The necessary input information is the vibration spectrum, originating from the Vibra frozen phonon calculation on a sufficiently large system. The velcf tool calculates the velocity autocorrelation function and its Fourier transform from a (presumably sufficiently long) molecular dynamics (MD) history, recorded in the .MD or .ANI file. This technique 142 can be used to obtain phonon frequencies, and was applied along with a SIESTA calculation in Ref. 143 MD steps at 600 K) is shown in Fig. 18 in comparison with frozen phonon results, revealing similarities of the spectra obtained.

Optical properties of finite systems: linear response TDDFT starting from Siesta orbitals

138The SIESTA package offers at least two ways of obtaining optical properties of finite systems. The first way uses real-time TD-DFT propagation by applying an external electric field with a simple time dependence (e.g., a Heaviside step-function) 74 . The second way is by computing the noninteracting dielectric function 1,2 . Both methods are implemented in SIESTA and can be employed without any external tools. However, they are limited in different aspects. The non-interacting dielectric function often underestimates the HOMO-LUMO gaps and calls for the use of the phenomenological scissor-shift operator. Real-time propagation makes cumbersome the analysis of the optical response properties in the frequency domain. Furthermore, the frequency resolution scales with the duration of the real-time simulation. Thus, accurate spectra require long simulations.

139Fortunately, there are two efficient implementations of linear-response TDDFT that use the Kohn-Sham orbitals from SIESTA as a starting point and are available for the opensource community 144,145 . In both packages, the linear density response δ n(r, ω) is obtained directly in the frequency domain which makes straightforward the analysis of derived properties. However, there are differences between both implementations on the construction of the auxiliary basis necessary to expand the orbital products. These differences can severely affect the computational cost of the calculation.

140The linear-response TDDFT is built on the concept of the induced electronic density δ n(r, ω) in response to a small perturbation of the external potential δV ext (r, ω). The integral operator connecting δ n(r, ω) to δV ext (r, ω) is the interacting density response function χ(r, r , ω). By virtue of the KS equations, χ(r, r , ω) can be connected to the non-interacting density response function χ 0 (r, r , ω) 146 with a Dyson equation SIESTA 20

141where the interaction kernel K(r, r ) contains the bare Coulomb interaction and the so-called exchange and correlation kernel K xc , which is a known operator for simple functionals like LDA and GGA. The non-interacting response function χ 0 (r, r , ω) can be expressed as a sum over electronhole excitations within the basis formed by the KS orbitals Ψ n (r) [145][146][147]

142where f n are occupations of the KS orbitals and E n are their energies.

143The optical polarizability tensor α(ω) is related to the induced density by α(ω) = rδ n(r, ω)dr or alternatively

144where due to Eq. (29) and using the dipole approximation for the electron-photon coupling, the screened effective perturbation δV s (r , ω) satisfies the linear integral equation

145The efficiency of the methods presented in References 144 and 145 comes from solving iteratively Eq. (32) for δV s (ω) instead of using standard matrix inversion to obtain χ(ω) from Eq. (29). Once δV s (ω) is known, Eqs. (30) and (31) allow the computation of the optical properties of the system. Furthermore, it is also possible to perform different types of analysis. For example, it is easy to partition the polarizability tensor α(ω) in terms of electron-hole contributions 147,148 due to existence of the sum over the electron-hole pairs in Eq. (30). Similarly, one can achieve other types of Mulliken-like analysis 145,147,149 of the optical polarizability tensor α(ω) or the induced density δ n(r, ω).

146The Python implementation of linear response TDDFT in the PySCF-NAO package as described in Ref. 145 is convenient to use and rather potent. It is capable of computing the optical properties of compact metallic objects containing up to several hundreds of atoms 147,150,151 . For example, we were able to track down the different size-dependence of the plasmon resonance in sodium and silver clusters due to the screening effect of silver d-orbitals in the latter case 152 . In those calculations, using an optimized version that incorporates some additional memory-saving features not present in the currently distributed version of PySCF-NAO, icosahedral silver and sodium clusters containing up to 5043 atoms were studied.

147In Figures 19 and 20, we show the photo-absorption cross sections of a series of compact silver clusters 147

Thermal transport by the AEMD method

148The approach to equilibrium molecular dynamics (AEMD) method 153 has been implemented to obtain the thermal conductivity. In the first stage of the method, the system is decomposed in two different regions, each one equilibrated to a different initial temperature (canonical run with Bose, or Anneal MD). Then, a microcanonical run (Verlet) is carried out for the whole system, and the average temperature of each subsystem is monitored. This temperature transient regime is then used to extract the thermal conductivity from the exact solution of the heat transport equation. 154

Core level shifts

149Core-level shifts can serve to analyze changes in the local and chemical environment of atoms of a given species. Density-functional-theory calculations have proved to be quite useful in complementing the experimental information, which is sometimes hard to interpret. Two schemes have been implemented in SIESTA for the calculation of core-level shifts within a pseudopotential approach 155 .

150In the so-called initial-state approximation the electronic relaxation in the presence of the core hole is neglected, and the photo-electron's binding energy is directly related to the eigenvalue of the core level. A pseudopotential calculation obviously cannot compute the latter, but differences in core eigenvalues in different environments can be estimated by the changes in the expectation value of the crystal potential using the core state's atomic wavefunctions ψ lm n at different sites. These can be extracted from the matrix elements

151with a further step of averaging to remove the splittings stemming from the loss of spherical symmetry.

152In the final-state approximation, the relaxation is explicitly taken into account, and the experimental shifts (measured via the kinetic energy of an exiting electron) are correlated with the differences in the energy of the crystal with a "core-hole" in different sites. For this, a special pseudopotential with a missing core electron has to be generated, and a full SIESTA calculation is needed for each different site.

153The implemented methodology has been used to study, for example, the shifts induced by hydrogen bonding in organic molecules 156 .

O. Software-engineering advances and partnerships

154The traditional development model for scientific codes in academic settings has been typically based on multiple contributions with various levels of programming competence, and with very little time to plan ahead in the face of pressing scientific demands. SIESTA has been no exception, and has grown in features and complexity over the years. It is very important to keep complexity under control, or else a project becomes un-maintainable and cannot survive. It is not simple, however, to balance the need of incorporation of new features, and the need to increase the computing performance in a landscape of constantly evolving hardware and programming models. One essential route is modularization, which allows the separation of concerns at various levels. In the context of a code like SIESTA , this means that the scientific ideas and algorithms should be handled at a high level, calling on lower-level modules for specific functionality (domainspecific libraries, mathematical libraries, communication protocols, etc). These lower-level modules can hopefully be reused by different codes and, most importantly, can be focused on by highly-skilled programmers for optimization on relevant architectures.

155Another important method of taming complexity involves the streamlining of the data structures of the code. This is an ongoing process (see Sect. V), but has already taken a very significant step by the introduction of reference-counted data structures. They build on a well-known and not particularly advanced technique of memory-handling 157 , but in SIESTA they have enabled a much simpler bookkeeping of the data structures needed for a richer control of molecular-mechanics and scf iterations.

156Regarding performance-oriented developments, in the recent past we have implemented a mixed MPI/OpenMP programming model, which allows, for suitable systems, to better balance arithmetic intensity and communications needs. The deployment of this model is more advanced in the TranSiesta module, and significant speedups have been obtained for large systems.

157Some of the above software-engineering developments have been enabled and strengthened by the participation of SIESTA in a number of international partnerships, notably the MaX (Materials at the eXascale) EU center of excellence 158 and the Electronic Structure Library initiative 159 . The "separation of concerns" described above in the context of modularization is an example of the so-called "open-innovation" paradigm, at the foundation of the ESL strategy for code reusability, and is also a cornerstone of MaX's efforts to achieve exascale-readiness for its flagship materials science codes (with SIESTA among them): performance-enhancement efforts are to be focused on relevant domain-specific modules.

158A number of modules from SIESTA have been turned into stand-alone libraries which now feature in the ESL: libGridXC for exchange and correlation calculations, libPSML as a handler of PSML files, xmlf90 for general purpose handling of XML files, etc. Conversely, SIESTA uses some of the libraries offered by the ESL, notably the ELSI library of electronic-structure solvers mentioned in Sect. III G 2, whose development, including its API design and internal data organization, has been in turn influenced by contributions and feedback from the SIESTA project, among others. There are also plans to incorporate the PSolver library 160 for the solution of the Poisson problem, a contribution to the ESL from the BigDFT project.

159We should mention that the renewed dynamism of SIESTA development and the advances made possible by the interaction with community initiatives are both a blessing and a challenge. It is non-trivial, for example, to handle the building process of a code that relies on a number of different external libraries, programming models, and special features such as the embedded Lua interpreter. Luckily, as will be discussed in Sect. V, these are issues that are being addressed in wider contexts, and SIESTA is well placed to take advantage of it.

IV. APPLICATIONS

160We present here a few showcase applications that illustrate the capabilities of SIESTA, in breadth, efficiency, and accuracy.

A. 4 terminal NEGF on germanium surface

161Breakthrough simulations using the new multi-terminal implementation on TRANSIESTA were fundamental to elucidate the electronic transport mechanism on a novel and complex experiment. 101 For the first time a two-probe scanning tunneling microscopy/spectroscopy (STM/STS) with probes operating in tunneling conditions over the same atomic-scale system was used to extract detailed information of in-plane electronic transport. The addressed system was the reconstructed (001) surface of germanium, where electrons injected from one STM tip at a position determined with atomic precision were collected at the same Ge dimer row at a distance as short as 30 nm. The experiment was theoretically modeled by a system composed of a twelve-layer Ge(001)-c(4×2) slab contacted by Au tips oriented along the (100) direction (Fig. 21). On this self-consistent 4-terminal treatment, two Ge electrodes were connected at each slab termination and other two at the Au model tips. The whole system was defined by 4924 atoms (36442 atomic orbitals), in a super-cell of dimensions ∼ 32 × 160 × 80 Å 3 , and where 5 different tipto-sample distances were considered. Besides the large dimensions of the system, another important challenge of such simulation was the level alignment between the metallic and semiconducting leads and the scattering region, for which a method had to be devised. A remarkable agreement was found between the calculated transmission function and the experimental transconductance spectra, allowing the identification and assignment of the observed resonances to transport channels existing along the surface Ge dimer rows. Moreover, the simulations elucidated the transport directionality of the injected hot electrons, revealing a transition from 2D to quasi-1D coherent transport regime as a function of the carrier's energy. This work shows that complex experiment setups combined with advanced calculations can provide new insights into transport properties at the nanoscale.

B. Novel topological phases in ferroelectric materials

162In material systems with several interacting degrees of freedom (such as spin, charge and lattice distortions), the complex interplay between these factors can give rise to exotic phases. A prototypical example are the superlattices of alternating lead titanate and strontium titanate layers. Simulations on such PbTiO 3 /SrTiO 3 heterostructures, consisting on n unit cells of PbTiO 3 and n unit cells of SrTiO 3 stacked along the [001] direction were carried out with SIESTA. As a function of the periodicity, the superlattices undergo a phase transition from a monodomain configuration (small periodicity, n 3 − 4) with a normal component of the polarization that is preserved throughout the structure, to a multidomain configuration (large periodicity, n 3 − 4) with alternating up and down domains. 161 In order to further reduce the electrostatic energy costs, the local dipoles within the PbTiO 3 layer continuously rotate forming a sequence of clock-wise/counterclockwise array of vortices along the [100] direction. The theoretical predictions, done with SIESTA 162 after the relaxation of supercells of up to 1000 atoms, were experimentally confirmed five years later by atomic-scale mapping of the polar atomic displacements by scanning transmission electron microscopy 163 (Fig. 22) Moreover, the appearance of an axial component of the polarization pointing in the direction of the vortices make the systems chiral and optically active, as lately confirmed by circular dichroism experiments 164 .

163C. 1D and 2D systems SIESTA is particularly well suited to study low dimensional nanostructures, such as 1D and 2D systems where a large vacuum region is needed within the simulation cell. When, in addition, a large number of atoms is required to study particular physical effects is where SIESTA could excel with respect to other methods. There is extensive literature on simulations of graphene and other exfoliated materials, where the properties of point defects, edges or grain boundaries are of much relevance. To list a few examples, the magnetic properties of impurities, 165,166 and edges 167 , but also electronic properties, including transport characteristics, in grain boundaries 168,169 , ribbons 170 , nanoporous graphene 171 , large graphene flakes 68,172 , or the effect of substrates 173 . Other materials, such as mono-and multi-layered dichalcogenides 174,175 or phosphorene 176,177 , are also being widely studied, including optical properties in nanoflakes with up to a few thousand atoms. 178 .

CDWs

164A number of recent studies on charge density waves (CDW) in low dimensional materials illustrates the impressive accuracy that can be obtained with SIESTA for systems with very subtle electronic structures. 179 For example, in 2H-NbSe 2 SIESTA calculations were able to predict the existence of six different atomic structures within a narrow energy range of a Panorama T odos los aparatos electrónicos que nos rodean se basan en el uso de transistores: diminutos dispositivos de mecanismo aparentemente simple. Un transistor puede entenderse como un pequeño interruptor con dos posiciones: «encendido» (permite la circulación de corriente) y «apagado» (no la permite). Una combinación adecuada de ellos permite implementar cualquier operación lógica. Su descubrimiento, efectuado en los años cuarenta del siglo pasado por John Bar-deen, Walter Brattain y William Shockley en los Laboratorios Bell, fue reconocido en 1956 con el premio Nobel de física y supuso el inicio de la revolución tecnológica de la que disfrutamos hoy.

165Desde sus comienzos, la industria microelectrónica se ha obsesionado con integrar un número cada vez mayor de transistores en los circuitos. Esta carrera por la miniaturización se resume en la conocida ley de Moore, enunciada en 1965 por Gordon Moore, cofundador de Intel, y según la cual el número de transistores en un circuito se duplica aproximadamente cada dos años.

166En la actualidad, las dimensiones de estos componentes electrónicos se sitúan entre los 15 y los 50 nanómetros, una escala en la que los efectos cuánticos comienzan a ser relevantes. Como consecuencia, un procesador moderno puede llegar a albergar miles de millones de transistores.

167Sin embargo, ese aumento en el número de componentes por circuito tiene ELEC TRÓNICA

Condensadores con capacidad negativa

168Un estudio encuentra el origen microscópico de la capacidad negativa, una exótica propiedad electrónica que aparece en ciertos materiales.

169El hallazgo augura el diseño de nuevos transistores más eficientes few meV, all of them compatible with the experimental 3×3 CDW modulation. Careful analysis of theoretical and experimental STM images for different bias potentials allowed to identify two of these structures that can coexist in the same image. 180 In a different work, 181 the temperature dependency of the electronic Lindhard response function in blue bronze K 0.3 MoO 3 was studied. This system has a rather complex monoclinic structure, with twenty formula units per unit cell where MoO 6 octahedra form chains along one direction (baxis). The Lindhard function shows well decoupled sharp responses that correspond to intra-and interband Fermi surface nesting. By fitting these peaks one can obtain the coherence length of the fluctuating 1D electron-hole pair (that determines the length scale of the experimental intrachain CDW correlations), and the intrachain modulation of the response (that determines the shape of the Kohn anomaly measured in experiments), providing, for the first time, a quantitative evidence of the weak electron-phonon coupling scenario for the Peierls transition.

170D. Siesta in biology: pilin proteins as conductors SIESTA's efficiency and the clear band gaps of biomolecules in general have made molecular biology a very suitable field for SIESTA since the beginning, 182 and have stimulated targeted developments of the code for the field, such as QM/MM. 183,184 An interesting illustration of its suitability in an all-quantum biological problem is the study of the electrostatics around the pilin protein in aqueous solution. 185 The pilin considered here is the main protein in the pili (external filaments) of the geobacter sulfurreducens bacterium, which have been shown to be able to transmit electronic current, allowing the microbe to feed by remote redox reactions on ferrous mineral particles in the soil. As a nanowire designed by natural evolution, understanding the mechanism for charge transport is of obvious interest.

171Peculiar to this protein is the fact that its main alpha helix, the main feature of this elongated protein, is singly oriented, that is, there is no back alpha helix (as in a common hairpin configuration) that would counter the polarization of the single alpha helix: In an alpha helix all peptide-bond dipoles point in the same direction along the axis of the helix, which, in solid-state parlance, represents a polarization, with clear electrostatic implications. Indeed, a DFT calculation of the molecule in vacuum shows a well defined electrostatic potential ramp along the protein, which tends to close the effective band gap. The question is then, how does an aqueous environment affect this depolarizing field.

172Long molecular mechanics (MM) simulations were performed for the protein in a suitable solution of NaCl at a concentration of 0.1 M. The protein's residues had charge states corresponding to pH = 7, and the MM field was validated with SIESTAcalculations in vacuum (944-atom dynamic relaxation in a 104.4 3 Å 3 box). The wet system contained 4580 atoms, and the statistical average of the electrostatic potential around the molecule (see Fig. 23) was obtained from a sample of full SIESTA calculations of statistically independent snapshots, taken every 50 ps during the last 0.5 ns of the simulation. Fig. 23 shows how the aqueous environment kills the quite homogeneous potential ramp along the protein axis that appears in vacuum and replaces it with long-wave-length slow, but quite significant fluctuations. The gap remains sizeable, and coherent transport is not likely. However, the frontier orbitals evolve in a very suggestive way for enhanced diffusive electron transport. 185

E. Use of Siesta in other fields

173Although an exhaustive summary of all the recent results obtained with SIESTA is out of the scope of this work, we would like to point the attention of the reader to a sample of recent reviews in various fields in which the program is featured. These cover biological sciences 186 (including interaction between organic and inorganic materials 187,188 ), geology and materials under high-pressure 189 , isotopic fractionation predictions for Martian geochemistry 190 , the engineering of typical core structural materials used in nuclear reactors, 191 or even in astrophysical and atmospheric systems 192 . The reactivity of metallic nanoparticles for catalysis was treated by Viñes, Gomes, and Illas 193 , and the role of SIESTA in the computation of the kinetic and dynamics of catalytic reaction at surfaces (including adsorption and desorption of reactants or products) was explored in Chapter 8 of Ref. 194 by Catapan and coworkers.

V. FUTURE EVOLUTION

174Work on enhancing SIESTA's capabilities, performance, and robustness is continuing, driven by a good number of developers and collaborators. A mature and flexible development platform and practices are essential to keep them productive. Our recent platform changes have forced developers to shift workflows twice in the past four years. Through the changes we have learned a lot but also spent a significant amount of time on ensuring SIESTA's continuous development. At the current state we believe we have stabilized the development platform on GitLab while we will add more integrated development features in the coming years, e.g. continuous integration (CI) and source code checks. Using CI will also enable easier code-style checks to conform to coding standards. We hope that our open-platform initiative will keep external contributions coming into the program.

175Our basic-development plans include also refactoring, apparently unexciting but essential to streamline the code base to enable further implementations. Also, we foresee a change in the release model, moving away from coexisting long-lived release branches whose maintenance takes up a lot of time, and offering instead more frequent and short-maintenance releases.

176We plan to exploit the idea of modularization, continuing the abstraction of relevant reusable pieces, but also dealing with a higher-level, exposing the core electronic-structure capabilities of SIESTA to other programs. It will be necessary to redesign some of the internal data structures to remove global variables and encapsulate them into objects or derived types associated to particular configurations and stages of the calculations. This encapsulation will be matched by a streamlining of the input/output operations. This work will open the door to the creation of complex workflows leveraging the strengths of various codes.

177Accelerated hybrid architectures (including, for example, GPUs) are very likely going to feature prominently in the upcoming exascale machines. In the case of SIESTA, the data indirection associated to the handling of sparse matrices limits the acceleration possibilities of the section of the code that builds the Hamiltonian and overlap matrices, but the solver stage is more amenable to porting, and in fact several solver libraries used by SIESTA are being enhanced to offer GPU support, as mentioned in Sec. III G 2.

178Modularization and the use of new programming models cause an increase in the complexity of the building and deployment of the code. We will leverage the ESL bundle, created to facilitate the use of the modules in the ESL collection, to streamline SIESTA's building process, and explore containerization as an option for deployment of the code.

179The "pseudopotential barrier to entry" has been lowered by the availability of curated databases supporting the PSML format. Basis sets are a perennial challenge, but new tools and ideas are being explored to provide users with appropriate basis sets: High-throughput workflows for optimization; "tiers" of quality/cost, but perhaps not just of a simple "periodic table" form, as offered by other codes (e.g., FHI-aims 13 ), but with a possible dependence on an approximate characterization of the chemical environment in which a given atom finds itself.

180Complementary to the underlying basis-set optimization that focuses on providing an adequate variational freedom, an on-the-fly contraction of the basis set, which results in a set of lower-cardinality adapted to the description of the occupied subspace can be exploited for increased efficiency. This is particularly relevant for FOE methods (see Sect. III G 1, in which the number of polynomial terms depends on the extent of the spectrum.

181The original claim to fame of SIESTA was based on its linear-scaling solver. We are in the process of a re-design of the O(N) code with a new, more efficient backend, based on the DBCSR library for handling distributed block-sparse matrices 195,196 with the MatrixSwitch library 82 acting as an intermediary interface between it and high-level physical ideas and algorithms. A connection between the internal SIESTA formats and MatrixSwitch itself has been recently provided, using initially the cubic-scaling libOMM library 197 as a test bed, hence still using a dense coefficient matrix, as it corresponds to the case without localization constraints in the solution of the electronic-structure problem. The implementation of a sparse coefficient matrix will make it possible to perform efficient O(N) calculations. The computational effort can be further reduced through the analysis of sparsity of the Hamiltonian and overlap matrices and their re-organization in the block-compressed sparse form.

182Other developments in the pipeline are linear-response calculations for arbitrary distortions, electronic transport calcu-

참고문헌 174건

  1. Basic Linear Algebra Comrnunication Subprograms 2005 10.1109/dmcc.1991.633146
  2. Extensions of the siesta dft code for simulation of molecules arXiv (Cornell University) · Cornell University · 2013 10.48550/arxiv.1302.4617
  3. Relations entre motifs structuraux et dynamique de réseau dans les cristaux mixtes Cu-Zn-Sn-Se : études premiers principes 2013
  4. Microscopic theory and quantum simulation of atomic heat transport Nature Physics · Nature Portfolio · 2015 10.1038/nphys3509
  5. Electronic structure and aromaticity of large-scale hexagonal graphene nanoflakes The Journal of Chemical Physics · American Institute of Physics · 2014 10.1063/1.4902806
  6. AiiDA: automated interactive infrastructure and database for computational science Computational Materials Science · Elsevier BV · 2015 10.1016/j.commatsci.2015.09.013
  7. Defect-induced magnetism in graphene Physical Review B · American Physical Society · 2007 10.1103/physrevb.75.125408
  8. 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
  9. Polarization Fluctuations and the Optical-Absorption Edge in BaTi<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:msub></mml:mrow></mml:math> Physical review. B, Solid state · American Physical Society · 1970 10.1103/physrevb.2.2679
  10. Electronic Stopping Power in Gold: The Role of<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>d</mml:mi></mml:math>Electrons and the<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi mathvariant="bold">H</mml:mi><mml:mo>/</mml:mo><mml:mi>He</mml:mi></mml:math>Anomaly Physical Review Letters · American Physical Society · 2012 10.1103/physrevlett.108.225504
  11. Nonlocal van der Waals density functional: The simpler the better The Journal of Chemical Physics · American Institute of Physics · 2010 10.1063/1.3521275
  12. Electronic Stopping Power in LiF from First Principles Physical Review Letters · American Physical Society · 2007 10.1103/physrevlett.99.235501
  13. Systematic generation of finite-range atomic basis sets for linear-scaling calculations Physical review. B, Condensed matter · American Physical Society · 2002 10.1103/physrevb.66.205101
  14. Inelastic transport theory from first principles: Methodology and application to nanoscale devices Physical Review B · American Physical Society · 2007 10.1103/physrevb.75.205413
  15. Exploring large O 1s and N 1s core level shifts due to intermolecular hydrogen bond formation in organic molecules Surface Science · Elsevier BV · 2013 10.1016/j.susc.2013.03.017
  16. Improved initial guess for minimum energy path calculations The Journal of Chemical Physics · American Institute of Physics · 2014 10.1063/1.4878664
  17. Optical Properties of NiO and CoO Physical review. B, Solid state · American Physical Society · 1970 10.1103/physrevb.2.2182
  18. Generalized Gradient Approximation Made Simple Physical Review Letters · American Physical Society · 1996 10.1103/physrevlett.77.3865
  19. Room temperature compressibility and diffusivity of liquid water from first principles The Journal of Chemical Physics · American Institute of Physics · 2013 10.1063/1.4832141
  20. Nonadiabatic Forces in Ion-Solid Interactions: The Initial Stages of Radiation Damage Physical Review Letters · American Physical Society · 2012 10.1103/physrevlett.108.213201
  21. Time-dependent density functional theory molecular dynamics simulation of doubly charged uracil in gas phase Open Physics · De Gruyter Open · 2014 10.2478/s11534-014-0428-0
  22. Density-functional method for nonequilibrium electron transport Physical review. B, Condensed matter · American Physical Society · 2002 10.1103/physrevb.65.165401
  23. Designing Electrical Contacts to<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msub><mml:mi>MoS</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:math>Monolayers: A Computational Study Physical Review Letters · American Physical Society · 2012 10.1103/physrevlett.108.156802
  24. Electron-energy-loss spectra and the structural stability of nickel oxide:  An LSDA+U study Physical review. B, Condensed matter · American Physical Society · 1998 10.1103/physrevb.57.1505
  25. Electrostatic Coupling and Local Structural Distortions at Interfaces in Ferroelectric/Paraelectric Superlattices Nano Letters · American Chemical Society · 2012 10.1021/nl3003717
  26. Influence of the exchange screening parameter on the performance of screened hybrid functionals The Journal of Chemical Physics · American Institute of Physics · 2006 10.1063/1.2404663
  27. Self-consistent order-<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>N</mml:mi></mml:math>density-functional calculations for very large systems Physical review. B, Condensed matter · American Physical Society · 1996 10.1103/physrevb.53.r10441
  28. Performance Analysis of Electronic Structure Codes on HPC Systems: A Case Study of SIESTA PLoS ONE · Public Library of Science · 2014 10.1371/journal.pone.0095390
  29. Van der Waals Density Functional for General Geometries Physical Review Letters · American Physical Society · 2004 10.1103/physrevlett.92.246401
  30. Understanding the reactivity of metallic nanoparticles: beyond the extended surface model for catalysis Chemical Society Reviews · Royal Society of Chemistry · 2014 10.1039/c3cs60421g
  31. An efficient implementation of a QM–MM method in SIESTA Theoretical Chemistry Accounts · Springer Science+Business Media · 2010 10.1007/s00214-010-0816-5
  32. Magnetic ordering and exchange effects in the antiferromagnetic solid solutions<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="normal">Mn</mml:mi></mml:mrow><mml:mrow><mml:mi>x</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="normal">Ni</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>−</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mi mathvariant="… Physical review. B, Condensed matter · American Physical Society · 1983 10.1103/physrevb.27.6964
  33. Time-dependent tight binding Journal of Physics Condensed Matter · IOP Publishing · 2001 10.1088/0953-8984/13/45/302
  34. Thermal conductivity from approach-to-equilibrium molecular dynamics Journal of Applied Physics · American Institute of Physics · 2013 10.1063/1.4815945
  35. SLEPc ACM Transactions on Mathematical Software · Association for Computing Machinery · 2005 10.1145/1089014.1089019
  36. Prediction of very large values of magnetoresistance in a graphene nanoribbon device Nature Nanotechnology · Nature Portfolio · 2008 10.1038/nnano.2008.163
  37. Numerical atomic orbitals for linear-scaling calculations Physical review. B, Condensed matter · American Physical Society · 2001 10.1103/physrevb.64.235111
  38. Development of the Colle-Salvetti correlation-energy formula into a functional of the electron density Physical review. B, Condensed matter · American Physical Society · 1988 10.1103/physrevb.37.785
  39. Lattice dynamics of the model percolation-type (Zn,Be)Se alloy: Inelastic neutron scattering,<i>ab initio</i>study, and shell-model calculations Physical Review B · American Physical Society · 2014 10.1103/physrevb.89.155201
  40. A doubly nudged elastic band method for finding transition states The Journal of Chemical Physics · American Institute of Physics · 2004 10106311636455
  41. Exchange functional that tests the robustness of the plasmon description of the van der Waals density functional Physical Review B · American Physical Society · 2014 10.1103/physrevb.89.035412
  42. Calculation of core level shifts within DFT using pseudopotentials and localized basis sets The European Physical Journal B · Springer Science+Business Media · 2012 10.1140/epjb/e2012-30334-5
  43. Efficient recursive computation of molecular integrals over Cartesian Gaussian functions The Journal of Chemical Physics · American Institute of Physics · 1986 10.1063/1.450106
  44. Optimized norm-conserving Vanderbilt pseudopotentials Physical Review B · American Physical Society · 2013 10.1103/physrevb.88.085117
  45. Efficient Implementation of a van der Waals Density Functional: Application to Double-Wall Carbon Nanotubes Physical Review Letters · American Physical Society · 2009 10.1103/physrevlett.103.096102
  46. Origin of Anomalous Electronic Structures of Epitaxial Graphene on Silicon Carbide Physical Review Letters · American Physical Society · 2008 10.1103/physrevlett.100.176802
  47. <i>Ab initio</i>local vibrational modes of light impurities in silicon Physical review. B, Condensed matter · American Physical Society · 2002 10.1103/physrevb.65.075210
  48. Maximally localized Wannier functions: Theory and applications Reviews of Modern Physics · American Physical Society · 2012 10.1103/revmodphys.84.1419
  49. Linear response approach to the calculation of the effective interaction parameters in the<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:mi>LDA</mml:mi><mml:mo>+</mml:mo><mml:mi mathvariant="normal">U</mml:mi></mml:mrow></mml:math>method Physical Review B · American Physical Society · 2005 10.1103/physrevb.71.035105
  50. Energetics and Dynamics of<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msub><mml:mi mathvariant="bold">H</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:math>Adsorbed in a Nanoporous Material at Low Temperature Physical Review Letters · American Physical Society · 2009 10.1103/physrevlett.103.096103
  51. Model of native point defect equilibrium in Cu2ZnSnS4 and application to one-zone annealing Journal of Applied Physics · American Institute of Physics · 2013 10.1063/1.4819206
  52. Theoretical investigation of the ultrafast dissociation of ionised biomolecules immersed in water: Direct and indirect effects Mutation Research/Reviews in Mutation Research · Elsevier BV · 2010 10.1016/j.mrrev.2010.01.004
  53. Introduction to Solid State Physics American Journal of Physics · American Institute of Physics · 1957 10.1119/1.1934457
  54. A method for two-electron Gaussian integral and integral derivative evaluation using recurrence relations The Journal of Chemical Physics · American Institute of Physics · 1988 10.1063/1.455553
  55. Molecular dynamics in electronically excited states using time-dependent density functional theory Molecular Physics · Taylor & Francis · 2005 10.1080/00268970512331339378
  56. MoS<sub>2</sub> and WS<sub>2</sub> Analogues of Graphene Angewandte Chemie International Edition · Wiley · 2010 10.1002/anie.201000009
  57. Implementation of screened hybrid density functional for periodic systems with numerical atomic orbitals: Basis function fitting and integral screening The Journal of Chemical Physics · American Institute of Physics · 2011 10.1063/1.3610379
  58. Optimization methods for finding minimum energy paths The Journal of Chemical Physics · American Institute of Physics · 2008 10.1063/1.2841941
  59. First-principles model potentials for lattice-dynamical studies: general methodology and example of application to ferroic perovskite oxides Journal of Physics Condensed Matter · IOP Publishing · 2013 101088095389842530305401
  60. Excitation Energies from Time-Dependent Density-Functional Theory Physical Review Letters · American Physical Society · 1996 10.1103/physrevlett.76.1212
  61. Phase Coexistence and Metal-Insulator Transition in Few-Layer Phosphorene: A Computational Study Physical Review Letters · American Physical Society · 2014 10.1103/physrevlett.113.046804
  62. Ultrafast Nonadiabatic Fragmentation Dynamics of Doubly Charged Uracil in a Gas Phase Physical Review Letters · American Physical Society · 2011 10.1103/physrevlett.107.023202
  63. Linear scaling electronic structure methods Reviews of Modern Physics · American Physical Society · 1999 10.1103/revmodphys.71.1085
  64. Density-functional method for very large systems with LCAO basis sets International Journal of Quantum Chemistry · Wiley · 1997 10.1002/(sici)1097-461x(1997)65:5<453::aid-qua9>3.0.co;2-v
  65. Erratum: “Hybrid functionals based on a screened Coulomb potential” [J. Chem. Phys. 118, 8207 (2003)] The Journal of Chemical Physics · American Institute of Physics · 2006 10.1063/1.2204597
  66. Linear scaling methods for electronic structure calculations and quantum molecular dynamics simulations Current Opinion in Solid State and Materials Science · Elsevier BV · 1996 10.1016/s1359-0286(96)80114-8
  67. Calculation of the optical response of atomic clusters using time-dependent density functional theory and local orbitals Physical review. B, Condensed matter · American Physical Society · 2002 10.1103/physrevb.66.235416
  68. <i>Ab initio</i>multicenter tight-binding model for molecular-dynamics simulations and other applications in covalent systems Physical review. B, Condensed matter · American Physical Society · 1989 10.1103/physrevb.40.3979
  69. First-principles calculations of spin-orbit splittings in solids using nonlocal separable pseudopotentials Physical review. B, Condensed matter · American Physical Society · 1993 10.1103/physrevb.47.4238
  70. Daubechies wavelets as a basis set for density functional pseudopotential calculations The Journal of Chemical Physics · American Institute of Physics · 2008 10.1063/1.2949547
  71. A Parallel Divide and Conquer Algorithm for the Symmetric Eigenvalue Problem on Distributed Memory Architectures SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 1999 10.1137/s1064827598336951
  72. Hybrid functionals based on a screened Coulomb potential The Journal of Chemical Physics · American Institute of Physics · 2003 10.1063/1.1564060
  73. Density-functional exchange-energy approximation with correct asymptotic behavior Physical review. A, General physics · American Institute of Physics · 1988 10.1103/physreva.38.3098
  74. Electronic stopping power in a narrow band gap semiconductor from first principles Physical Review B · American Physical Society · 2015 10.1103/physrevb.91.125203
  75. Crystal orbital Hamilton populations (COHP): energy-resolved visualization of chemical bonding in solids based on density-functional calculations The Journal of Physical Chemistry · American Chemical Society · 1993 10.1021/j100135a014
  76. Hydrogen on graphene: Electronic structure, total energy, structural distortions and magnetism from first-principles calculations Physical Review B · American Physical Society · 2008 10.1103/physrevb.77.035427
  77. Integral representation of the Fermi distribution and its applications in electronic-structure calculations Physical review. B, Condensed matter · American Physical Society · 1993 10.1103/physrevb.48.17573
  78. The orbital minimization method for electronic structure calculations with finite-range atomic basis sets Computer Physics Communications · Elsevier BV · 2013 10.1016/j.cpc.2013.12.008
  79. Time-Dependent Simulation of Conduction through a Molecule physica status solidi (b) · Wiley · 2001 10.1002/1521-3951(200107)226:1<115::aid-pssb115>3.0.co;2-5
  80. Fully relativistic pseudopotential formalism under an atomic orbital basis: spin–orbit splittings and magnetic anisotropies Journal of Physics Condensed Matter · IOP Publishing · 2012 10.1088/0953-8984/24/8/086005
  81. The SIESTA method; developments and applicability Journal of Physics Condensed Matter · IOP Publishing · 2008 10.1088/0953-8984/20/6/064208
  82. ABINIT: First-principles approach to material and nanosystem properties Computer Physics Communications · Elsevier BV · 2009 10.1016/j.cpc.2009.07.007
  83. Linear-Scaling ab-initio Calculations for Large and Complex Systems physica status solidi (b) · Wiley · 1999 10.1002/(sici)1521-3951(199909)215:1<809::aid-pssb809>3.0.co;2-0
  84. Parallel solution of partial symmetric eigenvalue problems from electronic structure calculations Parallel Computing · Elsevier BV · 2011 10.1016/j.parco.2011.05.002
  85. A DFT-Based QM-MM Approach Designed for the Treatment of Large Molecular Systems: Application to Chorismate Mutase The Journal of Physical Chemistry B · American Chemical Society · 2003 10.1021/jp036236h
  86. On-site approximation for spin–orbit coupling in linear combination of atomic orbitals density functional methods Journal of Physics Condensed Matter · IOP Publishing · 2006 10.1088/0953-8984/18/34/012
  87. Calculated vibration spectrum of monoclinic Cu<sub>2</sub> SnSe<sub>3</sub> in comparison with kesterite-type Cu<sub>2</sub> ZnSnSe<sub>4</sub> physica status solidi (a) · Wiley · 2013 10.1002/pssa.201200837
  88. The SIESTA method for<i>ab initio</i>order-<i>N</i>materials simulation Journal of Physics Condensed Matter · IOP Publishing · 2002 10.1088/0953-8984/14/11/302
  89. Accelerating atomic orbital-based electronic structure calculation via pole expansion and selected inversion Journal of Physics Condensed Matter · IOP Publishing · 2013 10.1088/0953-8984/25/29/295501
  90. Ab initio molecular simulations with numeric atom-centered orbitals Computer Physics Communications · Elsevier BV · 2009 10.1016/j.cpc.2009.06.022
  91. The ELPA library: scalable parallel eigenvalue solutions for electronic structure theory and computational science Journal of Physics Condensed Matter · IOP Publishing · 2014 10.1088/0953-8984/26/21/213201
  92. Phosphorene: An Unexplored 2D Semiconductor with a High Hole Mobility ACS Nano · American Chemical Society · 2014 10.1021/nn501226z
  93. Electronic transport in polycrystalline graphene Nature Materials · Nature Portfolio · 2010 10.1038/nmat2830
  94. Maximally localized generalized Wannier functions for composite energy bands Physical review. B, Condensed matter · American Physical Society · 1997 10.1103/physrevb.56.12847
  95. Topological defects in graphene: Dislocations and grain boundaries Physical Review B · American Physical Society · 2010 10.1103/physrevb.81.195420
  96. Variable cell nudged elastic band method for studying solid–solid structural phase transitions Computer Physics Communications · Elsevier BV · 2013 10.1016/j.cpc.2013.04.004
  97. Second-principles method for materials simulations including electron and lattice degrees of freedom Physical review. B./Physical review. B · American Physical Society · 2016 10.1103/physrevb.93.195137
  98. Optical response of silver clusters and their hollow shells from linear-response TDDFT Journal of Physics Condensed Matter · IOP Publishing · 2016 10.1088/0953-8984/28/21/214001
  99. Observation of polar vortices in oxide superlattices Nature · Nature Portfolio · 2016 10.1038/nature16463
  100. Edge-Modified Phosphorene Nanoflake Heterojunctions as Highly Efficient Solar Cells Nano Letters · American Chemical Society · 2016 10.1021/acs.nanolett.5b04593
  101. All-graphene edge contacts: Electrical resistance of graphene T-junctions Carbon · Elsevier BV · 2016 10.1016/j.carbon.2016.01.084
  102. Comparative density functional theory and density functional tight binding study of arginine and arginine-rich cell penetrating peptide TAT adsorption on anatase TiO<sub>2</sub> Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2016 10.1039/c6cp02671k
  103. Molecular and Electronic Structure of the Peptide Subunit of <i>Geobacter sulfurreducens</i> Conductive Pili from First Principles The Journal of Physical Chemistry A · American Chemical Society · 2012 10.1021/jp302232p
  104. Structural and energetic properties of domains in PbTiO<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msub><mml:mrow /><mml:mn>3</mml:mn></mml:msub></mml:math>/SrTiO<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msub><mml:mrow /><mml:mn>3</mml:mn></mml:msub></mml:math>superlattices from first principles Physical Review B · American Physical Society · 2012 10.1103/physrevb.85.184105
  105. Atomistic Near-Field Nanoplasmonics: Reaching Atomic-Scale Resolution in Nanooptics Nano Letters · American Chemical Society · 2015 10.1021/acs.nanolett.5b00759
  106. Large-scale atomic effective pseudopotential program including an efficient spin-orbit coupling treatment in real space Physical Review B · American Physical Society · 2015 10.1103/physrevb.91.075119
  107. Atomic-scale control of graphene magnetism by using hydrogen atoms Science · American Association for the Advancement of Science · 2016 10.1126/science.aad8038
  108. Recent developments in the ABINIT software package Computer Physics Communications · Elsevier BV · 2016 10.1016/j.cpc.2016.04.003
  109. Plasmonic Response of Metallic Nanojunctions Driven by Single Atom Motion: Quantum Transport Revealed in Optics ACS Photonics · American Chemical Society · 2016 10.1021/acsphotonics.5b00609
  110. Development of a High-Performance Eigensolver on a Peta-Scale Next-Generation Supercomputer System Progress in Nuclear Science and Technology · The Atomic Energy Society of Japan · 2011 10.15669/pnst.2.643
  111. Applications of large-scale density functional theory in biology Journal of Physics Condensed Matter · IOP Publishing · 2016 10.1088/0953-8984/28/39/393001
  112. Heterogeneous Catalysis at Nanoscale for Energy Applications Wiley eBooks · Wiley · 2014 10.1002/9781118843468
  113. Quantum mechanics in an evolving Hilbert space Physical review. B./Physical review. B · American Physical Society · 2017 10.1103/physrevb.95.115155
  114. Improvements on non-equilibrium and transport Green function techniques: The next-generation transiesta Computer Physics Communications · Elsevier BV · 2016 10.1016/j.cpc.2016.09.022
  115. A tunable electronic beam splitter realized with crossed graphene nanoribbons The Journal of Chemical Physics · American Institute of Physics · 2017 10.1063/1.4974895
  116. The atomic simulation environment—a Python library for working with atoms Journal of Physics Condensed Matter · IOP Publishing · 2017 10.1088/1361-648x/aa680e
  117. Efficient Computation of Sparse Matrix Functions for Large-Scale Electronic Structure Calculations: The <scp>CheSS</scp> Library Journal of Chemical Theory and Computation · American Chemical Society · 2017 10.1021/acs.jctc.7b00348
  118. Chemical Bonding at High Pressure Reviews in computational chemistry · Wiley · 2017 10.1002/9781119356059.ch1
  119. Ab initio DFT Calculations for Materials in Nuclear Research Communications in computer and information science · Springer Science+Business Media · 2017 10.1007/978-3-319-57972-6_24
  120. ELSI: A unified software interface for Kohn–Sham electronic structure solvers Computer Physics Communications · Elsevier BV · 2017 10.1016/j.cpc.2017.09.007
  121. Amino acids interacting with defected carbon nanotubes: ab initio calculations DOAJ (DOAJ: Directory of Open Access Journals) · DOAJ: Directory of Open Access Journals · 2016
  122. The psml format and library for norm-conserving pseudopotential data curation and interoperability Computer Physics Communications · Elsevier BV · 2018 10.1016/j.cpc.2018.02.011
  123. Thermal and transport properties of pristine single-layer hexagonal boron nitride: A first principles investigation Physical Review Materials · American Physical Society · 2017 10.1103/physrevmaterials.1.044006
  124. The PseudoDojo: Training and grading a 85 element optimized norm-conserving pseudopotential table Computer Physics Communications · Elsevier BV · 2018 10.1016/j.cpc.2018.01.012
  125. Massively parallel sparse matrix function calculations with NTPoly Computer Physics Communications · Elsevier BV · 2017 10.1016/j.cpc.2017.12.010
  126. Emergent chirality in the electric polarization texture of titanate superlattices Proceedings of the National Academy of Sciences · National Academy of Sciences · 2018 10.1073/pnas.1711652115
  127. Bottom-up synthesis of multifunctional nanoporous graphene Science · American Association for the Advancement of Science · 2018 101126scienceaar2009
  128. Calculating electronic stopping power in materials from first principles Computational Materials Science · Elsevier BV · 2018 10.1016/j.commatsci.2018.03.064
  129. Electric control of the heat flux through electrophononic effects Physical review. B./Physical review. B · American Physical Society · 2018 10.1103/physrevb.97.184306
  130. Magnetic edge states and coherent manipulation of graphene nanoribbons Nature · Nature Portfolio · 2018 10.1038/s41586-018-0154-7
  131. PySCF-NAO: An efficient and flexible implementation of linear response time-dependent density functional theory with numerical atomic orbitals Computer Physics Communications · Elsevier BV · 2018 10.1016/j.cpc.2018.08.004
  132. Prediction of equilibrium isotopic fractionation of the gypsum/bassanite/water system using first-principles calculations Geochimica et Cosmochimica Acta · Elsevier BV · 2018 10.1016/j.gca.2018.08.045
  133. Introduction to Spectroscopy and Astronomical Observations Astrophysics and space science library · Springer Nature (Netherlands) · 2018 10.1007/978-3-319-90020-9_3
  134. Plasmons in nanoparticles: atomistic Ab Initio theory for large systems 2018 10.13039/100007065
  135. Spatially resolved steady-state negative capacitance Nature · Nature Portfolio · 2019 10.1038/s41586-018-0855-y
  136. Berry phases in electronic structure theory Contemporary Physics · Taylor & Francis · 2018 10.1080/00107514.2018.1559235
  137. Multi-scale approach to first-principles electron transport beyond 100 nm Nanoscale · Royal Society of Chemistry · 2019 10.1039/c9nr00866g
  138. Berry Phases in Electronic Structure Theory Cambridge University Press eBooks · Cambridge University Press · 2018 10.1017/9781316662205
  139. Electronic transport in planar atomic-scale structures measured by two-probe scanning tunneling spectroscopy Nature Communications · Nature Portfolio · 2019 10.1038/s41467-019-09315-6
  140. Coexistence of Elastic Modulations in the Charge Density Wave State of 2<i>H</i>-NbSe<sub>2</sub> Nano Letters · American Chemical Society · 2019 10.1021/acs.nanolett.9b00268
  141. Theoretical investigation of lattice thermal conductivity and electrophononic effects in <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>SrTiO</mml:mi><mml:mn>3</mml:mn></mml:msub></mml:math> Physical Review Materials · American Physical Society · 2019 10.1103/physrevmaterials.3.044404
  142. Observation of room-temperature polar skyrmions Nature · Nature Portfolio · 2019 10.1038/s41586-019-1092-8
  143. Room-temperature magnetism and tunable energy gaps in edge-passivated zigzag graphene quantum dots npj 2D Materials and Applications · Nature Portfolio · 2019 10.1038/s41699-019-0098-2
  144. Charge Delocalization, Oxidation States, and Silver Mobility in the Mixed Silver–Copper Oxide AgCuO<sub>2</sub> Inorganic Chemistry · American Chemical Society · 2019 10.1021/acs.inorgchem.9b00662
  145. Removing all periodic boundary conditions: Efficient nonequilibrium Green's function calculations Physical review. B./Physical review. B · American Physical Society · 2019 10.1103/physrevb.100.195417
  146. Anisotropy of electronic stopping power in graphite Physical review. B./Physical review. B · American Physical Society · 2019 10.1103/physrevb.100.104112
  147. Evidence for the weak coupling scenario of the Peierls transition in the blue bronze Physical Review Materials · American Physical Society · 2019 10.1103/physrevmaterials.3.055001
  148. Hubbard-corrected DFT energy functionals: The LDA+U description of correlated systems International Journal of Quantum Chemistry · Wiley · 2013 10.1002/qua.24521
  149. The Particle–Hole Map: A Computational Tool To Visualize Electronic Excitations Journal of Chemical Theory and Computation · American Chemical Society · 2015 10.1021/acs.jctc.5b00987
  150. Wannier90 as a community code: new features and applications Journal of Physics Condensed Matter · IOP Publishing · 2019 10.1088/1361-648x/ab51ff
  151. Anisotropy-driven thermal conductivity switching and thermal hysteresis in a ferroelectric Applied Physics Letters · American Institute of Physics · 2019 10.1063/1.5127825
  152. ELSI — An open infrastructure for electronic structure solvers Computer Physics Communications · Elsevier BV · 2020 10.1016/j.cpc.2020.107459
  153. DMFTwDFT: An open-source code combining Dynamical Mean Field Theory with various density functional theory packages Computer Physics Communications · Elsevier BV · 2020 10.1016/j.cpc.2020.107778
  154. DBCSR: A Blocked Sparse Tensor Algebra Library Advances in parallel computing · Elsevier BV · 2020 10.3233/apc200058
  155. Multi-scale approach to first-principles electron transport beyond 100 nm Nanoscale · Royal Society of Chemistry · 2019 10.1039/c9nr00866g
  156. On-site approximation for spin–orbit coupling in linear combination of atomic orbitals density functional methods Journal of Physics Condensed Matter · IOP Publishing · 2007 10.1088/0953-8984/19/48/489001
  157. Density, structure, and dynamics of water: The effect of van der Waals interactions The Journal of Chemical Physics · American Institute of Physics · 2011 10.1063/1.3521268
  158. Wannier90 as a community code: new features and applications Journal of Physics Condensed Matter · IOP Publishing · 2019 10.1088/1361-648x/ab51ff
  159. Electronic transport in polycrystalline graphene Nature Materials · Nature Portfolio · 2010 10.1038/nmat2830
  160. Bottom-up synthesis of multifunctional nanoporous graphene Science · American Association for the Advancement of Science · 2018 10.1126/science.aar2009
  161. A doubly nudged elastic band method for finding transition states The Journal of Chemical Physics · American Institute of Physics · 2004 10.1063/1.1636455
  162. Optimizations of the eigensolvers in the ELPA library Parallel Computing · Elsevier BV · 2019 10.1016/j.parco.2019.04.003
  163. Band unfolding made simple Journal of Physics Condensed Matter · IOP Publishing · 2020 10.1088/1361-648x/ab6e8e
  164. First-principles model potentials for lattice-dynamical studies: general methodology and example of application to ferroic perovskite oxides Journal of Physics Condensed Matter · IOP Publishing · 2013 10.1088/0953-8984/25/30/305401
  165. SIESTA-PEXSI: massively parallel method for efficient and accurate<i>ab initio</i>materials simulation without matrix diagonalization Journal of Physics Condensed Matter · IOP Publishing · 2014 10.1088/0953-8984/26/30/305503
  166. Magnetism in Graphene Induced by Single-Atom Defects arXiv (Cornell University) · Cornell University · 2006
  167. Accelerating Numerical Dense Linear Algebra Calculations with GPUs Springer eBooks · Springer Nature · 2014 10.1007/978-3-319-06548-9_1
  168. Computer Simulation of Liquids Journal of Molecular Liquids · Elsevier BV · 1988 10.1016/0167-7322(88)80022-9
  169. Computational Materials Science Theoretical and computational chemistry · Elsevier BV · 2004 10.1016/s1380-7323(04)x8001-8
  170. ScaLAPACK: a portable linear algebra library for distributed memory computers — design issues and performance Computer Physics Communications · Elsevier BV · 1996 10.1016/0010-4655(96)00017-3
  171. Laboratory Astrophysics Astrophysics and space science library · Springer Nature (Netherlands) · 2018 10.1007/978-3-319-90020-9
  172. Order-<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>N</mml:mi></mml:math>implementation of exact exchange in extended insulating systems Physical Review B · American Physical Society · 2009 10.1103/physrevb.79.085102
  173. High Performance Computing Communications in computer and information science · Springer Science+Business Media · 2017 10.1007/978-3-319-57972-6
  174. Absence of dc-Conductivity in<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>λ</mml:mi></mml:math>-DNA Physical Review Letters · American Physical Society · 2000 10.1103/physrevlett.85.4992