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

Improvements on non-equilibrium and transport Green function techniques: The next-generation transiesta

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Nick Papior — Center for Nanostructured Graphene (CNG), Department of Micro- and Nanotechnology (DTU Nanotech), Technical University of Denmark, DK-2800 Kgs. Lyngby, Denmark
  2. Nicolás Lorente — Centro de Física de Materiales CFM/MPC (CSIC-UPV/EHU), Paseo Manuel de Lardizabal 5, E-20018 Donostia - San Sebastián, Spain|||Donostia International Physics Center (DIPC)–UPV/EHU, E-20018 San Sebastián, Spain
  3. Thomas Frederiksen — IKERBASQUE, Basque Foundation for Science, E-48013, Bilbao, Spain|||Donostia International Physics Center (DIPC)–UPV/EHU, E-20018 San Sebastián, Spain
  4. Alberto Garcı́a — Institut de Ciència de Materials de Barcelona (ICMAB-CSIC), Campus de la UAB, E-08193 Bellaterra, Spain
  5. Mads Brandbyge — Center for Nanostructured Graphene (CNG), Department of Micro- and Nanotechnology (DTU Nanotech), Technical University of Denmark, DK-2800 Kgs. Lyngby, Denmark
DOI
10.1016/j.cpc.2016.09.022
저널
Computer Physics Communications
발행년도
2016
발행기관
Elsevier BV
피인용수
359
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.cpc.2016.09.022
토픽
Graphene research and applications
OpenAlex ID
W2507242032

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

We present novel methods implemented within the non-equilibrium Green function code (NEGF) TRANSIESTA based on density functional theory (DFT). Our flexible, next-generation DFT–NEGF code handles devices with one or multiple electrodes (Ne≥1) with individual chemical potentials and electronic temperatures. We describe its novel methods for electrostatic gating, contour optimizations, and assertion of charge conservation, as well as the newly implemented algorithms for optimized and scalable matrix inversion, performance-critical pivoting, and hybrid parallelization. Additionally, a generic NEGF “post-processing” code (TBTRANS/PHTRANS) for electron and phonon transport is presented with several novelties such as Hamiltonian interpolations, Ne≥1 electrode capability, bond-currents, generalized interface for user-defined tight-binding transport, transmission projection using eigenstates of a projected Hamiltonian, and fast inversion algorithms for large-scale simulations easily exceeding 106 atoms on workstation computers. The new features of both codes are demonstrated and bench-marked for relevant test systems.

본문 109,675자

