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

Large scale ab-initio simulations of dislocations

관련 수소연료전지 · (6) PEM(고분자전해질막)

기본 정보

저자
  1. Mauricio Ponga — Department of Mechanical Engineering, University of British Columbia, 2054 - 6250 Applied Science Lane, Vancouver, BC, V6T 1Z4, Canada
  2. Kaushik Bhattacharya — Division of Engineering and Applied Science, California Institute of Technology, 1200 E. California Blvd., Pasadena CA, 91125, USA
  3. M. Ortíz — Division of Engineering and Applied Science, California Institute of Technology, 1200 E. California Blvd., Pasadena CA, 91125, USA
DOI
10.1016/j.jcp.2020.109249
저널
Journal of Computational Physics
발행년도
2020
발행기관
Elsevier BV
피인용수
13
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.jcp.2020.109249
토픽
Metal and Thin Film Mechanics
OpenAlex ID
W2954442695

평가 내용

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

초록

초록이 없습니다.

본문 70,849자

본문 펼치기
## Large scale ab-initio simulations of dislocations Mauricio Ponga <sup>1</sup>, K. Bhattacharya <sup>2</sup>, and M. Ortiz <sup>2</sup> 1Department of Mechanical Engineering, University of British Columbia, 2054 - 6250 Applied Science Lane, Vancouver, BC, Canada, V6T 1Z4 2Division of Engineering and Applied Science, California Institute of Technology, 1200 E. California Blvd., Pasadena CA, USA 91125. November 3, 2021 Abstract We present a novel methodology to compute relaxed dislocations core configurations, and their energies in crystalline metallic materials using large-scale _ab-intio_ simulations. The approach is based on MacroDFT, a coarse-grained density functional theory method that accurately computes the electronic structure but with sub-linear scaling resulting in a tremendous reduction in cost. Due to its implementation in _real-space_, MacroDFT has the ability to harness petascale resources to study materials and alloys through accurate _ab-initio_ calculations. Thus, the proposed methodology can be used to investigate dislocation cores and other defects where long range elastic defects play an important role, such as in dislocation cores, grain boundaries and near precipitates in crystalline materials. We demonstrate the method by computing the relaxed dislocation cores in prismatic dislocation loops and dislocation segments in magnesium (Mg). We also study the interaction energy with a line of Aluminum (Al) solutes. Our simulations elucidate the essential coupling between the quantum mechanical aspects of the dislocation core and the long range elastic fields that they generate. In particular, our quantum mechanical simulations are able to describe the logarithmic divergence of the energy in the far field as is known from classical elastic theory. In order to reach such scaling, the number of atoms in the simulation cell has to be exceedingly large, and cannot be achieved with the state-of-the-art density functional theory implementations. _Keywords:_ Density functional theory, large-scale _ab-initio_ simulations, petascale simulations , screw Dislocations, prismatic dislocation loops, Magnesium. ### 1 Introduction Dislocations are the main carrier of plasticity in crystalline materials. Their behavior and interactions have strong consequences in the mechanical response of materials. As such, dislocations have been extensively studied since the seminal work of Volterra [1]. Dislocations have long been analyzed by separating their effect into two main contributors, the dislocation core and its longrange field [2]. The former is characterized by strong non-linear quantum mechanical effects; the latter is a long-range elastic field characterized by smooth atomic displacements that are typically modeled using continuum elasticity theory in either its isotropic or anisotropic versions. However, the elastic fields are long-range: the interatomic distances or strains decay inversely with distance _∼_ _r_ <sup>_−_</sup> <sup>1</sup>, where _r_ is the distance from the defect, so that the energy density is logarithmically divergent. This means that the core and far-field are intimately coupled and the traditional separation is 1 problematic. This has many physical implications including the effect of the far-field stresses on the core and the interaction between the dislocation and solute atoms. Therefore, a full understanding requires _ab-initio_ techniques [3]. However, this is not a trivial task since the slow decay of the far field and the intimate coupling means that a very large number of atoms are needed to properly describe this behavior. Unfortunately, this cannot easily be achieved with existing _ab-initio_ methods, since they scale poorly ( _O_ ( _Ne_ <sup>3)</sup> <sup>in</sup> <sup>traditional</sup> <sup>approaches</sup> <sup>and</sup> <sup>_O_</sup> <sup>(</sup> <sup>_Ne_</sup> <sup>)</sup> <sup>in</sup> <sup>newer</sup> <sup>linear</sup> <sup>scaling</sup> approaches [4, 5]). Different multiscale approaches have been proposed to overcome these difficulties. Most of these models consist of patching together heterogeneous models at different scales, from DFT to continuum elasticity to couple the long-range effect and the dislocations core. The coupling between the various models varies from parameter passing to hybrid Hamiltonians [6, 7, 8, 9, 10, 11]. Since these methods bring together distinct models that embody different physics and differing mathematical formulations, they typically assume separation of scales (as in parameter passing) or additional physics or constraints at the interface (as in hybrid Hamiltonians). Often times, the models need to be adjusted or calibrated to the particular phenomenon under consideration, which ultimately detracts from the predictiveness and fundamental nature of first-principles calculations. A variation is the interesting work of Woodward and collaborators [12, 13] where they used full density functional theory in a core region and a linear response (Green’s functions) outside. Still, the approach separates the domain into multiple regions with two distinct theories. In this work, we propose a _new_ _approach_ _where_ _the_ _equations_ _of_ _density_ _functional_ _theory_ _are_ _solved_ _on_ _a_ _domain_ _large_ _enough_ _to_ _capture_ _both_ _the_ _core_ _and_ _elastic_ _fields_ _in_ _a_ _completely_ _seamless_ _manner_ . It builds on the recently developed Coarse-Grained Density Functional Theory (CG-DFT) technique developed by Ponga _et._ _al._ [14, 15] and has it roots in the linear scaling method of Suryanarayana _et al._ [16]. The latter reformulates the original Kohn-Sham equations [17, 18] into density matrix form, and then approximates the density matrix using spectral Gauss quadrature rules. This enables the calculation of the electron density and other quantities of interest at any point in space at fixed or _O_ (1) cost. Consequently the algorithm has linear scaling. However, the fact that the method is _local_ allows the construction of an adaptive numerical approximation that has _sub-linear_ scaling. The key idea is to exploit the decay so that we have full resolution near the core where the details are important and only sample the electronic fields far away where the atomistic displacements decay in a smooth fashion. However, this requires care: even though the atomistic displacements decay smoothly enabling a quasi-continuum approximation [19, 20], the electronic fields (like the electron density and Hartree potential) oscillate in an (almost) periodic manner on the scale of the lattice. Our key observation is that the electronic fields of interests can be written as a sum of two parts, a _predictor_ which captures the periodicity in the far-field and a _corrector_ that is complex at the core but decays away from it. We compute the former inexpensively via unit cell calculations at representative points, while we compute the latter on a gradually coarsening set of _electronic_ _sampling_ _points_ by exploiting the local nature of our formulation. Together, this gives sub-linear scaling with the number of electrons allowing the multiscale simulations of hundreds of thousands of atoms with DFT. The technique has been implemented in the _MacroDFT_ code. We will refer to the CG-DFT technique as well as the code as MacroDFT. The key difference between our prior work [15] is the treatment of the predictor field. In our previous work [15], the predictor was taken to coincide with the periodic solution of the perfect stress-free crystal. While this choice is effective for defects that decay quickly, i.e., _r_ <sup>_−_</sup> <sup>2</sup> or _r_ <sup>_−_</sup> <sup>3</sup>, it is not for dislocations where the decay is much slower, i.e., _r_ <sup>_−_</sup> <sup>1</sup> . The slower decay requires us to update the predictor non-uniformly depending on the far-field deformation, and this adds significant complexity to the method. This is accomplished in this work. We use MacroDFT to compute the formation energy of prismatic dislocation loops and basal 2 dislocations in magnesium (Mg). Dislocations in Mg have been extensively studied using _ab-initio_ techniques [21, 22, 23], molecular statics [24] or combination of them [25]. However, often times these simulations are carried out using incompatible boundary conditions such as periodic boundary conditions or free surfaces to patch the interface with continuum approaches, that ultimately affects the energy of the dislocation core, and possible its configuration [3]. These conditions do not reflect the true nature of a dislocation core, and can influence the structure of the dislocation core [26, 27, 28] as in the case of body-centered materials. Due to these artifacts, no simulation technique using _ab-initio_ technique has been able to prove the theoretical logarithmic divergence predicted by the elasticity theory. In this work, we endeavor to address some of the limitations from other _ab-initio_ techniques and study dislocation cores using compatible boundary conditions, and to investigate the scaling of the energy for large simulation cells. Prismatic dislocations loops are made by removing a certain amount of atoms from the bulk material in the basal plane, leading to a Burgers vector ( _b_ ) in the _c−_ component of the hexagonal closed-packed (hcp) structure of Mg. On the other hand, basal and prismatic screw dislocations are characterized by a much shorter Burgers vector, and their far field is characterized by the elastic decay. Thus, we generate a single dislocation in an infinite crystal, we measure the evolution of the strain energy as a function of the distance from the dislocation core. Our simulations show that the strain energy diverges logarithmically with the ratio _r/b_, in agreement with the elasticity theory of dislocations [2]. We then compute the interaction energy of the dislocation core with a row of solute atom, and show the transition barriers as dislocation moves through it. The manuscript is organized as follows. We start in Section 2 by introducing the methodology in terms of a density matrix formulation and its spectral representation in Riemann-Stieljes integrals. We then introduce the coarse-grained representation. Next, the computational set-up and verification of the method is discussed in Section 3. The results for prismatic loops and screw dislocations are discussed in Section 4, and the parallel performance of the method is demonstrated in 5. Finally, we summarize the work with main outcomes in Section 6. ### 2 Methodology 2.1 Density Functional Theory Consider a system of _M_ atoms with _Ne_ electrons and let R = _{_ R 1 _,_ R 2 _, . . .,_ R _M_ _}_ denote the position of nuclei with charges _{Z_ 1 _, Z_ 2 _, . . ., ZM_ _}_, respectively. The corresponding energy of the system according to the Local Density Approximation of Kohn-Sham DFT <sup>1</sup> is [4, 29]  R <sup>3</sup> _<u>ρ</u>_ <u>(</u> <u>x</u> <u>)</u> _<u>ρ</u>_ <u>(</u> <u>x</u> <sup>_′_</sup> <u>)</u> _|_ x _−_ x <sup>_′_</sup> _|_ <sup>_dx dx′_</sup>  _Ne/_ 2  _n_ =1 R <sup>3</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>x</sup> <sup>)</sup> 2 _E_ = R <sup>3</sup> + _|∇ψn|_ <sup>2</sup> + _exc_ ( _ρ_ )  _dx_ + <sup><u>1</u></sup> R <sup>3</sup> _M_ _J_ =1 _I̸_ = _J_ (1) _dx_ + <sup><u>1</u></sup> 2 _M_ _I_ =1 _<u>ZI</u>_ _<u>ZJ</u>_ _|_ R _I_ _−_ R _J_ _|_ <sup>_,_</sup> - _M_ _J_ =1 _<u>ZJ</u>_ _|_ x _−_ R _j|_ where _ψn_ are the electronic orbitals, _ρ_ ( x ) = 2 correlation is given by _Ne/_ 2 _n_ _|ψn_ ( x ) _|_ <sup>2</sup> is the charge density and the exchange �1 _/_ 3 _ρ_ <sup>4</sup> <sup>_/_</sup> <sup>3</sup> + _ρεc_ ( _ρ_ ) _,_ (2) _exc_ ( _ρ_ ) = _−_ <sup><u>3</u></sup> 4 - <u>3</u> _π_ 1We ignore spins in this presentation though they are easily incorporated. 3 with _εc_ to be as proposed by Perdew and Wang [30] fitted to accurate Monte Carlo simulations carried out by Ceperley _et._ _al._ [31]. The expensive Coulombic double sums are sidestepped by introducing the electrostatic potential _φ_ as the solution to the Poisson equation [32, 33]. We minimize this functional over all orbitals subject to orthonormality and this leads to the nonlinear eigenvalue problem _Hψn_ = _λnψn_ _n_ = 1 _,_ 2 _, . . . Ne/_ 2 _,_ (3) with _λn_ the ordered eigenvalues of the Hamiltonian _H_ = _−_ <sup><u>1</u></sup> (4) 2 <sup>_∇_</sup> <sup>2 +</sup> <sup>_u_</sup> <sup>+</sup> <sup>_φ,_</sup> with _φ_ the Coulomb potential obtained by solving the Poisson’s equation _−_ 4 <sup><u>1</u></sup> _π_ <sup>_∇_</sup> <sup>2</sup> <sup>_φ_</sup> <sup>(</sup> <sup>x</sup> <sup>_,_</sup> <sup>R</sup> <sup>) =</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>x</sup> <sup>) +</sup> <sup>_b_</sup> <sup>(</sup> <sup>x</sup> <sup>_,_</sup> <sup>R</sup> <sup>)</sup> <sup>_,_</sup> (5) where _b_ ( x _,_ R ) = <sup>�</sup> _J_ <sup>_M_</sup> =1 <sup>_bJ_</sup> <sup>(</sup> <sup>x</sup> <sup>_,_</sup> <sup>R</sup> <sup>_J_</sup> <sup>)</sup> <sup>denotes</sup> <sup>the</sup> <sup>total</sup> <sup>charge</sup> <sup>density</sup> <sup>of</sup> <sup>the</sup> <sup>nuclei,</sup> <sup>with</sup> <sup>_bJ_</sup> <sup>(</sup> <sup>x</sup> <sup>_,_</sup> <sup>R</sup> <sup>_J_</sup> <sup>)</sup> representing the regularized charge density of the _J_ <sup>th</sup> nucleus, and _u_ ( x ) = <sup>_<u>∂exc</u>_</sup> (6) _∂ρ_ <sup>(</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>x</sup> <sup>))</sup> <sup>_._</sup> This nonlinear eigenvalue problem is solved using fixed point iteration in the self-consistent formulation (SCF). This leads to an expensive _O_ ( _Ne_ <sup>3)</sup> <sup>computational</sup> <sup>procedure</sup> <sup>that</sup> <sup>critically</sup> <sup>restricts</sup> the size of the systems to 100 _−_ 1 _,_ 000 electrons in practice. Recent real-space implementations using efficient finite element basis and finite differences can increase this number up to roughly 10,000 electrons [34, 35, 36]. With the goal of obtaining a linear scaling algorithm, we reformulate the problem above using the the density matrix formulation following Anantharaman and Canc`es [37] and Wang _et_ _al._ [38]. The problem of minimizing (1) is equivalent at zero temperature to the variational problem _xc_ R <sup>3(</sup> <sup>_|∇φ|_</sup> <sup>2 + (</sup> <sup>_ρ_</sup> <sup>+</sup> <sup>_b_</sup> <sup>)</sup> <sup>_φ_</sup> <sup>+</sup> <sup>_E∗_</sup> _E_ = max max min _u_ _γ_ _γ_ max _φ_ _u_ �Tr _Hγ_ + <sup><u>1</u></sup> 8 _π_ _xc_ <sup>(</sup> <sup>_u_</sup> <sup>))</sup> <sup>_dx_</sup> <sup>_∗_</sup> _−_ 2 _kBθ_ (Tr _γ_ log _γ_ + Tr (1 _−_ _γ_ ) log(1 _−_ _γ_ )) _,_ (7) where the maximum is taken over _{γ_ _∈_ _χ_ : _|∇|γ|∇∈_ _χ,_ 0 _≤_ _γ_ _≤_ 1 _,_ Tr _γ_ = _N_ _}_, _χ_ is the set of all trace class operators on _L_ <sup>2</sup> (R <sup>3</sup> ), and _Exc_ <sup>_∗_</sup> <sup>is</sup> <sup>the</sup> <sup>Legendre</sup> <sup>transform</sup> <sup>of</sup> <sup>_Exc_</sup> <sup>.</sup> <sup>One</sup> <sup>can</sup> <sup>see</sup> <sup>this</sup> formally by setting _γ_ = <sup>�</sup> _n_ <sup>_N_</sup> =1 <sup>_e_</sup> <sup>_|ψn⟩⟨ψn|_</sup> <sup>,</sup> <sup>using</sup> <sup>the</sup> <sup>electrostatic</sup> <sup>potential</sup> <sup>to</sup> <sup>rewrite</sup> <sup>the</sup> <sup>Coulomb</sup> interactions, using a duality transform for the exchange correlation and exchanging the order of extremization. These steps are explained in detail and justified in [38]. It is possible to show that the solution to variational problem is given by the density matrix <u>1</u> _γ_ = _g_ ( _H_ ; _λf_ ) where _g_ ( _λ, λf_ ) = 1 + exp( <sup>_<u>λ−λf</u>_</sup> _kBθ_ <sup>)</sup> _,_ (8) and _λf_ is the Fermi level corresponding to the constraint Tr _γ_ = _N_, the electrostatic potential _φ_ that satisfies the Poisson’s equation (5), the exchange correlation potential _u_ that satisfies (6) and the charge density _ρ_ ( x ) = _γ_ ( x _,_ x ). 4 This density matrix formulation is the basis of linear scaling algorithms ( _O_ ( _Ne_ )). Typically, the density matrix (8) is expanded using polynomials and the expansion truncated assuming bandedness of the Hamiltonian and the decay of off-diagonal components. We follow a different approach, the linear scaling spectral Gauss quadratures (LSSGQ) following Suryanarayana _et_ _al._ [16]. The basic idea is to appeal to the spectral representation of the operator _γ_ and to approximate the spectral integrals using Gauss quadratures rules. For any function _η_ _∈_ _L_ <sup>2</sup> (R <sup>3</sup> ), _k_ <sup>_η,_</sup> (9) _⟨η|γ|η⟩_ = _σ_ _g_ ( _λ_ ; _λF_ ) _dµηη_ ( _λ_ ) _≈_ _K_ _k_ =1 _g_ ( _λ_ <sup>_η_</sup> _k_ <sup>_η_</sup> _k_ <sup>;</sup> <sup>_λF_</sup> <sup>)</sup> <sup>_w_</sup> _k_ <sup>_η_</sup> where _σ_ is the spectrum of _H_, and _µηη_ is the spectral measure of _H_ contracted with _η_ . We treat the integral as a Riemann-Stieljes integral and approximate it with quadratures rules with quadrature nodes _λ_ <sup>_η_</sup> _k_ <sup>and</sup> <sup>quadrature</sup> <sup>weights</sup> <sup>_w_</sup> _k_ <sup>_η_</sup> <sup>to</sup> <sup>obtain</sup> <sup>the</sup> <sup>approximation</sup> <sup>shown.</sup> We use a sixth order finite difference approximation with _Nf_ grid points corresponding to a uniform grid spacing _h_, and choose an orthonormal basis _{ηp}_ corresponding to this finite difference basis to represent the Hamiltonian and other quantities. Then, it is possible to show that the ground state energy is given by [15, 16] (10) _K_ _k_ =1 _N_ f �( _Exc_ ( _ρp_ ) _−_ _upρp_ ) _p_ =1 <sup>_η_</sup> _k_ <sup>_pg_</sup> <sup>(</sup> <sup>_λη_</sup> _k_ <sup>_p_</sup> <sup>_η_</sup> _k_ <sup>_p, λf_</sup> <sup>)</sup> <sup>+</sup> <sup>_h_</sup> <sup>3</sup> _N_ f �( _bp −_ _ρp_ ) _ϕp_ + _h_ <sup>3</sup> _p_ =1 _E_ = 2 _N_ f _p_ =1 _wk_ <sup>_ηp_</sup> _k_ <sup>_ηpλη_</sup> _k_ <sup>_p_</sup> - _g_ ( _λ_ <sup>_η_</sup> _k_ <sup>_p_</sup> <sup>_η_</sup> _k_ <sup>_p, λf_</sup> <sup>) log</sup> <sup>_g_</sup> <sup>(</sup> <sup>_λη_</sup> _k_ <sup>_p_</sup> <sup>_η_</sup> _k_ <sup>_p, λf_</sup> <sup>) + (1</sup> <sup>_−_</sup> <sup>_g_</sup> <sup>(</sup> <sup>_λη_</sup> _k_ <sup>_p_</sup> <sup>_η_</sup> _k_ <sup>_p, λf_</sup> <sup>)) log(1</sup> <sup>_−_</sup> <sup>_g_</sup> <sup>(</sup> <sup>_λη_</sup> _k_ <sup>_p_</sup> <sup>_η_</sup> _k_ <sup>_p, λf_</sup> <sup>))</sup> - _,_ _−_ 2 _kBθ_ _N_ f _K_ - _p_ =1 _k_ =1 _wk_ <sup>_ηp_</sup> with _K_ _k_ =1 (11) <sup>_η_</sup> _k_ <sup>_p, λf_</sup> <sup>)</sup> <sup>_,_</sup> _Ne_ _≈_ 2 _N_ f _p_ =1 _wk_ <sup>_ηp_</sup> _k_ <sup>_ηpg_</sup> <sup>(</sup> <sup>_λη_</sup> _k_ <sup>_p_</sup> _K_ _ρp_ _≈_ 2 _h_ <sup>_−_</sup> <sup>3</sup> _k_ =1 _wk_ <sup>_ηp_</sup> _k_ <sup>_ηpg_</sup> <sup>(</sup> <sup>_λη_</sup> _k_ <sup>_p_</sup> (12) <sup>_η_</sup> _k_ <sup>_p, λf_</sup> <sup>)</sup> <sup>_._</sup> It then remains to determine the quadrature points _λ_ <sup>_η_</sup> _k_ <sup>_p_</sup> <sup>_η_</sup> _k_ <sup>_p_</sup> <sup>and weights</sup> <sup>_w_</sup> _k_ <sup>_ηp_</sup> It then remains to determine the quadrature points _λ_ <sup>_η_</sup> _k_ <sup>_p_</sup> <sup>and weights</sup> <sup>_w_</sup> _k_ <sup>_ηp_</sup> <sup>.</sup> <sup>We do so using Lanczos</sup> iteration [39] (see [16, 15] for details). The _key observation_ is that since the finite difference basis has finite support, we can compute the the quantities _λ_ <sup>_p_</sup> _k_ <sup>_, w_</sup> _k_ <sup>_p_</sup> <sup>with</sup> <sup>_O_</sup> <sup>(1) effort at each nodal point</sup> <sup>_p_</sup> <sup>.</sup> <sup>So,</sup> the method automatically has linear scaling. Further, this observation means that the evaluation of all the electronic quantities of interest can be done _locally_ (once the Fermi level is known), and this enables the coarse-graining approach described below. Once we compute the electronic fields, we can compute the forces on the atomic nuclei (the variation of the total energy with respect to the nuclear positions R ) easily using the HellmanFeynman theorem. 2.2 Coarse-grained extension Our goal is a sublinear scaling algorithm that will enable computation of large domains as necessary for dislocations. We observe that the interatomic distances (or strain) decay at the rate of _r_ <sup>_−_</sup> <sup>1</sup> as we go away from the dislocation core, and the corresponding electronic fields (electron density, electrostatic potential) decay to their periodic behavior at the same rate. So we introduce a 5 <sup>_p_</sup> _k_ <sup>_, w_</sup> _k_ <sup>_p_</sup> a b c A’ A A A’ d e A A’ Figure 1: Schematic of an electronic field and its coarse grained representation in MacroDFT. a) Electronic fields around a vacancy defect in a crystalline material. The surface shows the evolution of the field in a 2D plane of the crystalline structure. b) A two-dimensional contour plot of the electronic field ( _ρ_ ). We can clearly see the effect of the vacancy (illustrated with an ’x’) in the field. c) Same electronic field for the pristine crystal without defects ( _ρ_ <sup>0</sup> ). d) Illustration of the corrector field ( _ρ_ <sup>_c_</sup> = _ρ −_ _ρ_ <sup>0</sup> ) for the vacancy example in a two-dimensional slice. Only values above a cutoff has been plotted to ease the view. e) Evolution of the electronic field across the line A-A’. It is evident that the corrector field has large fluctuations near the defect but changes smoothly far away from it. The corrector has been shifted down to make the visualization better. computational basis that makes it possible to describe all details close to the core where it is necessary, but sample it far away where it is not. Importantly, the approach is seamless and adaptive. Given the different behavior, the coarse graining of the atomic positions and electronic fields are done differently. Coarse grained representation of atoms The atomistic distances may vary significantly close to the defect, but decay in a polynomial manner. So, we introduce a subset _P_ a of atoms, called _representative_ _atoms_ (RepAtoms). This subset is dense, i.e., it contains every atom close to the defect but gradually coarsen away from it. We track the positions of these atoms and infer the position of other (non-representative atoms) from the position of the representative atoms by introducing _linear_ finite elements shape functions based on a mesh _T_ a with nodes _P_ a as in the atomistic quasi-continuum formulations [15, 19, 20, 40, 41, 42, 43]. Note that this mesh is Lagrangian. Details of the atomic mesh and visual representation of them are provided in Section 3.3. 6 Coarse grained representation of electronic fields The electronic fields are complex close to the defect but decay to a periodic field away from it, since the far-field is almost periodic with a period related to the unit cell. So a smooth interpolation is not appropriate. We get around it representing the electronic fields as a sum of a _predictor_ and a _corrector_ . The predictor is a slowly varying almost periodic function away from the defect and captures the periodicity of the electronic field in the far field. The difference between the actual electronic fields and the predictor, therefore smoothly decays away from defect. This is represented by the _corrector._ Since the corrector decays smoothly, we can use a smooth interpolation away from the defect. This is shown schematically in Figure 1 with a vacancy as the defect. Figure 1(a) shows the evolution of an electronic field around the vacancy centered in the middle of the picture. For reference, a line A _−_ A’ is shown to plot the charge density later on. Next, Figures 1(b) and (c) show a contour plot of the charge density for the vacancy and the pristine sample, respectively. We intuitively see that these fields are very similar with the exception of near the defect (marked with an ”x”), where large fluctuations are seen. Thus, if we represent the difference between the charge density for the vacancy and the pristine cell, we obtain the contour map shown in Figure 1(d). We see that only near the vacancy this field is large, and very quickly decays to zero. This is the _corrector_ field, and the pristine solution is called in this case the _predictor_ . Putting everything together, we see in Figure 1(e) the three fields, i) the full solution with the vacancy ( _ρ_ ) in black; ii) the predictor field ( _ρ_ <sup>0</sup> ) in red; and iii) the corrector ( _ρ_ <sup>_c_</sup> ) in blue <sup>2</sup> . Now, it is possible to reconstruct the full solution at any point by using an interpolation scheme provided by the FE mesh. This is schematically shown with the blue markers in the blue line of Figure 1(e), where we see a dense sampling near the vacancy, but a coarsening as one moves away from it. This is the principle for coarse-grained description of MacroDFT. To be precise, we introduce a fine uniform spatial grid _P_ f and use representation _φp_ = _φ_ <sup>0</sup> _p_ <sup>0</sup> _p_ <sup>+</sup> <sup>_φ_</sup> _p_ <sup>_c_</sup> _p_ <sup>_c_</sup> <sup>_,_</sup> _ρp_ = _ρ_ <sup>0</sup> _p_ <sup>0</sup> _p_ <sup>+</sup> <sup>_ρ_</sup> _p_ <sup>_c_</sup> _p_ <sup>_c_</sup> <sup>_,_</sup> _p ∈P_ f _,_ (13) for the electrostatic field and electron densities at each of these points where _φ_ <sup>0</sup> _p_ for the electrostatic field and electron densities at each of these points where _φ_ <sup>0</sup> _p_ <sup>_,_</sup> <sup>_ρ_</sup> <sup>0</sup> _p_ <sup>are the predictors</sup> and _φ_ <sup>_c_</sup> _p_ <sup>_,_</sup> <sup>_ρc_</sup> _p_ <sup>are</sup> <sup>the</sup> <sup>correctors.</sup> <sup>We</sup> <sup>defer</sup> <sup>the</sup> <sup>description</sup> <sup>of</sup> <sup>the</sup> <sup>predictor</sup> <sup>till</sup> <sup>the</sup> <sup>next</sup> <sup>section.</sup> To obtain the corrector with sublinear scaling, we compute it only a subset of _electronic sampling_ _points_ (ESPs) _P_ c. We then use a finite element mesh _T_ c over the ESPs and use it to interpolate these fields to the fine mesh: <sup>_c_</sup> _p_ <sup>_,_</sup> <sup>_ρc_</sup> _p_ <sup>0</sup> _p_ <sup>_,_</sup> <sup>_ρ_</sup> <sup>0</sup> _p_ <sup>_c_</sup> _p_ <sup>=</sup> _φ_ <sup>_c_</sup> _p_ <sup>=</sup> _q∈P_ c _γ_ ( r _p,_ r _q_ ) _φ_ <sup>_c_</sup> _q_ <sup>_c_</sup> _q_ <sup>_,_</sup> _ρ_ <sup>_c_</sup> _p_ _q∈P_ c _γ_ ( r _p,_ r _q_ ) _ρ_ <sup>_c_</sup> _q_ <sup>_,_</sup> _p ∈P_ f _._ (14) The ESPs are dense close to the defect, but gradually coarsen away from it. Note that this mesh is spatial or Eulerian. Finally, note that we have two meshes, one atomistic and Lagrangian that is used to describe the relaxation of the atoms as the forces and energy are minimized; and an electronic mesh that Eulerian to solve the Kohn-Sham equations in the sample. Both meshes have adaptive resolution, as previously described. They interact through the theory and therefore, it is important to introduce two special functions that map the ESP into the elements of the _TQC_, and positions to the elements of the fine mesh _Tf_ . For more details, the reader is referred to [15]. Total energy 2The corrector has been shifted down to make the visualization better. 7 <u>Algorithm</u> <u>1</u> <u>MacroDFT</u> <u>algorithm</u> initialize. Initial guess for the positions of RepAtoms _P_ a and electronic fields at ESPs _P_ c. repeat Use the atomistic mesh _T_ a to find position of all atoms, Generate the predictor fields _φ_ <sup>0</sup> _p_ <sup>_, ρ_</sup> <sup>0</sup> _p_ <sup>for</sup> <sup>each</sup> <sup>_p ∈P_</sup> <sup>f</sup> <sup>,</sup> <sup>0</sup> _p_ <sup>_, ρ_</sup> <sup>0</sup> _p_ Generate the predictor fields _φ_ <sup>0</sup> _p_ <sup>_, ρ_</sup> <sup>0</sup> _p_ <sup>for</sup> <sup>each</sup> <sup>_p ∈P_</sup> <sup>f</sup> <sup>,</sup> repeat Find the corrector fields _φ_ <sup>_c_</sup> _p_ Find the corrector fields _φ_ <sup>_c_</sup> _p_ <sup>_, ρc_</sup> _p_ <sup>using</sup> <sup>(14)</sup> <sup>for</sup> <sup>each</sup> <sup>_p ∈P_</sup> <sup>f</sup> <sup>,</sup> Find _{λ_ <sup>_q_</sup> _k_ <sup>_}_</sup> <sup>and</sup> <sup>_{w_</sup> _k_ <sup>_q}_</sup> <sup>using</sup> <sup>Lanczos</sup> <sup>algorithm</sup> <sup>for</sup> <sup>each</sup> <sup>_q_</sup> <sup>_q_</sup> _k_ <sup>_}_</sup> <sup>and</sup> <sup>_{w_</sup> _k_ <sup>_q_</sup> <sup>_c_</sup> _p_ <sup>_, ρc_</sup> _p_ Find _{λ_ <sup>_q_</sup> _k_ <sup>_}_</sup> <sup>and</sup> <sup>_{w_</sup> _k_ <sup>_q}_</sup> <sup>using</sup> <sup>Lanczos</sup> <sup>algorithm</sup> <sup>for</sup> <sup>each</sup> <sup>_q_</sup> <sup>_∈P_</sup> <sup>c,</sup> Find _Ne, ρq_ for each _p ∈P_ f using (11), (12), until convergence of the electronic fields, Compute the forces on the RepAtoms _P_ a, Update the position of the RepAtoms _P_ a, until convergence of the atomic positions. We compute the atomic positions and electronic fields according to the Algorithm 1. It remains to calculate the total energy (10) of the system. We do so by sampling using cluster as follows. Let _Cq_ be the set or _cluster_ of nodal points on the fine mesh contained in a ball of radius _r_ around the _q_ <sup>th</sup> ESP. We approximate the total energy (10) as [15] _E_ _≈_ _q∈Pc_ _nqE_ _q_ (15) where _nq_ is the weight of the _q_ <sup>th</sup> ESP and it is defined as _nq_ = 1 if _q_ belongs to the full resolution zone (16) # _Pf_ associated with _q_ th ESP otherwise and _F_ _q_ is the average Free-Energy at the _q_ <sup>th</sup> ESP computed as _F_ _q_ = <sup><u>1</u></sup> _N_ 2.3 Selection of the predictor field _p∈Cq_ _Fp._ (17) The _key_ for an efficient and accurate coarse-grained implementation is the choice of the predictors. In our previous work [15], the _predictor_ _field_ was taken to coincide with the periodic solution of the perfect stress-free crystal. While this choice is effective for defects that decay quickly, i.e., _r_ <sup>_−_</sup> <sup>2</sup> or _r_ <sup>_−_</sup> <sup>3</sup>, where _r_ is the distance from the defect, it is not for dislocations where the decay is much slower, i.e., _r_ <sup>_−_</sup> <sup>1</sup> . Therefore, we need a more accurate approximation that reflects the deformation. Recall the triangulation _T_ QC. In each element of this triangulation, the positions of the atoms is obtained from a linear interpolation and thus periodic with a unit cell deformed by the deformation gradient given by the atomistic element. It is important that the predictor reflect this periodicity. Therefore, we extract the deformation gradient from each atomistic element, deform the unit cell with this deformation gradient, and compute the electronic field associated with this distorted unit cell. We then extend this periodic field to the entire element. Note that this field automatically reflects the local strain. However, it can be discontinuous at the element boundaries; we remedy this by smoothing with a _L_ <sup>2</sup> _→_ _H_ <sup>1</sup> projection. 8 Unit cell calculation <u>F</u> _<u>e</u>_ F _e_ _ρ_ <sup>0</sup> ( x ), _ϕ_ <sup>0</sup> ( x ) Current of position of the atoms in element _e_ Repatoms Reference crystal Reference element _e_ Figure 2: Schematic showing the evaluation of the predictor fields using Algorithm 1. The deformation gradient F _e_ ( x ) is extracted from the mesh over the RepAtoms (dark). Non-representative atoms are shown in light. With this information, a periodic calculation using the unit cell is performed and the electronic fields of interest are extracted and mapped forward to the simulation. Thus, once the atomic positions are computed with the non-linear conjugate gradient, a new deformation gradient, F _e_, is computed per each element. The deformation gradient is then applied to a unit cell, and the electronic fields are computed on it. We then extract the corrector fields, i.e., _ρ_ <sup>0</sup> ( x ) and _φ_ <sup>0</sup> ( x ), and map them back to the full simulation as schematically shown in Figure 2. The calculations in the unit cell are carried out by individual nodes, and their results are stored on the disk to save memory with an MPI-file. While this puts some restrictions to the speed of the code, the time is not comparable with the amount taken to solve the DFT equations, and then it is affordable. ### 3 Computational set-up We now describe the details of the simulations. The details of the meshes used in this work are described in Table 2. 3.1 Verification of the method Verification of our method has been provided in our previous publication [15], and here we reproduce some of these results for completeness. In our formulation, we first start by investigating two main parameters that condition the accuracy and convergence of the methodology. These two parameters are the number of quadrature points, used to compute Eqs. 10 and 11, and the number of ESP used to discretize the atomic unit cell in full resolution. Figure 3 shows the convergence with respect to number of quadrature points and spatial discretization for a unit cell of Mg. We see how the difference in the energy is reduced as both quadrature points and number of ESPs is increased. In this work, we retained the spatial resolution we used in our previous work. This is about 2,300 ESPs per unit cell, which ensures a convergence of about 0.01 meV per unit cell. We have also used a sufficiently large number of quadrature points, _K_ = 40. With these parameters, is possible to achieve cohesive energy for Mg that are converged to less than a 1 meV. Using a unit cell and 9 (a) Convergence with respect to quadrature points (b) Convergence with respect to spatial discretiza tion Figure 3: Convergence of the cohesive energy in Mg as a function of the (a) quadrature numbers, and (b) the number of ESPs in the unit cell. The relative energies are compared with respect to a reference simulation done with NQP = 60 and 2744 ESPs. Table 1: Comparison of cohesive energy, bulk modulus, and reference volume obtained with MacroDFT and ABINIT using <u>the</u> <u>same</u> <u>local</u> <u>pseudopotential.</u> <u>Property</u> <u>This</u> <u>work</u> <u>ABINIT</u> Emin [eV] -24.61 -24.678 B0 [GPa] 38.74 38.4 <u>V0</u> <u>[eV]</u> <u>42.317</u> <u>42.351</u> full resolution, we have computed cohesive energy values, bulk modulus, and reference volume for Mg that are in good agreement with previous works that have used plane wave implementations. These values are shown in Table 1 for completeness. We can see that the values obtained with MacroDFT are in close agreement with ABINIT calculations. The stable stacking fault energy for Mg was also computed with MacroDFT using the described parameter in a simulation cell containing 2 _×_ 2 _×_ 48 unit cells, i.e., 192 atoms. The values of the stable stacking fault energy was found to be _∼_ 27 mJ _·_ m <sup>_−_</sup> <sup>2</sup>, in good agreement with previous works [25]. Convergence of our coarse-grained simulations has been done in our previous work [15]. In addition, MacroDFT has been used to compute the energy of twin boundaries in Mg, showing good agreement with other techniques [44]. Here, we used the same level of coarsening, that is, the element size increases in different regions of coarse representation by a factor of two. This ensures that the evaluated energy does not depend of the mesh size. 3.2 Prismatic dislocation loops in magnesium A single crystal Mg was generated using the minimum energy configuration for the bulk crystal at _a_ = 3 _._ 109 <sup>˚</sup> A and _c/a_ = 1 _._ 626 [15]. The overall length of the computational domain was 40 _a_ 0 _×_ 40 _a_ 0 _×_ 40 _c_ 0 containing _N_ = 256 _,_ 000 atoms. A full resolution zone of 8 _a_ 0 _×_ 8 _a_ 0 _×_ 8 _c_ 0 was provided in the center of the simulation cell. This area provided fully resolved atomic and electronic mesh containing around _∼_ 1 _,_ 126 _,_ 400 ESPs. Surrounding the full resolution zone, multiple coarse-grained regions were provided for both the electronic and atomic fields. Two Delaunay triangulations over 10 Table 2: Details of the computational meshes and resolution of dislocation cores simulated in this work. ’# Atoms’ is the total number of atoms in the crystal, and ’# RepAtoms’ is the total number of representative atoms in the simulation. #EPs is the total number of electronic points in the fully resolved crystal, and #ESPs is the total number of ESPs in the simulation cell. The columns ’# Threads’ and ’# MPI processes’ refer to the number of threads and MPI processes used during <u>the</u> <u>simulation.</u> <u>Simulation</u> <u>#</u> <u>Atoms</u> <u>#</u> <u>RepAtoms</u> <u>#ESPs</u> <u>#EPs</u> <u>#</u> <u>Threads</u> <u>#</u> <u>MPI</u> <u>processes</u> P.D.L. 256,000 5,000 1,126,400 262,144,000 64 1 Screw Basal 158,000 4,000 560,395 163,840,000 64 1 <u>Screw</u> <u>Prismatic</u> <u>158,00</u> <u>0</u> <u>4,000</u> <u>560,395</u> <u>163,840,000</u> <u>64</u> <u>1</u> the ESPs and RepAtoms were performed, and a FE mesh was provided over these triangulations to interpolate atomic positions and corrector fields. From the center of the full resolution area, _Nv_ atoms were removed to generate a cluster of vacancies. The boundary conditions were set up such that the solution decay to the pristine solution at the end of the simulation cell, for both atomic positions and electronic fields. Let u ( R ) be the atomic displacement field, then u ( R ) = 0 _,_ _∀_ R _∈P/_ _QC_ and _ρc_ ( x ) = 0 _,_ _φc_ ( x ) = 0 _∀_ x _∈P/_ _f_ . This means that we enforced the displacement of the atoms to be zero out of the simulation box and forced the corrector field of the electron density and electrostatic potential to be zero outside the simulation cell too. The selection of these boundary conditions is justified based on the idea that the deviations of the electronic field and atomic displacements decay to zero far away of the defect. 3.3 Screw dislocations in magnesium Two screw dislocations were generated in a single Mg crystal of dimensions _a_ 0[1120] _×_ 200 Two screw dislocations were generated in a single Mg crystal of dimensions _a_ 0[1120] _×_ 200 3 _a_ 0[1010] _×_ 200 _c_ 0[0001]. A basal <sup>_<u>a</u>_</sup> 3 <sup><u>0</u></sup> <sup>[1120]</sup> <sup>_{_</sup> <sup>0001</sup> <sup>_}_</sup> <sup>and</sup> <sup>a</sup> <sup>prismatic</sup> <sup>_<u>a</u>_</sup> 3 <sup><u>0</u></sup> <sup>[1120]</sup> <sup>_{_</sup> <sup>1010</sup> <sup>_}_</sup> <sup>screw</sup> <sup>dislocations</sup> <sup>were</sup> <sup>gen-</sup> _√_ erated by displacing the atoms in the simulation cell using the isotropic elastic solution [2]. The dislocations were generated such that the dislocation line was aligned with the _x−_ direction in the _√_ sample as shown schematically in Figure 4. A full resolution zone of _a_ 0 _×_ 16 3 _a_ 0 _×_ 4 _c_ 0 surrounding t _√_ sample as shown schematically in Figure 4. A full resolution zone of _a_ 0 _×_ 16 3 _a_ 0 _×_ 4 _c_ 0 surrounding the dislocation core was provided for the <sup>_<u>a</u>_</sup> <sup><u>0</u></sup> 3 <sup>[1120]</sup> <sup>_{_</sup> <sup>0001</sup> <sup>_}_</sup> <sup>.</sup> <sup>By</sup> <sup>contrast,</sup> <sup>a</sup> <sup>full</sup> <sup>resolution</sup> <sup>zone</sup> <sup>of</sup> _√_ _a_ 0 _×_ 4 3 _a_ 0 _×_ 16 _c_ 0 surrounding the dislocation core was provided for the <sup>_<u>a</u>_</sup> <sup><u>0</u></sup> 3 <sup>[1120]</sup> <sup>_{_</sup> <sup>1010</sup> <sup>_}_</sup> <sup>.</sup> <sup>In the full</sup> resolution region, the spatial resolution for the electronic degree of freedom is about 2 _,_ 300 ESPs per unit cell. The total number of ESPs in the full resolution area is around 281 _,_ 600. Surrounding this area, three coarse-grained regions were provided. Each coarse-grained region had a constant element size that increased with the distance to the core. The grand total number of electronic degrees of freedom was around 560,395 ESPs. Over this set of points, a Delaunay triangulation was performed and a FE mesh was generated by using four-nodes tetrahedral elements with linear interpolation functions. <sup><u>0</u></sup> 3 <sup>[1120]</sup> <sup>_{_</sup> <sup>0001</sup> <sup>_}_</sup> <sup>.</sup> <sup>By</sup> <sup>contrast,</sup> <sup>a</sup> <sup>full</sup> <sup>resolution</sup> <sup>zone</sup> <sup>of</sup> _a_ 0 _×_ 4 _√_ Similarly to the electronic mesh, an atomic mesh was also provided. The atomic mesh also contained a full resolution area that coincides with the full resolution electronic region. Away from the dislocation core, multiple coarse-grained regions were provided. The perfect atomic positions are used as starting point for this mesh. Figure 5(a) shows spatial distribution of the atoms for a _<u>a</u>_ <u>0</u> 3 <sup>[1120]</sup> <sup>_{_</sup> <sup>1010</sup> <sup>_}_</sup> <sup>screw</sup> <sup>dislocation</sup> <sup>as</sup> <sup>well</sup> <sup>as</sup> <sup>the</sup> <sup>FE</sup> <sup>mesh</sup> <sup>for</sup> <sup>a</sup> <sup>sample</sup> <sup>with</sup> <sup>three</sup> <sup>coarse-grained</sup> regions. Figure 5(b) and (c) show a close-up of the full resolution zone for the two slip systems considered in this work. 11 Figure 4: Schematic view of the slip systems simulated in this work. The burgers vector of the dislocation is shown in red. The gray shaded are shows the slip plane. Blue spheres denote the position of the atoms in the pristine structure of hcp materials. The coarse grained atoms on the slip plane need to have a special capability -similar to the discontinuous FE Galerkin formulation- where the elements are allowed to have a _dual_ _position_ in order to interpolate properly the atomic positions in both sides of the slip plane. With the screw dislocation generated, a FE mesh was constructed over the representative atoms using an _α_ Delaunay triangulation. The _α_ -Delaunay triangulation was needed because the set of representative atoms with the screw dislocation is not a convex hull and highly distorted elements were generated with a regular Delaunay triangulation. A full resolution simulation of the previously described dislocation will involve 304 million ESPs. This leads to a total acceleration due to the spatial coarse-grained approach of 545 times. For all simulations we used a _kBθ_ = 0 _._ 8 which is consistent with other DFT studies of metals and the energy and forces were minimized by using the Polak-Ribi`ere version of the non-linear conjugate gradient (NLCG). The boundary conditions were set up such that the atomic displacements outside the computational cell were given by the elastic solution [2]. By doing so, we can compute for all elements outside the computational box the deformation gradient F _e_ _a_ _priori_ . Thus, for each atom outside the computational domain, the electronic field and atomic displacements are fully determined. This means that _ρc_ ( x ) = 0 _,_ _φc_ ( x ) = 0 _∀_ x _∈P/_ _f_ . 12 (a) Atoms and mesh for the basal system. (b) Full resolution area for the basal system. (c) Full resolution area for the prismatic system. Figure 5: Finite element mesh along with the representative atoms for the _a_ 0 _/_ 3[1120] _{_ 1010 _}_ screw dislocation simulation. Bottom close-up show the full resolution zone for both slip systems. 13 Table 3: Binding energy for PDLs of different sizes after relaxation. In all cases, the number of atoms in the simulation <u>is</u> <u>approximately</u> <u>256,000.</u> <u>Cluster</u> <u>Size</u> <u>[Atoms]</u> 7 19 37 Binding energy (non-collapsed) [eV] 1.25 4.39 9.36 <u>Binding</u> <u>energy</u> <u>(Collapsed)</u> <u>[eV]</u> <u>—</u> <u>2.99</u> <u>10.13</u> ### 4 Results 4.1 Prismatic dislocation loops in magnesium The energy of the computational cell is minimized using a NLCG and the formation energy and the binding energy were computed as _EN_ <sup>_f_</sup> _v_ <sup>=</sup> <sup>_E_</sup> <sup>(</sup> <sup>_N_</sup> <sup>_−_</sup> <sup>_Nv_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_Ep_</sup> <sup>(</sup> <sup>_N_</sup> <sup>_−_</sup> <sup>_Nv_</sup> <sup>) =</sup> <sup>_E_</sup> <sup>(</sup> <sup>_N_</sup> <sup>_−_</sup> <sup>_Nv_</sup> <sup>)</sup> <sup>_−_</sup> <sup>(</sup> <sup>_N_</sup> <sup>_−_</sup> <sup>_Nv_</sup> <sup>)</sup> <sup>_Ec,_</sup> (18) and _N_ <sup>_b_</sup> _v_ <sup>=</sup> <sup>_NvE_</sup> 1 <sup>_f_</sup> _E_ <sup>_b_</sup> (19) 1 <sup>_f_</sup> <sup>_−_</sup> <sup>_E_</sup> _N_ <sup>_f_</sup> _v_ <sup>_,_</sup> where _E_ <sup>_f_</sup> where _EN_ <sup>_f_</sup> _v_ <sup>is the formation energy for the cluster with</sup> <sup>_Nv_</sup> <sup>vacancies,</sup> <sup>_E_</sup> <sup>(</sup> <sup>_N −_</sup> <sup>_Nv_</sup> <sup>) is the total energy</sup> of the system containing _Nv_ vacancies, _Ep_ ( _N_ _−_ _Nv_ ) = ( _N_ _−_ _Nv_ ) _Ec_ is the energy in the pristine configuration computed as the number of atoms ( _N −_ _Nv_ ) times the cohesive energy per atom ( _Ec_ ) in Mg. _EN_ <sup>_b_</sup> _v_ <sup>is</sup> <sup>the</sup> <sup>biding</sup> <sup>energy</sup> <sup>for</sup> <sup>_Nv_</sup> <sup>vacancies,</sup> <sup>and</sup> <sup>_E_</sup> 1 <sup>_f_</sup> <sup>is</sup> <sup>the</sup> <sup>formation</sup> <sup>energy</sup> <sup>of</sup> <sup>a</sup> <sup>single</sup> vacancy. Table 3 shows the values of the formation energy and the binding energy for both the noncollapsed and collapsed configurations. The binding energy for cluster of vacancies lying on the basal plane is quite large and correspond to a very stable defect. The binding energy computed using Eq. 19 measures the difference between the energy in a cluster of vacancies and the energy of the same number of individual vacancies. Therefore, such a large binding energy indicates that vacancies will always try to regroup in clusters instead of being randomly disperse in the sample, at least at low temperatures where entropic effects are not important. Figure 6 shows the electron density through two planes at _y_ = 0 and _z_ = 0, respectively for a sample containing 7 vacancies in the non-collapsed configuration. It is also interesting to analyze the binding energies of the same clusters collapsed, in order to understand the formation of prismatic dislocation loops in Mg. For instance, for the sample containing 7 vacancies, the collapsed configuration was always unstable and the atoms came back to the non-collapsed configuration shown in Figure 6. On the other hand, when the number of vacancies was increased to _Nv_ = 19 and _Nv_ = 37, the binding energy experienced a change, as shown in Table 3. The binding energy for _Nv_ = 19 was around 2.99 eV, and for _Nv_ = 27 was around 10.13 eV. This highly non-linear demeanor of the binding energy indicates a preference towards large prismatic dislocation loops and therefore, sets a minimum size of PDL that can be observed in Mg. Although configurations with larger number of vacancies are not feasible with MacroDFT, there is a clear trend in the binding energy which favors large PDLs, as observed in experiments [45, 46, 47] of Mg and nanoporous Mg alloys. 14 _N_ <sup>_b_</sup> _v_ <sup>is</sup> <sup>the</sup> <sup>biding</sup> <sup>energy</sup> <sup>for</sup> <sup>_Nv_</sup> <sup>vacancies,</sup> <sup>and</sup> <sup>_E_</sup> 1 <sup>_f_</sup> (a) (b) Figure 6: Electron density through two planes at (a) ([1120]) and (b) [0001] crystallographic directions for a sample containing 7 vacancies in the non-collapsed configuration. (a) (b) Figure 7: PDLs after collapse and energy relaxation. a) Electron density near the defect, b) top view of the electron density for the collapsed loop. Atoms that generate the PDL are illustrated with white spheres. 15 Figure 8: Atomic displacement with respect to their perfect pristine position near the core for the collapsed PDL containing 37 vacancies. The blue dashed lines indicate a decay of _C/r_ with _C_ = _−_ 3 <sup>˚</sup> _A_ . We observe that near the defect, the displacements do not follow the smooth decay. 4.2 Screw dislocations in magnesium After relaxing the dislocation core, the excess of energy for the dislocations was measured with respect to the pristine Mg configuration. To measure the energy of the dislocation core, we took a cylinder of radius _R_ centered in the dislocation core ( _y_ = 0, _z_ = 0) with principal axis along the dislocation line. Then, we analyzed the excess of energy for different values of _R_ . The excess energy was defined as _E_ excess( _N, R_ ) = _E_ D( _N, R_ ) _−_ _E_ P( _N, R_ ) = _E_ D( _N, R_ ) _−_ _NE_ C _,_ (20) where _N_ is the total number of atoms in the cylinder of radius _R_, _E_ D( _N, R_ ) is the total energy in the same cylinder after the core has been relaxed, and _E_ C is the cohesive energy of pristine Mg. The energy in the cylinder, _E_ D( _N, R_ ) is computed by evaluating the electronic fields for each ESP inside the cylinder using the predictor-corrector approach. Once the fields are evaluated, the total energy was computed using Eq. 17. In the analysis of dislocations it is usually common to show the evolution of the excess energy in the cylinder as a function of the ratio _r_ <sup>_<u>R</u>_</sup> 0 <sup>,</sup> <sup>where</sup> <sup>_r_</sup> <sup>0</sup> <sup>is</sup> <sup>an</sup> <sup>arbitrary</sup> <sup>constant.</sup> <sup>It</sup> <sup>is</sup> <sup>common</sup> <sup>practice</sup> to take _r_ 0 = _b_, and under this assumption the energy contained in the cylinder can be expressed as [2] _<u>WL</u>_ <sup>=</sup> <sup>_<u>µb</u>_</sup> 4 _π_ <sup>2</sup> + _E_ core _,_ (21) _<u>W</u>_ <sup>_<u>µb</u>_</sup> 4 _π_ <sup>2</sup> <sup>ln</sup> - _rR_ 0 where _µ_ = 19 _._ 9 GPa is the shear modulus of Mg computed with MacroDFT, and _E_ core is an indeterminate constant that needs to be evaluated using discrete techniques such as _ab-initio_ or 16 (a) Excess of energy for a basal screw dislocation. (b) Excess of energy for a prismatic screw dislocation. Figure 9: Excess of energy per Angstrom for a) <sup>_<u>a</u>_</sup> 3 <sup><u>0</u></sup> <sup>[1120]</sup> <sup>_{_</sup> <sup>0001</sup> <sup>_}_</sup> <sup>and</sup> <sup>b)</sup> <sup>_<u>a</u>_</sup> 3 <sup><u>0</u></sup> <sup>[1120]</sup> <sup>_{_</sup> <sup>1010</sup> <sup>_}_</sup> <sup>screw</sup> dislocation. molecular dynamics calculations. Remarkably, the value _E_ core is not a physical quantity as it depends on the value _r_ 0 that is arbitrary. The logarithmic divergence of Eq. 21 indicates that in order to understand the energy of the dislocation core, the energy has to be sampled across very large samples spanning multiple Burgers vectors in order to obtain the _elastic_ pre-factor <sup>_<u>µb</u>_</sup> <sup>2</sup> 4 _π_ <sup>.</sup> Figure 9 shows the evolution of the excess energy, computed with Eq. 20, as a function of the log( _R/r_ 0). By adjusting the _E_ core values to the results obtained with MacroDFT, we have concluded that _E_ core = 7 meV/ <sup>˚</sup> _A_ and _E_ core = 7 _._ 5 meV/ <sup>˚</sup> _A_ for the basal and prismatic slip systems, respectively. This small strain energy per unit length is very difficult to measure and illustrate the importance of coarse-grained techniques such as MacroDFT. The results also show an excellent agreement for the far field with the elastic solution (characterized by the slope of the blue curve) which lends credence to the prediction of dislocation far field obtained with MacroDFT and therefore, to the coarse-grained scheme used. Figure 10 shows the differential displacement plots [48] structure of the dissociated core for the basal <sup>_<u>a</u>_</sup> <sup><u>0</u></sup> The original basal 3 <sup>[1120]</sup> <sup>_{_</sup> <sup>0001</sup> <sup>_}_</sup> <sup>and</sup> <sup>prismatic</sup> <sup>_<u>a</u>_</sup> 3 <sup><u>0</u></sup> <sup>[1120]</sup> <sup>_{_</sup> <sup>1010</sup> <sup>_}_</sup> <sup>screw</sup> <sup>dislocations.</sup> dislocation is dissociated into two partials according to the reaction _<u>a</u>_ <u>0</u> (22) 3 <sup>[1120]</sup> <sup>_−→_</sup> <sup>_<u>a</u>_</sup> 3 <sup><u>0</u></sup> <sup>[1010] +</sup> <sup>_<u>a</u>_</sup> 3 <sup><u>0</u></sup> <sup>[0110] + SF</sup> <sup>_,_</sup> where SF stands for stacking fault. By examining the atomic positions as shown in Figure 10(a) we observed that the dissociation distance was around _∼_ 2 _._ 9 _a_ 0. By comparing with previous studies of screw dislocations in the basal plane, we found that this value is slightly larger than previously reported [25]. This could be attributed to a number of reasons, including different boundary conditions, pseudo-potential used, etc. The <sup>_<u>a</u>_</sup> <sup><u>0</u></sup> 3 <sup>[1120]</sup> <sup>_{_</sup> <sup>1010</sup> <sup>_}_</sup> <sup>screw</sup> <sup>dislocation</sup> <sup>is</sup> <sup>stable</sup> <sup>and</sup> <sup>_does_</sup> _not_ _split_ into two partials. This is consistent with stacking fault calculations along the prismatic plane. These calculations show that there is not stable local minima in this direction, and therefore, the prismatic dislocation cannot split. 17 (a) Basal screw dislocation. (b) Prismatic screw dislocation. Figure 10: Differential displacement plots for the a) basal and b) prismatic screw dislocation in Mg. The atoms are shown in green, while the arrows indicate the magnitude of the differential displacement field. The prismatic dislocation has a very compact core, while the core in the basal plane is slighter larger due to the existence of stable stacking fault in Mg. 4.3 Aluminum solute-dislocation interaction We now proceed to measure the interaction energy between an Al solute atom and the dislocations for various position along the slip plane. In order to do so, we replace a Mg atom by an Al solute stating from the position _y_ = 0 _,_ _z_ = 0. We only replace atoms lying on the slip plane for the two screw dislocations considered in this work. Then, the excess energy was computed as ∆ _E_ solute = _ED_ ( _N, R, r_ <sup>Al</sup> ) _−_ _ED_ ( _N, R, r_ max <sup>Al</sup> <sup>)</sup> (23) where _ED_ ( _N, R, r_ <sup>Al</sup> ) is the energy in a cylinder of radius _R_ = 500 <sup>˚</sup> _A_, containing N-1 Mg atoms and one Al atom at _r_ <sup>Al</sup>, and _ED_ ( _N, R, r_ max <sup>Al</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>energy</sup> <sup>in</sup> <sup>a</sup> <sup>cylinder</sup> <sup>of</sup> <sup>radius</sup> <sup>_R_</sup> <sup>= 500˚</sup> <sup>_A_</sup> <sup>,</sup> <sup>containing</sup> N-1 Mg atoms and one Al atom at the _r_ max <sup>Al</sup> <sup>, which is the maximum distance from the core at which</sup> we have placed the solute atom. Figure 11 shows the excess of energy for various positions of the solute atom for the basal and prismatic slip system (Figure 11(a) and (b), respectively). Figure 11 depicts a non-linear interaction energy between solute and dislocation core, and this interaction is very strong near the core decaying very fast relatively quickly. Remarkably, the maximum interaction energy is of the order of 50-60 meV/Angs. which is larger than the core energy of the dislocations. ### 5 Parallel performance We now proceed to discuss the parallel performance and speed-up achieved with MacroDFT in MIRA an IBM BG/Q 1.6 GHz PowerPC A2 supercomputer property of Argonne National Laboratory. Measuring the efficiency and performance are essential for new DFT methodologies and codes, as most of the classical plane-wave codes scale poorly for more than 64 processors. Thus, the _next_ _generation_ of computational tools should be able to harness petascale resources that can further accelerate the discovery of new materials and alloys through accurate _ab-initio_ calculations. This is challenging since both the methodology and implementation need to be highly efficient to handle thousands of processors at the same time. Here, we provide results for the 18 (a) Basal screw. (b) Prismatic screw. Figure 11: Excess of energy for an Al solute near the dissociated core along the (a) basal for a screw dislocation lying on the basal plane and (b) prismatic plane for a screw dislocation lying on the prismatic plane. Figure 12: Speed-up achieved with multiple combinations of processors and threads obtained in MIRA IBM BG/Q 1.6 GHz PowerPC A2 supercomputer of Argonne National Laboratory. We use a combination of 64 threads per node, thus we use 2,048 to 65,536 processors (128 to 4096 nodes). Each node has 16 physical processors and capable of running 64 threads per node. 19 strong scaling of MacroDFT using up to 262,144 threads. The IBM BG/Q 1.6 GHz PowerPC A2 node architecture has 16 physical processors, each node is capable of running 4 threads. Thus, the user can specify any combination of threads and processor per node such that the number # processors _×_ # threads = 64. The ratio processors/threads has to be evaluated for each code/problem. In our case, we found that the best combination was to use processes with 64 threads, which reduces the internode communication. Using this combination, the threads share the same memory, the number of MPI communications was reduced significantly. For the benchmark, we have used the non-collapsed cluster of vacancies containing 7 vacancies described in Section 3.2 and compute one SCF evaluation using different numbers of threads. Figure 12 shows the parallel performance for MacroDFT from 8,192 (2,048) to 262,144 (65,536) threads (processors). The results show that MacroDFT has a good efficiency up to 131,072 threads with an efficiency of _∼_ 87 _._ 5%, while for 262,144 threads, an efficiency of _∼_ 68 _._ 75% is achieved. This remarkable performance is due to the fact that the DFT formulation (Eq. 9) can be solved _locally_ and the relevant electronic fields ESP can be evaluated with only the information of a small neighborhood surrounding the point. Since the computational representation of the ESPs is in realspace, the cost of computing the electronic fields can be distributed between multiple processors taking advantage of massively parallel computers, as only the local components of the Hamiltonian need to be updated every SCF iteration. According to the scaling performance shown in Figure 12, the time taken by the interpolation scheme is negligible in comparison with the time consumed to determine the nodes and weights of the spectral quadrature rule. By contrast, when the number of threads is increased significantly, 262,144 or more, the performance goes down due to multiple factors including load imbalance, few number of ESP per node, interpolation, and data writing to disk. Nonetheless, the performance of MacroDFT is outstanding when compared with the _state-_ _of-the-art_ DFT codes, which cannot even run in such a large number of processors. Therefore, real-space DFT implementations have an opportunity to take advantage of supercomputing power and over-perform traditional plane-wave based implementations. ### 6 Conclusions We have developed a novel approach for the study of dislocations in crystalline materials using _ab-initio_ techniques. In this approach, the equations of density functional theory are solved on a domain large enough to capture both the core and elastic fields in a completely seamless manner. It technique is based on three-main pillars i) reformulation of the Kohn-Sham equations into a density matrix formulation and subsequent spectral representation of the density matrix (See Section 2.1); ii) Separation of the electronic fields in predictor and corrector counterparts (Equations (13), (14) and Section 2.3); and iii) Interpolation scheme for electronic fields and displacements using finite element meshes (2.2). The proposed approach has been implemented in the MacroDFT code [42] which can be executed in MPI, thread and hybrid options according to the architecture of the high performance cluster available. The parallel efficiency of the code has been studied, achieving good parallel performance in extreme scale computers capable of running _∼_ 260 _,_ 000 threads. The code and method has been used to study the relaxed configurations of the atoms in multiple dislocation cores in Mg, a crystalline metallic material. For PDLs, our simulations have predicted that vacancies always bind together, at least for low temperatures where entropic effects are weak. In screw dislocations gliding in the basal and prismatic planes, we have found that the strain energy stored in the computational sample scales accordingly to the elasticity theory for both cases. The results indicate that in order to obtain good prefactors, the simulations has to be sufficiently large, of the order of a few hundred thousand atoms. The agreement of the elastic prefactor between our 20 simulations and theory lends credence to the approach, and provides numeric evidence that the coarse-grained approach can be used in complex scenarios where quantum mechanical interactions are important, such as in dislocation cores in alloys, grain and twin boundaries. ### 7 Acknowledgments We gratefully acknowledge the support of the U.S. Army Research Laboratory (ARL) through the Materials in Extreme Dynamic Environments (MEDE) Collaborative Research Alliance (CRA) under Award Number W911NF-11-R-0001 and from the Natural Sciences and Engineering Research Council of Canada (NSERC) through the Discovery Grant under Award Application Number RGPIN-2016-06114. We also are grateful to Compute Canada through the Westgrid consortium for giving access to the supercomputer grid. This research used resources of the Argonne Leadership Computing Facility, which is a DOE Office of Science User Facility supported under Contract DE-AC02-06CH11357. ### References [1] V. Volterra. Sur l’´equilibre des corps ´elastiques multiplement connexes. _Annales_ _scientifiques_ _de_ _l’Ecole_ <sup>_´_</sup> _Normale_ _Sup´erieure_, 24:401–517, 1907. [2] J.P. Hirth and J. Lothe. _Theory_ _of_ _Dislocations_ . Krieger Publishing Company, 1982. [3] D. Rodney, L. Ventelon, E. Clouet, L. Pizzagalli, and F. Willaime. Ab initio modeling of dislocation core properties in metals and semiconductors. _Acta_ _Materialia_, 124:633 - 659, 2017. [4] R.G. Parr and W. Yang. _Density-Functional_ _Theory_ _of_ _Atoms_ _and_ _Molecules_ . International Series of Monographs on Chemistry. Oxford University Press, 1989. [5] S Goedecker and G E Scuseria. Linear scaling electronic structure methods in chemistry and physics. _Comput._ _Sci._ _Eng._, 5(4):14–21, July 2003. [6] F. F. Abraham, J. Q. Broughton, N. Bernstein, and E. Kaxiras. Spanning the continuum to quantum length scales in a dynamic simulation of brittle fracture. _Europhysics_ _Letters_, 44:783–787, 1998. [7] G. Lu, E. B. Tadmor, and E. Kaxiras. From electrons to finite elements: A concurrent multiscale approach for metals. _Physical_ _Review_ _B_, 73:024108, 2006. [8] J. R. Kermode, T. Albaret, D. Sherman, N. Bernstein, P. Gumbsch, M. C. Payne, G. Cs´anyi, and A. De Vita. Low-speed fracture instabilities in a brittle crystal. _Nature_, 455:1224–1227, 2008. [9] N. Bernstein, J. R. Kermode, and G. Cs´anyi. Hybrid atomistic simulation methods for mate rials systems. _Reports_ _on_ _Progress_ _in_ _Physics_, 72:026501, 2009. [10] G. P. M. Leyson, W. A. Curtin, L. G. Hector, and C. F. Woodward. Quantitative prediction of solute strengthening in aluminium alloys. _Nature_ _Materials_, 9:750–755, 2010. [11] X. Zhang, G. Lu, and W. A. Curtin. Multiscale quantum/atomistic coupling using constrained density functional theory. _Physical_ _Review_ _B_, 87:054113, 2013. 21 [12] C. Woodward. First-principles simulations of dislocation cores. _Materials_ _Science_ _and_ _Engi-_ _neering:_ _A_, 400–401:59–67, 2005. [13] C. Woodward, D. R. Trinkle, L. G. Hector, and D. L. Olmsted. Prediction of dislocation cores in aluminum from density functional theory. _Physical_ _Review_ _Letters_, 100:045507, 2008. [14] M. Ponga, M. P. Ariza, M Ortiz, and K. Bhattacharya. Linear Scaling DFT for defects in metals. In _TMS_ _2014:_ _143rd_ _Annual_ _Meeting_ _&_ _Exhibition_, pages 265–272, Cham, 2016. Springer International Publishing. [15] M. Ponga, K. Bhattacharya, and M. Ortiz. A sublinear-scaling approach to density-functional theory analysis of crystal defects. _Journal_ _of_ _the_ _Mechanics_ _and_ _Physics_ _of_ _Solids_, 95:530 556, 2016. [16] P. Suryanarayana, K. Bhattacharya, and M. Ortiz. Coarse-graining Kohn-Sham density func tional theory. _Journal_ _of_ _the_ _Mechanics_ _and_ _Physics_ _of_ _Solids_, 61:38–60, 2013. [17] P. Hohenberg and W. Kohn. Inhomogeneous electron gas. _Physical_ _Review_, 136:B864–B871, 1964. [18] W. Kohn and L. J. Sham. Self-consistent equations including exchange and correlation effects. _Physical_ _Review_, 140:A1133–A1138, 1965. [19] E. B. Tadmor, M. Ortiz, and R. Phillips. Quasicontinuum analysis of defects in solids. _Philo-_ _sophical_ _Magazine_, 73:1529–1563, 1996. [20] J. Knap and M. Ortiz. An analysis of the quasicontinuum method. _Journal_ _of_ _the_ _Mechanics_ _and_ _Physics_ _of_ _Solids_, 49:1899–1923, 2001. [21] T. Tsuru and D. C. Chrzan. Effect of solute atoms on dislocation motion in mg: An electronic structure perspective. _Scientific_ _Reports_, 5:8793 EP –, 03 2015. [22] I. Shin and E. A. Carter. Orbital-free density functional theory simulations of dislocations in magnesium. _Modelling_ _and_ _Simulation_ _in_ _Materials_ _Science_ _and_ _Engineering_, 20(1):015006, nov 2011. [23] M. Ghazisaeidi, L.G. Hector, and W.A. Curtin. First-principles core structures of _⟨_ c+a _⟩_ edge and screw dislocations in mg. _Scripta_ _Materialia_, 75:42 - 45, 2014. [24] T. Nogaret, W.A. Curtin, J.A. Yasi, L.G. Hector, and D.R. Trinkle. Atomistic study of edge and screw _⟨_ c+a _⟩_ dislocations in magnesium. _Acta_ _Materialia_, 58(13):4332 - 4343, 2010. [25] J A Yasi, T Nogaret, D R Trinkle, Y Qi, L G Hector, and W A Curtin. Basal and prism disloca tion cores in magnesium: comparison of first-principles and embedded-atom-potential methods predictions. _Modelling and Simulation in Materials Science and Engineering_, 17(5):055012, jun 2009. [26] W. Cai, Bulatob V. V., J. Chang, J. Li, and S. Yip. Periodic image effects in dislocation modelling. _Philosophical_ _Magazine_, 83(5):539–567, 2003. [27] Hong Li, Stefan Wurster, Christian Motz, Lorenz Romaner, Claudia Ambrosch-Draxl, and Reinhard Pippan. Dislocation-core symmetry and slip planes in tungsten alloys: Ab initio calculations and microcantilever bending experiments. _Acta_ _Materialia_, 60(2):748 – 758, 2012. 22 [28] L. Romaner, V.I. Razumovskiy, and R. Pippan. Core polarity of screw dislocations in fe?co alloys. _Philosophical_ _Magazine_ _Letters_, 94(6):334–341, 2014. [29] M. Finnis. _Interatomic_ _Forces_ _in_ _Condensed_ _Matter_ . Oxford Series on Materials Modelling 1. Oxford University Press, 2003. [30] J. P. Perdew and Y. Wang. Accurate and simple analytic representation of the electron-gas correlation energy. _Phys._ _Rev._ _B_, 45:13244–13249, Jun 1992. [31] D. M. Ceperley and B. J. Alder. Ground state of the electron gas by a stochastic method. _Phys._ _Rev._ _Lett._, 45:566–569, Aug 1980. [32] S. Ismail-Beigi and T.A. Arias. New algebraic formulation of density functional calculation. _Computer_ _Physics_ _Communications_, 128:1–45, 2000. [33] P. Suryanarayana, V. Gavini, T. Blesgen, K. Bhattacharya, and M. Ortiz. Non-periodic finite element formulation of Kohn-Sham density functional theory. _Journal_ _of_ _the_ _Mechanics_ _and_ _Physics_ _of_ _Solids_, 58:256–280, 2010. [34] P. Motamarri, M.R. Nowak, K. Leiter, J. Knap, and V. Gavini. Higher-order adaptive finite element methods for kohn-sham density functional theory. _Journal_ _of_ _Computational_ _Physics_, 253:308 - 343, 2013. [35] P. P. Pratapa, P. Suryanarayana, and J. E. Pask. Anderson acceleration of the jacobi iterative method: An efficient alternative to krylov methods for large, sparse linear systems. _Journal_ _of_ _Computational_ _Physics_, 306:43 - 54, 2016. [36] P. Motamarri, S. Das, S. Rudraraju, K. Ghosh, D. Davydov, and V. Gavini. Dft-fe - a massively parallel adaptive finite-element code for large-scale density functional theory calculations. _Submitted_, 2019. [37] A. Anantharaman and E. Canc`es. Existence of minimizers for Kohn-Sham models in quantum chemistry. _Ann_ _I_ _H_ _Poincare-An_, 26(6):2425–2455, 2009. [38] X. Wang, T. Blesgen, K. Bhattacharya, and M. Ortiz. A variational framework for spectral approximations of kohn–sham density functional theory. _Archive_ _for_ _Rational_ _Mechanics_ _and_ _Analysis_, 221(2):1035–1075, Aug 2016. [39] Gene H. Golub and Gerard Meurant. _Matrices,_ _Moments_ _and_ _Quadrature_ _with_ _Applications_ . Princeton University Press, Princeton, NJ, USA, 2009. [40] M. P. Ariza, I. Romero, M. Ponga, and M. Ortiz. Hotqc simulation of nanovoid growth under tension in copper. _International_ _Journal_ _of_ _Fracture_, 174(1):75–85, Mar 2012. [41] M. Ponga, M. Ortiz, and M.P. Ariza. Finite-temperature non-equilibrium quasi-continuum analysis of nanovoid growth in copper at low and high strain rates. _Mechanics_ _of_ _Materials_, 90:253 - 267, 2015. Proceedings of the IUTAM Symposium on Micromechanics of Defects in Solids. [42] M. Ponga, A. A. Ramabathiran, K. Bhattacharya, and M. Ortiz. Dynamic behavior of nano voids in magnesium under hydrostatic tensile stress. _Modelling_ _and_ _Simulation_ _in_ _Materials_ _Science_ _and_ _Engineering_, 24(6):065003, jul 2016. 23 [43] M. Ponga, M. Ortiz, and M. P. Ariza. A comparative study of nanovoid growth in fcc metals. _Philosophical_ _Magazine_, 97(32):2985–3007, 2017. [44] D. Sun, M. Ponga, K. Bhattacharya, and M. Ortiz. Proliferation of twinning in hexagonal close-packed metals: Application to magnesium. _Journal_ _of_ _the_ _Mechanics_ _and_ _Physics_ _of_ _Solids_, 112:368 - 384, 2018. [45] J. Geng, M.F. Chisholm, R.K. Mishra, and K.S. Kumar. The structure of _⟨_ c+a _⟩_ type disloca tion loops in magnesium. _Philosophical_ _Magazine_ _Letters_, 94(6):377–386, 2014. [46] S. Wu, H. Sheng, C. Liu, F. Cao, Y. Liu, H. Zheng, D. Zhao, and J. Wang. Fabrication and healing of faceted nanopores in magnesium. _Microscopy_ _and_ _Microanalysis_, 20(S3):1640–1641, 2014. [47] H. Zheng, Y. Liu, F. Cao, S. Wu, S.and Jia, A. Cao, D. Zhao, and J. Wang. Electron beam assisted healing of nanopores in magnesium alloys. _Scientific_ _Reports_, 3:1920 EP –, 05 2013. [48] V. V´ıtek, R. C. Perrin, and D. K. Bowen. The core structure of (111) screw dislocations in b.c.c. crystals. _The_ _Philosophical_ _Magazine:_ _A_ _Journal_ _of_ _Theoretical_ _Experimental_ _and_ _Applied_ _Physics_, 21(173):1049–1073, 1970. 24