본문 펼치기
Improvements on non-equilibrium and transport Green function techniques: the next-generation transiesta Nick Papior <sup>_∗_</sup> and Mads Brandbyge <sup>_†_</sup> _Center_ _for_ _Nanostructured_ _Graphene_ _(CNG),_ _Department_ _of_ _Micro-_ _and_ _Nanotechnology_ _(DTU_ _Nanotech),_ _Technical_ _University_ _of_ _Denmark,_ _DK-2800_ _Kgs._ _Lyngby,_ _Denmark_ Nicolás Lorente <sup>_‡_</sup> _Centro_ _de_ _Física_ _de_ _Materiales_ _CFM/MPC_ _(CSIC-UPV/EHU),_ _Paseo_ _Manuel_ _de_ _Lardizabal_ _5,_ _E-20018_ _Donostia_ _-_ _San_ _Sebastián,_ _Spain_ Thomas Frederiksen <sup>_§_</sup> _Donostia_ _International_ _Physics_ _Center_ _(DIPC)_ _–_ _UPV/EHU,_ _E-20018_ _San_ _Sebastián,_ _Spain_ _and_ _IKERBASQUE,_ _Basque_ _Foundation_ _for_ _Science,_ _E-48013,_ _Bilbao,_ _Spain_ Alberto García <sup>_¶_</sup> _Institut_ _de_ _Ciència_ _de_ _Materials_ _de_ _Barcelona_ _(ICMAB-CSIC),_ _Campus_ _de_ _la_ _UAB,_ _E-08193_ _Bellaterra,_ _Spain_ We present novel methods implemented within the non-equilibrium Green function code (NEGF) transiesta based on density functional theory (DFT). Our flexible, next-generation DFT-NEGF andcodeelectronichandles devicestemperatures.with oneWeor describemultiple itselectrodesnovel methods( _N_ e _≥_ 1for) withelectrostaticindividualgating,chemicalcontourpotentialsoptimizations, and assertion of charge conservation, as well as the newly implemented algorithms for optimized and scalable matrix inversion, performance-critical pivoting, and hybrid parallellization. Additionally, a generic NEGF “post-processing” code (tbtrans/phtrans) for electron and phonon transport is presented with several novelties such as Hamiltonian interpolations,pability, bond-currents, generalized interface for user-defined tight-binding transport, _N_ e _≥_ 1 electrode ca-transmission projection using eigenstates of a projected Hamiltonian, and fast inversion algorithms for large-scale simulations easily exceeding 10 <sup>6</sup> atoms on workstation computers. The new features of both codes are demonstrated and bench-marked for relevant test systems. _∗_ [nickpapior@gmail.com](mailto:nickpapior@gmail.com) _†_ [mabr@nanotech.dtu.dk](mailto:mabr@nanotech.dtu.dk) _‡_ [nicolas_lorente001@ehu.eus](mailto:nicolas_lorente001@ehu.eus) _§_ [thomas_frederiksen@ehu.eus](mailto:thomas_frederiksen@ehu.eus) _¶_ [albertog@icmab.es](mailto:albertog@icmab.es) I. INTRODUCTION The transport of charge, magnetic moments and, in general, any sort of excitation is a fascinating fundamental physical problem that has demanded attention for a long time [1]. Today, the interest is enhanced by the technological needs of an industry increasingly based on devices whose detailed atomistic structure matters [2], but the treatment of transport is still a formidable open task. Spurred by the fast developments of the microelectronic industry, the first attempts to understand electronic transport at the atomic scale where based on scattering theory [3]. The electron transmission between two semi-infinite reservoirs was treated in a time-independent fashion solving the scattering matrix connecting the reservoirs. At this stage, transport was described as one-electron scattering by a static contact region and this granted access to many concepts and to devising new experiments [4–6]. However, the problem is fundamentally a non-equilibrium one that requires evolving many-body states [7–10]. Density functional theory (DFT) has been one method to address some aspects of this problem. Conceptually, DFT is a mean-field many-body theory of the ground state. As such, it can in principle give exact results for the linear conductance because the linear response is a property of the ground state [11]. Beyond linear conductance, not even _ideal_ DFT works because of the need to describe excited states and dynamics of the system. Such limitations may be mitigated by using time-dependent DFT [12, 13], but going beyond the linear regime is highly nontrivial. A main issue of a DFT description stems from the approximations made to compute the ground state. Indeed, it has been recently shown that cases where strong correlations rein, such as the Coulomb blockade regime, the commonly used exchange-and-correlation functionals fail and new ones have to be used [14]. Probably the most significant conceptual and practical problem comes from the use of the Kohn-Sham electronic structure as the working basis for transport calculations [15]. While this has many limitations and restrictions [14–18] it currently seems to be the most practical way of obtaining insight based on atomistic modeling [17, 18]. For the range of systems where DFT is thought to be of quantitative value, efficient and accurate codes based on a combination of DFT and non-equilibrium Green function (NEGF) theory have been implemented. The collection of such DFT-NEGF codes is an ever growing list [19–30], but few are multi-functional in the sense of having predictive power for a variety of physical properties (electrical and heat conductivity, influence of heat dissipation, etc.) and flexible enough to describe realistic experimental situations (e.g., complicated chemical compounds, multi-terminal setups, and devices involving thousands of atoms). In the present work, we report on a complete rewrite of the transiesta DFT-NEGF code. An emphasis has been put in increasing both the efficiency and the accuracy of the calculations. The new transiesta presents: 1) a huge performance increase using advanced inversion algorithms on top of efficient threading, 2) an efficient generalization of equations for multi-terminal systems, 3) a new treatment of thermoelectric effects by allowing temperature gradients, 4) new gate methods in conjunction with improved electrostatic effects, 5) new contour integration optimizations for improved convergence, and 6) a fully flexible tight-binding functionality using Python as back-end. The paper is organized as follows: Section II is devoted to the general framework of a multi-terminal formulation within DFT-NEGF while section III deals with the implementations specific to transiesta. In Sec. IV we finally cover a generic “post-processing” NEGF code (tbtrans/phtrans) to compute, among other features, electron and phonon transmissions with inputs from a DFT-NEGF description (i.e., transiesta or similar software) or simply from some user-supplied tight-binding parameters. II. GREEN FUNCTION THEORY The central aim of DFT-NEGF is to obtain a self-consistent description of the electron density _ρ_ and the effective Kohn-Sham Hamiltonian H for an open quantum system coupled to one or more electrodes. These electrodes are thought to be large enough to be unperturbed by the presence of electronic currents passing through the scattering region, i.e. that they can be considered in local equilibrium. However, if the electrodes are not in equilibrium with each other, the central part (system) will acquire a non-equilibrium electron density. In contrast to ground-state DFT, where the electron density is simply obtained by filling the Kohn-Sham states up to the Fermi level, such simple relation between occupations and states is not available in the non-equilibrium situation. Instead one can resort to Green function techniques as outlined below for the steady-state solution. The specifics governing the underlying methodology (siesta) for atomic-like basis-sets can be found elsewhere [20, 31]. Figure 1 illustrates the kind of generic multi-electrode NEGF setup we have in mind in the remainder of the paper. For setups where periodic boundary conditions with given lattice vectors R, we apply Bloch k -point sampling possible for both the DFT-NEGF self-consistent calculation and the subsequent transport calculation. To keep clarity, we explicitly add the k dependence to the equations while e refers to an electrode index. Furthermore we write all equations generically with _N_ e electrodes to clarify specifics related to any number of electrodes; _N_ e _≥_ 1. The following _B_ = buffer region e _i_ = electrode e _i_ + = extended e _i_ _D_ = interaction region _B_ e2 e2+ e1 _D_ e3+ e3 e1+ FIG. 1. Conceptual system setup for a 3-electrode ( _N_ e = 3) example. The electrode regions are denoted by e _i_ (black blocks) and the associated electrode screening regions by e _i_ +. The scattering/device region is indicated by _D_ (blue block). An additional buffer region _B_ (red block) denotes a region removed from the NEGF algorithm. All blocks as a whole represent the supercell used for a transiesta calculation. expressions are used throughout the paper e - _−_ 1 Σ e _,_ k ( _z_ ) _,_ with _z_ _≡_ _ϵ_ + _iη_, (1) Gk ( _z_ ) = _z_ Sk _−_ Hk _−_ - Σ e _,_ k ( _z_ ) _−_ Σ <sup>_†_</sup> e _,_ Γ e _,_ k ( _z_ ) = _i_ <sup>_†_</sup> e _,_ k <sup>(</sup> <sup>_z_</sup> <sup>)</sup> - _,_ (2) _A_ e _,_ k ( _z_ ) = Gk ( _z_ ) Γ e _,_ k ( _z_ ) G <sup>_†_</sup> k <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_,_</sup> (3) - _A_ e _,_ k ( _z_ ) _nF,_ e( _ϵ_ ) _e_ <sup>_−i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> _,_ (4) e _ρ_ = <sup><u>1</u></sup> 2 _π_ �� d k d _ϵ_ BZ where Gk / G <sup>_†_</sup> k <sup>is</sup> <sup>the</sup> <sup>retarded/advanced</sup> <sup>Green</sup> <sup>function</sup> <sup>at</sup> <sup>energy</sup> <sup>_ϵ_</sup> <sup>(with</sup> <sup>a</sup> <sup>small</sup> <sup>positive</sup> <sup>constant</sup> <sup>_η_</sup> <sup>=</sup> <sup>0+),</sup> <sup>and</sup> Hk = H _e_ <sup>_i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup>, Sk = S _e_ <sup>_i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup>, the Hamiltonian and overlap matrix at k in the scattering region with R being a lattice vector in the periodic directions. The self-energy and spectral function of electrode e are Σ e and _A_ e, respectively, with associated broadening matrix Γ e. Lastly, _ρ_ is the non-equilibrium density matrix. BZ denotes here, and in the following, the Brillouin zone _average_ (i.e., it includes a normalization corresponding to the appropriate Brillouin zone volume). Equation (4) is the density matrix for equilibrium _and_ non-equilibrium (disregarding bound states). We require a Hermitian Hamiltonian and express the chemical potential as _µ_, and the temperature as _kBT_ . A combined quantity is defined _ς_ _≡{µ, kBT_ _}_ . We will freely denote a Fermi distribution by _nF,ς_ as well as _nF,_ e where the latter implicitly refers to _ς_ belonging to the electrode e. transiesta is also implemented with spin-polarization and we will omit the factor of 2 for non-polarized calculations, thus equations are for one spin-channel, unless otherwise stated. Lastly, we omit using the so-called “transport direction” which is ill-defined for nonparallel electrodes. As such our implementation of transiesta only deals with the semi-infinite directions of each electrode. This is apparent in _N_ e _>_ 2 calculations as performed in Refs. [32, 33]. Finally, we define another central quantity for the Green function technique, namely the energy density matrix _E_, as - _A_ e _,_ k ( _z_ ) _nF,_ e( _ϵ_ ) _e_ <sup>_−i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> _,_ (5) e _E_ = <sup><u>1</u></sup> 2 _π_ �� d k d _ϵ ϵ_ BZ which enables force calculations under non-equilibrium situations [34, 35]. A. Equilibrium (EGF) In (global) equilibrium all Fermi distribution functions are equal, i.e., _nF,_ e( _ϵ_ ) = _nF_ ( _ϵ_ ), and Eq. (4) can be reduced to - Gk ( _z_ ) _−_ G <sup>_†_</sup> k _ρ_ eq = <sup>_<u>i</u>_</sup> 2 _π_ �� d k d _ϵ_ BZ _nF_ ( _ϵ_ ) _e_ <sup>_−i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> _._ (6) <sup>_†_</sup> k <sup>(</sup> <sup>_z_</sup> <sup>)</sup> _EF_ _zi_ a) _R_ <sup>+</sup> = _C_ <sup>+</sup> G ( _z_ ) G <sup>_†_</sup> ( _z_ ) <u>�</u> Im _E_ _<u>R</u>_ <sup>_<u>−</u>_</sup> _S_ <sup>_−_</sup> _<u>L</u>_ <sup>_−_</sup> _zi_ _EF_ _S_ <sup>+</sup> _<u>R</u>_ <sup>+</sup> _<u>L</u>_ <sup>+</sup> _E_ b) _R_ <sup>_−_</sup> = _−_ _C_ <sup>_−_</sup> Im FIG. 2. Two enclosing contours in the complex plane. The red contour is a _circle_ contour while a square contour is shown by the blue line. Both are equivalent mathematically. The arrows indicate the direction of the contour integration. a) is the integration of the retarded Green function while b) is the advanced Green function. Note the sign change of the advanced Green function which results in an opposite direction integration. To circumvent the meticulous and tedious integration in Eq. (6) along the energy axis, it is advantageous to use the residue theorem [20]. The advantage is that the Green function, which varies quickly near the poles on the real axis, is analytic and much smoother in the complex plane, which in turn allows for numerically accurate quadrature methods. An example of the smoothing in the complex plane can be found in the supplementary material (SM). As the Green function has poles on the real axis (the eigenvalues of its inverse) and the Fermi function _nF_ has poles at _zν_ = _ikBTπ_ (2 _ν_ + 1) with Res _nF_ ( _zν_ ) = _kBT_ for _ν_ _∈_ N, we have according to the residue theorem that d _z_ - Gk ( _z_ ) _−_ G <sup>_†_</sup> k <sup>_†_</sup> k <sup>(</sup> <sup>_z_</sup> <sup>)</sup> - _nF_ ( _z_ ) = _−_ 2 _πikBT_ - Gk ( _zν_ ) _−_ G <sup>_†_</sup> k _zν_ <sup>_†_</sup> k <sup>(</sup> <sup>_zν_</sup> <sup>)</sup> - _,_ (7) which follows if _z_ _∈_ R + _iη_, _η_ _→_ 0 <sup>+</sup> . An example of two different, but mathematically equivalent, contours are shown in Fig. 2a. To calculate the real axis integral one divides the enclosed contour into the integral along the real axis and the remaining of the contour. We note that _nF_ ( _z_ ) _→_ 0 for _ℜz_ _≫_ _EF_ which avoids the need for a fully enclosed contour as lim _z→∞_ + _iη_ - _R_ ( _S_ up _/L_ )up d _zf_ ( _z_ ) _nF_ ( _z_ ) _→_ that _nF_ ( _z_ ) _→_ 0 for _ℜz_ _≫_ _EF_ which avoids the need for a fully enclosed contour as lim _z→∞_ + _iη_ - _R_ ( _S_ up _/L_ )up d _zf_ ( _z_ ) _nF_ ( _z_ ) _→_ 0. We stress that _all_ enclosed contours in the lower/upper complex plane are mathematically equivalent, as long as the lower bound is below the lowest eigenvalue in the Brillouin zone. The residue theorem can be applied two times for Gk ( _z_ ) _−_ G <sup>_†_</sup> k <sup>(</sup> <sup>_z_</sup> <sup>):</sup> <sup>We use the positive part of the imaginary coordinate system with Im</sup> <sup>_z_</sup> <sup>_>_</sup> <sup>0 for integrating</sup> <sup>Gk</sup> <sup>(</sup> <sup>_z_</sup> <sup>),</sup> for Gk ( _z_ ) _−_ G <sup>_†_</sup> k <sup>(</sup> <sup>_z_</sup> <sup>):</sup> <sup>We use the positive part of the imaginary coordinate system with Im</sup> <sup>_z_</sup> <sup>_>_</sup> <sup>0 for integrating</sup> <sup>Gk</sup> <sup>(</sup> <sup>_z_</sup> <sup>),</sup> and the negative part of the imaginary coordinate system with Im _z_ _<_ 0 for integrating G <sup>_†_</sup> k <sup>(</sup> <sup>_z_</sup> <sup>).</sup> <sup>This</sup> <sup>is</sup> <sup>indicated</sup> <sup>in</sup> Fig. 2a/b with _R_ <sup>+</sup> <sup>_/−_</sup>, respectively. Importantly, the imaginary part of the line contour _L/S_ should be chosen large enough so that the Green function indeed is smooth. A higher number of poles increases the distance to the real axis. Thus one should take care of the number of poles used in the calculation as the imaginary part is solely determined by the temperature. For 10 poles and a temperature of 25 meV the imaginary part becomes _∼_ 1 _._ 57 eV. We emphasize that to ensure a consistent interpretation, irrespective of the electronic temperature, it is better to derive the number of poles from a fixed energy scale on the imaginary axis rather than choosing it directly. Furthermore, it is required that the lower bound of the contour integration is well below the lowest eigenvalue of the system as the Green function fans out when increasing the complex energy. See the SM for an interactive illustration of these points. B. Non-equilibrium (NEGF) Non-equilibrium arises due to differences between the electrode electronic distributions via _ς_ e _̸_ = _ς_ e _′_ . That is, either a chemical potential difference, an electronic temperature difference, or a combination of these. We define the bias window with a lower/upper bound as min( _µ_ e)/max( _µ_ e) with appropriate tails of the Fermi functions. Starting from Eq. (4) and adding 0 = (1 _−_ 1) - _A_ e _′,_ k ( _z_ ) _nF,_ e( _ϵ_ ) _e_ <sup>_−i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> _,_ (8) e <sup>_′̸_</sup> =e (note that the products _A_ e <sup>_′_</sup> _,_ k ( _z_ ) _nF,_ e( _ϵ_ ) refer to different electrodes) we can write the density matrix as neq <sup>e</sup> <sup>_,_</sup> (9) _ρ_ = _ρ_ <sup>e</sup> eq <sup>+</sup> _ρ_ = _ρ_ <sup>e</sup> eq e <sup>_′̸_</sup> =e ∆ <sup>e</sup> e <sup>_′_</sup> <sup>e</sup> e <sup>_′_</sup> <sup>_≡_</sup> <sup>_ρ_</sup> <sup>e</sup> <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> 2 _π_ _nF,_ e( _ϵ_ ) _e_ <sup>_−i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> _,_ (10) _ρ_ <sup>e</sup> 2 _π_ �� d k d _ϵ_ BZ - Gk ( _z_ ) _−_ G <sup>_†_</sup> k <sup>_†_</sup> k <sup>(</sup> <sup>_z_</sup> <sup>)</sup> - _,_ (11) ∆ <sup>e</sup> e 2 _π_ �� BZ d k d _ϵ A_ e _′,_ k ( _z_ ) _e_ <sup>_−i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> <sup>�</sup> _nF,_ e _′_ ( _ϵ_ ) _−_ _nF,_ e( _ϵ_ ) where we call ∆ <sup>e</sup> e where we call ∆ <sup>e</sup> e <sup>_′_</sup> <sup>a</sup> <sup>non-equilibrium</sup> <sup>correction</sup> <sup>term</sup> <sup>for</sup> <sup>the</sup> <sup>equilibrium</sup> <sup>density</sup> <sup>of</sup> <sup>electrode</sup> <sup>e</sup> <sup>due</sup> <sup>to</sup> <sup>electrode</sup> <sup>e</sup> <sup>_′_</sup> <sup>.</sup> This reduces the real axis integral to be confined in the bias window with respect to the different Fermi distributions. Equation (9) deserves a few comments. It can be expressed equivalently for all electrodes e, and thus one finds _N_ e different expressions for the same density _ρ_ = _ρ_ <sup>e</sup> neq <sup>=</sup> <sup>_ρ_</sup> <sup>e</sup> neq <sup>_′_</sup> <sup>=</sup> <sup>_· · ·_</sup> <sup>.</sup> <sup>If</sup> <sup>two</sup> <sup>or</sup> <sup>more</sup> <sup>electrodes</sup> <sup>have</sup> <sup>the</sup> <sup>same</sup> <sup>Fermi</sup> distribution, _ς_ e = _ς_ e _′_, we find _ρ_ <sup>e</sup> eq <sup>=</sup> <sup>_ρ_</sup> <sup>e</sup> eq <sup>_′_</sup> <sup>and</sup> <sup>∆</sup> <sup>e</sup> e <sup>_′_</sup> <sup>=</sup> <sup>0,</sup> <sup>thus</sup> <sup>we</sup> <sup>can</sup> <sup>reduce</sup> <sup>_N_</sup> <sup>e</sup> <sup>to</sup> <sup>_Nς_</sup> <sup>different</sup> <sup>expressions.</sup> <sup>So</sup> <sup>for</sup> <sup>any</sup> <sup>e</sup> eq <sup>=</sup> <sup>_ρ_</sup> <sup>e</sup> eq <sup>_′_</sup> <sup>e</sup> neq <sup>=</sup> <sup>_ρ_</sup> <sup>e</sup> <sup>_′_</sup> <sup>e</sup> eq <sup>_′_</sup> <sup>and</sup> <sup>∆</sup> <sup>e</sup> e <sup>_′_</sup> distribution, _ς_ e = _ς_ e _′_, we find _ρ_ <sup>e</sup> eq <sup>=</sup> <sup>_ρ_</sup> <sup>e</sup> eq <sup>_′_</sup> <sup>and</sup> <sup>∆</sup> <sup>e</sup> e <sup>_′_</sup> <sup>=</sup> <sup>0,</sup> <sup>thus</sup> <sup>we</sup> <sup>can</sup> <sup>reduce</sup> <sup>_N_</sup> <sup>e</sup> <sup>to</sup> <sup>_Nς_</sup> <sup>different</sup> <sup>expressions.</sup> <sup>So</sup> <sup>for</sup> <sup>any</sup> _N_ e _>_ 2 electrodes with 2 different Fermi distributions we only have 2 equations with different terms (although the two equations are mathematically equivalent). We stress that the number of correction terms ∆ <sup>e</sup> e <sup>_′_</sup> <sup>for</sup> <sup>each</sup> <sup>electrode</sup> depends on the number of equivalent Fermi distributions. Equivalently, Eq. (9) can be written more compactly as ∆ <sup>_ς_</sup> e <sup>_ς_</sup> e <sup>_≡_</sup> <sup>_ρ_</sup> <sup>_ς_</sup> neq <sup>_ς_</sup> <sup>_,_</sup> (12) _ρ_ = _ρ_ <sup>_ς_</sup> eq <sup>+</sup> e _|ς_ e _̸_ = _ς_ where e _|ς_ e _̸_ = _ς_ are electrodes with Fermi distributions different from _ς_ . Equation (9) is equivalent to Eq. (12) where the former have possible duplicates and the latter does not. These considerations also apply to the (non-equilibrium) energy density matrix, Eq. (5), in a similar manner. Compared to the equilibrium case (Sec. II A) we note that the non-equilibrium case is numerically more demanding in terms of matrix operations as the calculation of _ρ_, in addition to the inversion for Gk ( _z_ ) needed in Eq. (6) and Eq. (10), also requires the evaluation of triple matrix products for _A_ e _,_ k, as seen in Eq. (11). III. IMPLEMENTATION DETAILS IN TRANSIESTA A. Complex contour optimization The equilibrium contour in NEGF calculations can be chosen from a range of different shapes and methods to integrate. Here we describe the nontrivial task of selecting an optimum equilibrium contour. We have implemented several different methods, from Newton-Cotes to advanced quadrature methods, using Legendre polynomials or TanhSinh quadrature [36]. Both circle and square contours are possible. Furthermore the continued fraction method suggested by Ozaki [28] is also implemented. Its strength is that it has only _one_ convergence parameter, which is the number of poles, whereas the quadrature methods have (at least) three convergence parameters(number of poles ( _zi_ ), points on the line _L_ <sup>+</sup>, and points on circle/square _C_ <sup>+</sup> _/S_ <sup>+</sup> ). A novel selection of quadrature points in _C_ <sup>+</sup> _/S_ <sup>+</sup> can be realized by examining Fig. 2. It is evident that the two contours _C_ <sup>+</sup> <sup>_/−_</sup> for the retarded and advanced Green function add up to a connected circle. Hence we can consider them as _one_ integration path and choose the quadrature to span the entire _C_ <sup>+</sup> + _C_ <sup>_−_</sup> contour. In practice one only chooses the _right_ half of the abscissa on the _C_ <sup>+</sup> + _C_ <sup>_−_</sup> contour and effectively one uses a half quadrature on the _C_ <sup>+</sup> contour. We will denote this as the _right-side_ scheme. This trick allows one to slightly reduce the number of equilibrium contour points without loss of accuracy[37]. In order to illustrate the convergence properties of the equilibrium contour we have investigated a two-electrode gold (slab) system which is connected via a one-dimensional (1D) chain and calculated the free energy as a function of contour points. As the convergence path is non-deterministic and the “correct” value cannot be found we define the error against the free energy calculated with 300 energy points on the respective contour. As such the reference is itself. We stress that this study is difficult to extrapolate to arbitrary systems, yet it can be indicative of the convergence properties for the different quadrature methods and illustrates how critical the choice of method can be. The results are seen in Fig. 3. The circle and square quadratures have 16 poles and the circle uses 10 _L_ <sup>+</sup> points. Both the circle and square contours are presented using both the standard and the _right-side_ scheme as well as the continued fraction method. Note that the numerical accuracy limits the error to 10 <sup>_−_</sup> <sup>6</sup> . We see that the circle contour benefits from the _right-side_ scheme which performs the best in this setup. On the contrary, the square contour does not benefit from the _right-side_ scheme. Furthermore, we see a slow convergence 10 <sup>2</sup> 10 <sup>0</sup> 10 <sup>−2</sup> 10 <sup>−4</sup> 10 <sup>−6</sup> 20 30 40 50 60 70 80 90 100 Total # of contour points Cont. fraction <u>Circle contour</u> Legendre Legendre – _right_ Simpson <u>Square contour</u> <u>Legendre</u> Legendre – _right_ Simpson FIG. 3. Test calculation on a metallic one-dimensional gold chain using Gaussian quadrature methods. Comparison of the square contour vs. the circle contour using the variants of integration methods: Regular Legendre, Legendre- _right-side_ and Simpson quadrature. The Legendre- _right-side_ seems better or at least on-par with the regular Legendre quadrature on the circle contour. of the Simpson method (order 3 of Newton-Cotes method). Lastly, the continued fraction scheme [28] converges fast and indeed is a powerful method due to its simplicity. We stress that changing the initial _L_ <sup>+</sup> and/or number of poles will change the convergence properties of the shown methods. B. Weighing _ρ_ and bound states As shown in Sec. II B several different expressions exist for the non-equilibrium density matrix _ρ_ neq, depending on the choice of electrode for the equilibrium part in Eq. (9) and Eq. (12). Under non-equilibrium conditions these expressions numerically yield different densities, in particular if bound states are present. Per definition bound states do not couple to any of the electrodes via the spectral function, i.e., _⟨ψ_ bound _|A_ e _|ψ_ bound _⟩_ = 0. Their contributions to the non-equilibrium density _ρ_ neq thus only derive from Eq. (10) - but never from Eq. (11) - as bound states are included in the electronic spectrum of Gk ( _z_ ). The filling level of bound states thus depends on the choice of equilibrium electrode in Eq. (10). To avoid the arbitrariness of selecting one equilibrium electrode, and to reduce numerical errors, the physical quantity _ρ_ neq is expressed as an appropriate average over each of the numerically unequal expressions _ρ_ neq = e _w_ e _ρ_ <sup>e</sup> neq <sup>_,_</sup> (13) where _w_ e is an appropriately chosen weight function satisfying <sup>�</sup> e <sup>_w_</sup> <sup>e</sup> <sup>=</sup> <sup>1.</sup> <sup>Several</sup> <sup>DFT-NEGF</sup> <sup>implementations</sup> apply such a weighing scheme, but with differences in the particular choice of weights _w_ e [20, 27, 38]. We extend the argumentation of Ref. [20] for the weighing to a multi-terminal expression, and find the weights that minimize the variance of the final density to be _θ_ e = e <sup>_′̸_</sup> =e Var[ ∆ <sup>e</sup> e <sup>_′_</sup> <sup>]</sup> <sup>_,_</sup> (14) e <sup>_′′̸_</sup> =e <sup>_′_</sup> ��� _θ_ e _′_ e <sup>_′_</sup> _w_ e = e <sup>_′̸_</sup> =e _θ_ e _′′_ _,_ (15) where Var[ ∆ <sup>e</sup> e <sup>_′_</sup> <sup>e</sup> e <sup>_′_</sup> <sup>]</sup> <sup>_≡_</sup> <sup>(</sup> <sup>∆</sup> <sup>e</sup> e <sup>_′_</sup> where Var[ ∆ <sup>e</sup> e <sup>_′_</sup> <sup>]</sup> <sup>_≡_</sup> <sup>(</sup> <sup>∆</sup> <sup>e</sup> e <sup>_′_</sup> <sup>)2</sup> <sup>is</sup> <sup>the</sup> <sup>expected</sup> <sup>variance</sup> <sup>of</sup> <sup>the</sup> <sup>correction</sup> <sup>term</sup> <sup>which</sup> <sup>is</sup> <sup>defined</sup> <sup>similarly</sup> <sup>to</sup> <sup>Ref.</sup> <sup>[20].</sup> <sup>The</sup> derivation of the expression for _wς_ is in the SM. Additionally, 12 different weighing schemes have been checked to infer whether they might provide a better estimate of _ρ_ neq. However, we have found that the argumentation in Ref. [20] provides the best physical interpretation and also the best weighing. It is outside the scope of this paper to document their differences, yet they are available for end users. If bound states are present in the system we weigh each equilibrium contribution equally. An example of the ambiguity of selecting the proper weight of bound states can be found in the SM. A 0 = Σ 1 X 3 = Σ A 2 A 3 A 4 A 4 Y 1 = Σ X 1 = Σ A 0 A 1 Y 2 = Σ X 2 = Σ A 0 A 1 A 2 C 1 C 1 C 2 C 3 C 4 C 4 A 0 A 0 A 1 A 2 A 3 A 4 A 4 B 0 B 0 B 1 B 2 B 3 B 3 A 3 A 4 = Σ 2 Y 3 = Σ FIG. 4. Block-tri-diagonal inversion algorithm shown in terms of the Hamiltonian elements of a 2-electrode system. The inverse Greens function consists of block matrices in the diagonal and lower/upper diagonals denoted by A _i_ and B _i_ / C _i_, respectively. The surface self-energies are calculated from the bulk electrode and the self-energies are propagated through the system, allowing one to calculate the exact Green function in any block of the infinite matrix. C. Inversion algorithms and performance siesta uses localized basis-orbitals (LCAO) which inherently introduce sparse Hamiltonian, density, and overlap matrices. The sparsity of the density matrix means that one only needs to compute the Green function for the appropriate non-zero elements. Further, in the NEGF formalism this computation relies on the inversion of the Hamiltonian and the overlap matrices (and self-energies). It is then beneficial to utilize specialized algorithms that can deal with this _selected_ _inversion_ . Several inversion strategies have been explored [20, 39–51] which all have their advantages and disadvantages. The MUMPS and SelInv methods are very efficient for calculating a small subset of the inverse matrix (EGF), while for dense parts of the matrix they are less effective (NEGF) [39, 40, 44–47]. transiesta originally implemented direct inversion using LAPACK [20, 52]. In the following we will present 3 different inversion algorithms [20, 39–41, 53–55], 1) direct (LAPACK), 2) sparse (MUMPS) and 3) block-tri-diagonal (BTD). The methods are all implemented in two variants, Γ-only ( k = 0) and arbitrary k -point, to limit memory usage where applicable. In the following we omit the explicit k -dependence without loss of generality. For the non-equilibrium part of the contour a triple product of a Green function block column is required to calculate the spectral function in the non-zero elements of the density matrix. To calculate the spectral function, the needed block columns are those where Γ e is non-zero, _i. e._ _~~†~~_ _A_ e( _z_ ) = G ( _z_ ) Γ e( _z_ ) G <sup>_†_</sup> ( _z_ ) = _~~†~~_ = _._ (16) Equation (16) is implemented for the 3 inversion algorithms which substantially reduces memory requirements, and particularly so for the BTD method. _1._ _Block-tri-diagonal_ _inversion_ Our block-tri-diagonal matrix inversion algorithm has become the default method in transiesta. This algorithm was originally described in Ref. [53] while we follow the simpler outlined form in Refs. [54, 55]. Often, this method is known as the recursive Green function method which corresponds to creating a quasi 1D, block tri-diagonal matrix. The algorithm can be illustrated as shown in Fig. 4 and follow these equations 0 B 2 ... ... 0 ... 0 ... ... C _p_ ... 0 B _p−_ 1 A _p_ A 1 C 2 0 _· · ·_ B 1 A 2 C 3 0 _· · ·_          G <sup>_−_</sup> <sup>1</sup> =          _,_ Y 1 = 0 _,_ Y - _n_ = [ A _n−_ 1 _−_ Y _n−_ 1] <sup>_−_</sup> <sup>1</sup> C _n,_ Y _n_ = B _n−_ 1 Y <sup>�</sup> _n._ X - _n_ = [ A _n_ +1 _−_ X _n_ +1] <sup>_−_</sup> <sup>1</sup> B _n,_ X _p_ = 0 _,_ X _n_ = C _n_ +1 X <sup>�</sup> _n,_ (17) A _i_, B _i_ and C _i_ correspond to the non-zero elements of _z_ S _−_ H _−_ <sup>�</sup> e <sup>Σ</sup> <sup>e,</sup> <sup>cf.</sup> <sup>Eq.</sup> <sup>(1).</sup> <sup>Y</sup> <sup>_n_</sup> <sup>/</sup> <sup>X</sup> <sup>_n_</sup> <sup>can</sup> <sup>be</sup> <sup>thought</sup> <sup>of</sup> <sup>as</sup> the self-energies connecting to a previous sequence of Y _m_ / X _m_ for _n_ _>_ _m_ / _m_ _>_ _n_ . These are sometimes denoted the “downfolded” self-energies and are indicated in Fig. 4. For instance Y 2 corresponds to a self-energy of an infinite bulk part connecting to A 1. Note that only for a Left/Right terminal system with strict ordering of orbitals will A 1 = _z_ S 1 _,_ 1 _−_ H 1 _,_ 1 _−_ Σ Left and A _p_ = _z_ S _p,p_ _−_ H _p,p_ _−_ Σ Right. Importantly the Y <sup>�</sup> _i_ / X <sup>�</sup> _i_ matrices can be calculated using a linear solution instead of an inversion and subsequent matrix-multiplication[56]. The strict ordering of the self-energies is not a requirement and Σ e may be split among any sub-matrices[57] A _i_, B _i_ or C _i_ . Calculating any part of the Green function then follows the iterative solution of these equations G _n,n_ = [ A _n −_ X _n −_ Y _n_ ] <sup>_−_</sup> <sup>1</sup> _,_ G _m−_ 1 _,n_ = _−_ Y <sup>�</sup> _m_ G _m,n_ for _m ≤_ _n,_ G _m_ +1 _,n_ = _−_ X <sup>�</sup> _m_ G _m,n_ for _m ≥_ _n,_ The algorithm for the above calculation is shown in Fig. 5.    G = G _n,n_ (18) For the non-equilibrium part the straightforward implementation of the column product in Eq. (16) involves calculating the full Green function column for columns of the scattering matrix and a subsequent triple matrix product for each block. However, it may be advantageous to utilize the propagation of the spectral function by using Eqs. (18) which inserted into Eq. (16) yields Y _n_ <sup>_†_</sup> _−Ai,n_ <sup>�</sup> _n_ <sup>_†_</sup> _Ai,i_ _−Ai,n_ X <sup>�</sup> <sup>_†_</sup> _n_ _A_ e = Y _n_ <sup>_†_</sup> _Ai,i_ _n_ _._ (19) Recall that _A_ e _,i,i_ = G _i,i_ Γ e G <sup>_†_</sup> _i,i_ <sup>.</sup> <sup>Importantly</sup> <sup>Eqs.</sup> <sup>(19)</sup> <sup>are</sup> <sup>recursive</sup> <sup>equations</sup> <sup>similar</sup> <sup>to</sup> <sup>Eqs.</sup> <sup>(18).</sup> <sup>The</sup> <sup>propagation</sup> of the spectral function is often faster than the straightforward method. The algorithm for the propagation method is shown in Fig. 5. To reduce computations we calculate X <sup>�</sup> _i_, Y <sup>�</sup> _i_ and the diagonal Green function elements where Γ e lives for all _N_ e and store these quantities in one BTD matrix. Subsequently we calculate the spectral function for each electrode separately in another BTD matrix (without re-calculating X <sup>�</sup> _i_, Y <sup>�</sup> _i_ ) to drastically reduce computations. It is important to note that the required elements of the density matrix are only those of the block-tri-diagonal matrix ( G and _A_ e) corresponding to the elements shown in Eq. (17). For G, Eq. (18), one only calculates G _i,i_, G _i_ +1 _,i_ and G _i,i_ +1 and similarly for _A_ e. For the latter we only use the upper-left and lower-right algorithms as presented in Eq. (19). _2._ _Orbital_ _pivoting_ _for_ _minimizing_ _bandwidth_ The performance of the BTD algorithm is determined solely by the bandwidth of the Hamiltonian matrix, _i. e._ the size of the A _n_ blocks. The bandwidth is an expression of the quasi 1D size of the system and is defined as _B_ ( M ) = max - _|i −_ _j|_ �� M _ij̸_ = 0� _._ (20) Internally, the sparsity pattern in siesta is determined via the atomic input sequence. However, this sparsity pattern will rarely have the minimum bandwidth, particularly so for _N_ e _̸_ = 2. To minimize the matrix bandwidth, and increase performance, we have implemented 5 different pivoting methods, 1) connectivity graph based on the Hamiltonian sparse pattern, 2) peripheral connectivity graph based on a longest-path solution before a connectivity graph between end-points, 3) Cuthill-Mckee [58], 4) Gibbs-Poole-Stockmeyer [59], and 5) generalized Gibbs-Poole-Stockmeyer [60]. The first 2 are developed by the authors and exhibit a good bandwidth reduction of the matrix for a majority of systems. The latter 3 methods are used in interaction graphs with few nodal points which may be the reason for their, sometimes, poor bandwidth reduction capability in atomic structure calculations. For cases of many nodal points per point, such as for 3D bulk structures, each of the methods yield different optimal orderings. Currently there exists no omnipotent method for bandwidth reduction and we encourage checking the different methods for each system. One <u>NEGF</u> <u>EGF</u> 1: allocate M and N with _p_ blocks 2: for all _ς_ _∈_ _Nς_ do 3: initialize all A _i_, B _i_, C _i_ in M 4: for all _i ∈{_ 1 _, . . ., p −_ 1 _}_ do 1: allocate M with _p_ blocks 2: allocate N with _p_ blocks 3: initialize all A _i_, B _i_, C _i_ in M 4: for all _i ∈{_ 1 _, . . ., p}_ do 5: for all e _∈{_ 1 _, . . ., N_ e _}_ do 6: if any(column(e)) _∈_ M _i,i_ then 7: calc( _i_ ) _←_ True 8: else 9: calc( _i_ ) _←_ False 10: end if 11: end for 12: end for 13: for all _i ∈{_ 1 _, . . ., p −_ 1 _}_ do 5: N _i_ +1 _,i_ _←_ Y <sup>�</sup> _i_ +1 6:7: endNfor _p−i,p−i_ +1 _←_ X <sup>�</sup> _p−i_ 8: for all _i ∈{_ 1 _, . . ., p}_ do 10:9: endNfor _i,i_ _←_ G _i,i_ 11: for all _i ∈{_ 1 _, . . ., p −_ 1 _}_ do 14:13:12: endNNfor _ip_ +1 _−i,p,i_ _−←i_ +1 G _←i_ +1 G _,i_ _p−i,p−i_ +1 15: _ρ_ <sup>_ς_</sup> 21: _i,i_ 22: Mfor _i,i_ all _←{_ G _m, ni,i_ Γ _} ∈{_ e G <sup>_†_</sup> 1 _, . . ., p}_ do 23: if _m_ + _n <_ 2 _i_ then 24: 25: elseM _m,n_ _←_ Y <sup>�</sup> _m_ +1 _· · ·_ Y <sup>�</sup> _i_ G _i,i_ Γ e G <sup>_†_</sup> _n_ _i_ <sup>_†_</sup> <sup>_· · ·_</sup> <sup>Y</sup> <sup>�</sup> <sup>_†_</sup> <sup>_†_</sup> _n_ _i_ <sup>_· · ·_</sup> <sup>X</sup> <sup>�</sup> <sup>_†_</sup> 16:15: end _ρ_ <sup>_ς_</sup> eq for <sup>_←_</sup> <sup>N</sup> 14: N _i_ +1 _,i_ _←_ Y <sup>�</sup> _i_ +1 15:16: endNfor _p−i,p−i_ +1 _←_ X <sup>�</sup> _p−i_ 17: for all _i ∈_ calc(:) = True do 18:19: endNfor _i,i_ _←_ G _i,i_ _▷_ Only columns needed 20: for all e _∈{_ 1 _, . . ., N_ e _}_ do 21: _i,i_ 22: M _i,i_ _←_ G _i,i_ Γ e G <sup>_†_</sup> _i,i_ <sup>_†_</sup> <sup>Y</sup> <sup>�</sup> _i_ <sup>_†_</sup> _i,i_ <sup>_†_</sup> <sup>X</sup> <sup>�</sup> <sup>_†_</sup> _i_ 24: _n_ +1 25: elseM _m,n_ _←_ Y <sup>�</sup> _m_ +1 _· · ·_ Y <sup>�</sup> _i_ G _i,i_ Γ e G _i,i_ <sup>_†_</sup> <sup>Y</sup> <sup>�</sup> _i_ <sup>_†_</sup> <sup>_· · ·_</sup> <sup>Y</sup> <sup>�</sup> <sup>_†_</sup> 26: 27: endMif _m,n_ _←_ X <sup>�</sup> _m−_ 1 _· · ·_ X <sup>�</sup> _i_ G _i,i_ Γ e G _i,i_ <sup>_†_</sup> <sup>X</sup> <sup>�</sup> <sup>_†_</sup> _i_ <sup>_· · ·_</sup> <sup>X</sup> <sup>�</sup> _n_ <sup>_†_</sup> _−_ 1 26: 27: endMif _m,n_ _←_ X <sup>�</sup> _m−_ 1 _· · ·_ X <sup>�</sup> _i_ G _i,i_ Γ e G _i,i_ <sup>_†_</sup> <sup>X</sup> <sup>�</sup> <sup>_†_</sup> _i_ <sup>_· · ·_</sup> <sup>X</sup> <sup>�</sup> _n_ <sup>_†_</sup> _−_ 1 28:29: endMfor _m,n_ _←_ M _m,n_ ( _−_ 1) <sup>_m_</sup> <sup>+</sup> <sup>_n_</sup> 29: end for 30: _ρ_ <sup>e</sup> 31:30: end _ρ_ <sup>e</sup> neq for <sup>_←_</sup> <sup>M</sup> FIG. 5. The algorithm used for inverting a generic BTD matrix as well as columns for calculating the spectral function in NEGF calculations. The EGF algorithm is a direct recursive algorithm [55], while the NEGF algorithm is a modification to reduce the memory requirement for calculating the spectral function. may greatly increase pivoting performance by using the atomic graph, rather than the orbital graph. Indeed there is, obviously, little to no difference between the atomic and orbital graphs. Pivoting becomes increasingly important when considering _N_ e _>_ 2 electrodes as the quasi 1D block-partitioning becomes less obvious. In Fig. 6 we illustrate the naive block partition for _N_ e = _{_ 2 _,_ 3 _,_ 4 _}_ together with an improved partitioning. For _N_ e = 2 the naive _is_ a good partitioning. The naive _N_ e = 3 problem will create a big block for _p_ = 2 which will decrease performance. However, by grouping two electrodes the quasi-1D problem can be much improved. Grouping should be chosen to minimise all block sizes, _e.g._ if the self-energy bandwidth, Eq. (20), of _B_ ( Σ 2) _>_ _B_ ( Σ 1) + _B_ ( Σ 3) then branches Σ 1 and Σ 2 should swap places in Fig. 6b. Similarly for _N_ e = 4 two groups occur for both ends of the quasi 1D matrix. The grouping of electrodes can easily be generalised for any _N_ e electrodes dependent on the branch sizes. Pivoting complicates the triple product Eq. (16) due to partitioning of the scattering matrix with respect to the Green function. However, each block A _n_ can be sorted such that Γ e becomes consecutive in memory for optimal performance. This will maximally split Γ e into two blocks. We stress that splitting the broadening matrices, Γ e, up into two blocks, if possible, is more beneficial than retaining a single block because the bandwidth of the tri-diagonal matrix will be smaller. _3._ _Performance_ _of_ _inversion_ _algorithms_ A timing comparison of the three methods against transiesta 3.2 [20] is shown in Fig. 7. A pristine graphene system is used with square electrodes of 48 atoms, corresponding to 2 _×_ 6 (zigzag by armchair directions, respectively). Figure 7a show the timing for differing lengths of pristine graphene up to _∼_ 6,000 orbitals[61] using an EGF calculation. Figure 7b is the same calculation but with a high applied bias of 0 _._ 75 V (resulting in an equal amount of non-equilibrium and a) _N_ e = 2 b) _N_ e = 3 c) _N_ e = 4 Σ 3 1 2 3 Σ 1 Σ 2 1 2 3 Σ 4 Σ 1 Σ 3 Σ 4 Σ 2 1 2 3 Q1D Σ 1 Σ 3 Σ 2 Q1D Σ 1 Σ 2 1 2 3 Σ 3 Σ 1 Σ 2 1 2 3 FIG. 6. Quasi 1D partitioning in 3 parts (divided by dashed lines), for varying number of electrodes. The dotted lines denote the cell boundary and the fully drawn lines encompass the atoms/Hamiltonian elements. Σ _i_ are the self-energies that couple the device to the semi-infinite electrodes. The crossed illustrations are the naive partitioning of the quasi-1D system (the naive partitioning for _N_ e = 2 _is_ the best partitioning), whereas a better quasi-1D pivoting is also shown. Note that in _any_ of the systems shown, the ordering of the self-energies can be swapped _at_ _will_ . equilibrium contour points). MUMPS performs very well for EGF while NEGF is rather inefficient due to clustering of columns. Further studies of MUMPS have shown that it performs better for more than _∼_ 5,000 orbitals as the sparsity increases[62]. Lastly, the BTD method is performing extremely well reaching around 100 times better performance on systems at 5,000 orbitals. Doing even larger systems will only increase the speedup even more so. In all investigated systems we have found an impressive speedup for the BTD method. _4._ _Parallelization_ Our inversion methods are parallelized across energy points, meaning that each MPI process handles one energy point on the contour, but needs to hold the complete (non distributed) matrices in memory. As the matrices dealt with in transiesta can become of GB size depending on the width of the electrodes, this parallelization scheme might hit the physical memory limit. To circumvent this we have updated the transiesta code to enable full hybrid parallelization with OpenMP 3.1 threading[63]. Thus instead of using _N_ tot MPI processes and reaching the memory limit, one can use _N_ tot _/N_ T processes and _N_ T threads per process. The threads pool their associated memory resources, pushing the practical limit by a factor of _N_ T, and linear scaling is retained. Figure 7c shows the threading performance for transiesta on different hardware[64] using a single node, hence MPI-communication can be considered negligible for hardware with multiple sockets. In our implementation an increase in the number of MPI processes would not affect the threading performance, however additional MPI processes would increase MPI communication time, thus favoring threading for large number of MPI processes. The graphene test system consists of 11 BTD blocks with an average block size of _NB_ = 830 using the k -space version of the BTD method with a bias. We expect this system to represent a typical medium sized system of 9,130 orbitals. We find that there is extremely good scaling up to 4 threads. For higher number of threads the scaling is still good, but diverges. Threading is optimal for _NB/N_ T ≫ 1 which is one reason for the limiting speedup for large thread-counts in the shown data. By calculating the parallel fraction using Amdahl’s law we get roughly 95% across the investigated range of _N_ T. D. Bloch theorem and self-energies A performance-critical part of Green function implementations is an efficient calculation of the electrode selfenergies. It is beneficial both computationally and in memory cost to calculate the self-energy using the smallest unit-cell which can be repeated to form the larger super-cell corresponding to the electrode-device contact region. In transiesta we utilize Bloch’s theorem and the corresponding k -point sampling when transverse periodicity is present. The Bloch expansion may be used for both the electrode Hamiltonian _and_ the self-energies, given that the electronic structure is calculated at equivalent k sampling, _i.e._, that an electrode which repeats out _X_ _× Y_ times in the larger device unit-cell, must be computed on k mesh which is _X × Y_ more dense. Bloch expansion along one cell 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 c) 10 9 8 7 6 5 4 3 2 1 1 2 3 4 5 6 7 8 9 10 Threads Linear Opteron2354 Opteron6136 Xeon2665 Xeon2660v3 FIG. 7. 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 direct LAPACK 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. (c) Threading performance using different hardware architectures running on a single node. Our test system has roughly 830 orbitals per BTD block and consists of 11 blocks in total. As the threading performance primarily stems from the threaded BLAS library one can see that the threading reaches a limit due to the rather small blocks. vector may be written in this short matrix form  1 _e_ <sup>_−ikj_</sup> <sup>_R_</sup> _· · ·_ _e_ <sup>_−inkj_</sup> <sup>_R_</sup> _⊗_ Σ <sup>1</sup> _kj_ <sup>_,_</sup> (21)   <sup>_n_</sup> _kn_ <sup>=</sup> <sup><u>1</u></sup> _n_ _n_ Σ <sup>_n_</sup> _k_ _n_ _j_ _kj_ = _kn_ +2 _π_ <sup>_<u>j</u>_</sup> _nR_ <sup>_<u>−</u>_</sup> <sup><u>1</u></sup> _nR_ _e_ <sup>_ikj_</sup> <sup>_R_</sup> 1 _· · ·_ _e_ <sup>_−i_</sup> <sup>(</sup> <sup>_n−_</sup> <sup>1)</sup> <sup>_kj_</sup> <sup>_R_</sup> ... ... ... ...  _e_ <sup>_inkj_</sup> <sup>_R_</sup> _e_ <sup>_i_</sup> <sup>(</sup> <sup>_n−_</sup> <sup>1)</sup> <sup>_kj_</sup> <sup>_R_</sup> _· · ·_ 1 where Σ <sup>_n_</sup> / Σ <sup>1</sup> is the self-energy in the larger/smallest unit-cell and _n_ is the number of times the smallest unit-cell is repeated to coincide with the larger unit-cell. Here _R_ denotes the cell length of the small unit-cell. Lastly, _kn_ is the _k_ -point in the repeated super-cell. From Eq. (21) it can be inferred that one needs to calculate the self-energy Σ <sup>1</sup> for _n_ k points instead of calculating Σ <sup>_n_</sup> once. However, calculating the self-energy scales cubic and using a smaller matrix is far more beneficial. E. Electrostatics in NEGF The Hartree electrostatic potential plays an essential role for the NEGF calculations. In transiesta it is determined from the difference between the self-consistent electron density _ρ_ ( r ) and the neutral atom density _ρ_ <sup>atom</sup> ( r ) and solved using a Fourier transformation of the Poisson equation. transiesta implements a generic interface to correctly introduce the appropriate boundary conditions, fully controlled by the user. For a reasonable description of the electrostatics in the NEGF setup one generally requires that the electrode regions in the device essentially behave as bulk. This requirement ensures a smooth electrostatic interface between the device and the semi-infinite, enforced bulk electrodes. For metallic electrodes this may easily be accomplished as the electronic screening length is short (typically a few atomic layers). Additionally we allow buffer atoms which are non-participating atoms in the scattering region calculation. They may be used to screen electrodes such that smaller scattering regions may be used. Such constructs are useful when non-periodic or dissimilar electrodes are used. Along side with buffer atoms several other methodologies for improving the electrode/device interface exists, such as forcing the density to be bulk, or calculating _ρ_ in the electrode region. In open boundary calculations, such as NEGF, one also needs to ensure that the Hartree potential fulfills the specific boundary conditions at the electrodes. We employ a formulation similar to the original implementation [20, 65]. For _N_ e = 2 and a shared semi-infinite direction a linear potential ramp can be used as a guess [20]. For unaligned semiinfinite directions the boundary conditions become non-trivial. The simplest initial guess for the Hartree potential to fulfill the boundary conditions is a _box_ guess _µ_ e, for r _∈_ r e 0, for r _̸ ∈_ r e _VH_ ( r ) _←_ _VH_ ( r ) + e (22) b) a) Eq. Non-eq. box Non-eq. MG 2 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 SCF iterations FIG. 8. a) Charge conservation with respect to # of SCF iterations for a _N_ e = 6 device (b). Both zero bias and two different initial guesses of the Hartree potential _VH_ ( r ). The dashed curve is for equilibrium while the full lines are an electrode box guess and a full MG solution. Providing a better guess improves convergence. b) also shows the initial MG guess for 4 iso-values _±V/_ 2 and _±V/_ 10. 0 _._ 2 0 _._ 1 0 _Ae_ <sup>_−_</sup> <sup>(</sup> <sup>_z−z_</sup> <sup>0)</sup> <sup>_/λ_</sup> _λ_ = 2 _._ 4 <sup>˚</sup> A 0 10 20 30 40 50 _z_ [ <sup>˚</sup> A] FIG. 9. Electronic density decay length of a 10-layer graphene stack. The red-black circles shows the placement of the carbon atoms (A-B stacking). The thin line show the difference in electronic density between the gated and non-gated system. The thick line shows a fitted decay profile of the gate-induced electronic density. A decay length of 2 _._ 4 Å is found at this particular gating level. where r e denotes the part in the real space grid where the electrode atoms reside. However, this introduces non-smooth potentials between the electrode and device region and it may only yield qualitative approximations to the actual Hartree potential. transiesta also allows custom Hartree potentials for improving convergence. It is recommended to provide a custom guess for _N_ e _>_ 2 as charge conservation and convergence can easily be improved. Note that the initial guess for the Hartree solution is linear in the difference between _µ_ e, hence only one guess calculation of the Hartree potential is needed which makes this an in-expensive setup calculation. We have implemented a multigrid (MG) solver for the Poisson equation and applied it to a _N_ e = 6 system with three different chemical potentials: [ _−V/_ 2, 0, _V/_ 2], see Fig. 8b. The grid overlaying the geometry corresponds to the guessed Poisson solution for the MG method at 4 iso-values, _V/_ 2 (blue), _−V/_ 2 (red), _V/_ 10 (orange) and _−V/_ 10 (yellow). The Poisson solution is linearly dependent on _V_ due to the linearity of the chemical potentials. The heavily colored atoms are electrodes, “behind” each electrode are 3 buffer atoms to retain a bulk-like electrode. It consists of three crossing linear chains with one carbon chain, one gold chain and one half-half carbon-gold chain. In Fig. 8a we plot the absolute charge difference from the expected charge after each SCF iteration for both the equilibrium case and for an applied bias of 1 V using two different initial guesses. All calculations settles after 8 iterations at nearly no charge difference. For the two non-equilibrium cases the custom MG method reduces the initial fluctuations compared to the _box_ guess. In addition to the electrostatics associated with complex boundary conditions we also extend siesta (and transiesta) by enabling electrostatic gates, as described in Ref. [66]. This allows to introduce additional non-interacting electrodes to act as gates. Several implementations of electrostatic Hartree gates use an explicit Hartree term _VH_ ( r ) [28, 67] while other implementations deal with the additional electrostatic terms arising from the charge distribution in the gate material [68]. We have implemented both a Hartree gate and a charge gate with few restrictions on the geometry of the gate. The geometries includes spherical, planes, rectangles and/or boxes are all allowed, further details can be found in Ref. [66]. The Hartree gate is similar to that in Refs. [28, 67] while the charge gate is a phenomenological model resembling Refs. [68, 69]. Due to the simplicity of the Hartree gate we will instead focus here on explaining the charge gate method, with which one can simulate complex gate configurations in both NEGF and regular, 3D-periodic DFT calculations [66]. Figure 9 shows an example of a charge gate introduced in DFT periodic calculations containing 10 graphene layers (AB stacking). The charge gate is placed 20 Å away from (and parallel with) the first graphene layer. A strong gate corresponding to 0 _._ 015 _e_ <sup>_−_</sup> per graphene unit-cell is applied and the resulting charge re-distribution is dependent on the screening length of graphite. By fitting an exponential function to the charge response we calculate the decay length for the electronic screening length of the electric field. Note that this decay length is a function of the electric field _and_ the doping level. The decay length of _λ_ = 2 _._ 4 Å corresponds well to experimentally found values for similar gate levels [70]. We have also tested this on fewer layers with consistent results. F. Charge conservation A recurring issue with NEGF calculations is excess charge compared to a charge neutral device region. Especially, for weakly screening systems and for non-equilibrium the SCF loop may converge slowly and with great difficulty due to larger deviations from charge neutrality in the beginning of the SCF loop [71]. To remedy this we have implemented an option which introduces a shift in the potential inside the device region, d _ϵ_, which sometimes can push the SCF loop towards the self-consistent solution with a charge neutral device region or that the assumption of equilibrium in the electrodes The potential shift is obtained from the requirement that the net charge of the device region, _qD_, should be zero. We use the total device DOS, _D_ ( _ϵR_ ), at an initial energy reference level, _ϵR_, located in the bias window, _<u>δq</u>_ _qD_ = _δq_ + _D_ ( _ϵR_ )d _ϵ_ = 0 _⇒_ d _ϵ_ = _−_ _D_ ( _ϵR_ ) <sup>_._</sup> (23) We assume here that the DOS vary slowly on the scale of the bias and _kBT_ such that the reference energy is not critical. To lowest perturbation order in the potential shift we get a change in the density matrix in terms of the spectral density matrix, ∆ _ρ_ = d _ϵ_ ( _d_ _ρ_ ( _ϵR_ ) _/dϵ_ ), which when added to _ρ_ in the SCF loop enforces a charge neutral device region. During the SCF-loop we then update the reference energy _ϵR_ _←_ _ϵR_ +d _ϵ_ . When the SCF-loop has converged we can check the degree of charge neutrality _δq_ and potential shift, d _ϵ_ . These should both be small such that the feature can be turned off in a restarted calculation and converge without being invoked. If this is not possible it may indicate that the device region has a too short screening region towards the electrodes or, for high bias, that the approximation of equilibrium density and potential in the electrodes is not adequate. G. Thermoelectric effects under NEGF To the authors knowledge, thermoelectric effects are currently only studied under equi-temperature distributions for NEGF calculations. However, in principle such effects require population statistics to be correctly described using self-consistent NEGF calculations. Our implementation naturally permits such generality as the chemical potential and electronic temperature can be set independently for each electrode. As an example of how different electronic temperatures in the electrodes can impact the electronic structure in the device region we have performed calculations for a simple 1D setup consisting of a central C atom weakly coupled to two semi-infinite, 1D C-wires (lattice constant _a_ = 1 _._ 30 Å). The C-C distance between the central atom and the electrodes was set to _d_ = 2 _._ 50 Å. According to the band structure of the electrodes (not shown), the 2 _px_ and 2 _py_ orbitals on the equidistant lattice sites form a degenerate, half-filled band, which couples to the 2 _px_ and 2 _py_ orbitals of the central C-atom. This situation leads to the degenerate resonance structure in the transmission function as shown in Fig. 10a. Note that the position of this transmission resonance, i.e., the energetic position of the C-atom 2 _px_ and 2 _py_ orbitals, varies substantially for the three considered choices of the electrode temperatures. The thermoelectric calculations for the electron current shown in Fig. 10b correspond to the situation in which the electronic temperature of the left (right) electrode is fixed at _TL_ = 3000 K ( _TR_ = 300 K) in the Landauer formula, but where different temperature settings are used in the underlying self-consistent DFT-NEGF calculation as detailed in the figure legend. These results exemplify that in situations with temperature differences between the electrodes, the fully selfconsistent _IV_ characteristics (black curve in Fig. 10b) cannot be determined using a uniform temperature (red or blue curves in Fig. 10b). While the extreme temperature difference and narrow resonance at play in this example may seem far away from practical situations, we emphasize that it is generally desirable to be able to include this temperature effect at no additional computational cost. We further speculate that these methods could find relevance to describe situations with effective electronic temperatures substantially above the lattice temperature, e.g., as originating from optical driving [72, 73]. a) 2 1 _._ 5 1 0 _._ 5 10 5 0 _−_ 5 _TL_ = 3000 K = _TR_ _TL_ = 3000 K = 10 _TR_ _TL_ = 300 K = _TR_ _−_ 0 _._ 6 _−_ 0 _._ 4 _−_ 0 _._ 2 0 0 _._ 2 0 _._ 4 0 _._ 6 Bias [V] b) _TL_ = 3000 K = _TR_ _TL_ = 3000 K = 10 _TR_ _TL_ = 300 K = _TR_ _nF_ (300 K) _−_ 0 _._ 2 V 0 _−_ 0 _._ 6 _−_ 0 _._ 4 _−_ 0 _._ 2 _µL_ 0 _µR_ 0 _._ 2 0 _._ 4 0 _._ 6 _ϵ −_ _ϵF_ [eV] FIG. 10. Example of a thermoelectric calculation for a simple 1D setup consisting of a central C atom weakly coupled to two perfect semiinfinite C-wires. a) Impact on the electronic transmission function _T_ ( _ϵ, V_ = _−_ 0 _._ 2 eV) of the electrode temperatures _TL,R_ . The Fermi functions are also included for clarity of the difference in population. b) _IV_ characteristics computed from three distinct NEGF calculations (uniform temperature _T_ = 300, 3000 K vs temperature difference _TL_ = 3000 K and _TR_ = 300 K) as detailed in the text. IV. GREEN FUNCTION TRANSPORT AND TECHNIQUES As a post-processing tool for DFT-NEGF calculations of the self-consistent Hamiltonian, we have also developed the next-generation tbtrans (and its offshoot phtrans). tbtrans enables the calculation of electronic transport, electronic thermal energy transport, phonon transport (phtrans), and provide analysis tools such as the (spectral) density of states, the sub-partition eigenstate projected transmission (molecular or phonon eigenmode), interpolated _I_ _V_ curves, transmission eigenvalues and orbital/bond-currents [74]. Thus it is possible obtain thermoelectric quantities such as the Seebeck and Peltier coefficients as well as calculation of thermoelectric figure-of-merit including lattice heat-transport in the harmonic approximation. All features are enabled for general multi-electrode ( _N_ e _≥_ 1) setups. The features discussed below - transmission functions, (spectral) density of states, sub-partition eigenstate projected transmissions, transmission eigenvalues, and bond-currents - encompass both the electronic and phononic versions, but for brevity we refer only to the electronic part in the following. Besides input from DFT calculations tbtrans is also able to handle general user-created tight-binding models or by using Hamiltonians from other sources (Wannier basis, etc.). Thus tbtrans is now a stand-alone application capable of being used for large-scale, ballistic transport calculations. For example, simulations of square graphene flakes exceeding 10 <sup>6</sup> atoms may easily be done on typical office computers (one orbital/atom). An interface on top of tbtrans for creating corrections to DFT – such as scissor, LDA+U, magnetic fields, etc. - has also been created such that the capabilities of tbtrans are _not_ restricted by the developers, but, in principle, by the user. This interface also allows the extraction of Hamiltonians from other programs to the tbtrans format. Other efficient methods involve similar constructs [75, 76]. A. Transmission function for _N_ e electrodes The transmission functions can be calculated using the scattering matrix formalism and obtained from the Green function using the generalized Fisher-Lee relation [6, 77, 78] (or the Lippmann-Schwinger equation [79, 80]). The elements of the scattering matrix, at a given k, can be written as _s_ ee _′,_ k = _−δ_ ee _′_ I + _i_ Γ <sup>1</sup> e _,_ <sup>_/_</sup> k <sup>2</sup> <sup>1</sup> e _,_ <sup>_/_</sup> k <sup>2</sup> <sup>G</sup> k <sup>Γ</sup> <sup>1</sup> e <sup>_′/_</sup> _,_ <sup>2</sup> k (24) <sup>1</sup> e <sup>_′/_</sup> _,_ <sup>2</sup> k <sup>_,_</sup> where e and e <sup>_′_</sup> refer to two electrodes and _δ_ ee _′_ is the Kronecker delta. We implicitly assume energy dependence on all quantities. The transmission (probability) from electrode e to e <sup>_′_</sup> is - GkΓ e _,_ kG <sup>_†_</sup> k <sup>_†_</sup> k <sup>Γ</sup> e <sup>_′_</sup> _,_ k - _,_ for e _̸_ = e <sup>_′_</sup> - Tr _̸_ (25) _R_ e _,_ k _,_ for e = e <sup>_′_</sup> _T_ ee _′,_ k = Tr - _s_ <sup>_†_</sup> ee <sup>_′_</sup> _,_ k <sup>_s_</sup> ee <sup>_′_</sup> _,_ k - = where reflection (probability) is defined as _R_ e _,_ k _≡T_ ee _,_ k . It is instructive to write the aggregate transmission _T_ e _,_ k out of an electrode e (see Ref. [81]) and the reflection _R_ e _,_ k as - _−_ Tr[ GkΓ e _,_ kG <sup>_†_</sup> k <sup>Γ</sup> e _,_ k <sup>]</sup> <sup>_,_</sup> (26) _T_ e _,_ k _≡_ e <sup>_′̸_</sup> =e _T_ ee _′,_ k = _i_ Tr �( Gk _−_ Gk <sup>_†_</sup> <sup>)</sup> <sup>Γ</sup> e _,_ k _R_ e _,_ k = _M_ e _,_ k _−T_ e _,_ k _._ (27) The reflection is here conveniently written as a difference between the bulk electrode transmission _M_ e (i.e., number of open channels/modes in electrode e at the given energy) and the aggregate transmission _T_ e (scattered part into the other electrodes). From Eqs. (25), (26) and (27) one may easily prove the transmission equivalence _T_ ee _′,_ k _≡T_ e _′_ e _,−_ k as well as _T_ ee _′,_ k = _T_ ee _′,−_ k based on time-reversal symmetry. Equation (26) displays an important, and often overlooked detail. In transport calculations with _N_ e = 2, one can calculate the transmission using only a sub-diagonal part of the Green function and only one scattering matrix. We stress that the quantities calculated may have numerical deficiencies as Tr[( G _−_ G <sup>_†_</sup> ) Γ e] and Tr[ GΓ e G <sup>_†_</sup> Γ e] may both be numerically large which leads to inaccuracies when the transmission is orders of magnitudes smaller than the reflection[82]. Further, the transmission may be split into transmission eigenvalues, _T_ ee _′,_ k = _i_ _Ti,_ ee _′,_ k _,_ (28) where _Ti,_ ee _′,_ k are the eigenvalues of the column matrix GkΓ e _,_ kG <sup>_†_</sup> k <sup>Γ</sup> <sup>e</sup> <sup>_′,_</sup> <sup>k</sup> <sup>(e</sup> <sup>_̸_</sup> <sup>=</sup> <sup>e</sup> <sup>_′_</sup> <sup>)</sup> <sup>[83].</sup> <sup>Due</sup> <sup>to</sup> <sup>the</sup> <sup>matrix</sup> <sup>product</sup> being a column matrix ( Γ e have a limited extend due to the LCAO basis) the eigenvalue calculation can be reduced substantially by realizing the following equation,      _−_ _λ_ I  _→_ det( C _−_ _λ_ I ) _._ (29) = det    _−_ _λ_ I det - GkΓ e _,_ kG <sup>_†_</sup> k <sup>Γ</sup> e <sup>_′_</sup> _,_ k <sup>_−_</sup> <sup>_λ_</sup> <sup>I</sup> - GkΓ e _,_ kG <sup>_†_</sup> k - = det 0 0 A 0 0 B 0 0 C The transmission eigenvalues are for instance important when calculating Fano factors describing shot noise [84]. Once the transmission function is calculated we can calculate the electrical current _I_ ee <sup>_′_</sup> and thermal energy transfer _Q_ ee <sup>_′_</sup> as _I_ ee _′_ = <sup><u>G0</u></sup> 2 _|e|_ �� BZ d k d _ϵ T_ ee _′,_ k ( _ϵ_ ) - _,_ (30) - _nF,_ e _′_ ( _ϵ_ ) _−_ _nF,_ e( _ϵ_ ) _Q_ ee _′_ = <sup><u>1</u></sup> _h_ �� BZ d k d _ϵ T_ ee _′,_ k ( _ϵ_ )( _ϵ −_ _µ_ e) - _,_ (31) - _nF,_ e _′_ ( _ϵ_ ) _−_ _nF,_ e( _ϵ_ )� where G0 = 2 _e_ <sup>2</sup> _/h_ is the conductance quantum (spin-degenerate case). When time-reversal symmetry applies one has the relations _I_ ee _′_ = _−I_ e _′_ e and _Q_ ee _′_ + _Q_ e _′_ e = ( _µ_ <sup>_′_</sup> e <sup>_−_</sup> <sup>_µ_</sup> <sup>e)</sup> <sup>_/|e|I_</sup> <sup>ee</sup> <sup>_′_</sup> <sup>_≡_</sup> <sup>_W_</sup> <sup>.</sup> <sup>The</sup> <sup>latter</sup> <sup>expresses</sup> <sup>that</sup> <sup>the</sup> <sup>net</sup> <sup>work</sup> <sup>done,</sup> <sup>_W_</sup> <sup>,</sup> equals the net heat supplied. We note that one may use efficient interpolation schemes for the BZ averages to reduce the required number of k points, which is typically much larger than the k -sampling necessary for the corresponding density matrix calculation [85]. B. Inversion algorithm — again The Green function algorithm in tbtrans is similar to the one in transiesta (but not the same). In Figs. 1 and 11 we exemplify the method. In Fig. 11a we show a regular two-terminal device with 8 partitions. In the BTD method one can down-fold the self-energy from the left _∞_ block up till e.g. the block 6, using Eq. (17), or as explained in Refs. [41, 53]. Then the current is calculated using the standard Eq. (30) based on the transmission evaluated from the down-folded quantities calculating the Green function Eq. (18) and self-energies in the sub-space of block 6. However, one could equally have chosen block 3, or the combined blocks 3 and 4. The advantage of this abstraction is threefold: 1) the Green function is obtained in the chosen blocks of interest only, 2) choosing fewer blocks reduces the computational complexity which greatly speeds up the calculation, and 3) choosing small blocks reduces the required memory which enables extreme scale calculations. From 1) it follows that quantities such as local density of states can be calculated at arbitrary positions in the calculation cell by selecting specific blocks. However, we note that for non-orthogonal basis sets an increased block including the overlap region is required in order to obtain LDOS, 43 (8) 33 (12) 68 (8) b) 23 (5) 21 (7) 20 (8) 57 (8) 56 (8) 4 (7) 2 (5) 1 (4) 24 (4) 48 (4) 45 (7) 32 (9) 66 (8) 67 (8) 69 (7) 19 (8) 22 (6) 17 (8) 20 (8) 46 (6) 44 (8) 42 (8) 41 (9) 7 (8) 6 (8) 5 (8) 3 (6) a) _V_ 6 _,∞_ 6 _∞_ _V_ 6 <sup>_†_</sup> _,∞_ 15 (18) 27 (6) 18 (8) 17 (8) 16 (9) 59 (19) 58 (18) 8 (10) 26 (5) _∞_ _V∞,_ 1 _V∞_ <sup>_†_</sup> _,_ 1 1 _V_ 1 _,_ 2 _V_ 1 <sup>_†_</sup> _,_ 2 2 _V_ 2 _,_ 3 _V_ 2 <sup>_†_</sup> _,_ 3 3 _V_ 3 _,_ 4 _V_ 3 <sup>_†_</sup> _,_ 4 4 _V_ 4 _,_ 5 _V_ 4 <sup>_†_</sup> _,_ 5 5 _V_ 5 _,_ 6 _V_ 5 <sup>_†_</sup> _,_ 6 28 (7) 34 (21) 40 (12) 15 (18) 39 (21) 38 (21) 37 (20) 13 (26) 14 (20) 12 (21) 60 (24) 10 (20) 9 (14) 55 (8) 54 (8) 49 (4) 25 (4) 12 (21) 29 (8) 47 (5) 30 (8) 31 (8) 70 (6) 71 (5) 72 (4) 35 (21) 36 (20) 63 (18) 62 (19) 64 (8) 65 (8) 61 (24) 11 (22) 53 (8) 52 (7) 51 (6) 50 (5) FIG. 11. The BTD algorithm in tbtrans. a) Partitioning of a standard two-terminal setup for the recursive Green function method (BTD). b) Connectivity graph for the _N_ e = 6 terminal device used in Fig. 8 where each dot represents an atom (non-black colored atoms correspond to an electrode) and every line represents one or multiple connections between the two atoms. Instead of calculating the Green function in the whole device space one can shrink the problem to a smaller region as long as the electrode branches do not couple directly to each other. An example region is shown with a dashed circle. Mulliken charges, etc. On the other hand, if one is only interested in the transmission/current one can resort to choosing the smallest block to achieve the highest throughput [41]. Similarly, down-folding of the self-energies can also be achieved in an _N_ e-terminal device. As an example, a 6-terminal system (e.g., the setup in Fig. 11b) can be split into several blocks with their own downfolding of selfenergies. One chooses a region _D_ (see Fig. 1) and the extended electrode regions may be used to down-fold the self-energy. However, one may not choose _D_ such that either of the electrodes are directly coupled, since this choice would entangle the self-energies and their origin would be lost. After selecting the region _D_, tbtrans creates _N_ e + 1 different BTD matrices for optimal performance. These are _N_ e BTD matrices for each electrode including the down-folding region ( _{_ e _i,_ e _i_ + _}_ in Fig. 1), and one additional BTD matrix for region _D_ . Each BTD matrix uses its own pivoting scheme to reduce the bandwidth and increase performance. Due to the pivoting, the Hamiltonian structure cannot be generically outlined in matrix format. Yet it can be formulated equivalently as in Ref. [76] with the possibility of letting the user define the “extended scattering region”. tbtrans allows the user to do this via atomic indices, and hence no knowledge of the algorithms underlying the pivoting and other details are needed. Lastly, we note that tbtrans is also implemented using OpenMP 3.1 threading and scales like shown in Fig. 7c for large systems. C. _I_ _−_ _V_ curves using Hamiltonian interpolation Although the present work represents a significant leap in performance of transiesta and tbtrans, self-consistent NEGF calculations are still heavy, especially when current-voltage ( _I_ _−_ _V_ ) characteristics with many bias points are required. To ease, and quite accurately, calculate _I −_ _V_ curves we have implemented an interpolation scheme based on _NV_ separate NEGF calculations at different bias conditions. If _NV_ = 2 we do a linear interpolation/extrapolation of the Hamiltonian, and if _NV_ _>_ 2 a spline interpolation is also possible. Note that a spline extrapolation is equivalent, unsurprisingly, to linear extrapolation. As a test example we consider a molecular contact system consisting of a periodic array of C60 molecules buried in the first surface layer of a Cu(111) surface contacted by a tip. This example is taken from Ref. [86]. In Fig. 12 we compare the k -averaged transmission functions based on the self-consistent (converged) Hamiltonian at a bias of _−_ 1 _._ 5 V and the corresponding one interpolated from self-consistent Hamiltonians at _−_ 2 V, _−_ 1 V, 0 V, 1 V and 2 V (linear interpolation from the two closest bias points and spline using all points). In this example the bias point _−_ 1 _._ 5 V was “worst case scenario” where the exact and interpolated results deviated the most out of 47 interpolations and extrapolations in the range _−_ 2 _._ 4 V to 2 _._ 4 V (in equal steps of 0 _._ 1 V). Although both interpolation schemes perform very well, the spline interpolation clearly outperforms the linear interpolation, retaining a better agreement with the self-consistent calculation. This also works for _N_ e _̸_ = 2 if the chemical potentials are linearly dependent. 0 _._ 4 0 _._ 2 Converged Spline Linear 0 _−_ 2 _._ 5 _−_ 2 _−_ 1 _._ 5 _−_ 1 _−_ 0 _._ 5 0 Energy [eV] FIG. 12. Interpolation of the transmission function for a Cu-tip–C60/Cu(111) junction using either spline or linear interpolation of the Hamiltonian at _V_ = _−_ 1 _._ 5 V using the converged Hamiltonians for _−_ 2 V, _−_ 1 V, 0 V, 1 V and 2 V. The spline interpolation (red curve) agrees significantly better with the self-consistent solution (blue curve) than the linear interpolation (brown curve). ``` import sisl bond = 1.42 graphene = sisl.geom.graphene(bond) # Create a 100x100x2 = 20000 atom graphene flake flake = graphene.repeat(100, axis=0).tile(100, 1) H = sisl.Hamiltonian(flake) # U t1 dR = [0.1 * bond, 1.1 * bond] for ia in flake: idx_a = flake.close(ia, dR=dR) # Define Hamiltonian elements H[ia,idx_a[0]] = 0. # on-site H[ia,idx_a[1]] = -2.7 # nearest neighbor H.write(’FLAKE.nc’) ``` ``` import sisl bond = 1.42 graphene = sisl.geom.graphene(bond) flake = graphene.repeat(100, axis=0).tile(100, 1) # Remove atoms in a circular region to create a hole hole = flake.remove(flake.close(flake.center(), dR=10*bond)) H = sisl.Hamiltonian(hole) dR = [0.1 * bond, 1.1 * bond] for ia in hole: idx_a = hole.close(ia, dR=dR) # Define Hamiltonian elements H[ia,idx_a[0]] = 0. # on-site H[ia,idx_a[1]] = -2.7 # nearest neighbor H.write(’HOLE.nc’) ``` FIG. 13. sisl code. Left: Creation of a periodic graphene flake with 20,000 atoms with nearest neighbor interactions ( _ϵ_ 0 = 0 and _ϵ_ 1 = _−_ 2 _._ 7). Right: Creation of a periodic graphene flake with a hole having a diameter of 20 bond lengths. D. tbtrans as transport back-end and feature generalization Even though tbtrans is developed with transiesta in mind, its use is far from restricted to this. tbtrans implements flexible NetCDF-4 support, and the Hamiltonian can thus alternatively be supplied through a NetCDF-4 file. This makes tbtrans accessible as a generic transport code without a need for lower-level Fortran coding and/or knowledge of the siesta binary file format. To accommodate such so-called “tight-binding” calculations, we have developed a LGPL licensed Python package sisl [87] which facilitates an easy interface to create large-scale (non)orthogonal tight-binding models for arbitrary geometries. This package is a generic package with further analysis tools for siesta such as file operations and grid operations (interaction with fdf-files, vasp files, and density grids, potential grids, etc.). sisl allows any number of atoms, different orbitals per atom, (non-)orthogonal basis sets, mixed species in a 3D super-cell approach. Furthermore, as sisl is based on Python it allows abstraction such that unnecessary details of the complex data structures are hidden from the users. Currently it is interfaced to read parameters from siesta, gulp and Wannier90 [88, 89]. In Fig. 13 we list two sisl-code examples. The left example creates a simple 20 _,_ 000 atom graphene flake with nearest neighbor interaction. The right example creates the same graphene structure but with a hole with a diameter of 20 times the bond length at the center of the flake. In the SM we have added several example scripts for graphene with various tight-binding parameter sets [90] as well as an example of how to create a tight-binding transport calculation. _1._ _Feature_ _generalization_ _–_ _δ_ H Green function codes are often limited by the implemented features. Yet a large scope of features can be described using a _correction_ of the Hamiltonian elements due to local smearing, scissor operators, magnetic fields, the SAINT method [91], etc. All in all they can be summarized in this one equation Hk _←_ Hk + _δ_ Hk ( _ϵ_ ) _,_ (32) where _δ_ Hk ( _ϵ_ ) encompass any correction for the Hamiltonian, whatever that may be. _δ_ Hk ( _ϵ_ ) may be of a real quantity, or a complex quantity, depending on its physical origin. Instead of letting the developers decide which features should be implemented we enable users to create their own features by altering the Hamiltonian elements, however they wish, simply by creating the _δ_ Hk ( _ϵ_ ) correction. sisl [87] efficiently creates the _δ_ Hk ( _ϵ_ ) matrix without any prior knowledge of Fortran or the data format for tbtrans. We note that sisl is capable of reading the DFT-NEGF self-consistent Hamiltonian and edit it directly in Python. The _δ_ Hk ( _ϵ_ ) comes in four variants to control different parts of the calculation. 1. _δ_ H with no energy nor k -point dependencies, 2. _δ_ Hk with only k -point dependency, 3. _δ_ H ( _ϵ_ ) with only energy dependency, 4. _δ_ Hk ( _ϵ_ ) with both k -point and energy dependencies. This _feature_ enables a broader population of users to contribute with functionality to a public code, and we encourage contributions to the siesta mailing list as well as the sisl GitHub repository which may be used as a base for further development of features for the transport code tbtrans. E. Molecular state projection transmission There are several approaches to analyze transport properties besides considering the local density of states. One may decompose the transmission into eigenchannels and plot the corresponding scattering states [83] or the bondcurrents [92]. However, this does not necessarily give a clear answer to the basic question as to which of the eigenstates in the central region takes part in transport, e.g., which molecular levels transmit the electrons in a molecular contact between metals. tbtrans allow a very flexible analysis of the transport through such eigenstates. In the following we use molecular eigenstates as the terminology and have a central molecule as “bottle-neck” in mind, however, the method is not limited to this type of setup. We can define a sub-space of the full device region consisting of the same or fewer basis components _{M_ _}_ (henceforth referred to as “molecule”). The Hamiltonian for this region have previously been denoted Molecular Projected Selfconsistent Hamiltonian (MPSH) [93] with corresponding eigenstates, _i_ <sup>_⟩_</sup> <sup>=</sup> <sup>_ε{_</sup> _i_ <sup>_M_</sup> <sup>_}_</sup> <sup>_′_</sup> H _{M_ _}|Mi_ <sup>_′_</sup> <sup>_{_</sup> _i_ <sup>_M_</sup> <sup>_}_</sup> _i_ S _{M_ _}|M_ <sup>_′_</sup> _i_ <sup>_′⟩,_</sup> (33) where _|Mi_ <sup>_′⟩_</sup> <sup>are</sup> <sup>the</sup> <sup>generalized</sup> <sup>eigenvectors</sup> <sup>defined</sup> <sup>in</sup> <sup>the</sup> <sup>basis</sup> <sup>functions</sup> <sup>of</sup> <sup>the</sup> <sup>non-orthogonal</sup> <sup>basis.</sup> <sup>In</sup> <sup>order</sup> <sup>to</sup> create orthogonal eigenvectors ( _|Mi⟩_ ) we rotate the basis set to form orthonormal projection vectors using the Löwdin transformation [94]. Inserting the complete _{M_ _}_ (orthogonalized) basis in the expression for the transmission (assuming k and _ϵ_ dependencies implicit, and _{_ e _,_ e <sup>_′_</sup> _}_ = _{L, R}_ ) we get _TLR_ = Tr[ GΓ _L_ G <sup>_†_</sup> Γ _R_ ] (34) _j_ _|Mj⟩⟨Mj|_ Γ _L_ _|Mi′⟩⟨Mi′|_ _._ (35) _|Mj′⟩⟨Mj′|_ G <sup>_†_</sup> <sup>�</sup> _i_ _i_ <sup>_′_</sup> _j_ <sup>_′_</sup> _|Mi⟩⟨Mi|_ Γ _R_ = Tr G The matrix element of the broadening matrix, _⟨Mj|_ Γ _L|Mj_ <sup>_′⟩_</sup> <sup>,</sup> <sup>describes</sup> <sup>the</sup> <sup>coupling</sup> <sup>of</sup> <sup>the</sup> <sup>MPSH</sup> <sup>states</sup> <sup>to</sup> <sup>electrode</sup> _L_ and how these are mixed/hybridized due to this. How such a projector is chosen is outside the scope of this article, but we refer to Ref. [95] for additional projectors. In tbtrans we save all scalar quantities _⟨Mj|_ Γ _L|Mj′⟩_ for an extra level of information. It also allows for ways to break the total transmission into components for each MPSH state in a very flexible way as illustrated in the following. As an example we consider schematic in Fig. 14 corresponding to electron transport through a “bridge” consisting of two molecules ( _A_ and _B_ ) with 2 and 3 MPSH characteristic eigenstates each, respectively. It is then possible to extract the transmission probability corresponding to, say, electrons injected from _L_ into state _|A_ 1 _⟩_ and extracted to _R_ via the set _|B{_ 1 _,_ 2 _}⟩_, yielding 2 _j_ =1 _|Bj⟩⟨Bj|_ Γ _R_ _TA{_ 1 _}B{_ 1 _,_ 2 _}_ = Tr - G _|A_ 1 _⟩⟨A_ 1 _|_ Γ _L|A_ 1 _⟩⟨A_ 1 _|_ G <sup>_†_</sup> 2 _j_ <sup>_′_</sup> =1 _|Bj′⟩⟨Bj′|_ _._ (36) L Mol _A_ Mol _B_ R _<u>| →⟩</u>_ _<u>| ←⟩</u>_ _<u>|B</u>_ 3 _<u>⟩</u>_ _<u>|B</u>_ 2 _<u>⟩</u>_ _|B_ 1 _⟩_ _EF_ _<u>|A</u>_ 2 _<u>⟩</u>_ _|A_ 1 _⟩_ FIG. 14. Schematic illustration of two molecules coupled to 2 electrodes. One can follow each of the lines connecting molecule _A_ and _B_ . To scatter into the right electrode they have to scatter across the molecular states _|A_ 1 _⟩_, _|A_ 2 _⟩_, _|B_ 1 _⟩_, _|B_ 2 _⟩_ and _|B_ 3 _⟩_ . We note that such projected transmissions may be larger than the non-projected total transmission due to interference effects. Additionally this projection scheme also allows investigation of the difference between projections on incomingoutgoing scattering states. That is, for a single molecular junction ( _A_ with 2 molecular states) one may calculate ( I = _A{_ 1 _,_ 2 _}_ ): - G _|A_ 1 _⟩⟨A_ 1 _|_ Γ _L|A_ 1 _⟩⟨A_ 1 _|_ G <sup>_†_</sup> Γ _R_ _TA{_ 1 _}_ I = Tr _T_ I _A{_ 1 _}_ = Tr _TA{_ 1 _}A{_ 1 _}_ = Tr _,_ [ _→_ ] (37a) - GΓ _L_ G <sup>_†_</sup> _|A_ 1 _⟩⟨A_ 1 _|_ Γ _R|A_ 1 _⟩⟨A_ 1 _|_ _,_ [ _←_ ] (37b) - GΓ _L_ G <sup>_†_</sup> _|A_ 1 _⟩⟨A_ 1 _|_ Γ _R|A_ 1 _⟩⟨A_ 1 _|_ - G _|A_ 1 _⟩⟨A_ 1 _|_ Γ _L|A_ 1 _⟩⟨A_ 1 _|_ G <sup>_†_</sup> _|A_ 1 _⟩⟨A_ 1 _|_ Γ _R|A_ 1 _⟩⟨A_ 1 _|_ _,_ [ _↔_ ] (37c) - G _|A_ 1 _⟩⟨A_ 1 _|_ Γ _L|A_ 1 _⟩⟨A_ 1 _|_ G <sup>_†_</sup> _|A_ 1 _⟩⟨A_ 1 _|_ Γ _R|A_ 1 _⟩⟨A_ 1 _|_ where _→_ and _←_ refers to incoming and outgoing projections, respectively, and _↔_ refers to a simultaneous projection of incoming and outgoing. These 3 transmissions are generally not equal due to asymmetric coupling and/or hybridization with the electrodes. Lastly, we allow the projection states to be both k -resolved or Γ-point only. If the MPSH eigenstates are non-dispersive in the Brillouin zone these yield the same result. As an example of projections based on a realistic DFT-NEGF calculation featuring the k -dependence we consider again transport through a monolayer of C60 molecules as shown in Fig. 15 (setup from Ref. [86]). Due to the densely packed monolayer coverage of C60 - one molecule per 4 _×_ 4-surface area of Cu(111) – there exists a slight dispersion in the Brillouin zone ( _∼_ 10 meV). The transmissions are calculated on a 13 _×_ 13 Monkhorst-Pack grid [96]. Here we limit the projections to involve the three (almost) degenerate MPSH orbitals close to the Fermi energy _EF_, i.e., essentially to the lowest unoccupied molecular orbitals (LUMO) of C60. The highest occupied molecular orbitals (HOMO) are located about _−_ 1 eV below _EF_ while the LUMO+1 are about 1 eV above _EF_ . In Fig. 15 we compare the full transmission (thick black) with the projected transmissions. Figures in the left column are the Γ-point projectors used in the entire Brillouin zone, while the right column figures are using the projectors at the given k in the Brillouin zone. Projections labeled by a single integer are individual MPSH projections, while 1 _−_ 3 is the summed projection over all LUMO levels. The top row of Fig. 15 shows the projected transmissions using the projectors as in Eq. (37c). The relative contributions from the dashed lines clearly reveal that a single LUMO orbital is responsible for carrying the majority of the transmission, while the other two LUMO orbitals have negligible contribution. The full projectors (1 _−_ 3) only slightly increases the total transmission compared to the 3rd projection. The ordering of the levels are according to the energy levels. The total transmission is not reached due to hybridization of the molecule with the electrode. One can also observe the effect of intra-molecular coupling yielding a dispersion in the densely packed monolayer by comparing the results with the Γ-point versus the k -resolved projectors. The latter projection increases the Lorentzian shape of the transmission peak as well as decrease the hybridized contributions in the energy range corresponding to the HOMO levels, as expected. The projectors may take either of the forms shown in Eqs. (37). A comparison between these different choices are shown in the lower row of Fig. 15. The hybridization of the C60 molecules with the Cu states is strong as reflected in the many small peaks with the _→_ projectors. Contrary, _←_ which projects the molecular orbitals through the weakly coupled tip retains the LUMO energy range as well as reducing the Brillouin zone dispersion. The latter proves that we have a small coupling between tips in different supercells resulting in a low dispersion. It can also be seen that the total transmission is better retained when using only _→_ or _←_ which infers a mixing of the scattering states with the molecular orbitals. _|Mj_ _⟩_ k 0 _._ 15 0 _._ 1 0 _._ 05 0 0 _._ 15 0 _._ 1 0 _._ 05 1-3 1 2 3 _↔_ _→_ _←_ _|Mj_ _⟩_ Γ _↔_ 1-3 _↔_ 1 2 3 1-3 _↔_ 1-3 _→_ _←_ 0 _−_ 3 _−_ 2 _−_ 1 0 1 Energy [eV] _−_ 3 _−_ 2 _−_ 1 0 1 Energy [eV] FIG. 15. Projected transmission spectra onto the molecular orbitals at zero bias for a Cu(111) surface covered with C60 molecules ( _EF_ = 0 eV). The full black line is the k -sampled total transmission (same curve in all panels). Projections of the essentially 3-fold degenerate LUMO levels are shown with both non-dispersive (left) and dispersive (right) projectors. The in-out projectors are used in the top row, while a comparison of the in/out/in-out projectors are shown in the bottom row. The Brillouin zone dispersion requires the projections to be k -resolved and it is seen that only a single LUMO MPSH is responsible for the majority of the transmission. F. Phonon transport — phtrans The tailoring of heat transport in nanostructures (e.g., via nanostructuring of materials) is a topic with a large and growing community following the trend of electronic transport [97, 98]. It has promising applications in thermal management and thermoelectrics, and has even been envisioned for information processing with devices, akin of electronics, known as “phononics” [99]. The transport of heat via phonons can be treated using the Landauer formula by replacing (from the electronic case) Fermi-distributions with Bose-Einstein distributions [100, 101], carrier charge ( _e_ ) with phonon energy (ℏ _ω_ ), and using the phonon transmission function Ξ( _ω_ ). The phonon thermal conductance between two reservoirs at tempertures _T_ and _T_ + d _T_, can thus be calculated as ( _e_ <sup><u>ℏ</u></sup> <sup>_ω/kB_</sup> <sup>_T_</sup> _−_ 1) <sup>2</sup> <sup>_._</sup> (38) ℏ <sup>2</sup> _κ_ ph( _T_ ) = 2 _πkBT_ <sup>2</sup> - _∞_ _∞_ _<u>e</u>_ <sup>ℏ</sup> <sup>_ω/kB_</sup> <sup>_T_</sup> d _ω ω_ <sup>2</sup> Ξ( _ω_ ) 0 ( _e_ <sup><u>ℏ</u></sup> <sup>_ω/kB_</sup> <sup>_T_</sup> _−_ The expression for the electronic transmission function in Sec. IV is easily converted to that of phonons by replacing the dynamical matrix for the Hamiltonian, using unity as overlap, and the energy replacement, _ε_ + _iη_ _→_ _ω_ <sup>2</sup> + _iη_ <sup>2</sup> . Recall that all tbtrans functionality may be used in phtrans, including _N_ e _≥_ 1 terminals. Phonon transport using the Green function formalism can thus be written as Gq ( _ω_ ) = �( _ω_ <sup>2</sup> + _iη_ <sup>2</sup> ) I _−_ Dq _−_ Σq ( _ω_ )� _−_ 1 _,_ (39) Ξee _′,_ q ( _ω_ ) = Tr - Gq ( _ω_ ) Γ e _,_ qG <sup>_†_</sup> q <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>Γ</sup> <sup>e</sup> <sup>_′,_</sup> <sup>q</sup> - _,_ (40) with Dq being the dynamical matrix at the q -point in reciprocal space. Currently sisl allows for the extraction of dynamical matrices directly from gulp [88] and outputs files to phtrans compatible data format. This enables the calculation of phonon transport properties for very large systems from empirical potentials using 3rd party tools. As an example of the capabilities of phtrans we investigated phonon transport in graphene as well as through a grain boundary. Grain boundaries play a significant role for both electronic and heat transport in graphene and is an area of intense research [102, 103]. Figure 16 shows the phonon properties of pristine graphene and the zero-angle grain boundary (GB558, see inset to Fig. 16c) for which the electronic transport has previously been studied [104]. The quantities are calculated using the Brenner potential [105] in gulp. The transmission of pristine graphene versus GB558 is compared in Fig. 16a. It is seen how the grain-boundary effectively scatters the phonons and reduces the heat transport to _∼_ 60% at 600K compared to the pristine case (inset Fig. 16a). Figures 16b,c compare atom-resolved phonon DOS inside pristine graphene and in the grain-boundary, respectively. The grain-boundary hosts quite localized out-of-plane modes around ℏ _ω_ = 115 meV and in-plane modes around ℏ _ω_ = 200 meV as seen by the peaks in the projected DOS. 10 a) 8 6 4 2 0 b) 10 5 0 c) 10 5 1 0 _._ 9 _κ_ ph _,_ GB 0 _._ 8 _κ_ ph 0 _._ 7 0 _._ 6 500K 1000K 1500K _κ_ ph _,_ GB _κ_ ph Pristine GB-558 Total Out-of-plane 0 0 25 50 75 100 125 150 175 200 225 ℏ _ω_ [meV] FIG. 16. a) Graphene and GB558 (Stone-Wales defect) transmission, q -averaged, for the primitive unit-cell. Insert: Ratio of thermal transmissions as a function of temperature calculated using Eq. (38). b) Total DOS and out-of-plane projected DOS per atom of pristine graphene. c) Total DOS and projected DOS on out-of-plane phonons, projected onto GB-558 atoms. Insert: GB558 structure and projection atoms (blue). V. CONCLUSIONS We have presented the Green function technique and its implementation at the DFT-NEGF level with a generalization of the equations to cover both equilibrium single-electrode ( _N_ e = 1) and non-equilibrium multi-electrode ( _N_ e _>_ 1) calculations. The first case enables equilibrium surface calculations without resorting to slab-approximations, while the latter case makes studies of non-equilibrium thermo-electric effects possible using independent electrode Fermi distributions (both chemical potentials _and_ temperatures). The methods are made available in the GPL licensed DFTNEGF code transiesta together with the post-processing electron (phonon) transport code tbtrans (phtrans). Both codes were re-implemented for extended functionality and optimization. We now summarize the specific major improvements to the method. We have implemented several schemes for equilibrium contour integration to obtain the density matrix. These improve the convergence properties while reducing the number of integration abscissa in the equilibrium contour. Along these lines we generalized the original weighting scheme for the density matrix integrals to the multi-electrode case ( _N_ e _>_ 2). Besides the multi-electrode capabilities we have also implemented a flexible way to include charge/Hartree electrostatic gate geometries in the DFT-NEGF device region. This enables investigating gate effects which are ubiquitous for e.g. simulations of functional electronic devices. The algorithm for calculating the Green function using matrix inversion is crucial for the performance of any DFT-NEGF code. We have compared 3 implemented methods, LAPACK, MUMPS, and BTD inversion. We found that the BDT method performs the best and devised a highly efficient, memory-wise and performance-wise, NEGF variant. The BTD method relies critically on the bandwidth of the matrix to be inverted and to accommodate this, we implemented a variety of pivoting algorithms to reduce bandwidth, memory consumption and increase performance of the NEGF calculation. We have furthermore implemented an efficient method to calculate the spectral function using an efficient propagation algorithm. Altogether, the performance of transiesta has improved drastically, compared to version 3.2, and for one test system an impressive _∼_ 100 times speed-up was achieved. OpenMP 3.1 threading was also implemented in transiesta which allows to reach unprecedented system sizes with the DFT-NEGF method. As a post-processing tool tbtrans has been presented for calculation of the transmission function from any Hamiltonian or dynamical matrix (phtrans, phonon-transport). Our implementation involves a new separation algorithm where the transport properties - as well as local quantities such as DOS, bond-currents, etc. - may be efficiently calculated in a selected subspace of the device cell. A recurring question within molecular electronics is the origin of the electron carrier orbital. We presented a novel method to calculate projected transmissions using either single molecular orbitals or a combination of several orbitals. The projection method includes Γ and k point projectors. Besides the many optimizations mentioned above we also implemented an efficient interpolation method of finitebias Hamiltonians for tbtrans. This reduces the computational burden of full _I_ _−_ _V_ curves. We presented linear and spline interpolation and demonstrated how spline interpolation proves very accurate, even for complex systems. tbtrans is now featured as a stand-alone transport code which enables other codes to interface to it. In particular, we developed sisl which is a generic Python code for creating and manipulating Hamiltonians. sisl can already now interact with several codes as well as extracting the dynamical matrix from gulp and passing it to phtrans. All together transiesta and tbtrans (and its offshoot phtrans) now utilize highly scalable and efficient algorithms. Both codes fully implement _N_ e _≥_ 1 electrode Green function techniques with full customization of each electrode. Our novel implementations have thus enabled everyday DFT-NEGF (tight-binding) calculations in excess of 10,000 (1,000,000) orbitals which earlier would have seemed insurmountable. VI. ACKNOWLEDGMENTS We thank Mads Engelund, Pedro Brandimarte and Georg Huhs for testing and feedback on the software. The DIPC funded an external stay for NP during code development. The Danish e-Infrastructure Cooperation (DeIC) provided computer resources. The Center for Nanostructured Graphene (CNG) is sponsored by the Danish Research Foundation, Project DNRF103. We acknowledge financial support from EU H2020 project no. 676598, “MaX: Materials at the eXascale” Center of Excellence in Supercomputing Applications, the Basque Departamento de Educación and the UPV/EHU (IT-756-13), the Spanish Ministerio de Economía y Competitividad (MAT2013-46593-C6-2-P, MAT201566888-C3-2-R, FIS2012-37549-C05-05, and FIS2015-64886-C5-4-P as well as the “Severo Ochoa” Program for Centers of Excellence in R&D SEV-2015-0496), the European Union FP7-ICT project PAMS (Contract No. 610446), and the Generalitat de Catalunya (2014 SGR 301). [1] R. P. R. P. Feynman, R. B. Leighton, and M. L. M. L. Sands, _The_ _Feynman_ _lectures_ _on_ _physics_ (1963–1965). [2] (2014). [3] M. Büttiker, Y. Imry, R. Landauer, and S. Pinhas, Phys. Rev. B [31](http://dx.doi.org/10.1103/PhysRevB.31.6207), 6207 (1985). [4] P. Sautet and C. Joachim, Phys. Rev. B [38](http://dx.doi.org/10.1103/PhysRevB.38.12238), 12238 (1988). [5] S. Datta, _Electronic_ _Transport_ _in_ _Mesoscopic_ _Systems_ _(Cambridge_ _Studies_ _in_ _Semiconductor_ _Physics_ _and_ _Microelectronic_ _Engineering)_ (Cambridge University Press, 1997). [6] S. Sanvito, C. J. Lambert, J. H. Jefferson, and A. M. Bratkovsky, Phys. Rev. B [59](http://dx.doi.org/10.1103/PhysRevB.59.11936), 11936 (1999). [7] P. Delaney and J. C. Greer, Phys. Rev. Lett. [93](http://dx.doi.org/http://dx.doi.org/10.1103/PhysRevLett.93.036805), 036805 (2004). [8] P. Darancet, A. Ferretti, D. Mayou, and V. Olevano, Phys. Rev. B [75](http://dx.doi.org/ 10.1103/PhysRevB.75.075102), 075102 (2007). [9] F. Mirjani and J. M. Thijssen, Phys. Rev. B [83](http://dx.doi.org/http://dx.doi.org/10.1103/PhysRevB.83.035415), 035415 (2011). [10] H. Ness and L. K. Dash, Journal of Physics A: Mathematical and Theoretical 45, 195301 (2012). [11] R. M. Martin, _Electronic_ _Structure._ _Basic_ _theory_ _and_ _practical_ _methods._ (Cambridge University Press, 2004). [12] G. Stefanucci and C.-O. Almbladh, Europhysics Letters (EPL) 67, 14 (2004). [13] M. D. Ventra and T. N. Todorov, Journal of Physics: [Condensed](http://dx.doi.org/10.1088/0953-8984/16/45/024) Matter 16, 8025 (2004). [14] G. Stefanucci and S. Kurth, Nano Letters 15, 8020 (2015). [15] S. Kurth and G. Stefanucci, Phys. Rev. Lett. [111](http://dx.doi.org/10.1103/PhysRevLett.111.030601), 030601 (2013). [16] F. Mirjani and J. M. Thijssen, Phys. Rev. B [83](http://dx.doi.org/10.1103/PhysRevB.83.035415), 035415 (2011). [17] P. Schmitteckert and F. Evers, Phys. Rev. Lett. [100](http://dx.doi.org/10.1103/PhysRevLett.100.086401), 086401 (2008). [18] H. Mera and Y. M. Niquet, Phys. Rev. Lett. [105](http://dx.doi.org/10.1103/PhysRevLett.105.216408), 216408 (2010). [19] J. Taylor, H. Guo, and J. Wang, Physical Review B 63, 245407 (2001). [20] M. Brandbyge, J.-L. Mozos, P. Ordejón, J. Taylor, and K. Stokbro, Physical [Review](http://dx.doi.org/ 10.1103/PhysRevB.65.165401) B 65, 1 (2002). [21] J. J. Palacios, A. J. Pérez-Jiménez, E. Louis, E. SanFabián, and J. A. Vergés, Phys. Rev. B 66, 035322 (2002). [22] D. Wortmann, H. Ishida, and S. Blügel, Phys. Rev. B [65](http://dx.doi.org/10.1103/PhysRevB.65.165103), 165103 (2002). [23] A. R. Rocha, V. M. Garcia-Suarez, S. W. Bailey, C. J. Lambert, J. Ferrer, and S. Sanvito, Nature Materials 4, 335 (2005). [24] A. Garcia-Lekue and L.-W. Wang, Phys. Rev. B [74](http://dx.doi.org/10.1103/PhysRevB.74.245404), 245404 (2006). [25] S. Wohlthat, F. Pauly, J. K. Viljas, J. C. Cuevas, and G. Schön, Phys. Rev. B 76, 075413 (2007). [26] A. Pecchia, G. Penazzi, L. Salvucci, and A. Di Carlo, New Journal of [Physics](http://dx.doi.org/10.1088/1367-2630/10/6/065022) 10, 065022 (2008). [27] K. K. Saha, W. Lu, J. Bernholc, and V. Meunier, The Journal of chemical [physics](http://dx.doi.org/ 10.1063/1.3247880) 131, 164105 (2009). [28] T. Ozaki, K. Nishio, and H. Kino, Physical Review B 81, 035116 (2010). [29] J. Chen, K. S. Thygesen, and K. W. Jacobsen, Physical Review B 85, 155140 (2012), [1204.4175.](http://arxiv.org/abs/1204.4175) [30] A. Bagrets, Journal of Chemical Theory and Computation 9, 2801 (2013). [31] J. M. Soler, E. Artacho, J. D. Gale, A. García, J. Junquera, P. Ordejón, and D. Sánchez-Portal, Journal [of](http://dx.doi.org/ 10.1088/0953-8984/14/11/302) Physics: Condensed [Matter](http://dx.doi.org/ 10.1088/0953-8984/14/11/302) 14, 2745 (2002). [32] M. L. N. Palsgaard, N. P. Andersen, and M. Brandbyge, Physical Review B 91 (2015), 10.1103/PhysRevB.91.121403. [33] K. W. Jacobsen, J. T. Falkenberg, N. Papior, P. Bøggild, A.-P. Jauho, and M. Brandbyge, Carbon (2016), [10.1016/j.carbon.2016.01.084,](http://dx.doi.org/ 10.1016/j.carbon.2016.01.084) [arXiv:1601.07708v1.](http://arxiv.org/abs/1601.07708v1) [34] M. Di Ventra and S. T. Pantelides, Physical Review [B](http://dx.doi.org/10.1103/PhysRevB.61.16207) 61, 16207 (2000). [35] M. Brandbyge, K. Stokbro, J. Taylor, J.-L. Mozos, and P. Ordejón, Phys. Rev. B 67, 193104 (2003). [36] H. Takahasi and M. Mori, Publications of the Research Institute [for](http://dx.doi.org/10.2977/prims/1195192451) Mathematical Sciences 9, 721 (1974). [37] This is due to the constant DOS for the lower energy part of the contour where the circle is far below the lowest lying eigenvalue and far in the complex plane. [38] R. Li, J. Zhang, S. Hou, Z. Qian, Z. Shen, X. Zhao, and Z. Xue, Chemical [Physics](http://dx.doi.org/10.1016/j.chemphys.2007.06.011) 336, 127 (2007). [39] P. Amestoy, I. Duff, and J.-Y. L’Excellent, Computer Methods in Applied [Mechanics](http://dx.doi.org/10.1016/S0045-7825%0x2899%0x2900242-X) and Engineering 184, 501 (2000). [40] P. R. Amestoy, I. S. Duff, J.-Y. L’Excellent, and J. Koster, SIAM Journal on Matrix [Analysis](http://dx.doi.org/10.1137/S0895479899358194) and Applications 23, 15 [(2001).](http://dx.doi.org/10.1137/S0895479899358194) [41] D. E. Petersen, H. H. B. Sørensen, P. C. Hansen, S. Skelboe, and K. Stokbro, Journal of [Computational](http://dx.doi.org/10.1016/j.jcp.2007.11.035) Physics 227, 3174 [(2008).](http://dx.doi.org/10.1016/j.jcp.2007.11.035) [42] L. Lin, J. Lu, L. Ying, R. Car, and W. E, Comm. Math. Sci. 7, 755 (2009). [43] S. Li, S. Ahmed, G. Klimeck, and E. Darve, Journal of Computational Physics 227, 9408 (2008). [44] L. Lin, C. Yang, J. Lu, L. Ying, and W. E, SIAM Journal on Scientific Computing 33, 1329 (2011). [45] L. Lin, C. Yang, J. C. Meza, J. Lu, L. Ying, and W. E, ACM Transactions on [Mathematical](http://dx.doi.org/10.1145/1916461.1916464) Software 37, 1 (2011). [46] M. Jacquelin, L. Lin, and C. Yang, [(2014),](http://arxiv.org/abs/1404.0447) [arXiv:1404.0447.](http://arxiv.org/abs/1404.0447) [47] M. Jacquelin, L. Lin, N. Wichmann, and C. Yang, [(2015),](http://arxiv.org/abs/1504.04714) [arXiv:1504.04714.](http://arxiv.org/abs/1504.04714) [48] U. Hetmaniuk, Y. Zhao, and M. Anantram, International Journal for Numerical [Methods](http://dx.doi.org/10.1002/nme.4518) in Engineering 95, 587 (2013). [49] Y. Okuno and T. Ozaki, Journal of Physical [Chemistry](http://dx.doi.org/10.1021/jp309455n) C 117, 100 (2013). [50] B. Feldman, T. Seideman, O. Hod, and L. Kronik, Phys. Rev. B [90](http://dx.doi.org/ 10.1103/PhysRevB.90.035445), 035445 (2014). [51] G. Thorgilsson, G. Viktorsson, and S. Erlingsson, Journal of [Computational](http://dx.doi.org/10.1016/j.jcp.2013.12.054) Physics 261, 256 (2014). [52] E. Anderson, Z. Bai, C. Bischof, S. Blackford, J. Demmel, J. Dongarra, J. Du Croz, A. Greenbaum, S. Hammarling, A. McKenney, and D. Sorensen, _LAPACK_ _Users’_ _Guide_, 3rd ed. (Society for Industrial and Applied Mathematics, 1999). [53] E. M. Godfrin, Journal of Physics: [Condensed](http://dx.doi.org/10.1088/0953-8984/3/40/005) Matter 3, 7843 (1991). [54] O. Hod, J. E. Peralta, and G. E. Scuseria, Journal of Chemical Physics [125](http://dx.doi.org/10.1063/1.2349482) (2006), 10.1063/1.2349482. [55] M. G. Reuter and J. C. Hill, Computational Science & [Discovery](http://dx.doi.org/10.1088/1749-4699/5/1/014009) 5, 014009 (2012). [56] One may solve a set of linear equations: - A _n−_ 1 _−_ Y _n−_ 1�� Y _n_ = C _n_ and - A _n_ +1 _−_ X _n_ +1�� X _n_ = B _n_ . [57] Σ e can maximally be split in two consecutive blocks as it is a dense matrix. [58] E. Cuthill and J. McKee, in _ACM_ _Proceedings_ _of_ _the_ _[1969](http://dx.doi.org/10.1145/800195.805928)_ _24th_ _national_ _conference_ (ACM Press, New York, New York, USA, 1969) pp. 157–172. [59] N. Gibbs, J. Poole, W.G, and P. Stockmeyer, SIAM Numerical Analysis 2, 236 (1976). [60] Q. Wang, Y.-C. Guo, and X.-W. Shi, Progress In Electromagnetics Research 90, 121 (2009). [61] A comparison for larger systems is not possible due to transiesta 3.2 [20] memory consumption. [62] The MUMPS comparison is thus not justifying the actual performance for large systems. [63] In siesta threading has only been implemented in a few places, with priority on grid operations. [64] We have used OpenBLAS 0.2.15 with OpenMP threading using the GNU 5.2.0 compiler for a graphene test system. We use a non-threaded LAPACK. High compiler optimizations are used. [65] A. R. Rocha, V. M. García-Suarez, S. Bailey, C. Lambert, J. Ferrer, and S. Sanvito, Phys. Rev. B 73, 085414 (2006). [66] N. Papior, T. Gunst, D. Stradi, and M. Brandbyge, Phys. Chem. Chem. [Phys.](http://dx.doi.org/ 10.1039/C5CP04613K) 18, 1025 (2016). [67] “Atomistix ToolKit version 2014.3,” (2014). [68] M. Otani and O. Sugino, Physical Review B 73, 115407 (2006). [69] T. Brumme, M. Calandra, and F. Mauri, Physical [Review](http://dx.doi.org/10.1103/PhysRevB.89.245406) B 89, 1 (2014). [70] T. Ohta, A. Bostwick, J. McChesney, T. Seyller, K. Horn, [and E. Rotenberg, Physical Review Letters](http://dx.doi.org/ 10.1103/PhysRevLett.98.206802) 98, 206802 (2007). [71] M. Engelund, N. R. Papior, T. Frederiksen, A. García-Lekue, and D. Sánchez-Portal, (2016). [72] J. C. Johannsen, S. Ulstrup, F. Cilento, A. Crepaldi, M. Zacchigna, C. Cacho, I. C. E. Turcu, E. Springate, F. Fromm, C. Raidel, T. Seyller, F. Parmigiani, M. Grioni, and P. Hofmann, Physical Review [Letters](http://link.aps.org/doi/10.1103/PhysRevLett.111.027403) 111, 027403 (2013). [73] I. Gierz, J. C. Petersen, M. Mitrano, C. Cacho, I. C. E. Turcu, E. Springate, A. StÃČÂűhr, A. KÃČÂűhler, U. Starke, and A. Cavalleri, Nat Mater [12](http://dx.doi.org/10.1038/nmat3757), 1119 (2013). [74] T. N. Todorov, Journal of Physics: [Condensed](http://dx.doi.org/10.1088/0953-8984/14/11/314) Matter 14, 3049 (2002). [75] D. J. Mason, D. Prendergast, J. B. Neaton, and E. J. Heller, Physical Review B 84, 155401 (2011). [76] J. Ferrer, C. J. Lambert, V. M. García-Suárez, D. Z. Manrique, D. Visontai, L. Oroszlany, R. Rodríguez-Ferradás, I. Grace, S. W. D. Bailey, K. Gillemot, H. Sadeghi, and L. a. Algharagholy, New Journal of [Physics](http://dx.doi.org/10.1088/1367-2630/16/9/093029) 16, 093029 (2014). [77] D. S. Fisher and P. A. Lee, Phys. Rev. B [23](http://dx.doi.org/10.1103/PhysRevB.23.6851), 6851 (1981). [78] A. L. Yeyati and M. Büttiker, Phys. Rev. B [62](http://dx.doi.org/10.1103/PhysRevB.62.7307), 7307 (2000). [79] B. A. Lippmann and J. Schwinger, Physical [Review](http://dx.doi.org/10.1103/PhysRev.79.469) 79, 469 (1950). [80] B. G. Cook, P. Dignard, and K. Varga, Physical Review B 83, 205105 (2011). [81] R. Lake, G. Klimeck, R. C. Bowen, and D. Jovanovic, Journal of Applied [Physics](http://dx.doi.org/10.1063/1.365394) 81, 7845 (1997). [82] Typically this is a problem for systems with relatively large bulk transmissions compared to the transmission. If the number of incoming channels are only a couple of magnitude orders larger than the transmission the numerical precision is adequate. - A _n−_ 1 _−_ Y _n−_ 1 blocks as �� Y _n_ = C _n_ and - A _n_ +1 _−_ X _n_ +1 it is a dense matrix. [83] M. Paulsson and M. Brandbyge, Physical [Review](http://dx.doi.org/10.1103/PhysRevB.76.115117) B 76, 1 (2007). [84] N. L. Schneider, J. T. Lü, M. Brandbyge, and R. Berndt, Physical Review [Letters](http://dx.doi.org/10.1103/PhysRevLett.109.186601) 109, 186601 (2012). [85] J. T. Falkenberg and M. Brandbyge, Beilstein Journal of [Nanotechnology](http://dx.doi.org/10.3762/bjnano.6.164) 6, 1603 (2015), [arXiv:1505.03267.](http://arxiv.org/abs/1505.03267) [86] N. L. Schneider, N. Néel, N. P. Andersen, J. T. Lü, M. Brandbyge, J. Kröger, and R. Berndt, Journal [of](http://dx.doi.org/ 10.1088/0953-8984/27/1/015001) Physics: Condensed Matter 27, 015001 (2015). [87] N. R. Papior, “sisl: [0.7.1,”](http://dx.doi.org/10.5281/zenodo.56509) (2016). [88] J. D. Gale and A. L. Rohl, Molecular [Simulation](http://dx.doi.org/10.1080/0892702031000104887) 29, 291 (2003). [89] A. A. Mostofi, J. R. Yates, G. Pizzi, Y.-S. Lee, I. Souza, D. Vanderbilt, and N. Marzari, Computer [Physics](http://dx.doi.org/10.1016/j.cpc.2014.05.003) Communi cations 185, 2309 (2014). [90] Y. Hancock, A. Uppstu, K. Saloriutta, A. Harju, and M. J. Puska, Physical Review B 81, 245402 (2010). [91] V. M. García-Suárez and C. J. Lambert, New Journal of Physics 13 [(2011),](http://dx.doi.org/10.1088/1367-2630/13/5/053026) 10.1088/1367-2630/13/5/053026, [arXiv:1101.2778.](http://arxiv.org/abs/1101.2778) [92] G. C. Solomon, C. Herrmann, T. Hansen, V. Mujica, and M. A. Ratner, Nat Chem [2](http://dx.doi.org/ 10.1038/nchem.546), 223 (2010). [93] K. Stokbro, J. Taylor, M. Brandbyge, J. L. Mozos, and P. Ordejón, Comput. Mater. [Sci.](http://dx.doi.org/ 10.1016/S0927-0256%0x2802%0x2900439-1) 27, 151 (2003). [94] P.-O. Löwdin, The Journal of [Chemical](http://dx.doi.org/10.1063/1.1747632) Physics 18, 365 (1950). [95] T. Rangel, G.-M. Rignanese, and V. Olevano, Beilstein Journal of [Nanotechnology](http://dx.doi.org/10.3762/bjnano.6.128) 6, 1247 (2015). [96] H. J. Monkhorst and J. D. Pack, Physical Review [B](http://dx.doi.org/10.1103/PhysRevB.13.5188) 13, 5188 (1976). [97] J.-S. Wang, J. Wang, and T. J. Lü, The European Physical Journal B 62, 381 (2008). [98] A. Dhar, Advances in Physics 57, 457 (2008). [99] N. Li, J. Ren, L. Wang, G. Zhang, P. Hänggi, and B. Li, Reviews of Modern Physics 84, 1045 (2012). [100] W. Zhang, T. S. Fisher, and N. Mingo, Numer. Heat Transf. Part B Fundam. 51, 333 (2007). [101] T. Yamamoto and K. Watanabe, Physical Review [Letters](http://dx.doi.org/10.1103/PhysRevLett.96.255503) 96, 255503 (2006). [102] P. Y. Huang, C. S. Ruiz-Vargas, A. M. van der Zande, W. S. Whitney, M. P. Levendorf, J. W. Kevek, S. Garg, J. S. Alden, C. J. Hustedt, Y. Zhu, J. Park, P. L. McEuen, and D. A. Muller, Nature 469, 389 (2011). [103] P. Yasaei, A. Fathizadeh, R. Hantehzadeh, A. K. Majee, A. El-Ghandour, D. Estrada, C. Foster, Z. Aksamija, F. Khalili Araghi, and A. Salehi-Khojin, Nano Lett. 15, 4532 (2015). [104] J. N. B. Rodrigues, N. M. R. Peres, and J. M. B. Lopes dos Santos, J. Phys. Condens. [Matter](http://dx.doi.org/ 10.1088/0953-8984/25/7/075303) 25, 075303 (2013). [105] D. W. Brenner, O. a. Shenderova, J. a. Harrison, S. J. Stuart, B. Ni, and S. B. Sinnott, J. Phys. Condens. Matter 14, 783 (2002).

섹션 본문 99문단 · 66,670자

(제목 없음)

1We present novel methods implemented within the non-equilibrium Green function code (NEGF) transiesta based on density functional theory (DFT). Our flexible, next-generation DFT-NEGF code handles devices with one or multiple electrodes (Ne ≥ 1) with individual chemical potentials and electronic temperatures. We describe its novel methods for electrostatic gating, contour optimizations, and assertion of charge conservation, as well as the newly implemented algorithms for optimized and scalable matrix inversion, performance-critical pivoting, and hybrid parallellization. Additionally, a generic NEGF "post-processing" code (tbtrans/phtrans) for electron and phonon transport is presented with several novelties such as Hamiltonian interpolations, Ne ≥ 1 electrode capability, bond-currents, generalized interface for user-defined tight-binding transport, transmission projection using eigenstates of a projected Hamiltonian, and fast inversion algorithms for large-scale simulations easily exceeding 10 6 atoms on workstation computers. The new features of both codes are demonstrated and bench-marked for relevant test systems. * The transport of charge, magnetic moments and, in general, any sort of excitation is a fascinating fundamental physical problem that has demanded attention for a long time[1]. Today, the interest is enhanced by the technological needs of an industry increasingly based on devices whose detailed atomistic structure matters [2], but the treatment of transport is still a formidable open task. Spurred by the fast developments of the microelectronic industry, the first attempts to understand electronic transport at the atomic scale where based on scattering theory[3]. The electron transmission between two semi-infinite reservoirs was treated in a time-independent fashion solving the scattering matrix connecting the reservoirs. At this stage, transport was described as one-electron scattering by a static contact region and this granted access to many concepts and to devising new experiments[4][5][6]. However, the problem is fundamentally a non-equilibrium one that requires evolving many-body states[7][8][9][10].Density functional theory (DFT) has been one method to address some aspects of this problem. Conceptually, DFT is a mean-field many-body theory of the ground state. As such, it can in principle give exact results for the linear conductance because the linear response is a property of the ground state[11]. Beyond linear conductance, not even ideal DFT works because of the need to describe excited states and dynamics of the system. Such limitations may be mitigated by using time-dependent DFT[12,13], but going beyond the linear regime is highly nontrivial. A main issue of a DFT description stems from the approximations made to compute the ground state. Indeed, it has been recently shown that cases where strong correlations rein, such as the Coulomb blockade regime, the commonly used exchange-and-correlation functionals fail and new ones have to be used[14].Probably the most significant conceptual and practical problem comes from the use of the Kohn-Sham electronic structure as the working basis for transport calculations[15]. While this has many limitations and restrictions[14][15][16][17][18]it currently seems to be the most practical way of obtaining insight based on atomistic modeling[17,18]. For the range of systems where DFT is thought to be of quantitative value, efficient and accurate codes based on a combination of DFT and non-equilibrium Green function (NEGF) theory have been implemented. The collection of such DFT-NEGF codes is an ever growing list[19][20][21][22][23][24][25][26][27][28][29][30], but few are multi-functional in the sense of having predictive power for a variety of physical properties (electrical and heat conductivity, influence of heat dissipation, etc.) and flexible enough to describe realistic experimental situations (e.g., complicated chemical compounds, multi-terminal setups, and devices involving thousands of atoms).In the present work, we report on a complete rewrite of the transiesta DFT-NEGF code. An emphasis has been put in increasing both the efficiency and the accuracy of the calculations. The new transiesta presents: 1) a huge performance increase using advanced inversion algorithms on top of efficient threading, 2) an efficient generalization of equations for multi-terminal systems, 3) a new treatment of thermoelectric effects by allowing temperature gradients, 4) new gate methods in conjunction with improved electrostatic effects, 5) new contour integration optimizations for improved convergence, and 6) a fully flexible tight-binding functionality using Python as back-end.The paper is organized as follows: Section II is devoted to the general framework of a multi-terminal formulation within DFT-NEGF while section III deals with the implementations specific to transiesta. In Sec. IV we finally cover a generic "post-processing" NEGF code (tbtrans/phtrans) to compute, among other features, electron and phonon transmissions with inputs from a DFT-NEGF description (i.e., transiesta or similar software) or simply from some user-supplied tight-binding parameters.II. GREEN FUNCTION THEORYThe central aim of DFT-NEGF is to obtain a self-consistent description of the electron density ρ and the effective Kohn-Sham Hamiltonian H for an open quantum system coupled to one or more electrodes. These electrodes are thought to be large enough to be unperturbed by the presence of electronic currents passing through the scattering region, i.e. that they can be considered in local equilibrium. However, if the electrodes are not in equilibrium with each other, the central part (system) will acquire a non-equilibrium electron density. In contrast to ground-state DFT, where the electron density is simply obtained by filling the Kohn-Sham states up to the Fermi level, such simple relation between occupations and states is not available in the non-equilibrium situation. Instead one can resort to Green function techniques as outlined below for the steady-state solution.The specifics governing the underlying methodology (siesta) for atomic-like basis-sets can be found elsewhere[20,31].Figure 1illustrates the kind of generic multi-electrode NEGF setup we have in mind in the remainder of the paper. For setups where periodic boundary conditions with given lattice vectors R, we apply Bloch k-point sampling possible for both the DFT-NEGF self-consistent calculation and the subsequent transport calculation. To keep clarity, we explicitly add the k dependence to the equations while e refers to an electrode index. Furthermore we write all equations generically with N e electrodes to clarify specifics related to any number of electrodes; N e ≥ 1. The following