섹션 본문 57문단 · 41,629자

(제목 없음)

1We present a novel methodology to compute relaxed dislocations core configurations, and their energies in crystalline metallic materials using large-scale ab-intio simulations. The approach is based on MacroDFT, a coarse-grained density functional theory method that accurately computes the electronic structure but with sub-linear scaling resulting in a tremendous reduction in cost. Due to its implementation in real-space, MacroDFT has the ability to harness petascale resources to study materials and alloys through accurate ab-initio calculations. Thus, the proposed methodology can be used to investigate dislocation cores and other defects where long range elastic defects play an important role, such as in dislocation cores, grain boundaries and near precipitates in crystalline materials. We demonstrate the method by computing the relaxed dislocation cores in prismatic dislocation loops and dislocation segments in magnesium (Mg). We also study the interaction energy with a line of Aluminum (Al) solutes. Our simulations elucidate the essential coupling between the quantum mechanical aspects of the dislocation core and the long range elastic fields that they generate. In particular, our quantum mechanical simulations are able to describe the logarithmic divergence of the energy in the far field as is known from classical elastic theory. In order to reach such scaling, the number of atoms in the simulation cell has to be exceedingly large, and cannot be achieved with the state-of-the-art density functional theory implementations.

Introduction

2Dislocations are the main carrier of plasticity in crystalline materials. Their behavior and interactions have strong consequences in the mechanical response of materials. As such, dislocations have been extensively studied since the seminal work of Volterra [1]. Dislocations have long been analyzed by separating their effect into two main contributors, the dislocation core and its longrange field [2]. The former is characterized by strong non-linear quantum mechanical effects; the latter is a long-range elastic field characterized by smooth atomic displacements that are typically modeled using continuum elasticity theory in either its isotropic or anisotropic versions. However, the elastic fields are long-range: the interatomic distances or strains decay inversely with distance ∼ r −1 , where r is the distance from the defect, so that the energy density is logarithmically divergent. This means that the core and far-field are intimately coupled and the traditional separation is problematic. This has many physical implications including the effect of the far-field stresses on the core and the interaction between the dislocation and solute atoms. Therefore, a full understanding requires ab-initio techniques [3]. However, this is not a trivial task since the slow decay of the far field and the intimate coupling means that a very large number of atoms are needed to properly describe this behavior. Unfortunately, this cannot easily be achieved with existing ab-initio methods, since they scale poorly (O(N 3 e ) in traditional approaches and O(N e ) in newer linear scaling approaches [4,5]). Different multiscale approaches have been proposed to overcome these difficulties. Most of these models consist of patching together heterogeneous models at different scales, from DFT to continuum elasticity to couple the long-range effect and the dislocations core. The coupling between the various models varies from parameter passing to hybrid Hamiltonians [6,7,8,9,10,11]. Since these methods bring together distinct models that embody different physics and differing mathematical formulations, they typically assume separation of scales (as in parameter passing) or additional physics or constraints at the interface (as in hybrid Hamiltonians). Often times, the models need to be adjusted or calibrated to the particular phenomenon under consideration, which ultimately detracts from the predictiveness and fundamental nature of first-principles calculations. A variation is the interesting work of Woodward and collaborators [12,13] where they used full density functional theory in a core region and a linear response (Green's functions) outside. Still, the approach separates the domain into multiple regions with two distinct theories.

3In this work, we propose a new approach where the equations of density functional theory are solved on a domain large enough to capture both the core and elastic fields in a completely seamless manner. It builds on the recently developed Coarse-Grained Density Functional Theory (CG-DFT) technique developed by Ponga et. al. [14,15] and has it roots in the linear scaling method of Suryanarayana et al. [16]. The latter reformulates the original Kohn-Sham equations [17,18] into density matrix form, and then approximates the density matrix using spectral Gauss quadrature rules. This enables the calculation of the electron density and other quantities of interest at any point in space at fixed or O(1) cost. Consequently the algorithm has linear scaling. However, the fact that the method is local allows the construction of an adaptive numerical approximation that has sub-linear scaling. The key idea is to exploit the decay so that we have full resolution near the core where the details are important and only sample the electronic fields far away where the atomistic displacements decay in a smooth fashion. However, this requires care: even though the atomistic displacements decay smoothly enabling a quasi-continuum approximation [19,20], the electronic fields (like the electron density and Hartree potential) oscillate in an (almost) periodic manner on the scale of the lattice. Our key observation is that the electronic fields of interests can be written as a sum of two parts, a predictor which captures the periodicity in the far-field and a corrector that is complex at the core but decays away from it. We compute the former inexpensively via unit cell calculations at representative points, while we compute the latter on a gradually coarsening set of electronic sampling points by exploiting the local nature of our formulation. Together, this gives sub-linear scaling with the number of electrons allowing the multiscale simulations of hundreds of thousands of atoms with DFT. The technique has been implemented in the MacroDFT code. We will refer to the CG-DFT technique as well as the code as MacroDFT.

4The key difference between our prior work [15] is the treatment of the predictor field. In our previous work [15], the predictor was taken to coincide with the periodic solution of the perfect stress-free crystal. While this choice is effective for defects that decay quickly, i.e., r −2 or r −3 , it is not for dislocations where the decay is much slower, i.e., r −1 . The slower decay requires us to update the predictor non-uniformly depending on the far-field deformation, and this adds significant complexity to the method. This is accomplished in this work.

5We use MacroDFT to compute the formation energy of prismatic dislocation loops and basal dislocations in magnesium (Mg). Dislocations in Mg have been extensively studied using ab-initio techniques [21,22,23], molecular statics [24] or combination of them [25]. However, often times these simulations are carried out using incompatible boundary conditions such as periodic boundary conditions or free surfaces to patch the interface with continuum approaches, that ultimately affects the energy of the dislocation core, and possible its configuration [3]. These conditions do not reflect the true nature of a dislocation core, and can influence the structure of the dislocation core [26,27,28] as in the case of body-centered materials. Due to these artifacts, no simulation technique using ab-initiotechnique has been able to prove the theoretical logarithmic divergence predicted by the elasticity theory. In this work, we endeavor to address some of the limitations from other ab-initio techniques and study dislocation cores using compatible boundary conditions, and to investigate the scaling of the energy for large simulation cells. Prismatic dislocations loops are made by removing a certain amount of atoms from the bulk material in the basal plane, leading to a Burgers vector (b) in the c−component of the hexagonal closed-packed (hcp) structure of Mg. On the other hand, basal and prismatic screw dislocations are characterized by a much shorter Burgers vector, and their far field is characterized by the elastic decay. Thus, we generate a single dislocation in an infinite crystal, we measure the evolution of the strain energy as a function of the distance from the dislocation core. Our simulations show that the strain energy diverges logarithmically with the ratio r/b, in agreement with the elasticity theory of dislocations [2]. We then compute the interaction energy of the dislocation core with a row of solute atom, and show the transition barriers as dislocation moves through it. The manuscript is organized as follows. We start in Section 2 by introducing the methodology in terms of a density matrix formulation and its spectral representation in Riemann-Stieljes integrals. We then introduce the coarse-grained representation. Next, the computational set-up and verification of the method is discussed in Section 3. The results for prismatic loops and screw dislocations are discussed in Section 4, and the parallel performance of the method is demonstrated in 5. Finally, we summarize the work with main outcomes in Section 6.

6where ψ n are the electronic orbitals, ρ(x) = 2 N e/2 n |ψ n (x)| 2 is the charge density and the exchangecorrelation is given by

7with ε c to be as proposed by Perdew and Wang [30] fitted to accurate Monte Carlo simulations carried out by Ceperley et. al. [31]. The expensive Coulombic double sums are sidestepped by introducing the electrostatic potential φ as the solution to the Poisson equation [32,33]. We minimize this functional over all orbitals subject to orthonormality and this leads to the nonlinear eigenvalue problem

8with λ n the ordered eigenvalues of the Hamiltonian

9with φ the Coulomb potential obtained by solving the Poisson's equation

10denotes the total charge density of the nuclei, with b J (x, R J ) representing the regularized charge density of the J th nucleus, and

11This nonlinear eigenvalue problem is solved using fixed point iteration in the self-consistent formulation (SCF). This leads to an expensive O(N 3 e ) computational procedure that critically restricts the size of the systems to 100 − 1, 000 electrons in practice. Recent real-space implementations using efficient finite element basis and finite differences can increase this number up to roughly 10,000 electrons [34,35,36].

12With the goal of obtaining a linear scaling algorithm, we reformulate the problem above using the the density matrix formulation following Anantharaman and Cancès [37] and Wang et al. [38]. The problem of minimizing (1) is equivalent at zero temperature to the variational problem

13where the maximum is taken over {γ ∈ χ : |∇|γ|∇ ∈ χ, 0 ≤ γ ≤ 1, Tr γ = N }, χ is the set of all trace class operators on L 2 (R 3 ), and E * xc is the Legendre transform of E xc . One can see this formally by setting γ = Ne n=1 |ψ n ψ n |, using the electrostatic potential to rewrite the Coulomb interactions, using a duality transform for the exchange correlation and exchanging the order of extremization. These steps are explained in detail and justified in [38]. It is possible to show that the solution to variational problem is given by the density matrix

14and λ f is the Fermi level corresponding to the constraint Tr γ = N , the electrostatic potential φ that satisfies the Poisson's equation (5), the exchange correlation potential u that satisfies (6) and the charge density ρ(x) = γ(x, x).

15This density matrix formulation is the basis of linear scaling algorithms (O(N e )). Typically, the density matrix (8) is expanded using polynomials and the expansion truncated assuming bandedness of the Hamiltonian and the decay of off-diagonal components.

16We follow a different approach, the linear scaling spectral Gauss quadratures (LSSGQ) following Suryanarayana et al. [16]. The basic idea is to appeal to the spectral representation of the operator γ and to approximate the spectral integrals using Gauss quadratures rules. For any function η ∈ L 2 (R 3 ),

17where σ is the spectrum of H, and µ ηη is the spectral measure of H contracted with η. We treat the integral as a Riemann-Stieljes integral and approximate it with quadratures rules with quadrature nodes λ η k and quadrature weights w η k to obtain the approximation shown. We use a sixth order finite difference approximation with N f grid points corresponding to a uniform grid spacing h, and choose an orthonormal basis {η p } corresponding to this finite difference basis to represent the Hamiltonian and other quantities. Then, it is possible to show that the ground state energy is given by [15,16]

18with

19It then remains to determine the quadrature points λ ηp k and weights w ηp k . We do so using Lanczos iteration [39] (see [16,15] for details). The key observation is that since the finite difference basis has finite support, we can compute the the quantities λ p k , w p k with O(1) effort at each nodal point p. So, the method automatically has linear scaling. Further, this observation means that the evaluation of all the electronic quantities of interest can be done locally (once the Fermi level is known), and this enables the coarse-graining approach described below.

20Once we compute the electronic fields, we can compute the forces on the atomic nuclei (the variation of the total energy with respect to the nuclear positions R) easily using the Hellman-Feynman theorem.

Coarse-grained extension

21Our goal is a sublinear scaling algorithm that will enable computation of large domains as necessary for dislocations. We observe that the interatomic distances (or strain) decay at the rate of r −1 as we go away from the dislocation core, and the corresponding electronic fields (electron density, electrostatic potential) decay to their periodic behavior at the same rate. So we introduce a Figure 1: Schematic of an electronic field and its coarse grained representation in MacroDFT. a) Electronic fields around a vacancy defect in a crystalline material. The surface shows the evolution of the field in a 2D plane of the crystalline structure. b) A two-dimensional contour plot of the electronic field (ρ). We can clearly see the effect of the vacancy (illustrated with an 'x') in the field. c) Same electronic field for the pristine crystal without defects (ρ 0 ). d) Illustration of the corrector field (ρ c = ρ − ρ 0 ) for the vacancy example in a two-dimensional slice. Only values above a cutoff has been plotted to ease the view. e) Evolution of the electronic field across the line A-A'. It is evident that the corrector field has large fluctuations near the defect but changes smoothly far away from it. The corrector has been shifted down to make the visualization better. computational basis that makes it possible to describe all details close to the core where it is necessary, but sample it far away where it is not. Importantly, the approach is seamless and adaptive. Given the different behavior, the coarse graining of the atomic positions and electronic fields are done differently.