I. INTRODUCTION

2expressions are used throughout the paper

3A e,k (z) = G k (z)Γ e,k (z)G † k (z),

4where G k /G † k is the retarded/advanced Green function at energy (with a small positive constant η = 0 + ), and H k = He ik·R , S k = Se ik·R , the Hamiltonian and overlap matrix at k in the scattering region with R being a lattice vector in the periodic directions. The self-energy and spectral function of electrode e are Σ e and A e , respectively, with associated broadening matrix Γ e . Lastly, ρ is the non-equilibrium density matrix. BZ denotes here, and in the following, the Brillouin zone average (i.e., it includes a normalization corresponding to the appropriate Brillouin zone volume). Equation (4) is the density matrix for equilibrium and non-equilibrium (disregarding bound states). We require a Hermitian Hamiltonian and express the chemical potential as µ, and the temperature as k B T . A combined quantity is defined ς ≡ {µ, k B T }. We will freely denote a Fermi distribution by n F,ς as well as n F,e where the latter implicitly refers to ς belonging to the electrode e. transiesta is also implemented with spin-polarization and we will omit the factor of 2 for non-polarized calculations, thus equations are for one spin-channel, unless otherwise stated. Lastly, we omit using the so-called "transport direction" which is ill-defined for nonparallel electrodes. As such our implementation of transiesta only deals with the semi-infinite directions of each electrode. This is apparent in N e > 2 calculations as performed in Refs. [32,33].