Coarse grained representation of atoms

22The atomistic distances may vary significantly close to the defect, but decay in a polynomial manner. So, we introduce a subset P a of atoms, called representative atoms (RepAtoms). This subset is dense, i.e., it contains every atom close to the defect but gradually coarsen away from it. We track the positions of these atoms and infer the position of other (non-representative atoms) from the position of the representative atoms by introducing linear finite elements shape functions based on a mesh T a with nodes P a as in the atomistic quasi-continuum formulations [15,19,20,40,41,42,43]. Note that this mesh is Lagrangian. Details of the atomic mesh and visual representation of them are provided in Section 3.3.

Coarse grained representation of electronic fields

23The electronic fields are complex close to the defect but decay to a periodic field away from it, since the far-field is almost periodic with a period related to the unit cell. So a smooth interpolation is not appropriate. We get around it representing the electronic fields as a sum of a predictor and a corrector. The predictor is a slowly varying almost periodic function away from the defect and captures the periodicity of the electronic field in the far field. The difference between the actual electronic fields and the predictor, therefore smoothly decays away from defect. This is represented by the corrector. Since the corrector decays smoothly, we can use a smooth interpolation away from the defect. This is shown schematically in Figure 1 with a vacancy as the defect. Figure 1(a) shows the evolution of an electronic field around the vacancy centered in the middle of the picture. For reference, a line A−A' is shown to plot the charge density later on. Next, Figures 1(b) and (c) show a contour plot of the charge density for the vacancy and the pristine sample, respectively. We intuitively see that these fields are very similar with the exception of near the defect (marked with an "x"), where large fluctuations are seen. Thus, if we represent the difference between the charge density for the vacancy and the pristine cell, we obtain the contour map shown in Figure 1(d). We see that only near the vacancy this field is large, and very quickly decays to zero. This is the corrector field, and the pristine solution is called in this case the predictor. Putting everything together, we see in Figure 1(e) the three fields, i) the full solution with the vacancy (ρ) in black; ii) the predictor field (ρ 0 ) in red; and iii) the corrector (ρ c ) in blue 2 . Now, it is possible to reconstruct the full solution at any point by using an interpolation scheme provided by the FE mesh. This is schematically shown with the blue markers in the blue line of Figure 1(e), where we see a dense sampling near the vacancy, but a coarsening as one moves away from it. This is the principle for coarse-grained description of MacroDFT.