5Finally, we define another central quantity for the Green function technique, namely the energy density matrix E, as

6which enables force calculations under non-equilibrium situations [34,35].

A. Equilibrium (EGF)

7In (global) equilibrium all Fermi distribution functions are equal, i.e., n F,e ( ) = n F ( ), and Eq. (4) can be reduced to To circumvent the meticulous and tedious integration in Eq. (6) along the energy axis, it is advantageous to use the residue theorem [20]. The advantage is that the Green function, which varies quickly near the poles on the real axis, is analytic and much smoother in the complex plane, which in turn allows for numerically accurate quadrature methods. An example of the smoothing in the complex plane can be found in the supplementary material (SM). As the Green function has poles on the real axis (the eigenvalues of its inverse) and the Fermi function n F has poles at z ν = ik B T π(2ν + 1) with Res n F (z ν ) = k B T for ν ∈ N, we have according to the residue theorem that

8which follows if z ∈ R + iη, η → 0 + .

9An example of two different, but mathematically equivalent, contours are shown in Fig. 2a. To calculate the real axis integral one divides the enclosed contour into the integral along the real axis and the remaining of the contour. We note that n F (z) → 0 for z E F which avoids the need for a fully enclosed contour as lim z→∞+iη (S/L)up Rup dzf (z)n F (z) → 0. We stress that all enclosed contours in the lower/upper complex plane are mathematically equivalent, as long as the lower bound is below the lowest eigenvalue in the Brillouin zone. The residue theorem can be applied two times for G k (z) − G † k (z): We use the positive part of the imaginary coordinate system with Im z > 0 for integrating G k (z), and the negative part of the imaginary coordinate system with Im z < 0 for integrating G † k (z). This is indicated in Fig. 2a/b with R +/− , respectively. Importantly, the imaginary part of the line contour L/S should be chosen large enough so that the Green function indeed is smooth. A higher number of poles increases the distance to the real axis. Thus one should take care of the number of poles used in the calculation as the imaginary part is solely determined by the temperature. For 10 poles and a temperature of 25 meV the imaginary part becomes ∼ 1.57 eV. We emphasize that to ensure a consistent interpretation, irrespective of the electronic temperature, it is better to derive the number of poles from a fixed energy scale on the imaginary axis rather than choosing it directly. Furthermore, it is required that the lower bound of the contour integration is well below the lowest eigenvalue of the system as the Green function fans out when increasing the complex energy. See the SM for an interactive illustration of these points.

B. Non-equilibrium (NEGF)

10Non-equilibrium arises due to differences between the electrode electronic distributions via ς e = ς e . That is, either a chemical potential difference, an electronic temperature difference, or a combination of these. We define the bias window with a lower/upper bound as min(µ e )/max(µ e ) with appropriate tails of the Fermi functions. Starting from Eq. (4) and adding

11(note that the products A e ,k (z)n F,e ( ) refer to different electrodes) we can write the density matrix as

12where we call ∆ e e a non-equilibrium correction term for the equilibrium density of electrode e due to electrode e . This reduces the real axis integral to be confined in the bias window with respect to the different Fermi distributions. Equation (9) deserves a few comments. It can be expressed equivalently for all electrodes e, and thus one finds N e different expressions for the same density ρ = ρ e neq = ρ e neq = · · · . If two or more electrodes have the same Fermi distribution, ς e = ς e , we find ρ e eq = ρ e eq and ∆ e e = 0, thus we can reduce N e to N ς different expressions. So for any N e > 2 electrodes with 2 different Fermi distributions we only have 2 equations with different terms (although the two equations are mathematically equivalent). We stress that the number of correction terms ∆ e e for each electrode depends on the number of equivalent Fermi distributions. Equivalently, Eq. (9) can be written more compactly as

13where e|ς e = ς are electrodes with Fermi distributions different from ς. Equation (9) is equivalent to Eq. (12) where the former have possible duplicates and the latter does not. These considerations also apply to the (non-equilibrium) energy density matrix, Eq. (5), in a similar manner. Compared to the equilibrium case (Sec. II A) we note that the non-equilibrium case is numerically more demanding in terms of matrix operations as the calculation of ρ, in addition to the inversion for G k (z) needed in Eq. (6) and Eq. (10), also requires the evaluation of triple matrix products for A e,k , as seen in Eq. (11).

A. Complex contour optimization

14The equilibrium contour in NEGF calculations can be chosen from a range of different shapes and methods to integrate. Here we describe the nontrivial task of selecting an optimum equilibrium contour. We have implemented several different methods, from Newton-Cotes to advanced quadrature methods, using Legendre polynomials or Tanh-Sinh quadrature [36]. Both circle and square contours are possible. Furthermore the continued fraction method suggested by Ozaki [28] is also implemented. Its strength is that it has only one convergence parameter, which is the number of poles, whereas the quadrature methods have (at least) three convergence parameters(number of poles (z i ), points on the line L + , and points on circle/square C + /S + ).

15A novel selection of quadrature points in C + /S + can be realized by examining Fig. 2. It is evident that the two contours C +/− for the retarded and advanced Green function add up to a connected circle. Hence we can consider them as one integration path and choose the quadrature to span the entire C + + C − contour. In practice one only chooses the right half of the abscissa on the C + + C − contour and effectively one uses a half quadrature on the C + contour. We will denote this as the right-side scheme. This trick allows one to slightly reduce the number of equilibrium contour points without loss of accuracy [37].

16In order to illustrate the convergence properties of the equilibrium contour we have investigated a two-electrode gold (slab) system which is connected via a one-dimensional (1D) chain and calculated the free energy as a function of contour points. As the convergence path is non-deterministic and the "correct" value cannot be found we define the error against the free energy calculated with 300 energy points on the respective contour. As such the reference is itself. We stress that this study is difficult to extrapolate to arbitrary systems, yet it can be indicative of the convergence properties for the different quadrature methods and illustrates how critical the choice of method can be. The results are seen in Fig. 3. The circle and square quadratures have 16 poles and the circle uses 10 L + points. Both the circle and square contours are presented using both the standard and the right-side scheme as well as the continued fraction method. Note that the numerical accuracy limits the error to 10 −6 .

17We see that the circle contour benefits from the right-side scheme which performs the best in this setup. On the contrary, the square contour does not benefit from the right-side scheme. Furthermore, we see a slow convergence 20 3. Test calculation on a metallic one-dimensional gold chain using Gaussian quadrature methods. Comparison of the square contour vs. the circle contour using the variants of integration methods: Regular Legendre, Legendre-right-side and Simpson quadrature. The Legendre-right-side seems better or at least on-par with the regular Legendre quadrature on the circle contour.

18of the Simpson method (order 3 of Newton-Cotes method). Lastly, the continued fraction scheme [28] converges fast and indeed is a powerful method due to its simplicity. We stress that changing the initial L + and/or number of poles will change the convergence properties of the shown methods.

B. Weighing ρ and bound states

19As shown in Sec. II B several different expressions exist for the non-equilibrium density matrix ρ neq , depending on the choice of electrode for the equilibrium part in Eq. (9) and Eq. (12). Under non-equilibrium conditions these expressions numerically yield different densities, in particular if bound states are present. Per definition bound states do not couple to any of the electrodes via the spectral function, i.e., ψ bound |A e |ψ bound = 0. Their contributions to the non-equilibrium density ρ neq thus only derive from Eq. (10) -but never from Eq. (11) -as bound states are included in the electronic spectrum of G k (z). The filling level of bound states thus depends on the choice of equilibrium electrode in Eq. (10).

20To avoid the arbitrariness of selecting one equilibrium electrode, and to reduce numerical errors, the physical quantity ρ neq is expressed as an appropriate average over each of the numerically unequal expressions

21where w e is an appropriately chosen weight function satisfying e w e = 1. Several DFT-NEGF implementations apply such a weighing scheme, but with differences in the particular choice of weights w e [20,27,38]. We extend the argumentation of Ref. [20] for the weighing to a multi-terminal expression, and find the weights that minimize the variance of the final density to be

22where Var[∆ e e ] ≡ (∆ e e ) 2 is the expected variance of the correction term which is defined similarly to Ref. [20]. The derivation of the expression for w ς is in the SM. Additionally, 12 different weighing schemes have been checked to infer whether they might provide a better estimate of ρ neq . However, we have found that the argumentation in Ref. [20] provides the best physical interpretation and also the best weighing. It is outside the scope of this paper to document their differences, yet they are available for end users.

23If bound states are present in the system we weigh each equilibrium contribution equally. An example of the ambiguity of selecting the proper weight of bound states can be found in the SM.

24FIG. 4. Block-tri-diagonal inversion algorithm shown in terms of the Hamiltonian elements of a 2-electrode system. The inverse Greens function consists of block matrices in the diagonal and lower/upper diagonals denoted by Ai and Bi/Ci, respectively. The surface self-energies are calculated from the bulk electrode and the self-energies are propagated through the system, allowing one to calculate the exact Green function in any block of the infinite matrix.

25C. Inversion algorithms and performance siesta uses localized basis-orbitals (LCAO) which inherently introduce sparse Hamiltonian, density, and overlap matrices. The sparsity of the density matrix means that one only needs to compute the Green function for the appropriate non-zero elements. Further, in the NEGF formalism this computation relies on the inversion of the Hamiltonian and the overlap matrices (and self-energies). It is then beneficial to utilize specialized algorithms that can deal with this selected inversion.

26Several inversion strategies have been explored [20,[39][40][41][42][43][44][45][46][47][48][49][50][51] which all have their advantages and disadvantages. The MUMPS and SelInv methods are very efficient for calculating a small subset of the inverse matrix (EGF), while for dense parts of the matrix they are less effective (NEGF) [39,40,[44][45][46][47]. transiesta originally implemented direct inversion using LAPACK [20,52].

27In the following we will present 3 different inversion algorithms [20,[39][40][41][53][54][55], 1) direct (LAPACK), 2) sparse (MUMPS) and 3) block-tri-diagonal (BTD). The methods are all implemented in two variants, Γ-only (k = 0) and arbitrary k-point, to limit memory usage where applicable. In the following we omit the explicit k-dependence without loss of generality. For the non-equilibrium part of the contour a triple product of a Green function block column is required to calculate the spectral function in the non-zero elements of the density matrix. To calculate the spectral function, the needed block columns are those where Γ e is non-zero, i. e.

28Equation (16) is implemented for the 3 inversion algorithms which substantially reduces memory requirements, and particularly so for the BTD method.

Block-tri-diagonal inversion

29Our block-tri-diagonal matrix inversion algorithm has become the default method in transiesta. This algorithm was originally described in Ref. [53] while we follow the simpler outlined form in Refs. [54,55]. Often, this method is known as the recursive Green function method which corresponds to creating a quasi 1D, block tri-diagonal matrix.

30The algorithm can be illustrated as shown in Fig. 4 and follow these equations

31A i , B i and C i correspond to the non-zero elements of zS − H − e Σ e , cf. Eq. (1). Y n /X n can be thought of as the self-energies connecting to a previous sequence of Y m /X m for n > m/m > n. These are sometimes denoted the "downfolded" self-energies and are indicated in Fig. 4. For instance Y 2 corresponds to a self-energy of an infinite bulk part connecting to A 1 . Note that only for a Left/Right terminal system with strict ordering of orbitals will A 1 = zS 1,1 − H 1,1 − Σ Left and A p = zS p,p − H p,p − Σ Right . Importantly the Y i / X i matrices can be calculated using a linear solution instead of an inversion and subsequent matrix-multiplication [56]. The strict ordering of the self-energies is not a requirement and Σ e may be split among any sub-matrices [57] A i , B i or C i . Calculating any part of the Green function then follows the iterative solution of these equations

32The algorithm for the above calculation is shown in Fig. 5.

33For the non-equilibrium part the straightforward implementation of the column product in Eq. (16) involves calculating the full Green function column for columns of the scattering matrix and a subsequent triple matrix product for each block. However, it may be advantageous to utilize the propagation of the spectral function by using Eqs. (18) which inserted into Eq. (16) yields

34Recall that A e,i,i = G i,i Γ e G † i,i . Importantly Eqs. (19) are recursive equations similar to Eqs. (18). The propagation of the spectral function is often faster than the straightforward method. The algorithm for the propagation method is shown in Fig. 5. To reduce computations we calculate X i , Y i and the diagonal Green function elements where Γ e lives for all N e and store these quantities in one BTD matrix. Subsequently we calculate the spectral function for each electrode separately in another BTD matrix (without re-calculating X i , Y i ) to drastically reduce computations.

35It is important to note that the required elements of the density matrix are only those of the block-tri-diagonal matrix (G and A e ) corresponding to the elements shown in Eq. (17). For G, Eq. (18), one only calculates G i,i , G i+1,i and G i,i+1 and similarly for A e . For the latter we only use the upper-left and lower-right algorithms as presented in Eq. (19).

Orbital pivoting for minimizing bandwidth

36The performance of the BTD algorithm is determined solely by the bandwidth of the Hamiltonian matrix, i. e. the size of the A n blocks. The bandwidth is an expression of the quasi 1D size of the system and is defined as

37Internally, the sparsity pattern in siesta is determined via the atomic input sequence. However, this sparsity pattern will rarely have the minimum bandwidth, particularly so for N e = 2. To minimize the matrix bandwidth, and increase performance, we have implemented 5 different pivoting methods, 1) connectivity graph based on the Hamiltonian sparse pattern, 2) peripheral connectivity graph based on a longest-path solution before a connectivity graph between end-points, 3) Cuthill-Mckee [58], 4) Gibbs-Poole-Stockmeyer [59], and 5) generalized Gibbs-Poole-Stockmeyer [60]. The first 2 are developed by the authors and exhibit a good bandwidth reduction of the matrix for a majority of systems. The latter 3 methods are used in interaction graphs with few nodal points which may be the reason for their, sometimes, poor bandwidth reduction capability in atomic structure calculations. For cases of many nodal points per point, such as for 3D bulk structures, each of the methods yield different optimal orderings. Currently there exists no omnipotent method for bandwidth reduction and we encourage checking the different methods for each system. One for all e ∈ {1, . . . , Ne} do 6: if any(column(e)) ∈ Mi,i then 7: calc(i) ← True 8: if m + n < 2i then 24:

38Mm,n ← Mm,n(−1) m+n

29:

39end for 30: ρ e neq ← M 31: end for FIG. 5. The algorithm used for inverting a generic BTD matrix as well as columns for calculating the spectral function in NEGF calculations. The EGF algorithm is a direct recursive algorithm [55], while the NEGF algorithm is a modification to reduce the memory requirement for calculating the spectral function. may greatly increase pivoting performance by using the atomic graph, rather than the orbital graph. Indeed there is, obviously, little to no difference between the atomic and orbital graphs.

40Pivoting becomes increasingly important when considering N e > 2 electrodes as the quasi 1D block-partitioning becomes less obvious. In Fig. 6 we illustrate the naive block partition for N e = {2, 3, 4} together with an improved partitioning. For N e = 2 the naive is a good partitioning. The naive N e = 3 problem will create a big block for p = 2 which will decrease performance. However, by grouping two electrodes the quasi-1D problem can be much improved. Grouping should be chosen to minimise all block sizes, e.g. if the self-energy bandwidth, Eq. (20), of B(Σ 2 ) > B(Σ 1 ) + B(Σ 3 ) then branches Σ 1 and Σ 2 should swap places in Fig. 6b. Similarly for N e = 4 two groups occur for both ends of the quasi 1D matrix. The grouping of electrodes can easily be generalised for any N e electrodes dependent on the branch sizes.

41Pivoting complicates the triple product Eq. (16) due to partitioning of the scattering matrix with respect to the Green function. However, each block A n can be sorted such that Γ e becomes consecutive in memory for optimal performance. This will maximally split Γ e into two blocks. We stress that splitting the broadening matrices, Γ e , up into two blocks, if possible, is more beneficial than retaining a single block because the bandwidth of the tri-diagonal matrix will be smaller.

Performance of inversion algorithms

42A timing comparison of the three methods against transiesta 3.2 [20] is shown in Fig. 7. A pristine graphene system is used with square electrodes of 48 atoms, corresponding to 2 × 6 (zigzag by armchair directions, respectively). Figure 7a show the timing for differing lengths of pristine graphene up to ∼6,000 orbitals[61] using an EGF calculation. Figure 7b is the same calculation but with a high applied bias of 0.75 V (resulting in an equal amount of non-equilibrium and

43FIG. 6. Quasi 1D partitioning in 3 parts (divided by dashed lines), for varying number of electrodes. The dotted lines denote the cell boundary and the fully drawn lines encompass the atoms/Hamiltonian elements. Σi are the self-energies that couple the device to the semi-infinite electrodes. The crossed illustrations are the naive partitioning of the quasi-1D system (the naive partitioning for Ne = 2 is the best partitioning), whereas a better quasi-1D pivoting is also shown. Note that in any of the systems shown, the ordering of the self-energies can be swapped at will. equilibrium contour points). MUMPS performs very well for EGF while NEGF is rather inefficient due to clustering of columns. Further studies of MUMPS have shown that it performs better for more than ∼5,000 orbitals as the sparsity increases [62]. Lastly, the BTD method is performing extremely well reaching around 100 times better performance on systems at 5,000 orbitals. Doing even larger systems will only increase the speedup even more so. In all investigated systems we have found an impressive speedup for the BTD method.