24To be precise, we introduce a fine uniform spatial grid P f and use representation

25for the electrostatic field and electron densities at each of these points where φ 0 p , ρ 0 p are the predictors and φ c p , ρ c p are the correctors. We defer the description of the predictor till the next section. To obtain the corrector with sublinear scaling, we compute it only a subset of electronic sampling points (ESPs) P c . We then use a finite element mesh T c over the ESPs and use it to interpolate these fields to the fine mesh:

26The ESPs are dense close to the defect, but gradually coarsen away from it. Note that this mesh is spatial or Eulerian. Finally, note that we have two meshes, one atomistic and Lagrangian that is used to describe the relaxation of the atoms as the forces and energy are minimized; and an electronic mesh that Eulerian to solve the Kohn-Sham equations in the sample. Both meshes have adaptive resolution, as previously described. They interact through the theory and therefore, it is important to introduce two special functions that map the ESP into the elements of the T QC , and positions to the elements of the fine mesh T f . For more details, the reader is referred to [15].

27Total energy 2 The corrector has been shifted down to make the visualization better.

Algorithm 1 MacroDFT algorithm

28initialize. Initial guess for the positions of RepAtoms P a and electronic fields at ESPs P c .

29repeat Use the atomistic mesh T a to find position of all atoms, Generate the predictor fields φ 0 p , ρ 0 p for each p ∈ P f , repeat