Parallelization

44Our inversion methods are parallelized across energy points, meaning that each MPI process handles one energy point on the contour, but needs to hold the complete (non distributed) matrices in memory. As the matrices dealt with in transiesta can become of GB size depending on the width of the electrodes, this parallelization scheme might hit the physical memory limit. To circumvent this we have updated the transiesta code to enable full hybrid parallelization with OpenMP 3.1 threading [63]. Thus instead of using N tot MPI processes and reaching the memory limit, one can use N tot /N T processes and N T threads per process. The threads pool their associated memory resources, pushing the practical limit by a factor of N T , and linear scaling is retained. Figure 7c shows the threading performance for transiesta on different hardware [64] using a single node, hence MPI-communication can be considered negligible for hardware with multiple sockets. In our implementation an increase in the number of MPI processes would not affect the threading performance, however additional MPI processes would increase MPI communication time, thus favoring threading for large number of MPI processes. The graphene test system consists of 11 BTD blocks with an average block size of N B = 830 using the k-space version of the BTD method with a bias. We expect this system to represent a typical medium sized system of 9,130 orbitals. We find that there is extremely good scaling up to 4 threads. For higher number of threads the scaling is still good, but diverges. Threading is optimal for N B /N T ≫ 1 which is one reason for the limiting speedup for large thread-counts in the shown data. By calculating the parallel fraction using Amdahl's law we get roughly 95% across the investigated range of N T .

D. Bloch theorem and self-energies

45A performance-critical part of Green function implementations is an efficient calculation of the electrode selfenergies. It is beneficial both computationally and in memory cost to calculate the self-energy using the smallest unit-cell which can be repeated to form the larger super-cell corresponding to the electrode-device contact region. In transiesta we utilize Bloch's theorem and the corresponding k-point sampling when transverse periodicity is present. The Bloch expansion may be used for both the electrode Hamiltonian and the self-energies, given that the electronic structure is calculated at equivalent k sampling, i.e., that an electrode which repeats out X × Y times in the larger device unit-cell, must be computed on k mesh which is X × Y more dense. Bloch expansion along one cell (c) Threading performance using different hardware architectures running on a single node. Our test system has roughly 830 orbitals per BTD block and consists of 11 blocks in total. As the threading performance primarily stems from the threaded BLAS library one can see that the threading reaches a limit due to the rather small blocks.

46vector may be written in this short matrix form

47where Σ n /Σ 1 is the self-energy in the larger/smallest unit-cell and n is the number of times the smallest unit-cell is repeated to coincide with the larger unit-cell. Here R denotes the cell length of the small unit-cell. Lastly, k n is the k-point in the repeated super-cell. From Eq. (21) it can be inferred that one needs to calculate the self-energy Σ 1 for n k points instead of calculating Σ n once. However, calculating the self-energy scales cubic and using a smaller matrix is far more beneficial.

E. Electrostatics in NEGF

48The Hartree electrostatic potential plays an essential role for the NEGF calculations. In transiesta it is determined from the difference between the self-consistent electron density ρ(r) and the neutral atom density ρ atom (r) and solved using a Fourier transformation of the Poisson equation. transiesta implements a generic interface to correctly introduce the appropriate boundary conditions, fully controlled by the user.

49For a reasonable description of the electrostatics in the NEGF setup one generally requires that the electrode regions in the device essentially behave as bulk. This requirement ensures a smooth electrostatic interface between the device and the semi-infinite, enforced bulk electrodes. For metallic electrodes this may easily be accomplished as the electronic screening length is short (typically a few atomic layers). Additionally we allow buffer atoms which are non-participating atoms in the scattering region calculation. They may be used to screen electrodes such that smaller scattering regions may be used. Such constructs are useful when non-periodic or dissimilar electrodes are used. Along side with buffer atoms several other methodologies for improving the electrode/device interface exists, such as forcing the density to be bulk, or calculating ρ in the electrode region.

50In open boundary calculations, such as NEGF, one also needs to ensure that the Hartree potential fulfills the specific boundary conditions at the electrodes. We employ a formulation similar to the original implementation [20,65]. For N e = 2 and a shared semi-infinite direction a linear potential ramp can be used as a guess [20]. For unaligned semiinfinite directions the boundary conditions become non-trivial. The simplest initial guess for the Hartree potential to fulfill the boundary conditions is a box guess

51, for r ∈ r e 0 , for r ∈ r e where r e denotes the part in the real space grid where the electrode atoms reside. However, this introduces non-smooth potentials between the electrode and device region and it may only yield qualitative approximations to the actual Hartree potential. transiesta also allows custom Hartree potentials for improving convergence. It is recommended to provide a custom guess for N e > 2 as charge conservation and convergence can easily be improved. Note that the initial guess for the Hartree solution is linear in the difference between µ e , hence only one guess calculation of the Hartree potential is needed which makes this an in-expensive setup calculation. We have implemented a multigrid (MG) solver for the Poisson equation and applied it to a N e = 6 system with three different chemical potentials: [−V /2, 0, V /2], see Fig. 8b. The grid overlaying the geometry corresponds to the guessed Poisson solution for the MG method at 4 iso-values, V /2 (blue), −V /2 (red), V /10 (orange) and −V /10 (yellow). The Poisson solution is linearly dependent on V due to the linearity of the chemical potentials. The heavily colored atoms are electrodes, "behind" each electrode are 3 buffer atoms to retain a bulk-like electrode. It consists of three crossing linear chains with one carbon chain, one gold chain and one half-half carbon-gold chain. In Fig. 8a we plot the absolute charge difference from the expected charge after each SCF iteration for both the equilibrium case and for an applied bias of 1 V using two different initial guesses. All calculations settles after 8 iterations at nearly no charge difference. For the two non-equilibrium cases the custom MG method reduces the initial fluctuations compared to the box guess. In addition to the electrostatics associated with complex boundary conditions we also extend siesta (and transiesta) by enabling electrostatic gates, as described in Ref. [66]. This allows to introduce additional non-interacting electrodes to act as gates. Several implementations of electrostatic Hartree gates use an explicit Hartree term V H (r) [28,67] while other implementations deal with the additional electrostatic terms arising from the charge distribution in the gate material [68]. We have implemented both a Hartree gate and a charge gate with few restrictions on the geometry of the gate. The geometries includes spherical, planes, rectangles and/or boxes are all allowed, further details can be found in Ref. [66]. The Hartree gate is similar to that in Refs. [28,67] while the charge gate is a phenomenological model resembling Refs. [68,69]. Due to the simplicity of the Hartree gate we will instead focus here on explaining the charge gate method, with which one can simulate complex gate configurations in both NEGF and regular, 3D-periodic DFT calculations [66]. Figure 9 shows an example of a charge gate introduced in DFT periodic calculations containing 10 graphene layers (AB stacking). The charge gate is placed 20 Å away from (and parallel with) the first graphene layer. A strong gate corresponding to 0.015e − per graphene unit-cell is applied and the resulting charge re-distribution is dependent on the screening length of graphite. By fitting an exponential function to the charge response we calculate the decay length for the electronic screening length of the electric field. Note that this decay length is a function of the electric field and the doping level. The decay length of λ = 2.4 Å corresponds well to experimentally found values for similar gate levels [70]. We have also tested this on fewer layers with consistent results.

F. Charge conservation

52A recurring issue with NEGF calculations is excess charge compared to a charge neutral device region. Especially, for weakly screening systems and for non-equilibrium the SCF loop may converge slowly and with great difficulty due to larger deviations from charge neutrality in the beginning of the SCF loop [71]. To remedy this we have implemented an option which introduces a shift in the potential inside the device region, d , which sometimes can push the SCF loop towards the self-consistent solution with a charge neutral device region or that the assumption of equilibrium in the electrodes

53The potential shift is obtained from the requirement that the net charge of the device region, q D , should be zero. We use the total device DOS, D( R ), at an initial energy reference level, R , located in the bias window,

54We assume here that the DOS vary slowly on the scale of the bias and k B T such that the reference energy is not critical. To lowest perturbation order in the potential shift we get a change in the density matrix in terms of the spectral density matrix, ∆ρ = d (dρ( R )/d ), which when added to ρ in the SCF loop enforces a charge neutral device region. During the SCF-loop we then update the reference energy R ← R + d . When the SCF-loop has converged we can check the degree of charge neutrality δq and potential shift, d . These should both be small such that the feature can be turned off in a restarted calculation and converge without being invoked. If this is not possible it may indicate that the device region has a too short screening region towards the electrodes or, for high bias, that the approximation of equilibrium density and potential in the electrodes is not adequate.

G. Thermoelectric effects under NEGF

55To the authors knowledge, thermoelectric effects are currently only studied under equi-temperature distributions for NEGF calculations. However, in principle such effects require population statistics to be correctly described using self-consistent NEGF calculations. Our implementation naturally permits such generality as the chemical potential and electronic temperature can be set independently for each electrode.

56As an example of how different electronic temperatures in the electrodes can impact the electronic structure in the device region we have performed calculations for a simple 1D setup consisting of a central C atom weakly coupled to two semi-infinite, 1D C-wires (lattice constant a = 1.30 Å). The C-C distance between the central atom and the electrodes was set to d = 2.50 Å. According to the band structure of the electrodes (not shown), the 2p x and 2p y orbitals on the equidistant lattice sites form a degenerate, half-filled band, which couples to the 2p x and 2p y orbitals of the central C-atom. This situation leads to the degenerate resonance structure in the transmission function as shown in Fig. 10a. Note that the position of this transmission resonance, i.e., the energetic position of the C-atom 2p x and 2p y orbitals, varies substantially for the three considered choices of the electrode temperatures. The thermoelectric calculations for the electron current shown in Fig. 10b correspond to the situation in which the electronic temperature of the left (right) electrode is fixed at T L = 3000 K (T R = 300 K) in the Landauer formula, but where different temperature settings are used in the underlying self-consistent DFT-NEGF calculation as detailed in the figure legend.

57These results exemplify that in situations with temperature differences between the electrodes, the fully selfconsistent IV characteristics (black curve in Fig. 10b) cannot be determined using a uniform temperature (red or blue curves in Fig. 10b). While the extreme temperature difference and narrow resonance at play in this example may seem far away from practical situations, we emphasize that it is generally desirable to be able to include this temperature effect at no additional computational cost. We further speculate that these methods could find relevance to describe situations with effective electronic temperatures substantially above the lattice temperature, e.g., as originating from optical driving [72,73].

IV. GREEN FUNCTION TRANSPORT AND TECHNIQUES

58As a post-processing tool for DFT-NEGF calculations of the self-consistent Hamiltonian, we have also developed the next-generation tbtrans (and its offshoot phtrans). tbtrans enables the calculation of electronic transport, electronic thermal energy transport, phonon transport (phtrans), and provide analysis tools such as the (spectral) density of states, the sub-partition eigenstate projected transmission (molecular or phonon eigenmode), interpolated I-V curves, transmission eigenvalues and orbital/bond-currents [74]. Thus it is possible obtain thermoelectric quantities such as the Seebeck and Peltier coefficients as well as calculation of thermoelectric figure-of-merit including lattice heat-transport in the harmonic approximation. All features are enabled for general multi-electrode (N e ≥ 1) setups. The features discussed below -transmission functions, (spectral) density of states, sub-partition eigenstate projected transmissions, transmission eigenvalues, and bond-currents -encompass both the electronic and phononic versions, but for brevity we refer only to the electronic part in the following.

59Besides input from DFT calculations tbtrans is also able to handle general user-created tight-binding models or by using Hamiltonians from other sources (Wannier basis, etc.). Thus tbtrans is now a stand-alone application capable of being used for large-scale, ballistic transport calculations. For example, simulations of square graphene flakes exceeding 10 6 atoms may easily be done on typical office computers (one orbital/atom). An interface on top of tbtrans for creating corrections to DFT -such as scissor, LDA+U, magnetic fields, etc. -has also been created such that the capabilities of tbtrans are not restricted by the developers, but, in principle, by the user. This interface also allows the extraction of Hamiltonians from other programs to the tbtrans format. Other efficient methods involve similar constructs [75,76].

A. Transmission function for Ne electrodes

60The transmission functions can be calculated using the scattering matrix formalism and obtained from the Green function using the generalized Fisher-Lee relation [6,77,78] (or the Lippmann-Schwinger equation [79,80]). The elements of the scattering matrix, at a given k, can be written as

61where e and e refer to two electrodes and δ ee is the Kronecker delta. We implicitly assume energy dependence on all quantities. The transmission (probability) from electrode e to e is T ee ,k = Tr s † ee ,k s ee ,k = Tr G k Γ e,k G † k Γ e ,k , for e = e R e,k ,

62where reflection (probability) is defined as R e,k ≡ T ee,k . It is instructive to write the aggregate transmission T e,k out of an electrode e (see Ref. [81]) and the reflection R e,k as

63The reflection is here conveniently written as a difference between the bulk electrode transmission M e (i.e., number of open channels/modes in electrode e at the given energy) and the aggregate transmission T e (scattered part into the other electrodes). From Eqs. (25), (26) and (27) one may easily prove the transmission equivalence T ee ,k ≡ T e e,−k as well as T ee ,k = T ee ,−k based on time-reversal symmetry. Equation (26) displays an important, and often overlooked detail. In transport calculations with N e = 2, one can calculate the transmission using only a sub-diagonal part of the Green function and only one scattering matrix. We stress that the quantities calculated may have numerical deficiencies as Tr[(G − G † )Γ e ] and Tr[GΓ e G † Γ e ] may both be numerically large which leads to inaccuracies when the transmission is orders of magnitudes smaller than the reflection [82]. Further, the transmission may be split into transmission eigenvalues,

64where T i,ee ,k are the eigenvalues of the column matrix G k Γ e,k G † k Γ e ,k (e = e ) [83]. Due to the matrix product being a column matrix (Γ e have a limited extend due to the LCAO basis) the eigenvalue calculation can be reduced substantially by realizing the following equation,

65The transmission eigenvalues are for instance important when calculating Fano factors describing shot noise [84].

66Once the transmission function is calculated we can calculate the electrical current I ee and thermal energy transfer Q ee as

67where G 0 = 2e 2 /h is the conductance quantum (spin-degenerate case). When time-reversal symmetry applies one has the relations I ee = −I e e and Q ee + Q e e = (µ e − µ e )/|e|I ee ≡ W . The latter expresses that the net work done, W , equals the net heat supplied. We note that one may use efficient interpolation schemes for the BZ averages to reduce the required number of kpoints, which is typically much larger than the k-sampling necessary for the corresponding density matrix calculation [85].

B. Inversion algorithm -again

68The Green function algorithm in tbtrans is similar to the one in transiesta (but not the same). In Figs. 1 and 11 we exemplify the method. In Fig. 11a we show a regular two-terminal device with 8 partitions. In the BTD method one can down-fold the self-energy from the left ∞ block up till e.g. the block 6, using Eq. (17), or as explained in Refs. [41,53]. Then the current is calculated using the standard Eq. (30) based on the transmission evaluated from the down-folded quantities calculating the Green function Eq. (18) and self-energies in the sub-space of block 6. However, one could equally have chosen block 3, or the combined blocks 3 and 4. The advantage of this abstraction is threefold: 1) the Green function is obtained in the chosen blocks of interest only, 2) choosing fewer blocks reduces the computational complexity which greatly speeds up the calculation, and 3) choosing small blocks reduces the required memory which enables extreme scale calculations. From 1) it follows that quantities such as local density of states can be calculated at arbitrary positions in the calculation cell by selecting specific blocks. However, we note that for non-orthogonal basis sets an increased block including the overlap region is required in order to obtain LDOS, 10 (20) 11 (22) 12 (21) 13 (26) 14 (20) 15 (18) 16 (9) 17 (8) 18 (8) 19 (8) 20 (8) 29 (8) 30 (8) 31 (8) 32 (9) 33 (12) 34 (21) 35 (21) 36 (20) 37 (20) 38 (21) 39 (21) 40 (12) 41 (9) 42 (8) 43 (8) 44 (8) 53 (8) 54 (8) 55 (8) 56 (8) 57 (8) 58 (18) 59 (19) 60 (24) 61 (24) 62 (19) 63 (18) 64 (8) 65 (8) 66 (8) 67 (8) 68 (8) 1 (4) 2 (5) 3 (6) 4 (7) 21 (7) 22 (6) 23 (5) 24 (4) 25 (4) 26 (5) 27 (6) 28 (7) 45 (7) 46 (6) 47 (5) 48 (4) 49 (4) 50 (5) 51 (6) 52 (7) 69 (7) 70 (6) 71 (5) 72 (4) FIG. 11. The BTD algorithm in tbtrans. a) Partitioning of a standard two-terminal setup for the recursive Green function method (BTD). b) Connectivity graph for the Ne = 6 terminal device used in Fig. 8 where each dot represents an atom (non-black colored atoms correspond to an electrode) and every line represents one or multiple connections between the two atoms. Instead of calculating the Green function in the whole device space one can shrink the problem to a smaller region as long as the electrode branches do not couple directly to each other. An example region is shown with a dashed circle.

69Mulliken charges, etc. On the other hand, if one is only interested in the transmission/current one can resort to choosing the smallest block to achieve the highest throughput [41].

70Similarly, down-folding of the self-energies can also be achieved in an N e -terminal device. As an example, a 6-terminal system (e.g., the setup in Fig. 11b) can be split into several blocks with their own downfolding of selfenergies. One chooses a region D (see Fig. 1) and the extended electrode regions may be used to down-fold the self-energy. However, one may not choose D such that either of the electrodes are directly coupled, since this choice would entangle the self-energies and their origin would be lost.

71After selecting the region D, tbtrans creates N e + 1 different BTD matrices for optimal performance. These are N e BTD matrices for each electrode including the down-folding region ({e i , e i +} in Fig. 1), and one additional BTD matrix for region D. Each BTD matrix uses its own pivoting scheme to reduce the bandwidth and increase performance. Due to the pivoting, the Hamiltonian structure cannot be generically outlined in matrix format. Yet it can be formulated equivalently as in Ref. [76] with the possibility of letting the user define the "extended scattering region". tbtrans allows the user to do this via atomic indices, and hence no knowledge of the algorithms underlying the pivoting and other details are needed. Lastly, we note that tbtrans is also implemented using OpenMP 3.1 threading and scales like shown in Fig. 7c for large systems.

C. I − V curves using Hamiltonian interpolation

72Although the present work represents a significant leap in performance of transiesta and tbtrans, self-consistent NEGF calculations are still heavy, especially when current-voltage (I − V ) characteristics with many bias points are required. To ease, and quite accurately, calculate I − V curves we have implemented an interpolation scheme based on N V separate NEGF calculations at different bias conditions. If N V = 2 we do a linear interpolation/extrapolation of the Hamiltonian, and if N V > 2 a spline interpolation is also possible. Note that a spline extrapolation is equivalent, unsurprisingly, to linear extrapolation. As a test example we consider a molecular contact system consisting of a periodic array of C 60 molecules buried in the first surface layer of a Cu(111) surface contacted by a tip. This example is taken from Ref. [86]. In Fig. 12 we compare the k-averaged transmission functions based on the self-consistent (converged) Hamiltonian at a bias of −1.5 V and the corresponding one interpolated from self-consistent Hamiltonians at −2 V, −1 V, 0 V, 1 V and 2 V (linear interpolation from the two closest bias points and spline using all points). In this example the bias point −1.5 V was "worst case scenario" where the exact and interpolated results deviated the most out of 47 interpolations and extrapolations in the range −2.4 V to 2.4 V (in equal steps of 0.1 V). Although both interpolation schemes perform very well, the spline interpolation clearly outperforms the linear interpolation, retaining a better agreement with the self-consistent calculation. This also works for N e = 2 if the chemical potentials are linearly dependent. Even though tbtrans is developed with transiesta in mind, its use is far from restricted to this. tbtrans implements flexible NetCDF-4 support, and the Hamiltonian can thus alternatively be supplied through a NetCDF-4 file. This makes tbtrans accessible as a generic transport code without a need for lower-level Fortran coding and/or knowledge of the siesta binary file format. To accommodate such so-called "tight-binding" calculations, we have developed a LGPL licensed Python package sisl [87] which facilitates an easy interface to create large-scale (non-)orthogonal tight-binding models for arbitrary geometries. This package is a generic package with further analysis tools for siesta such as file operations and grid operations (interaction with fdf-files, vasp files, and density grids, potential grids, etc.). sisl allows any number of atoms, different orbitals per atom, (non-)orthogonal basis sets, mixed species in a 3D super-cell approach. Furthermore, as sisl is based on Python it allows abstraction such that unnecessary details of the complex data structures are hidden from the users. Currently it is interfaced to read parameters from siesta, gulp and Wannier90 [88,89].

73In Fig. 13 we list two sisl-code examples. The left example creates a simple 20, 000 atom graphene flake with nearest neighbor interaction. The right example creates the same graphene structure but with a hole with a diameter of 20 times the bond length at the center of the flake. In the SM we have added several example scripts for graphene with various tight-binding parameter sets [90] as well as an example of how to create a tight-binding transport calculation. method [91], etc. All in all they can be summarized in this one equation

74where δH k ( ) encompass any correction for the Hamiltonian, whatever that may be. δH k ( ) may be of a real quantity, or a complex quantity, depending on its physical origin. Instead of letting the developers decide which features should be implemented we enable users to create their own features by altering the Hamiltonian elements, however they wish, simply by creating the δH k ( ) correction. sisl [87] efficiently creates the δH k ( ) matrix without any prior knowledge of Fortran or the data format for tbtrans. We note that sisl is capable of reading the DFT-NEGF self-consistent Hamiltonian and edit it directly in Python.

75The δH k ( ) comes in four variants to control different parts of the calculation.

761. δH with no energy nor k-point dependencies, 2. δH k with only k-point dependency, 3. δH( ) with only energy dependency, 4. δH k ( ) with both k-point and energy dependencies.

77This feature enables a broader population of users to contribute with functionality to a public code, and we encourage contributions to the siesta mailing list as well as the sisl GitHub repository which may be used as a base for further development of features for the transport code tbtrans.

E. Molecular state projection transmission

78There are several approaches to analyze transport properties besides considering the local density of states. One may decompose the transmission into eigenchannels and plot the corresponding scattering states [83] or the bondcurrents [92]. However, this does not necessarily give a clear answer to the basic question as to which of the eigenstates in the central region takes part in transport, e.g., which molecular levels transmit the electrons in a molecular contact between metals. tbtrans allow a very flexible analysis of the transport through such eigenstates. In the following we use molecular eigenstates as the terminology and have a central molecule as "bottle-neck" in mind, however, the method is not limited to this type of setup.

79We can define a sub-space of the full device region consisting of the same or fewer basis components {M } (henceforth referred to as "molecule"). The Hamiltonian for this region have previously been denoted Molecular Projected Selfconsistent Hamiltonian (MPSH) [93] with corresponding eigenstates,

80where |M i are the generalized eigenvectors defined in the basis functions of the non-orthogonal basis. In order to create orthogonal eigenvectors (|M i ) we rotate the basis set to form orthonormal projection vectors using the Löwdin transformation [94]. Inserting the complete {M } (orthogonalized) basis in the expression for the transmission (assuming k and dependencies implicit, and {e, e } = {L, R}) we get

81The matrix element of the broadening matrix, M j |Γ L |M j , describes the coupling of the MPSH states to electrode L and how these are mixed/hybridized due to this. How such a projector is chosen is outside the scope of this article, but we refer to Ref. [95] for additional projectors. In tbtrans we save all scalar quantities M j |Γ L |M j for an extra level of information. It also allows for ways to break the total transmission into components for each MPSH state in a very flexible way as illustrated in the following.

82As an example we consider schematic in Fig. 14 corresponding to electron transport through a "bridge" consisting of two molecules (A and B) with 2 and 3 MPSH characteristic eigenstates each, respectively. It is then possible to extract the transmission probability corresponding to, say, electrons injected from L into state |A 1 and extracted to R via the set |B {1,2} , yielding