30Find the corrector fields φ c p , ρ c p using (14) for each p ∈ P f , Find {λ q k } and {w q k } using Lanczos algorithm for each q ∈ P c , Find N e , ρ q for each p ∈ P f using (11), (12), until convergence of the electronic fields, Compute the forces on the RepAtoms P a , Update the position of the RepAtoms P a , until convergence of the atomic positions.

31We compute the atomic positions and electronic fields according to the Algorithm 1. It remains to calculate the total energy (10) of the system. We do so by sampling using cluster as follows. Let C q be the set or cluster of nodal points on the fine mesh contained in a ball of radius r around the q th ESP. We approximate the total energy (10) as [15] E ≈ q∈Pc n q E q (15) where n q is the weight of the q th ESP and it is defined as n q = 1 if q belongs to the full resolution zone #P f associated with qth ESP otherwise (16) and F q is the average Free-Energy at the q th ESP computed as

Selection of the predictor field

32The key for an efficient and accurate coarse-grained implementation is the choice of the predictors. In our previous work [15], the predictor field was taken to coincide with the periodic solution of the perfect stress-free crystal. While this choice is effective for defects that decay quickly, i.e., r −2 or r −3 , where r is the distance from the defect, it is not for dislocations where the decay is much slower, i.e., r −1 . Therefore, we need a more accurate approximation that reflects the deformation.