8314. Schematic illustration of two molecules coupled to 2 electrodes. One can follow each of the lines connecting molecule A and B. To scatter into the right electrode they have to scatter across the molecular states |A1 , |A2 , |B1 , |B2 and |B3 .

84We note that such projected transmissions may be larger than the non-projected total transmission due to interference effects. Additionally this projection scheme also allows investigation of the difference between projections on incomingoutgoing scattering states. That is, for a single molecular junction (A with 2 molecular states) one may calculate (I = A {1,2} ):

85where → and ← refers to incoming and outgoing projections, respectively, and ↔ refers to a simultaneous projection of incoming and outgoing. These 3 transmissions are generally not equal due to asymmetric coupling and/or hybridization with the electrodes. Lastly, we allow the projection states to be both k-resolved or Γ-point only. If the MPSH eigenstates are non-dispersive in the Brillouin zone these yield the same result.

86As an example of projections based on a realistic DFT-NEGF calculation featuring the k-dependence we consider again transport through a monolayer of C 60 molecules as shown in Fig. 15 (setup from Ref. [86]). Due to the densely packed monolayer coverage of C 60 -one molecule per 4 × 4-surface area of Cu(111) -there exists a slight dispersion in the Brillouin zone (∼ 10 meV). The transmissions are calculated on a 13×13 Monkhorst-Pack grid [96]. Here we limit the projections to involve the three (almost) degenerate MPSH orbitals close to the Fermi energy E F , i.e., essentially to the lowest unoccupied molecular orbitals (LUMO) of C 60 . The highest occupied molecular orbitals (HOMO) are located about −1 eV below E F while the LUMO+1 are about 1 eV above E F . In Fig. 15 we compare the full transmission (thick black) with the projected transmissions. Figures in the left column are the Γ-point projectors used in the entire Brillouin zone, while the right column figures are using the projectors at the given k in the Brillouin zone. Projections labeled by a single integer are individual MPSH projections, while 1 − 3 is the summed projection over all LUMO levels.

87The top row of Fig. 15 shows the projected transmissions using the projectors as in Eq. (37c). The relative contributions from the dashed lines clearly reveal that a single LUMO orbital is responsible for carrying the majority of the transmission, while the other two LUMO orbitals have negligible contribution. The full projectors (1 − 3) only slightly increases the total transmission compared to the 3rd projection. The ordering of the levels are according to the energy levels. The total transmission is not reached due to hybridization of the molecule with the electrode. One can also observe the effect of intra-molecular coupling yielding a dispersion in the densely packed monolayer by comparing the results with the Γ-point versus the k-resolved projectors. The latter projection increases the Lorentzian shape of the transmission peak as well as decrease the hybridized contributions in the energy range corresponding to the HOMO levels, as expected.

88The projectors may take either of the forms shown in Eqs. (37). A comparison between these different choices are shown in the lower row of Fig. 15. The hybridization of the C 60 molecules with the Cu states is strong as reflected in the many small peaks with the → projectors. Contrary, ← which projects the molecular orbitals through the weakly coupled tip retains the LUMO energy range as well as reducing the Brillouin zone dispersion. The latter proves that we have a small coupling between tips in different supercells resulting in a low dispersion. It can also be seen that the total transmission is better retained when using only → or ← which infers a mixing of the scattering states with the molecular orbitals.

F. Phonon transportphtrans

89The tailoring of heat transport in nanostructures (e.g., via nanostructuring of materials) is a topic with a large and growing community following the trend of electronic transport [97,98]. It has promising applications in thermal management and thermoelectrics, and has even been envisioned for information processing with devices, akin of electronics, known as "phononics" [99]. The transport of heat via phonons can be treated using the Landauer formula by replacing (from the electronic case) Fermi-distributions with Bose-Einstein distributions [100,101], carrier charge (e) with phonon energy ( ω), and using the phonon transmission function Ξ(ω). The phonon thermal conductance between two reservoirs at tempertures T and T + dT , can thus be calculated as

90The expression for the electronic transmission function in Sec. IV is easily converted to that of phonons by replacing the dynamical matrix for the Hamiltonian, using unity as overlap, and the energy replacement, ε + iη → ω 2 + iη 2 .

91Recall that all tbtrans functionality may be used in phtrans, including N e ≥ 1 terminals. Phonon transport using the Green function formalism can thus be written as

92Ξ ee ,q (ω) = Tr G q (ω)Γ e,q G † q (ω)Γ e ,q ,

93with D q being the dynamical matrix at the q-point in reciprocal space. Currently sisl allows for the extraction of dynamical matrices directly from gulp [88] and outputs files to phtrans compatible data format. This enables the calculation of phonon transport properties for very large systems from empirical potentials using 3rd party tools.

94As an example of the capabilities of phtrans we investigated phonon transport in graphene as well as through a grain boundary. Grain boundaries play a significant role for both electronic and heat transport in graphene and is an area of intense research [102,103]. Figure 16 shows the phonon properties of pristine graphene and the zero-angle grain boundary (GB558, see inset to Fig. 16c) for which the electronic transport has previously been studied [104]. The quantities are calculated using the Brenner potential [105] in gulp. The transmission of pristine graphene versus GB558 is compared in Fig. 16a. It is seen how the grain-boundary effectively scatters the phonons and reduces the heat transport to ∼ 60% at 600K compared to the pristine case (inset Fig. 16a).

95Figures 16b,c compare atom-resolved phonon DOS inside pristine graphene and in the grain-boundary, respectively. The grain-boundary hosts quite localized out-of-plane modes around ω = 115 meV and in-plane modes around ω = 200 meV as seen by the peaks in the projected DOS.

V. CONCLUSIONS

96We have presented the Green function technique and its implementation at the DFT-NEGF level with a generalization of the equations to cover both equilibrium single-electrode (N e = 1) and non-equilibrium multi-electrode (N e > 1) calculations. The first case enables equilibrium surface calculations without resorting to slab-approximations, while the latter case makes studies of non-equilibrium thermo-electric effects possible using independent electrode Fermi distributions (both chemical potentials and temperatures). The methods are made available in the GPL licensed DFT-NEGF code transiesta together with the post-processing electron (phonon) transport code tbtrans (phtrans). Both codes were re-implemented for extended functionality and optimization.

97We now summarize the specific major improvements to the method. We have implemented several schemes for equilibrium contour integration to obtain the density matrix. These improve the convergence properties while reducing the number of integration abscissa in the equilibrium contour. Along these lines we generalized the original weighting scheme for the density matrix integrals to the multi-electrode case (N e > 2). Besides the multi-electrode capabilities we have also implemented a flexible way to include charge/Hartree electrostatic gate geometries in the DFT-NEGF device region. This enables investigating gate effects which are ubiquitous for e.g. simulations of functional electronic devices.

98The algorithm for calculating the Green function using matrix inversion is crucial for the performance of any DFT-NEGF code. We have compared 3 implemented methods, LAPACK, MUMPS, and BTD inversion. We found that the BDT method performs the best and devised a highly efficient, memory-wise and performance-wise, NEGF variant. The BTD method relies critically on the bandwidth of the matrix to be inverted and to accommodate this, we implemented a variety of pivoting algorithms to reduce bandwidth, memory consumption and increase performance of the NEGF calculation. We have furthermore implemented an efficient method to calculate the spectral function using an efficient propagation algorithm. Altogether, the performance of transiesta has improved drastically, compared to version 3.2, and for one test system an impressive ∼ 100 times speed-up was achieved. OpenMP 3.1 threading was also implemented in transiesta which allows to reach unprecedented system sizes with the DFT-NEGF method.

99As a post-processing tool tbtrans has been presented for calculation of the transmission function from any Hamiltonian or dynamical matrix (phtrans, phonon-transport). Our implementation involves a new separation algorithm where the transport properties -as well as local quantities such as DOS, bond-currents, etc. -may be efficiently calculated in a selected subspace of the device cell. A recurring question within molecular electronics is the origin of the electron carrier orbital. We presented a novel method to calculate projected transmissions using either single molecular orbitals or a combination of several orbitals. The projection method includes Γ and k point projectors.

참고문헌 99건

  1. Lapack Users' Guide 1995
  2. Electronic Structure: Basic Theory and Practical Methods 2004
  3. Transmission eigenchannels from nonequilibrium Green’s functions Physical Review B · American Physical Society · 2007 10.1103/physrevb.76.115117
  4. Density functional theory based many-body analysis of electron transport through molecules Physical Review B · American Physical Society · 2011 10.1103/physrevb.83.035415
  5. <i>Colloquium</i>: Phononics: Manipulating heat flow with electronic analogs and beyond Reviews of Modern Physics · American Physical Society · 2012 10.1103/revmodphys.84.1045
  6. Simple and efficient way of speeding up transmission calculations with <i>k</i>-point sampling Beilstein Journal of Nanotechnology · Beilstein Institute for the Advancement of Chemical Sciences · 2015 10.3762/bjnano.6.164
  7. Can molecular projected density of states (PDOS) be systematically used in electronic conductance analysis? Beilstein Journal of Nanotechnology · Beilstein Institute for the Advancement of Chemical Sciences · 2015 10.3762/bjnano.6.128
  8. Manipulating the voltage drop in graphene nanojunctions using a gate potential Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2015 10.1039/c5cp04613k
  9. Direct View of Hot Carrier Dynamics in Graphene Physical Review Letters · American Physical Society · 2013 10.1103/physrevlett.111.027403
  10. First-principles approach to electrical transport in atomic-scale nanostructures Physical review. B, Condensed matter · American Physical Society · 2002 10.1103/physrevb.66.035322
  11. A method to compute the inverse of an n-block tridiagonal quasi-Hermitian matrix Journal of Physics Condensed Matter · IOP Publishing · 1991 10.1088/0953-8984/3/40/005
  12. First-principles methodology for quantum transport in multiterminal junctions The Journal of Chemical Physics · American Institute of Physics · 2009 10.1063/1.3247880
  13. Many-body current formula and current conservation for non-equilibrium fully interacting nanojunctions Journal of Physics A Mathematical and Theoretical · Institute of Physics · 2012 10.1088/1751-8113/45/19/195301
  14. Recursive Greenʼs function method for multi-terminal nanostructures Journal of Computational Physics · Elsevier BV · 2014 10.1016/j.jcp.2013.12.054
  15. Density-functional method for nonequilibrium electron transport Physical review. B, Condensed matter · American Physical Society · 2002 10.1103/physrevb.65.165401
  16. <i>Ab initio</i>modeling of quantum transport properties of molecular electronic devices Physical review. B, Condensed matter · American Physical Society · 2001 10.1103/physrevb.63.245407
  17. Origin of current-induced forces in an atomic gold wire: A first-principles study Physical review. B, Condensed matter · American Physical Society · 2003 10.1103/physrevb.67.193104
  18. Elastic quantum transport calculations for molecular nanodevices using plane waves Physical Review B · American Physical Society · 2006 10.1103/physrevb.74.245404
  19. Variational Principles for Scattering Processes. I Physical Review · American Institute of Physics · 1950 10.1103/physrev.79.469
  20. Spectroscopy of transmission resonances through a C<sub>60</sub>junction Journal of Physics Condensed Matter · IOP Publishing · 2014 10.1088/0953-8984/27/1/015001
  21. Snapshots of non-equilibrium Dirac carrier distributions in graphene Nature Materials · Nature Portfolio · 2013 10.1038/nmat3757
  22. Unravelling the role of inelastic tunneling into pristine and defected graphene Physical Review B · American Physical Society · 2015 10.1103/physrevb.91.121403
  23. Scattering by linear defects in graphene: a tight-binding approach Journal of Physics Condensed Matter · IOP Publishing · 2013 10.1088/0953-8984/25/7/075303
  24. Correlated Electron Transport in Molecular Electronics Physical Review Letters · American Physical Society · 2004 10.1103/physrevlett.93.036805
  25. A second-generation reactive empirical bond order (REBO) potential energy expression for hydrocarbons Journal of Physics Condensed Matter · IOP Publishing · 2002 10.1088/0953-8984/14/4/312
  26. Non-equilibrium Green's functions in density functional tight binding: method and applications New Journal of Physics · IOP Publishing · 2008 10.1088/1367-2630/10/6/065022
  27. Algorithm for efficient elastic transport calculations for arbitrary device geometries Physical Review B · American Physical Society · 2011 10.1103/physrevb.84.155401
  28. Light Emission Probing Quantum Shot Noise and Charge Fluctuations at a Biased Molecular Junction Physical Review Letters · American Physical Society · 2012 10.1103/physrevlett.109.186601
  29. An efficient, block-by-block algorithm for inverting a block tridiagonal, nearly block Toeplitz matrix Computational Science & Discovery · IOP Publishing · 2012 10.1088/1749-4699/5/1/014009
  30. Efficient implementation of the nonequilibrium Green function method for electronic transport calculations Physical Review B · American Physical Society · 2010 10.1103/physrevb.81.035116
  31. First-principles electronic transport calculations in finite elongated systems: A divide and conquer approach The Journal of Chemical Physics · American Institute of Physics · 2006 10.1063/1.2349482
  32. Exact Ground State Density-Functional Theory for Impurity Models Coupled to External Reservoirs and Transport Calculations Physical Review Letters · American Physical Society · 2008 10.1103/physrevlett.100.086401
  33. Interlayer Interaction and Electronic Screening in Multilayer Graphene Investigated with Angle-Resolved Photoemission Spectroscopy Physical Review Letters · American Physical Society · 2007 10.1103/physrevlett.98.206802
  34. <i>Ab initio</i>nonequilibrium quantum transport and forces with the real-space projector augmented wave method Physical Review B · American Physical Society · 2012 10.1103/physrevb.85.155140
  35. Single and multiband modeling of quantum electron transport through layered semiconductor devices Journal of Applied Physics · American Institute of Physics · 1997 10.1063/1.365394
  36. Spin and molecular electronics in atomically generated orbital landscapes Physical Review B · American Physical Society · 2006 10.1103/physrevb.73.085414
  37. Electronic transmission coefficient for the single-impurity problem in the scattering-matrix approach Physical review. B, Condensed matter · American Physical Society · 1988 10.1103/physrevb.38.12238
  38. Special points for Brillouin-zone integrations Physical review. B, Solid state · American Physical Society · 1976 10.1103/physrevb.13.5188
  39. Double Exponential Formulas for Numerical Integration Publications of the Research Institute for Mathematical Sciences · Kyoto University · 1973 10.2977/prims/1195192451
  40. Are Kohn-Sham Conductances Accurate? Physical Review Letters · American Physical Society · 2010 10.1103/physrevlett.105.216408
  41. Dynamical Correction to Linear Kohn-Sham Conductances from Static Density Functional Theory Physical Review Letters · American Physical Society · 2013 10.1103/physrevlett.111.030601
  42. Scattering phases in quantum dots: An analysis based on lattice models Physical review. B, Condensed matter · American Physical Society · 2000 10.1103/physrevb.62.7307
  43. <i>Ab initio</i>Green-function formulation of the transfer matrix: Application to complex band structures Physical review. B, Condensed matter · American Physical Society · 2002 10.1103/physrevb.65.165103
  44. Hellmann-Feynman theorem and the definition of forces in quantum time-dependent and transport problems Physical review. B, Condensed matter · American Physical Society · 2000 10.1103/physrevb.61.16207
  45. A corrected NEGF+DFT approach for calculating electronic transport through molecular devices: Filling bound states and patching the non-equilibrium integration Chemical Physics · Elsevier BV · 2007 10.1016/j.chemphys.2007.06.011
  46. The General Utility Lattice Program (<scp>GULP</scp>) Molecular Simulation · Taylor & Francis · 2003 10.1080/0892702031000104887
  47. Tight-binding simulation of current-carrying nanostructures Journal of Physics Condensed Matter · IOP Publishing · 2002 10.1088/0953-8984/14/11/314
  48. Time-dependent quantum transport: An exact formulation based on TDDFT EPL (Europhysics Letters) · Institute of Physics · 2004 10.1209/epl/i2004-10043-7
  49. A GENERALIZED GPS ALGORITHM FOR REDUCING THE BANDWIDTH AND PROFILE OF A SPARSE MATRIX Electromagnetic waves · 2009 10.2528/pier09010512
  50. An updated version of wannier90: A tool for obtaining maximally-localised Wannier functions Computer Physics Communications · Elsevier BV · 2014 10.1016/j.cpc.2014.05.003
  51. A Fully Asynchronous Multifrontal Solver Using Distributed Dynamic Scheduling SIAM Journal on Matrix Analysis and Applications · Society for Industrial and Applied Mathematics · 2001 10.1137/s0895479899358194
  52. Multifrontal parallel distributed symmetric and unsymmetric solvers Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2000 10.1016/s0045-7825(99)00242-x
  53. Calculation of electron transport in multiterminal systems using complex absorbing potentials Physical Review B · American Physical Society · 2011 10.1103/physrevb.83.205105
  54. Theoretical study of the nonlinear conductance of Di-thiol benzene coupled to Au(1 1 1) surfaces via thiol and thiolate bonds Computational Materials Science · Elsevier BV · 2003 10.1016/s0927-0256(02)00439-1
  55. Real-space method for highly parallelizable electronic transport calculations Physical Review B · American Physical Society · 2014 10.1103/physrevb.90.035445
  56. Block tridiagonal matrix inversion and fast transmission calculations Journal of Computational Physics · Elsevier BV · 2008 10.1016/j.jcp.2007.11.035
  57. First-principles calculations of charged surfaces and interfaces: A plane-wave nonrepeated slab approach Physical Review B · American Physical Society · 2006 10.1103/physrevb.73.115407
  58. <i>Ab initio</i><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:mi>G</mml:mi><mml:mi>W</mml:mi></mml:mrow></mml:math>electron-electron interaction effects in quantum transport Physical Review B · American Physical Society · 2007 10.1103/physrevb.75.075102
  59. Generalized tight-binding transport model for graphene nanoribbon-based systems Physical Review B · American Physical Society · 2010 10.1103/physrevb.81.245402
  60. Generalized many-channel conductance formula with application to small rings Physical review. B, Condensed matter · American Physical Society · 1985 10.1103/physrevb.31.6207
  61. An Algorithm for Reducing the Bandwidth and Profile of a Sparse Matrix SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 1976 10.1137/0713023
  62. <i>Ab initio</i>study of charge transport through single oxygen molecules in atomic aluminum contacts Physical Review B · American Physical Society · 2007 10.1103/physrevb.76.075413
  63. Reducing the bandwidth of sparse symmetric matrices 1969 10.1145/800195.805928
  64. GOLLUM: a next-generation simulation tool for electron, thermal and spin transport New Journal of Physics · IOP Publishing · 2014 10.1088/1367-2630/16/9/093029
  65. Towards molecular spintronics Nature Materials · Nature Portfolio · 2005 10.1038/nmat1349
  66. On the Non-Orthogonality Problem Connected with the Use of Atomic Wave Functions in the Theory of Molecules and Crystals The Journal of Chemical Physics · American Institute of Physics · 1950 10.1063/1.1747632
  67. Heat transport in low-dimensional systems Advances In Physics · Taylor & Francis · 2008 10.1080/00018730802538522
  68. Computing entries of the inverse of a sparse matrix using the FIND algorithm Journal of Computational Physics · Elsevier BV · 2008 10.1016/j.jcp.2008.06.033
  69. Transport in nanoscale systems: the microcanonical versus grand-canonical picture Journal of Physics Condensed Matter · IOP Publishing · 2004 10.1088/0953-8984/16/45/024
  70. Grains and grain boundaries in single-layer graphene atomic patchwork quilts Nature · Nature Portfolio · 2011 10.1038/nature09718
  71. Exploring local currents in molecular junctions Nature Chemistry · Nature Portfolio · 2010 10.1038/nchem.546
  72. Relation between conductivity and transmission matrix Physical review. B, Condensed matter · American Physical Society · 1981 10.1103/physrevb.23.6851
  73. A Fast Parallel Algorithm for Selected Inversion of Structured Sparse Matrices with Application to 2D Electronic Structure Calculations SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2011 10.1137/09077432x
  74. SelInv---An Algorithm for Selected Inversion of a Sparse Symmetric Matrix ACM Transactions on Mathematical Software · Association for Computing Machinery · 2011 10.1145/1916461.1916464
  75. A nested dissection approach to modeling transport in nanodevices: Algorithms and applications International Journal for Numerical Methods in Engineering · Wiley · 2013 10.1002/nme.4518
  76. First-principles scheme for spectral adjustment in nanoscale transport New Journal of Physics · IOP Publishing · 2011 10.1088/1367-2630/13/5/053026
  77. 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
  78. The Atomistic Green's Function Method: An Efficient Simulation Approach for Nanoscale Phonon Transport Numerical Heat Transfer Part B Fundamentals · Taylor & Francis · 2007 10.1080/10407790601144755
  79. Nonequilibrium Green’s Function Approach to Phonon Transport in Defective Carbon Nanotubes Physical Review Letters · American Physical Society · 2006 10.1103/physrevlett.96.255503
  80. General Green’s-function formalism for transport calculations with<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>spd</mml:mi></mml:math>Hamiltonians and giant magnetoresistance in Co- and Ni-based magnetic multilayers Physical review. B, Condensed matter · American Physical Society · 1999 10.1103/physrevb.59.11936
  81. Quantum thermal transport in nanostructures The European Physical Journal B · Springer Science+Business Media · 2008 10.1140/epjb/e2008-00195-8
  82. Enhancing the scalability and load balancing of the parallel selected inversion algorithm via tree-based asynchronous communication arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1504.04714
  83. Steady-State Density Functional Theory for Finite Bias Conductances Nano Letters · American Chemical Society · 2015 10.1021/acs.nanolett.5b03294
  84. All-graphene edge contacts: Electrical resistance of graphene T-junctions Carbon · Elsevier BV · 2016 10.1016/j.carbon.2016.01.084
  85. First-Principles Study of Multiterminal Quantum Interference Controlled Molecular Devices The Journal of Physical Chemistry C · American Chemical Society · 2012 10.1021/jp309455n
  86. Spin-Polarized Electron Transport Across Metal–Organic Molecules: A Density Functional Theory Approach Journal of Chemical Theory and Computation · American Chemical Society · 2013 10.1021/ct4000263
  87. Electrochemical doping of few-layer ZrNCl from first principles: Electronic and structural properties in field-effect configuration Physical Review B · American Physical Society · 2014 10.1103/physrevb.89.245406
  88. Search for a Metallic Dangling-Bond Wire on <i>n</i>-Doped H-Passivated Semiconductor Surfaces The Journal of Physical Chemistry C · American Chemical Society · 2016 10.1021/acs.jpcc.6b04540
  89. アルゴリズム906: elrint3d―組み込み格子ルールのシーケンスを用いる三次元非適応自動立体求積法ルーチン ACM Transactions on Mathematical Software · Association for Computing Machinery · 2011
  90. PSelInv – A distributed memory parallel algorithm for selected inversion: The non-symmetric case Parallel Computing · Elsevier BV · 2017 10.1016/j.parco.2017.11.009
  91. Reliability of layered neural oscillator networks Communications in Mathematical Sciences · International Press of Boston · 2009 10.4310/cms.2009.v7.n1.a12
  92. 1T-TiSe 2 の電荷密度波相転移 励起子絶縁体とバンド型のJahn-Teller機構 | 文献情報 | J-GLOBAL 科学技術総合リンクセンター Physical Review B · American Physical Society · 2002
  93. First-principles scheme for spectral adjustment in nanoscale transport New Journal of Physics · IOP Publishing · 2011 10.1088/1367-2630/13/5/053026
  94. Heat transport in low-dimensional systems Advances In Physics · Taylor & Francis · 2008 10.1080/00018730802538522
  95. Snapshots of non-equilibrium Dirac carrier distributions in graphene Nature Materials · Nature Portfolio · 2013 10.1038/nmat3757
  96. 極低温ac磁化率およびdc磁化で調べたCeNi 1-x Cu x でのクラスタガラス パーコレーションシナリオ Physical Review B · American Physical Society · 2007
  97. First-principles methodology for quantum transport in multiterminal junctions The Journal of Chemical Physics · American Institute of Physics · 2009 10.1063/1.3247880
  98. Pr 1-x La x AlO 3 における構造相転移:熱容量とX線散乱による研究 Physical Review B · American Physical Society · 2014
  99. Bimodal Phonon Scattering in Graphene Grain Boundaries Nano Letters · American Chemical Society · 2015 10.1021/acs.nanolett.5b01100