33Recall the triangulation T QC . In each element of this triangulation, the positions of the atoms is obtained from a linear interpolation and thus periodic with a unit cell deformed by the deformation gradient given by the atomistic element. It is important that the predictor reflect this periodicity. Therefore, we extract the deformation gradient from each atomistic element, deform the unit cell with this deformation gradient, and compute the electronic field associated with this distorted unit cell. We then extend this periodic field to the entire element. Note that this field automatically reflects the local strain. However, it can be discontinuous at the element boundaries; we remedy this by smoothing with a L 2 → H 1 projection. Thus, once the atomic positions are computed with the non-linear conjugate gradient, a new deformation gradient, F e , is computed per each element. The deformation gradient is then applied to a unit cell, and the electronic fields are computed on it. We then extract the corrector fields, i.e., ρ 0 (x) and φ 0 (x), and map them back to the full simulation as schematically shown in Figure 2. The calculations in the unit cell are carried out by individual nodes, and their results are stored on the disk to save memory with an MPI-file. While this puts some restrictions to the speed of the code, the time is not comparable with the amount taken to solve the DFT equations, and then it is affordable.

Computational set-up

34We now describe the details of the simulations. The details of the meshes used in this work are described in Table 2.

Verification of the method

35Verification of our method has been provided in our previous publication [15], and here we reproduce some of these results for completeness. In our formulation, we first start by investigating two main parameters that condition the accuracy and convergence of the methodology. These two parameters are the number of quadrature points, used to compute Eqs. 10 and 11, and the number of ESP used to discretize the atomic unit cell in full resolution. Figure 3 shows the convergence with respect to number of quadrature points and spatial discretization for a unit cell of Mg. We see how the difference in the energy is reduced as both quadrature points and number of ESPs is increased. In this work, we retained the spatial resolution we used in our previous work. This is about 2,300 ESPs per unit cell, which ensures a convergence of about 0.01 meV per unit cell. We have also used a sufficiently large number of quadrature points, K = 40. With these parameters, is possible to achieve cohesive energy for Mg that are converged to less than a 1 meV. Using a unit cell and (a) Convergence with respect to quadrature points (b) Convergence with respect to spatial discretization These values are shown in Table 1 for completeness. We can see that the values obtained with MacroDFT are in close agreement with ABINIT calculations. The stable stacking fault energy for Mg was also computed with MacroDFT using the described parameter in a simulation cell containing 2 × 2 × 48 unit cells, i.e., 192 atoms. The values of the stable stacking fault energy was found to be ∼ 27 mJ·m −2 , in good agreement with previous works [25]. Convergence of our coarse-grained simulations has been done in our previous work [15]. In addition, MacroDFT has been used to compute the energy of twin boundaries in Mg, showing good agreement with other techniques [44]. Here, we used the same level of coarsening, that is, the element size increases in different regions of coarse representation by a factor of two. This ensures that the evaluated energy does not depend of the mesh size.

Prismatic dislocation loops in magnesium

36A single crystal Mg was generated using the minimum energy configuration for the bulk crystal at a = 3.109Å and c/a = 1.626 [15]. The overall length of the computational domain was 40a 0 × 40a 0 × 40c 0 containing N = 256, 000 atoms. A full resolution zone of 8a 0 × 8a 0 × 8c 0 was provided in the center of the simulation cell. This area provided fully resolved atomic and electronic mesh containing around ∼ 1, 126, 400 ESPs. Surrounding the full resolution zone, multiple coarse-grained regions were provided for both the electronic and atomic fields. Two Delaunay triangulations over the ESPs and RepAtoms were performed, and a FE mesh was provided over these triangulations to interpolate atomic positions and corrector fields. From the center of the full resolution area, N v atoms were removed to generate a cluster of vacancies. The boundary conditions were set up such that the solution decay to the pristine solution at the end of the simulation cell, for both atomic positions and electronic fields. Let u(R) be the atomic displacement field, then u(R) = 0, ∀ R / ∈ P QC and ρ c (x) = 0, φ c (x) = 0 ∀ x / ∈ P f . This means that we enforced the displacement of the atoms to be zero out of the simulation box and forced the corrector field of the electron density and electrostatic potential to be zero outside the simulation cell too. The selection of these boundary conditions is justified based on the idea that the deviations of the electronic field and atomic displacements decay to zero far away of the defect. [1120]{1010} screw dislocations were generated by displacing the atoms in the simulation cell using the isotropic elastic solution [2]. The dislocations were generated such that the dislocation line was aligned with the x− direction in the sample as shown schematically in Figure 4. A full resolution zone of a 0 × 16 √ 3a 0 × 4c 0 surrounding the dislocation core was provided for the a 0 3

Screw dislocations in magnesium

37[1120]{0001}. By contrast, a full resolution zone of a 0 × 4 √ 3a 0 × 16c 0 surrounding the dislocation core was provided for the a 0 3

38[1120]{1010}. In the full resolution region, the spatial resolution for the electronic degree of freedom is about 2, 300 ESPs per unit cell. The total number of ESPs in the full resolution area is around 281, 600. Surrounding this area, three coarse-grained regions were provided. Each coarse-grained region had a constant element size that increased with the distance to the core. The grand total number of electronic degrees of freedom was around 560,395 ESPs. Over this set of points, a Delaunay triangulation was performed and a FE mesh was generated by using four-nodes tetrahedral elements with linear interpolation functions.

39Similarly to the electronic mesh, an atomic mesh was also provided. The atomic mesh also contained a full resolution area that coincides with the full resolution electronic region. Away from the dislocation core, multiple coarse-grained regions were provided. The perfect atomic positions are used as starting point for this mesh. Figure 5(a) shows spatial distribution of the atoms for a a 0 3

40[1120]{1010} screw dislocation as well as the FE mesh for a sample with three coarse-grained regions. Figure 5 The coarse grained atoms on the slip plane need to have a special capability -similar to the discontinuous FE Galerkin formulation-where the elements are allowed to have a dual position in order to interpolate properly the atomic positions in both sides of the slip plane. With the screw dislocation generated, a FE mesh was constructed over the representative atoms using an α-Delaunay triangulation. The α-Delaunay triangulation was needed because the set of representative atoms with the screw dislocation is not a convex hull and highly distorted elements were generated with a regular Delaunay triangulation. A full resolution simulation of the previously described dislocation will involve 304 million ESPs. This leads to a total acceleration due to the spatial coarse-grained approach of 545 times.

41For all simulations we used a k B θ = 0.8 which is consistent with other DFT studies of metals and the energy and forces were minimized by using the Polak-Ribière version of the non-linear conjugate gradient (NLCG). The boundary conditions were set up such that the atomic displacements outside the computational cell were given by the elastic solution [2]. By doing so, we can compute for all elements outside the computational box the deformation gradient F e a priori. Thus, for each atom outside the computational domain, the electronic field and atomic displacements are fully determined. This means that ρ c (x) = 0, φ c (x) = 0 ∀ x / ∈ P f .

Prismatic dislocation loops in magnesium

42The energy of the computational cell is minimized using a NLCG and the formation energy and the binding energy were computed as

43and

44where E f Nv is the formation energy for the cluster with N v vacancies, E(N − N v ) is the total energy of the system containing N v vacancies,

45Nv is the biding energy for N v vacancies, and E f 1 is the formation energy of a single vacancy. Table 3 shows the values of the formation energy and the binding energy for both the noncollapsed and collapsed configurations. The binding energy for cluster of vacancies lying on the basal plane is quite large and correspond to a very stable defect. The binding energy computed using Eq. 19 measures the difference between the energy in a cluster of vacancies and the energy of the same number of individual vacancies. Therefore, such a large binding energy indicates that vacancies will always try to regroup in clusters instead of being randomly disperse in the sample, at least at low temperatures where entropic effects are not important. Figure 6 shows the electron density through two planes at y = 0 and z = 0, respectively for a sample containing 7 vacancies in the non-collapsed configuration.

46It is also interesting to analyze the binding energies of the same clusters collapsed, in order to understand the formation of prismatic dislocation loops in Mg. For instance, for the sample containing 7 vacancies, the collapsed configuration was always unstable and the atoms came back to the non-collapsed configuration shown in Figure 6. On the other hand, when the number of vacancies was increased to N v = 19 and N v = 37, the binding energy experienced a change, as shown in Table 3. The binding energy for N v = 19 was around 2.99 eV, and for N v = 27 was around 10.13 eV. This highly non-linear demeanor of the binding energy indicates a preference towards large prismatic dislocation loops and therefore, sets a minimum size of PDL that can be observed in Mg. Although configurations with larger number of vacancies are not feasible with MacroDFT, there is a clear trend in the binding energy which favors large PDLs, as observed in experiments [45,46,47] of Mg and nanoporous Mg alloys.

Screw dislocations in magnesium

47After relaxing the dislocation core, the excess of energy for the dislocations was measured with respect to the pristine Mg configuration. To measure the energy of the dislocation core, we took a cylinder of radius R centered in the dislocation core (y = 0, z = 0) with principal axis along the dislocation line. Then, we analyzed the excess of energy for different values of R. The excess energy was defined as

48where N is the total number of atoms in the cylinder of radius R, E D (N, R) is the total energy in the same cylinder after the core has been relaxed, and E C is the cohesive energy of pristine Mg. The energy in the cylinder, E D (N, R) is computed by evaluating the electronic fields for each ESP inside the cylinder using the predictor-corrector approach. Once the fields are evaluated, the total energy was computed using Eq. 17.

49In the analysis of dislocations it is usually common to show the evolution of the excess energy in the cylinder as a function of the ratio R r 0 , where r 0 is an arbitrary constant. It is common practice to take r 0 = b, and under this assumption the energy contained in the cylinder can be expressed as [2]

50where µ = 19.9 GPa is the shear modulus of Mg computed with MacroDFT, and E core is an indeterminate constant that needs to be evaluated using discrete techniques such as ab-initio or molecular dynamics calculations. Remarkably, the value E core is not a physical quantity as it depends on the value r 0 that is arbitrary. The logarithmic divergence of Eq. 21 indicates that in order to understand the energy of the dislocation core, the energy has to be sampled across very large samples spanning multiple Burgers vectors in order to obtain the elastic pre-factor µb 2 4π . Figure 9 shows the evolution of the excess energy, computed with Eq. 20, as a function of the log(R/r 0 ). By adjusting the E core values to the results obtained with MacroDFT, we have concluded that E core = 7 meV/Å and E core = 7.5 meV/Å for the basal and prismatic slip systems, respectively. This small strain energy per unit length is very difficult to measure and illustrate the importance of coarse-grained techniques such as MacroDFT. The results also show an excellent agreement for the far field with the elastic solution (characterized by the slope of the blue curve) which lends credence to the prediction of dislocation far field obtained with MacroDFT and therefore, to the coarse-grained scheme used. Figure 10 shows the differential displacement plots [48]

51where SF stands for stacking fault. By examining the atomic positions as shown in Figure 10(a) we observed that the dissociation distance was around ∼ 2.9a 0 . By comparing with previous studies of screw dislocations in the basal plane, we found that this value is slightly larger than previously reported [25]. This could be attributed to a number of reasons, including different boundary conditions, pseudo-potential used, etc. The a 0 3

52[1120]{1010} screw dislocation is stable and does not split into two partials. This is consistent with stacking fault calculations along the prismatic plane. These calculations show that there is not stable local minima in this direction, and therefore, the prismatic dislocation cannot split. The atoms are shown in green, while the arrows indicate the magnitude of the differential displacement field. The prismatic dislocation has a very compact core, while the core in the basal plane is slighter larger due to the existence of stable stacking fault in Mg.

Aluminum solute-dislocation interaction

53We now proceed to measure the interaction energy between an Al solute atom and the dislocations for various position along the slip plane. In order to do so, we replace a Mg atom by an Al solute stating from the position y = 0, z = 0. We only replace atoms lying on the slip plane for the two screw dislocations considered in this work. Then, the excess energy was computed as

54where E D (N, R, r Al ) is the energy in a cylinder of radius R = 500Å, containing N-1 Mg atoms and one Al atom at r Al , and E D (N, R, r Al max ) is the energy in a cylinder of radius R = 500Å, containing N-1 Mg atoms and one Al atom at the r Al max , which is the maximum distance from the core at which we have placed the solute atom. Figure 11 shows the excess of energy for various positions of the solute atom for the basal and prismatic slip system (Figure 11(a) and (b), respectively). Figure 11 depicts a non-linear interaction energy between solute and dislocation core, and this interaction is very strong near the core decaying very fast relatively quickly. Remarkably, the maximum interaction energy is of the order of 50-60 meV/Angs. which is larger than the core energy of the dislocations.

Parallel performance

55We now proceed to discuss the parallel performance and speed-up achieved with MacroDFT in MIRA an IBM BG/Q 1.6 GHz PowerPC A2 supercomputer property of Argonne National Laboratory. Measuring the efficiency and performance are essential for new DFT methodologies and codes, as most of the classical plane-wave codes scale poorly for more than 64 processors. Thus, the next generation of computational tools should be able to harness petascale resources that can further accelerate the discovery of new materials and alloys through accurate ab-initio calculations. This is challenging since both the methodology and implementation need to be highly efficient to handle thousands of processors at the same time. Here, we provide results for the Each node has 16 physical processors and capable of running 64 threads per node. strong scaling of MacroDFT using up to 262,144 threads. The IBM BG/Q 1.6 GHz PowerPC A2 node architecture has 16 physical processors, each node is capable of running 4 threads. Thus, the user can specify any combination of threads and processor per node such that the number # processors × # threads = 64. The ratio processors/threads has to be evaluated for each code/problem. In our case, we found that the best combination was to use processes with 64 threads, which reduces the internode communication. Using this combination, the threads share the same memory, the number of MPI communications was reduced significantly. For the benchmark, we have used the non-collapsed cluster of vacancies containing 7 vacancies described in Section 3.2 and compute one SCF evaluation using different numbers of threads. Figure 12 shows the parallel performance for MacroDFT from 8,192 (2,048) to 262,144 (65,536) threads (processors). The results show that MacroDFT has a good efficiency up to 131,072 threads with an efficiency of ∼ 87.5%, while for 262,144 threads, an efficiency of ∼ 68.75% is achieved. This remarkable performance is due to the fact that the DFT formulation (Eq. 9) can be solved locally and the relevant electronic fields ESP can be evaluated with only the information of a small neighborhood surrounding the point. Since the computational representation of the ESPs is in realspace, the cost of computing the electronic fields can be distributed between multiple processors taking advantage of massively parallel computers, as only the local components of the Hamiltonian need to be updated every SCF iteration. According to the scaling performance shown in Figure 12, the time taken by the interpolation scheme is negligible in comparison with the time consumed to determine the nodes and weights of the spectral quadrature rule. By contrast, when the number of threads is increased significantly, 262,144 or more, the performance goes down due to multiple factors including load imbalance, few number of ESP per node, interpolation, and data writing to disk. Nonetheless, the performance of MacroDFT is outstanding when compared with the stateof-the-art DFT codes, which cannot even run in such a large number of processors. Therefore, real-space DFT implementations have an opportunity to take advantage of supercomputing power and over-perform traditional plane-wave based implementations.

Conclusions

56We have developed a novel approach for the study of dislocations in crystalline materials using ab-initio techniques. In this approach, the equations of density functional theory are solved on a domain large enough to capture both the core and elastic fields in a completely seamless manner. It technique is based on three-main pillars i) reformulation of the Kohn-Sham equations into a density matrix formulation and subsequent spectral representation of the density matrix (See Section 2.1); ii) Separation of the electronic fields in predictor and corrector counterparts (Equations (13), (14) and Section 2.3); and iii) Interpolation scheme for electronic fields and displacements using finite element meshes (2.2). The proposed approach has been implemented in the MacroDFT code [42] which can be executed in MPI, thread and hybrid options according to the architecture of the high performance cluster available. The parallel efficiency of the code has been studied, achieving good parallel performance in extreme scale computers capable of running ∼ 260, 000 threads.

57The code and method has been used to study the relaxed configurations of the atoms in multiple dislocation cores in Mg, a crystalline metallic material. For PDLs, our simulations have predicted that vacancies always bind together, at least for low temperatures where entropic effects are weak. In screw dislocations gliding in the basal and prismatic planes, we have found that the strain energy stored in the computational sample scales accordingly to the elasticity theory for both cases. The results indicate that in order to obtain good prefactors, the simulations has to be sufficiently large, of the order of a few hundred thousand atoms. The agreement of the elastic prefactor between our simulations and theory lends credence to the approach, and provides numeric evidence that the coarse-grained approach can be used in complex scenarios where quantum mechanical interactions are important, such as in dislocation cores in alloys, grain and twin boundaries.

참고문헌 52건

  1. Interatomic Forces in Condensed Matter Oxford University Press eBooks · Oxford University Press · 2003 10.1093/acprof:oso/9780198509776.001.0001
  2. Density Functional Theory of Atoms and Molecules 1980 10.1007/978-94-009-9027-2_2
  3. Theory of Dislocations 1968
  4. Linear Scaling DFT for defects in metals Springer eBooks · Springer Nature · 2014 10.1007/978-3-319-48237-8_35
  5. Coarse-graining Kohn–Sham Density Functional Theory Journal of the Mechanics and Physics of Solids · Elsevier BV · 2012 10.1016/j.jmps.2012.09.002
  6. Prediction of Dislocation Cores in Aluminum from Density Functional Theory Physical Review Letters · American Physical Society · 2008 10.1103/physrevlett.100.045507
  7. From electrons to finite elements: A concurrent multiscale approach for metals Physical Review B · American Physical Society · 2006 10.1103/physrevb.73.024108
  8. Orbital-free density functional theory simulations of dislocations in magnesium Modelling and Simulation in Materials Science and Engineering · IOP Publishing · 2011 10.1088/0965-0393/20/1/015006
  9. Low-speed fracture instabilities in a brittle crystal Nature · Nature Portfolio · 2008 10.1038/nature07297
  10. First-principles simulations of dislocation cores Materials Science and Engineering A · Elsevier BV · 2005 10.1016/j.msea.2005.03.039
  11. Quasicontinuum analysis of defects in solids Philosophical Magazine A · Taylor & Francis · 1996 10.1080/01418619608243000
  12. New algebraic formulation of density functional calculation Computer Physics Communications · Elsevier BV · 2000 10.1016/s0010-4655(00)00072-2
  13. Dislocation-core symmetry and slip planes in tungsten alloys: Ab initio calculations and microcantilever bending experiments Acta Materialia · Elsevier BV · 2011 10.1016/j.actamat.2011.10.031
  14. Non-periodic finite-element formulation of Kohn–Sham density functional theory Journal of the Mechanics and Physics of Solids · Elsevier BV · 2009 10.1016/j.jmps.2009.10.002
  15. The structure of 〈<i>c</i> + <i>a</i>〉 type dislocation loops in magnesium Philosophical Magazine Letters · Taylor & Francis · 2014 10.1080/09500839.2014.916423
  16. Effect of solute atoms on dislocation motion in Mg: An electronic structure perspective Scientific Reports · Nature Portfolio · 2015 10.1038/srep08793
  17. The core structure of ½(111) screw dislocations in b.c.c. crystals Philosophical magazine · Taylor & Francis · 1970 10.1080/14786437008238490
  18. Ground State of the Electron Gas by a Stochastic Method Physical Review Letters · American Physical Society · 1980 10.1103/physrevlett.45.566
  19. Inhomogeneous Electron Gas Physical Review · American Institute of Physics · 1964 10.1103/physrev.136.b864
  20. Quantitative prediction of solute strengthening in aluminium alloys Nature Materials · Nature Portfolio · 2010 10.1038/nmat2813
  21. Periodic image effects in dislocation modelling The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics · Taylor & Francis · 2003 10.1080/0141861021000051109
  22. Quasi-continuum orbital-free density-functional theory: A route to multi-million atom non-periodic DFT calculation Journal of the Mechanics and Physics of Solids · Elsevier BV · 2007 10.1016/j.jmps.2007.01.012
  23. Electron beam-assisted healing of nanopores in magnesium alloys Scientific Reports · Nature Portfolio · 2013 10.1038/srep01920
  24. Atomistic study of edge and screw 〈c+a〉 dislocations in magnesium Acta Materialia · Elsevier BV · 2010 10.1016/j.actamat.2010.04.022
  25. Accurate and simple analytic representation of the electron-gas correlation energy Physical review. B, Condensed matter · American Physical Society · 1992 10.1103/physrevb.45.13244
  26. Finite-temperature non-equilibrium quasi-continuum analysis of nanovoid growth in copper at low and high strain rates Mechanics of Materials · Elsevier BV · 2015 10.1016/j.mechmat.2015.02.007
  27. Higher-order adaptive finite-element methods for Kohn–Sham density functional theory Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.06.042
  28. Multiscale quantum/atomistic coupling using constrained density functional theory Physical Review B · American Physical Society · 2013 10.1103/physrevb.87.054113
  29. Linear scaling electronic structure methods in chemistry and physics Computing in Science & Engineering · AIP Publishing · 2003 10.1109/mcise.2003.1208637
  30. Basal and prism dislocation cores in magnesium: comparison of first-principles and embedded-atom-potential methods predictions Modelling and Simulation in Materials Science and Engineering · IOP Publishing · 2009 10.1088/0965-0393/17/5/055012
  31. First-principles core structures of edge and screw dislocations in Mg Scripta Materialia · Elsevier BV · 2013 10.1016/j.scriptamat.2013.11.013
  32. An analysis of the quasicontinuum method Journal of the Mechanics and Physics of Solids · Elsevier BV · 2001 10.1016/s0022-5096(01)00034-5
  33. Existence of minimizers for Kohn–Sham models in quantum chemistry Annales de l Institut Henri Poincaré C Analyse Non Linéaire · Elsevier BV · 2009 10.1016/j.anihpc.2009.06.003
  34. HotQC simulation of nanovoid growth under tension in copper International Journal of Fracture · Springer Science+Business Media · 2011 10.1007/s10704-011-9660-4
  35. Core polarity of screw dislocations in Fe–Co alloys Philosophical Magazine Letters · Taylor & Francis · 2014 10.1080/09500839.2014.904055
  36. Hybrid atomistic simulation methods for materials systems Reports on Progress in Physics · IOP Publishing · 2009 10.1088/0034-4885/72/2/026501
  37. Spanning the continuum to quantum length scales in a dynamic simulation of brittle fracture EPL (Europhysics Letters) · Institute of Physics · 1998 10.1209/epl/i1998-00536-9
  38. Self-Consistent Equations Including Exchange and Correlation Effects Physical Review · American Institute of Physics · 1965 10.1103/physrev.140.a1133
  39. Sur l'équilibre des corps élastiques multiplement connexes Annales Scientifiques de l École Normale Supérieure · Société Mathématique de France · 1907 10.24033/asens.583
  40. A Variational Framework for Spectral Approximations of Kohn–Sham Density Functional Theory Archive for Rational Mechanics and Analysis · Springer Science+Business Media · 2016 10.1007/s00205-016-0978-y
  41. Fabrication and Healing of Faceted Nanopores in Magnesium Microscopy and Microanalysis · Oxford University Press · 2014 10.1017/s1431927614009933
  42. Density-functional theory of atoms and molecules Annals of Nuclear Energy · Elsevier BV · 1989 10.1016/0306-4549(89)90016-9
  43. Anderson acceleration of the Jacobi iterative method: An efficient alternative to Krylov methods for large, sparse linear systems Journal of Computational Physics · Elsevier BV · 2015 10.1016/j.jcp.2015.11.018
  44. A sublinear-scaling approach to density-functional-theory analysis of crystal defects Journal of the Mechanics and Physics of Solids · Elsevier BV · 2016 10.1016/j.jmps.2016.05.029
  45. Dynamic behavior of nano-voids in magnesium under hydrostatic tensile stress Modelling and Simulation in Materials Science and Engineering · IOP Publishing · 2016 10.1088/0965-0393/24/6/065003
  46. Ab initio modeling of dislocation core properties in metals and semiconductors Acta Materialia · Elsevier BV · 2016 10.1016/j.actamat.2016.09.049
  47. Proliferation of twinning in hexagonal close-packed metals: Application to magnesium Journal of the Mechanics and Physics of Solids · Elsevier BV · 2017 10.1016/j.jmps.2017.12.009
  48. A comparative study of nanovoid growth in FCC metals The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics · Taylor & Francis · 2017 10.1080/14786435.2017.1364437
  49. DFT-FE – A massively parallel adaptive finite-element code for large-scale density functional theory calculations Computer Physics Communications · Elsevier BV · 2019 10.1016/j.cpc.2019.07.016
  50. An analysis of the quasicontinuum method Journal of the Mechanics and Physics of Solids · Elsevier BV · 2001 10.1016/s0022-5096(01)00034-5
  51. Cu/Ag EAM Potential Optimized for Heteroepitaxial Diffusion from ab initio Data arXiv (Cornell University) · Cornell University · 2009
  52. Matrices, Moments and Quadrature with Applications Princeton University Press eBooks · Princeton University Press · 2009 10.1515/9781400833887