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

Sparsification of long range force networks for molecular dynamics simulations

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(10) 아라미드

기본 정보

저자
  1. Peter Woerner — Department of Mechanical Engineering, Florida A&M-Florida State University College of Engineering, Tallahassee, FL, United States of America
  2. Aditya Nair — Department of Mechanical Engineering, Florida A&M-Florida State University College of Engineering, Tallahassee, FL, United States of America|||Department of Mechanical Engineering, University of Washington, Seattle, WA, United States of America
  3. Kunihiko Taira — Department of Mechanical Engineering, Florida A&M-Florida State University College of Engineering, Tallahassee, FL, United States of America|||Department of Mechanical and Aerospace Engineering, University of California Los Angeles, Los Angeles, CA, United States of America
  4. William S. Oates — Department of Mechanical Engineering, Florida A&M-Florida State University College of Engineering, Tallahassee, FL, United States of America
DOI
10.1371/journal.pone.0213262
저널
PLoS ONE
발행년도
2019
발행기관
Public Library of Science
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1371/journal.pone.0213262
토픽
Thermal properties of materials
OpenAlex ID
W2938954430

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(21) 에폭시수지, (10) 아라미드
R&D 측면
분석·모델링
확신도
0.70
근거 용어
molecular dynamics simulations, interatomic forces, spectral sparsification, mechanical properties, tensile test
판단 근거
이 논문은 분자 동역학(MD) 시뮬레이션의 계산 효율을 높이기 위한 네트워크 희소화(sparsification) 기법을 다룹니다. 이는 고분자 컴파운드나 신소재의 기계적 물성(인장 강도, 응력 등)을 원자 단위에서 예측하고 모델링하는 데 활용될 수 있는 방법론적 연구입니다.
R&D 활용 포인트
고분자 컴파운드(23)나 아라미드(10) 등 고기능성 소재의 미세 구조에 따른 기계적 물성 변화를 시뮬레이션할 때, 계산 비용을 절감하면서도 정확도를 유지하는 모델링 도구로 활용 가능합니다.
평가 입력
본문 58,694자 중 30,032자 발췌

초록

Atomic interactions in solid materials are described using network theory. The tools of network theory focus on understanding the properties of a system based upon the underlying interactions which govern their dynamics. While the full atomistic network is dense, we apply a spectral sparsification technique to construct a sparse interaction network model that reduces the computational complexity while preserving macroscopic conservation properties. This sparse network is compared to a reduced network created using a cut-off radius (threshold method) that is commonly used to speed-up computations while approximating interatomic forces. The approximations used to estimate the total forces on each atom are quantified to assess how local interatomic force errors propagate errors at the global or continuum scale by comparing spectral sparsification to thresholding. In particular, we quantify the performance of the spectral sparsification algorithm for the short-range Lennard-Jones potential and the long-range Coulomb potential. Spectral sparsification of the Lennard-Jones potential yields comparable results to thresholding while spectral sparsification yields improvements when considering a long-range Coulomb potential. The present network-theoretic formulation is implemented on two sample problems: relaxation of atoms near a surface and a tensile test of a solid with a circular hole.

본문 58,694자

본문 펼치기
~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0213262&domain=pdf&date_stamp=2019-04-12)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0213262&domain=pdf&date_stamp=2019-04-12)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0213262&domain=pdf&date_stamp=2019-04-12)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0213262&domain=pdf&date_stamp=2019-04-12)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0213262&domain=pdf&date_stamp=2019-04-12)</u>~~ OPEN ACCESS Citation: Woerner P, Nair AG, Taira K, Oates WS (2019) Sparsification of long range force networks for molecular dynamics simulations. PLoS ONE 14 [(4): e0213262. https://doi.org/10.1371/journal.](https://doi.org/10.1371/journal.pone.0213262) [pone.0213262](https://doi.org/10.1371/journal.pone.0213262) Editor: Elena Papaleo, Danish Cancer Society Research Center, DENMARK Received: August 7, 2018 Accepted: February 19, 2019 Published: April 12, 2019 Copyright: © 2019 Woerner et al. This is an open access article distributed under the terms of the [Creative Commons Attribution License, which](http://creativecommons.org/licenses/by/4.0/) permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Data Availability Statement: The authors have created a public repository on Github where all the code can be downloaded and run to regenerate the [figures in the article. It can be found at: https://](https://github.com/nairaditya/MD_network_sparsification) [github.com/nairaditya/MD_network_sparsification.](https://github.com/nairaditya/MD_network_sparsification) Funding: The authors acknowledge the National [Science Foundation (www.nsf.gov) for support of](http://www.nsf.gov) the work under EAGER grant #1648618 to WSO. Competing interests: The authors have declared that no competing interests exist. RESEARCH ARTICLE # Sparsification of long range force networks for molecular dynamics simulations Peter Woerner <sup>1</sup> , Aditya G. Nair <sup>1,2</sup> , Kunihiko Taira <sup>1,3</sup> [, William S. OatesID](http://orcid.org/0000-0003-4259-5180) <sup>1</sup> * 1 Department of Mechanical Engineering, Florida A&M-Florida State University College of Engineering, Tallahassee, FL, United States of America, 2 Department of Mechanical Engineering, University of Washington, Seattle, WA, United States of America, 3 Department of Mechanical and Aerospace Engineering, University of California Los Angeles, Los Angeles, CA, United States of America - woates@fsu.edu ## Abstract Atomic interactions in solid materials are described using network theory. The tools of net work theory focus on understanding the properties of a system based upon the underlying interactions which govern their dynamics. While the full atomistic network is dense, we apply a spectral sparsification technique to construct a sparse interaction network model that reduces the computational complexity while preserving macroscopic conservation properties. This sparse network is compared to a reduced network created using a cut-off radius (threshold method) that is commonly used to speed-up computations while approxi mating interatomic forces. The approximations used to estimate the total forces on each atom are quantified to assess how local interatomic force errors propagate errors at the global or continuum scale by comparing spectral sparsification to thresholding. In particular, we quantify the performance of the spectral sparsification algorithm for the short-range Len nard-Jones potential and the long-range Coulomb potential. Spectral sparsification of the Lennard–Jones potential yields comparable results to thresholding while spectral sparsifica tion yields improvements when considering a long-range Coulomb potential. The present network-theoretic formulation is implemented on two sample problems: relaxation of atoms near a surface and a tensile test of a solid with a circular hole. Introduction Molecular dynamics (MD) is a common simulation tool for modeling materials at the nano and micron length scales [1, 2]. In the framework of MD simulations, atoms are treated as point masses that are accelerated by an imbalance of interatomic forces from neighboring atoms. To track the atomic trajectories, numerical integration of Newton’s equations of motion is performed which often requires significant computer memory and lengthy computations to account for each interatomic interaction across a large number of time-step integrations. A variety of atomistic scale insights about complex material behavior can be determined including, mechanical [1, 3, 4], chemical [5, 6] and thermal [7–9] properties and in limiting cases, macroscopic constitutive relations. [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 1 / 17 Application of networks to molecular dynamics Many simulations frequently require millions of atoms, making the computations expensive [10]. Moreover, a large number of time steps are required to acquire meaningful thermodynamic statistics [1, 2]. Additionally, accurate dynamic trajectories require time steps on the order of the frequency of atomic vibrations which is typically on the order of femtoseconds. Therefore, simulations on the nanosecond timescale require millions of time steps over millions of degrees of freedom on a three-dimensional grid [1]. Specialized research focused on improving computational speed in MD simulations has focused on parallel implementation [1]. This has led to the creation of both novel algorithms and specialized hardware [1, 11–14]. However, long range forces remain difficult to compute and can suffer accuracy limitations. Typically, interactions above a cutoff distance are neglected (i.e., thresholding). For short range forces, this is often sufficient. However, the effects due to thresholding become uncertain when using long-range forces such as those produced from electrostatic and magnetostatic problems. Broadly speaking, the approaches currently used for dealing with these long range forces can be classified as one of the following: use a cutoff distance despite the potential issues, transform the Coulomb potential into a short range potential, e.g., Debye potential and Wolf summation, or mathematically exploit periodic boundary conditions to generate a mathematical expression long range effects [15–18]. Thresholding is the most computationally efficient of the current methods, but generates large error. The transformation strategy suffers from the same drawbacks as the thresholding strategy; however, it has been shown to be adequate in some applications [18]. Methods for solving the full solution by exploiting periodic boundary conditions are accurate, but computationally expensive [14, 19, 20]. Research focusing on sparsity has recently gained traction in computational science [21– 23]. In machine learning, the use of the _l_ 1 norm has been leveraged to promote sparsity in the resulting models without over-fitting [24, 25]. In handling big data, autoencoders and other sparse techniques are used to create sparse representations of data to reduce memory requirements [23, 26]. In network theory, sparsification is used to create computationally tractable representations of complex systems [27]. The use of sparsity to model continuum dynamics has recently emerged to describe nonlinear flow phenomena but there has been limited research in the field of atomistic scale computational materials science [28]. In this paper, we examine the kinematics and dynamics of atomistic systems using network theory. Specifically, we utilize network-based techniques which create computationally tractable representations of the atomic system without sacrificing accuracy. Network theory has long history of describing complex systems such as social interactions, electric grids, and airplane scheduling [29]. Although there have been applications in engineering systems such as chemical networks [30], fluid dynamics [28, 31–34] and granular matter [35, 36], minimal research has focused on applications in molecular dynamics and solid mechanics. A network consists of nodes or vertices and their pairwise connections which are called edges [29]. Sparse representations of networks are desirable because they distill the network to its core features. We describe and implement spectral sparsification, a technique for creating sparse representations of networks, on atomisitic networks. This method generates a sparse network while while maintaining spectral similarity with the original network [27, 37]. The results to be presented here demonstrate that spectral sparsification is a viable candidate to enhance computational efficiency of MD calculations while maintaining minimum errors. Spectral sparsification is applied and implemented to atomic networks using the Lennard– Jones and Coulomb potentials. Spectral sparsification conserves global network properties by reorganizing interatomic force distributions in order to achieve a sparse representation of the [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 2 / 17 Application of networks to molecular dynamics interatomic forces. In what follows, we first introduce the essential relations used in molecular dynamics calculations followed by definitions and concepts used in network theory that are relevant to molecular dynamic modeling. We then introduce a formulation of atomic networks and describe the spectral sparsification algorithm. Finally, we present and quantify the error in kinematic and dynamic examples. Molecular dynamics Molecular dynamics calculates the motion of atomic nuclei via Newton’s law X _m_ x € ¼ _F_ _;_ ð1Þ where F are the interatomic forces within the solid, _m_ is the mass and € x is the acceleration [1, 2]. The summation and calculation of F comprises the majority of the computational resources in MD simulations. This is the one of the key aspects that motivates the use of a sparse force interaction network in this work. The forces on the atoms are given by F ¼ �r _U;_ ð2Þ where _U_ is the potential energy and r ¼ _@r@_ ab <sup>is the gradient with respect to the relative</sup> atomic distance between two atoms. This distance between two atoms _α_ and _β_ is defined by _rαβ_ = | _r_ _α_ - _r_ _β_ | [2]. The simplest potentials are functions where the only dependent variable is the distance between two atoms, i.e. the pair potential _U_ ab ¼ _U_ ð _r_ abÞ _:_ ð3Þ The vector r _α_ denotes the absolute position of atom _α_ . The potential energy is defined by _Uαβ_ . Summing all pairwise potentials yields the total energy. In the current paper, we consider the Lennard-Jones and Coulomb potentials. The Lennard–Jones potential is given by " !12 !6# <u>s</u> _r_ ab _U_ ab <sup>_LJ_</sup> <sup>¼</sup> <sup>_�_</sup> 0 <u>s</u> _r_ ab _;_ ð4Þ where _�_ 0 defines the depth of the energy well and _σ_ defines the zero potential distance. The Coulomb potential is given by ab <sup>_C_</sup> <sup>¼</sup> <sup>_k q_</sup> <sup><u>a</u></sup> <sup>_<u>q</u>_</sup> <sup><u>b</u></sup> _U_ <sup>_C_</sup> _r_ ab _;_ ð5Þ which describes interactions between two point charges where _k_ is Coulomb’s constant given by, in S.I. units, _k_ - 8.99 × 10 <sup>9</sup> Nm <sup>2</sup> /C <sup>2</sup>, and _qα_ and _qβ_ are the charges of the two atoms [38]. In solid mechanics, stress, potential energy, and kinetic energy are frequently quantities of interest. This paper uses the standard expression for the virial Cauchy stress ! <u>1</u> _σ_ ð x _; t_ Þ ¼ _NtV_ O X _Nt_ _t_ ¼0 X a2O _m_ a _v_ a � _v_ a þ <sup><u>1</u></sup> 2 X a _;_ b2O _r_ ab � _F_ ab _;_ ð6Þ where � denotes a tensor product over the velocity of atom _α_ given by _v_ _α_ . The atomic mass is _m_, the number of time steps chosen for time averaging the stress is _Nt_, and the region which is being considered over the volume _V_ O is denoted by O. The average stress over the volume is [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 3 / 17 Application of networks to molecular dynamics defined at the center of mass point x . This average is based on a spatial average over the velocity of the _α_ atoms within the volume. Similarly, the last summation is over the forces F _αβ_ for all pairs of atoms _α_ and _β_ in the domain O. The kinetic energy of the system is calculated by _Ek_ ¼ <sup><u>1</u></sup> 2 X a _m_ a _v_ a � _v_ a ð7Þ and the potential energy is given by summing up the pairwise interactions _U_ ¼ <sup>1</sup> 2 X a _;_ b _U_ ab _:_ ð8Þ The summation _α_, _β_ is again taken over all pairs atoms in the system. The last three relations will be used in addition to interatomic forces to quantify the performance of spectral sparsification versus thresholding algorithms. Rather than focusing on the entire stress tensor, we will instead look at the first and second invariants of the stress tensor [39]. The first invariant is given by the trace of the stress tensor _I_ ¼ trð _σ_ Þ ð9Þ and the second invariant is given by - _II_ ¼ <sup><u>1</u></sup> 2 � trð _σ_ 2Þ _:_ ð10Þ 2 <sup>ðtrð</sup> <sup>_σ_</sup> <sup>ÞÞ</sup> Physically, the first invariant is the hydrostatic pressure felt by the material while the second invariant is related to the shear applied to the material which is often used to simulate plastic deformation in solids [39]. Errors are computed by comparing the sparse representations to the corresponding complete graph that contains all long range interactions. Network theory We briefly describe the fundamental concepts from network theory followed by its application to MD simulations and the spectral sparsification algorithm. Formulation Network theory is used to model the interactions between objects [29]. Formally, a graph _G_ is an ordered set _G_ = ( _V_, _E_, _w_ ( _E_ )) consisting of a nonempty set of the vertices, _V_ = { _v_ 1, _v_ 2, . . ., _vN_ }, and edges, _E_, which describe the connections between pairs of vertices and the weights, _w_ ( _E_ ), which assigns a nonnegative weight to each edge. If the weights are restricted to one or zero, the graph is categorized as unweighted. Otherwise, the weights can take any nonnegative value and the graph is categorized as weighted. A graph is considered to be undirected if _wαβ_ = _wβα_ for all edges in _G_ . Otherwise, the graph is called directed. A common mathematical representation of networks is the adjacency matrix _A_ 2 < <sup>_N_</sup> <sup>×</sup> <sup>_N_</sup> ( _w_ ab if ða _;_ bÞ 2 _E_ 0 otherwise _:_ _A_ ab ¼ ð11Þ Relevant to this work is the fact that the adjacency matrix of an undirected graph is symmetric. [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 4 / 17 Application of networks to molecular dynamics The graph Laplacian _L_ 2 < <sup>_N_</sup> <sup>×</sup> <sup>_N_</sup> is given by _k_ a if a ¼ b - _w_ ab if ða _;_ bÞ 2 _E_ 0 otherwise _;_ _L_ ab ¼ 8 >< >: ð12Þ where _kα_ = ∑ _β Aαβ_ is the nodal strength of _α_ . The graph Laplacian and the adjacency matrix play key roles in graph-theoretic algorithms. Atomistic networks To create an atomic network representation, we take the individual atoms as the vertices and the force magnitude as the scalar edge weights. The magnitude of the force between two atoms separated by _r_ _αβ_ determines the edge weight, _w_ ab ¼ j _F_ abj _:_ ð13Þ In this paper, we quantify the network structure with the nodal strength and its distribution [29]. The nodal strength is particularly important in this application because it describes the total force magnitude of each particle. The strength distribution is graphically represented using a histogram plot which can display changes in structure of the graph. Atomistic network sparsification Sparsification involves creating a sparse representation, _Gs_, that approximates the true network, _G_ . In this case, sparsity is described by a reduction in the number of edges while keeping the number of vertices fixed. Network similarity is the concept used to compare the sparse representation with the original graph. Different sparsification methods have been described based on different definitions of similarity [40, 41]. Spectral sparsification [27], which defines similarity based on the eigenspectra, is chosen due to its previous success in studying dynamics across networks [28]. For this paper, we define _Gs_ to be similar to _G_, with approximation order denoted by _�_ 2 [0, 1] such that ð1 � _�_ Þ _v_ <sup>_T_</sup> _Lv_ - _v_ <sup>_T_</sup> _Lsv_ �ð1 þ _�_ Þ _v_ <sup>_T_</sup> _Lv_ ð14Þ for all _v_ 2 R <sup>_N_</sup> where _L_ is the graph Laplacian, _Ls_ is the sparsified graph Laplacian [27]. The approximation order, _�_ governs the potential sparsity of the system. If _�_ = 0 the algorithm will not sparsify any edges in the network while at the other extreme where _�_ = 1, maximum sparsification is allowed by the algorithm. The following steps describe the spectral sparsification algorithm [27, 28] which achieves spectral similarity with probability greater than one half: 1. Calculate the effective resistance given by the formula _R_ ^ _ij_ ¼ ð _pi_ - _qj_ Þ _TL_ þð _pi_ - _qj_ Þ _;_ ð15Þ where _L_ <sup>+</sup> is the Moore-Penrose pseudoinverse of the Laplacian while _p_ and _q_ are the vector representation of the nodes. For example, the first node label is represented by _p_ 1 = (1, 0, . . ., 0) = _q_ 1. 2. Select _ne_ edges randomly with probability proportional to the edge’s effective resistance, _R_ <sup>^</sup> _ij_ . This probability is, _pij_ ¼ _R_ <sup>^</sup> _ij=_ <sup>P</sup> This probability is, _pij_ ¼ _R_ <sup>^</sup> _ij=_ <sup>P</sup> _ij_ <sup>_R_</sup> <sup>^</sup> _ij_ <sup>. This selects edges based on their importance to the net-</sup> work. The parameter _ne_ is given by _ne_ = 8 _N_ log2( _N_ )/ _�_ <sup>2</sup> . [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 5 / 17 Application of networks to molecular dynamics 3. Add the sampled edges to the sparse graph _GS_ with weight _w_ ^ _ij_ ¼ _nwij=_ ð _nepij_ Þ, where _q_ is the number of samples and _n_ is the multiplicity of selection. Edges which are not selected are removed or, equivalently their weight set to zero. Because spectral sparsification reduces the number of edges, it provides a novel way to reduce the computations of forces while maintaining a low level of error during MD simulations. In particular, the algorithm will be shown to be favorable for long-range forces and estimation of continuum material properties. We kinematically and dynamically implement and test this algorithm on a two-dimensional domain containing a circular hole. We show that spectral sparsification preserves the total force for long-range potentials. This result is compared to the frequently used thresholding method which fails to preserve the total force. Because of this, we consider spectral sparsification as a simple alternative to other methods, e.g. fast multipole method [20, 42–45] and the Wolf summation method [16] which also preserve the total force magnitude. Spatial domain decomposition It is known that thresholding can be accomplished in Oð _n_ Þ time via spatial decomposition [1] while sparsification does not scale as effectively (see Section A in S1 File). This section describes an algorithm with better scaling properties. In particular, we present an algorithm which combines thresholding and spectral sparsification with superior scaling properties to the original spectral sparsification. We begin by describing a modification to the spatial domain decomposition used in thresholding for spectral sparsification. Here, we take advantage of the Oð _n_ Þ scaling of the thresholding algorithm by partitioning the domain into subdomains with size slightly larger than the cut-off distance. This allows the algorithm to only look for pairs in the neighboring subdomains. This builds upon previous work that has shown how sparsification can be performed on subgraphs of the original graph [46]. Therefore we can divide the domain spatially into subgraphs which can be individually sparsified and can also facilitate parallelization of the algorithm. Domain decomposition for spectral sparsification first divides the original graph _G_ into subgraphs _G_ = [ _Gi_, then approximates the subgraphs via sparsification _Gi_ - _G_ <sup>~</sup> _i_ . The sparsified subgraphs ( _G_ <sup>~</sup> _i_ ) are recombined to form an approximation of the original graph, i.e. _G_ �[ _G_ <sup>~</sup> _i_ . From a numerical standpoint, the algorithm partitions the adjacency matrix into submatrices and creates sparse approximations of the submatrices which are reassembled to generate a sparse approximation of the original matrix. The key steps associated with domain decomposition include: 1. Partition the domain O into subdomains {O1, . . ., O _m_ }. 2. Sort the atoms into each subdomain. 3. For each subdomain, O _i_, create a graph of the atomic interactions within the subdomain. 4. Sparsify this subgraph. 5. For each pair of subdomains, (O _i_, O _j_ ), generate the atomisitc graph consisting of the atomic interactions of all atoms in both subdomains. 6. Sparsify the subgraph consisting of all interactions in O _i_ and O _j_, then remove all edges which do not contain a node in both subdomains. 7. Reassemble all approximations of the subgraphs together to create the approximation of the original graph. [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 6 / 17 Application of networks to molecular dynamics Combined algorithm Our combined algorithm consists of using the positive attributes of both thresholding and sparsification. Sparsification is performed via domain decomposition described in the previous section after thresholding using a prescribed cutoff radius. There is an important tradeoff to be mentioned. As the cutoff radius shrinks, sparsification removes fewer edges and the algorithm gives results similar to thresholding. In the other direction where the cutoff radius increases, the algorithm becomes similar to pure spectral sparsification and approaches pure spectral sparsification in the limit of an infinite cutoff radius. Kinematic implementation and results The present analysis evaluates spectral sparsification by investigating a test problem with the Coulomb potential arranged in a two-dimensional crystalline material with an elliptical void space (see Fig 1). Additional comparisons to a circular hole can be found elsewhere [47]. This test problem was chosen because it is relatively simple and evaluates spectral sparsification for problems with an elliptical hole defect. We compare example graphs by varying the edge densities generated by evaluating the radial cutoff length of thresholding and changing _�_ as given in (14) for spectral sparsification. We define near-equilibrium position as the minimum energy lattice points for a perfect, infinite crystal. Near-equilibrium position, therefore, neglects surface relaxation on the boundary of our finite crystal and the free surface around the hole. The model consists of a square with 30 unit cells where atoms near the center have been removed. We focus on the effect of thresholding and sparsification by evaluating long range forces from the Coulomb potential in Fig 1. In this figure, we plot the network representing the original graph, the thresholded graph for a cut-off radius _rcut_ = 10 _σ_ ( _σ_ given in (4)), and the spectral sparsified graph with _�_ = 1. Fig 1 illustrates the differences in sparsified forces for the longrange Coulomb potential. An important difference in the algorithms is demonstrated here. Spectral sparsification naturally detects and retains important long range forces. This is visualized by noticing that both algorithms cut interactions across the hole. However, thresholding removes all of these interactions while spectral sparsification maintains a finite amount of edges while still creating a sparse representation. The number of nonzero entities of the adjacency matrix representing interatomic force interactions is illustrated for models exhibiting similar error levels; see Fig B in S1 File. These error measures are defined later in (18). The left image in Fig B in S1 File applies the Coulomb potential with a cutoff radius of 15 _σ_ while the right image in Fig B in S1 File applies the Coulomb potential which spectrally sparsifies the graph using _�_ = 1. Further comparisons are given in Fig C in S1 File where the adjacency matrices of a 200 atom system for varying levels of sparsity is visualized. We see that spectral sparsification retains some of the long range forces and removes some of the medium length forces in comparison to the thresholded adjacency matrix. This highlights one key advantage of spectral sparsification: it retains sufficient long range interactions to capture long range effects while strategically removing edges for computational efficiency. We focus on the error analysis of the kinematic problem by examining the long range Coulomb forces and provide comparisons to the Lennard-Jones potential summarized elsewhere [47]. The number of edges removed is varied by adjusting the cutoff radius in the case of thresholding and varying the value of _�_ for spectral sparsification. The net normalized forces versus the fraction of edges removed is plotted in Fig 2A. The net normalized force, _F_ <sup>~</sup>, is [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 7 / 17 Application of networks to molecular dynamics Fig 1. Coulomb force graph with thresholding and with spectral sparsification. The color represents the normalized <u>edge weight.</u> [https://doi.org/10.1371/journal.pone.0213262.g001](https://doi.org/10.1371/journal.pone.0213262.g001) [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 8 / 17 Application of networks to molecular dynamics Fig 2. Evaluation of the Coulomb potential on total forces and force errors versus edges removed. (A) Net force vs. fraction of edges removed for thresholded, <u>sparsified, and the combined algorithm. (B) Normalized error vs. edges removed for thresholded, sparsified, and the combined algorithm.</u> [https://doi.org/10.1371/journal.pone.0213262.g002](https://doi.org/10.1371/journal.pone.0213262.g002) defined by P _F_ ~ ¼ ~~P~~ _<u>ij</u>_ _<u>ij</u>_ <sup>_A_</sup> _<u>ij</u>_ <sup>_s_</sup> _ij_ <sup>_A_</sup> _ij_ _;_ ð16Þ where _A_ <sup>_s_</sup> _ij_ <sup>and</sup> <sup>_Aij_</sup> <sup>are the adjacency matrices of the sparsified and original graphs, respectively.</sup> The net normalized force represents the magnitude of all the force interactions in the network. Edge sparsification is quantified by the fraction of remaining edges _Fe_ which is evaluated by _<u>e</u>_ _Fe_ ¼ 1 � <sup>_<u>N</u>_</sup> <sup>_s_</sup> _<u>e</u>_ <sup>_<u>N</u>_</sup> <sup>_s_</sup> _Ne_ <sup>_o_</sup> _;_ ð17Þ _e_ where _Ne_ <sup>_s_</sup> _e_ <sup>_s_</sup> <sup>and</sup> <sup>_N_</sup> _e_ <sup>_o_</sup> where _Ne_ <sup>_s_</sup> <sup>and</sup> <sup>_N_</sup> _e_ <sup>_o_</sup> <sup>are the number of nonzero edges in the sparsified graph and the original</sup> graph, respectively. In addition to the total force analysis, we also show the average normalized error of the nodal strength. This error is equivalent to the error of the total normalized force on each atom which can be calculated from X _i_ <u>1</u> _ef_ ¼ _N_ k _Aij_ k ���������� _A_ <sup>_s_</sup> _ij_ <sup>�</sup> X _i_ _Aij_ ð18Þ ���������� _;_ where k �k represents the Euclidean norm and _N_ is the number of nodes. This error describes the change in the magnitude of forces on each atom. In prior analysis, we have shown that both spectral sparsification and thresholding introduce relatively small errors until _Fe_ - 0.98 for the Lennard–Jones potential [47]. For cases _Fe >_ 0.98, it was shown that thresholding performs slightly better until _Fe_ - 0.99. This suggests that thresholding is more accurate than spectral sparsification for short range forces. In Fig 2, we illustrate the total force and error analysis for the Coulomb potential. It is shown that sparsification outperforms thresholding by cutting and redistributing edges to conserve global forces. We see in Fig 2A that sparsification maintains the global net force, whereas errors using thresholding increase at a faster rate as _Fe_ ! 1. Furthermore, in Fig 2B we see that spectral sparsification has lower local error than thresholding for the same fraction of edges [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 9 / 17 Application of networks to molecular dynamics removed. This suggests that the use of spectral sparsification is efficient at removing edges for models with long-range forces since lower error tolerances can be achieved with the same number of edges removed relative to thresholding. Additionally, Fig 2 shows that combining thresholding and spectral sparsification allows one to first select a point on the error vs. thresholded distance curve and then remove more edges without significantly changing the net force and the error (i.e. local force). This demonstrates that combining spectral sparsification with thresholding gives the best of both algorithms: better scaling due to thresholding combined with fewer edges to preserve global force accuracy due to sparsification. We emphasize that spectral sparsification maintains the mean nodal strength distribution while achieving a low level of global errors. In contrast, thresholding discards edges instead of redistributing them and therefore fails to maintain the mean nodal strength. Qualitatively, spectral sparsification keeps the average nodal strength constant while broadening the distribution of the nodal degree. While the distribution of the nodal strength contains randomness, the algorithm maintains a similar Laplacian eigenvalue spectrum and corresponding eigenvectors. Maintaining these two quantities should maintain global dynamic properties. Therefore, from a kinematic perspective, spectral sparsification better approximates the forces compared to thresholding. We also conduct numerical scaling experiments with the Coloumb potential to evaluate the performance of spectral sparsification. These examples are run using the same geometry as our previous kinematic example by varying the number of atoms from 10 to 10 <sup>4</sup> . The number of edges and the kinematic force error is compared for spectral sparsification, thresholding, and the combined algorithm. The scaling on the number of edges is tested for several cutoff radii as indicated in the figure. Spectral sparsification used _�_ = 1 for all simulations. We note that a cutoff radius _rc_ = 15 _σ_ ( _σ_ = 1 in our model) has been chosen based on previous work which suggest this _rc_ is a reasonably appropriate cutoff radius for the Coulomb potential [48, 49]. Results are shown in Fig 3. The number of edges appears to scale linearly in Fig 3A, which is better than the Oð _n_ logð _n_ ÞÞ scaling proven in [27]. Additionally, we find that the local error for sparsification scales better than for thresholding. We note that the level of error in the combined algorithm is set by the degree of thresholding. Given the complexity reduction and computational scaling (see Section A and Fig A in S1 File for more details), it is preferred to limit the number of times sparsification is applied Fig 3. (A) The number of edges as a function of atoms for sparsification, thresholding, and the combined algorithm for multiple cut-off radii (thresholding was done <u>at</u> _<u>rc</u>_ <u>= 10</u> _<u>σ</u>_ <u>). (B) Kinematic estimation of local (force) error as a function of number of atoms in the system.</u> [https://doi.org/10.1371/journal.pone.0213262.g003](https://doi.org/10.1371/journal.pone.0213262.g003) [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 10 / 17 Application of networks to molecular dynamics during molecular dynamic time integration simulations. We investigate the effect of sparsification using thresholding and spectral methods in the following section to quantify error propagation for a fixed amount of sparsification applied at the initial time of the simulation. We conduct these simulations on a circular hole to simplify the analysis. The sparsification is fixed in all simulations such that we can quantify the amount of error that propagates over multiple time steps of numerical integration. Molecular dynamics implementation For time stepping, we use the traditional Verlet algorithm given by _r_ <sup>ð</sup> <sup>_i_</sup> <sup>þ1Þ</sup> ¼ _r_ <sup>ð</sup> <sup>_i_</sup> <sup>Þ</sup> þ _v_ <sup>ð</sup> <sup>_i_</sup> <sup>Þ</sup> D _t_ þ <sup><u>D</u></sup> <sup>_<u>t</u>_</sup> <sup>2</sup> 2 <sup>_a_</sup> <sup>ð</sup> <sup>_i_</sup> <sup>Þ</sup> <sup>_;_</sup> - _v_ <sup>ð</sup> <sup>_i_</sup> <sup>þ1Þ</sup> ¼ _v_ <sup>ð</sup> <sup>_i_</sup> <sup>Þ</sup> þ <sup><u>D</u></sup> <sup>_<u>t</u>_</sup> _a_ <sup>ð</sup> <sup>_i_</sup> <sup>þ1Þ</sup> þ _a_ <sup>ð</sup> <sup>_i_</sup> <sup>Þ</sup> _;_ 2 ð19Þ where Δ _t_ is the time step, _r_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> is the position of the atoms, _v_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> is their velocity, and _a_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> is the acceleration at the _i_ th time step. The acceleration is computed from the negative gradient of the potential energy normalized by the atomic mass according to (1) and (2). Two different types of errors are computed. The first is the atomic trajectory or local error. This is calculated by taking the difference in positions between an exact simulation where neither thresholding nor sparsification is applied and compared to an otherwise identical simulation where an approximation of the force is used through one of the algorithms: spectral sparsification, thresholding, or the combined algorithm. The other error metric considered is global quantities of interest including the pressure, the second stress invariant, the kinetic energy, the potential energy, and the total energy. Spectral sparsification used in this analysis requires all entries in the adjacency matrix to be positive. Incorporating both negative and positive charges into this formulation may be possible, but is beyond the scope of the current algorithm development [33]. Further research is required to understand how both positive and negative charges may be sparsified. In order to demonstrate the efficacy of spectral sparsification in molecular dynamics, we restrict the dynamic implementation to problems with only positive charges for the present investigation. Two example problems are considered using a potential which combines the Coulomb and the Lennard-Jones potentials. The Lennard-Jones potential is included for model stability. This resembles the potentials used for modeling ionic solids. The results presented here use Lennard-Jones reduced units, i.e., units where _�_ 0 = 1 and _σ_ = 1 with the timescale based on the angular frequency of small oscillations in a Lennard-Jones oscillator given by o0 ¼ rf f i f f i f f i f f i f f i f f i f f i f <u>72</u> _<u>�</u>_ <u>0</u> 2 <sup>1</sup> <sup>_=_</sup> <sup>3</sup> _m_ s <sup>2</sup> _~~:~~_ ð20Þ For reference, this equation is derived in Section B in S1 File. The magnitudes of the charges have been scaled such that the repulsive forces are strong enough to be significant while small pf f i f f i f f i f f i f f i ffi enough to not cause the material to rupture. Specifically we set _q_ ¼ 0 _:_ 1 _�_ 0s _=k_ where _k_ was pf f i f f i f f i f f i f f i ffi _�_ 0s _=k_ f f f f f enough to not cause the material to rupture. Specifically we set _q_ ¼ 0 _:_ 1 _�_ 0s _=k_ where _k_ was given earlier in (5) as Coulomb’s constant. While periodic boundary conditions are ubiquitous in molecular dynamics, this paper primarily deals with defects associated with free boundary conditions. The boundary conditions are chosen so that comparisons are made to the algorithm itself and not necessarily due to issues involving periodic boundary conditions. The first example is relaxation of a solid along free boundaries. The second problem is a tensile test of a solid with a circular hole in the side using half symmetry boundary conditions (a classic problem in elasticity). [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 11 / 17 Application of networks to molecular dynamics Fig 4. Measures of error and global properties for the sparsified, thresholded, and combined approximations for the surface relaxation problem. Comparisons are made to a system with all non-zero edges included which has been labeled the exact system. (A) Average difference in position between the exact solution and the approximation methods. (B) Average difference in velocity between the exact solution and the approximation solutions. (C) Potential energy, kinetic energy, and total energy of the system for the different methods. Note that there is about a half of unit difference between the thresholded (and combined) total energy and the exact (and sparsified) total energy. (D) Normalized second <u>invariant of the stress tensor.</u> [https://doi.org/10.1371/journal.pone.0213262.g004](https://doi.org/10.1371/journal.pone.0213262.g004) The surface relaxation problem (without the hole) is performed for 20,000 times steps which is approximately 4.5 periods based on (20). Fig 4 shows the energy of the system, the second invariant of the stress tensor, and the average error in position and velocity for this relaxation simulation. Results are compared to a system where neither spectral sparsification nor thresholding was applied which is referred to as the exact solution. These results illustrate that spectral sparsification has lower error than thresholding in position and velocity errors. As expected, sparsification better preserves the total energy of the system as seen in Fig 4(c). Also note that the difference of the stress invariant is negligible for the simulation. For the second validation case, we evaluate the tensile test of a solid with a circular hole on the side and invoke half symmetry boundary conditions of a hole inside a plate. The atoms on the top of the crystal are slowly pulled by controlling their displacement in the _y_ -direction. The atoms on the left side and the bottom have the _x_ and _y_ positions held fixed, respectively, to ensure half symmetry. The displacement and force of the atoms during the tensile test are recorded and plotted in Fig 5. The fact that the sparsified system closely matches the force-displacement curve suggests that a sparsified system will better predict global properties such as [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 12 / 17 Application of networks to molecular dynamics Fig 5. Force-displacement curve of the tensile simulation. Sparsification closely matches the force-displacement <u>curve of the full graph (i.e., exact solution).</u> [https://doi.org/10.1371/journal.pone.0213262.g005](https://doi.org/10.1371/journal.pone.0213262.g005) elastic modulus and yield stress, which can be derived from the slope of the curve and its change in slope, respectively. As in the first example, we plot the average error in position and velocity as well as the global energy and stress invariant for the tensile test in Fig 6. We note that sparsification performs better in terms of energy of the system. Lower error in both position and velocity is achieved for up to 8 periods based on (20). We also note that the combined algorithm closely matches the thresholded algorithm. This is because the thresholding value decides the level of error in the combined algorithm. Conclusions We have shown that spectral sparsification can provide a sparse representation of a material network by approximating the interatomic forces. Spectral sparsification produces a lower level of error relative to thresholding for problems containing long-range Coulomb forces. Importantly, the results suggest that sparsification maintains the net force. This is significant because it provides advantages for estimating macroscopic properties relative to thresholding. We tested this hypothesis on a simple tensile test and found the force-displacement curves for sparsification more closely resembled those of the full graph solution than thresholding for a model problem with a circular hole defect. We also presented a modification to the spectral sparsification algorithm that is fully parallelizable via spatial decomposition of the domain. Error propagation over several molecular dynamic time steps for a fixed spectral sparsification was shown to provide good estimates of many global characteristics such as total energy, average stress, and average atomic displacements for condensed atomic structures with relatively small perturbations of atomic positions. Molecular systems such as biological materials in water may undergo large configurational changes in shape. In such scenarios, the frequency of sparsification updates must be evaluated to assess accuracy. This [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 13 / 17 Application of networks to molecular dynamics Fig 6. Measures of error and global properties for the sparsified, thresholded, and combined approximations for the tensile simulations. Errors are calculated by comparing sparsified networks to a network with no edge reduction. The network with no sparsification is labeled as exact. (A) Average difference in position between the exact solution and the approximation solutions. (B) Average difference in velocity between the exact solution and the approximation methods. (C) Potential energy, kinetic energy, and total energy of the system for the different methods. Note that there is about a half of unit difference between the thresholded (and combined) total energy and the exact (and sparsified) <u>total energy. (D) Normalized second invariant of the stress tensor.</u> [https://doi.org/10.1371/journal.pone.0213262.g006](https://doi.org/10.1371/journal.pone.0213262.g006) will become important in highly nonlinear regimes and interactions containing more than two-body effects. Supporting information [S1 File.](http://www.plosone.org/article/fetchSingleRepresentation.action?uri=info:doi/10.1371/journal.pone.0213262.s001) Section A : Computational costs associated with spectral sparsification. Section B. Derivation of the angular frequency for a Lennard Jones potential. Fig A. (A) Scaling of resistance calculation where _tr_ is the time to perform the calculation of graph resistance. (B) Scaling of sampling calculation where _ts_ is the time to sample the edges. (C) Scaling simulation times, _td_, vs. number of atoms using spectral sparsification for 100 time steps (D) Scaling simulation times, _td_, vs. number of edges using spectral sparsification for 100 time steps. Fig B. Plots of the adjacency matrices created by (A) thresholding and (B) spectral sparsification. These two graphs have comparable error, but the spectrally sparsified system has 136,245 edges while the thresholded system has 307,532 edges and ignores the long range interactions of the Coulomb potential. Fig C. (A) Graphs of varying sparsity created by thresholding. The cutoff distance is given by the fraction of the maximum distance, _d_, across the domain consisting of *200 [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 14 / 17 Application of networks to molecular dynamics atoms. (B) Graphs of varying sparsity ( _�_ = 0.25, 0.5 and 1) created by spectral sparsification again for *200 atoms. The sparsity of graphs which are in the same row position are equal. (PDF) Acknowledgments The authors acknowledge the National Science Foundation for support of the work under EAGER grant number 1648618. We also thank Prof. Shangchao Lin for productive discussions on molecular dynamics simulations. Author Contributions Conceptualization: William S. Oates. Data curation: Peter Woerner. Formal analysis: Peter Woerner, Aditya G. Nair. Funding acquisition: Kunihiko Taira, William S. Oates. Investigation: Peter Woerner, Aditya G. Nair, Kunihiko Taira, William S. Oates. Methodology: Peter Woerner, Aditya G. Nair, Kunihiko Taira, William S. Oates. Project administration: Kunihiko Taira, William S. Oates. Software: Peter Woerner. Supervision: Aditya G. Nair, Kunihiko Taira, William S. Oates. Validation: Peter Woerner. Visualization: Peter Woerner, Aditya G. Nair. Writing – original draft: Peter Woerner. Writing – review & editing: Peter Woerner, Aditya G. Nair, Kunihiko Taira, William S. Oates. References 1. Plimpton S. Fast Parallel Algorithms for Short-Range Molecular Dynamics. Journal of Computational [Physics. 1995; 117(1):1–19. https://doi.org/10.1006/jcph.1995.1039.](https://doi.org/10.1006/jcph.1995.1039) 2. Rapaport DC. The Art of Molecular Dynamics Simulations. Cambridge University Press; 1995. 3. Kong LT. Phonon dispersion measured directly from molecular dynamics simulations. Computer Phys[ics Communications. 2011; 182(10):2201–2207. https://doi.org/10.1016/j.cpc.2011.04.019](https://doi.org/10.1016/j.cpc.2011.04.019) 4. Wunderlich W, Awaji H. Molecular dynamics—simulations of the fracture toughness of sapphire. Materi[als & Design. 2001; 22(1):53–59. https://doi.org/10.1016/S0261-3069(00)00044-3.](https://doi.org/10.1016/S0261-3069%0x2800%0x2900044-3) 5. Steinfeld JI, Francisco JS, Hase WL. Chemical kinetics and dynamics. vol. 3. Prentice Hall Englewood Cliffs (New Jersey); 1989. 6. van Gunsteren WF, Berendsen HJ. Computer simulation of molecular dynamics: methodology, applications, and perspectives in chemistry. Angewandte Chemie International Edition in English. 1990; 29 [(9):992–1023. https://doi.org/10.1002/anie.199009921](https://doi.org/10.1002/anie.199009921) 7. Maruyama S. Molecular dynamics method for microscale heat transfer. Advances in numerical heat transfer. 2000; 2(6):189–226. 8. Wang M, Lin S. Ballistic thermal transport in carbyne and cumulene with micron-scale spectral acoustic [phonon mean free path. Scientific reports. 2015; 5:18122. https://doi.org/10.1038/srep18122 PMID:](https://doi.org/10.1038/srep18122) [26658143](http://www.ncbi.nlm.nih.gov/pubmed/26658143) 9. Wang M, Lin S. Anisotropic and ultralow phonon thermal transport in organic–inorganic hybrid perovskites: atomistic insights into solar cell thermal management and thermoelectric energy conversion [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 15 / 17 Application of networks to molecular dynamics [efficiency. Advanced Functional Materials. 2016; 26(29):5297–5306. https://doi.org/10.1002/adfm.](https://doi.org/10.1002/adfm.201600284) [201600284](https://doi.org/10.1002/adfm.201600284) 10. Klein ML, Shinoda W. Large-scale molecular dynamics simulations of self-assembling systems. Sci[ence. 2008; 321(5890):798–800. https://doi.org/10.1126/science.1157834 PMID: 18687954](https://doi.org/10.1126/science.1157834) 11. Davis JE, Ozsoy A, Patel S, Taufer M. Towards Large-Scale Molecular Dynamics Simulations on Graphics Processors. In: Proceedings of the 1st International Conference on Bioinformatics and Computational Biology. BICoB’09. Berlin, Heidelberg: Springer-Verlag; 2009. p. 176–186. Available [from: http://dx.doi.org/10.1007/978-3-642-00727-9_18.](http://dx.doi.org/10.1007/978-3-642-00727-9_18) 12. Shaw D. Using special-purpose hardware to achieve a hundred-fold speedup in molecular dynamics simulations of proteins. In: 2010 IEEE International Symposium on Performance Analysis of Systems Software (ISPASS); 2010. p. 121–121. 13. Brown WM, Wang P, Plimpton SJ, Tharrington AN. Implementing molecular dynamics on hybrid high performance computers– short range forces. Computer Physics Communications. 2011; 182(4):898– [911. https://doi.org/10.1016/j.cpc.2010.12.021.](https://doi.org/10.1016/j.cpc.2010.12.021) 14. Brown WM, Kohlmeyer A, Plimpton SJ, Tharrington AN. Implementing molecular dynamics on hybrid high performance computers–Particle–particle particle-mesh. Computer Physics Communications. [2012; 183(3):449–459. https://doi.org/10.1016/j.cpc.2011.10.012](https://doi.org/10.1016/j.cpc.2011.10.012) 15. Yukawa H. On the interaction of elementary particles. I. Proceedings of the Physico-Mathematical Society of Japan 3rd Series. 1935; 17:48–57. 16. Wolf D, Keblinski P, Phillpot S, Eggebrecht J. Exact method for the simulation of Coulombic systems by spherically truncated, pairwise r- 1 summation. The Journal of Chemical Physics. 1999; 110(17):8254– [8282. https://doi.org/10.1063/1.478738](https://doi.org/10.1063/1.478738) 17. Streitz F, Mintmire J. Electrostatic potentials for metal-oxide surfaces and interfaces. Physical Review [B. 1994; 50(16):11996. https://doi.org/10.1103/PhysRevB.50.11996](https://doi.org/10.1103/PhysRevB.50.11996) 18. Fennell CJ, Gezelter JD. Is the Ewald summation still necessary? Pairwise alternatives to the accepted [standard for long-range electrostatics. The Journal of Chemical Physics. 2006; 124(23):234104. https://](https://doi.org/10.1063/1.2206581) [doi.org/10.1063/1.2206581 PMID: 16821904](https://doi.org/10.1063/1.2206581) 19. Kolafa J, Perram JW. Cutoff Errors in the Ewald Summation Formulae for Point Charge Systems. [Molecular Simulation. 1992; 9(5):351–368. https://doi.org/10.1080/08927029208049126](https://doi.org/10.1080/08927029208049126) 20. Hardy DJ, Stone JE, Schulten K. Multilevel Summation of Electrostatic Potentials Using Graphics Pro[cessing Units. Parallel Comput. 2009; 35(3):164–177. https://doi.org/10.1016/j.parco.2008.12.005](https://doi.org/10.1016/j.parco.2008.12.005) [PMID: 20161132](http://www.ncbi.nlm.nih.gov/pubmed/20161132) 21. Ho JC, Ghosh J, Sun J. Marble: high-throughput phenotyping from electronic health records via sparse nonnegative tensor factorization. In: Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining. ACM; 2014. p. 115–124. 22. Qiao L, Chen S, Tan X. Sparsity preserving projections with applications to face recognition. Pattern [Recognition. 2010; 43(1):331–341. https://doi.org/10.1016/j.patcog.2009.05.005](https://doi.org/10.1016/j.patcog.2009.05.005) 23. Belkin M, Niyogi P. Laplacian eigenmaps for dimensionality reduction and data representation. Neural [computation. 2003; 15(6):1373–1396. https://doi.org/10.1162/089976603321780317](https://doi.org/10.1162/089976603321780317) 24. Christopher MB. Pattern Recognition and Machine Learning. Springer-Verlag New York; 2016. 25. Candes EJ, Wakin MB, Boyd SP. Enhancing sparsity by reweighted _ℓ_ 1 minimization. Journal of Fourier [Analysis and Applications. 2008; 14(5-6):877–905. https://doi.org/10.1007/s00041-008-9045-x](https://doi.org/10.1007/s00041-008-9045-x) 26. Goodfellow I, Bengio Y, Courville A. Deep Learning. MIT Press; 2016. 27. Spielman DA, Srivastava N. Graph sparsification by effective resistances. SIAM Journal on Computing. [2011; 40(6):1913–1926. https://doi.org/10.1137/080734029](https://doi.org/10.1137/080734029) 28. Nair AG, Taira K. Network-theoretic approach to sparsified discrete vortex dynamics. Journal of Fluid [Mechanics. 2015; 768:549–571. https://doi.org/10.1017/jfm.2015.97](https://doi.org/10.1017/jfm.2015.97) 29. Newman M. Networks: An Introduction. Oxford University Press; 2010. 30. Napp NE, Adams RP. Message Passing Inference with Chemical Reaction Networks. In: Burges CJC, Bottou L, Welling M, Ghahramani Z, Weinberger KQ, editors. Advances in Neural Information Process[ing Systems 26. Curran Associates, Inc.; 2013. p. 2247–2255. Available from: http://papers.nips.cc/](http://papers.nips.cc/paper/4901-message-passing-inference-with-chemical-reaction-networks.pdf) [paper/4901-message-passing-inference-with-chemical-reaction-networks.pdf.](http://papers.nips.cc/paper/4901-message-passing-inference-with-chemical-reaction-networks.pdf) 31. Taira K, Nair AG, Brunton SL. Network structure of two-dimensional decaying isotropic turbulence. [Journal of Fluid Mechanics. 2016; 795. https://doi.org/10.1017/jfm.2016.235](https://doi.org/10.1017/jfm.2016.235) 32. Nair AG, Taira K, Brunton SL. Networked-oscillator-based modeling and control of unsteady wake [flows. Physical Review E. 2018; 97:063107. https://doi.org/10.1103/PhysRevE.97.063107 PMID:](https://doi.org/10.1103/PhysRevE.97.063107) [30011576](http://www.ncbi.nlm.nih.gov/pubmed/30011576) [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 16 / 17 Application of networks to molecular dynamics 33. Gopalakrishnan Meena M, Nair AG, Taira K. Network community-based model reduction for vortical [flows. Physical Review E. 2018; 97:063103. https://doi.org/10.1103/PhysRevE.97.063103 PMID:](https://doi.org/10.1103/PhysRevE.97.063103) [30011542](http://www.ncbi.nlm.nih.gov/pubmed/30011542) 34. Singh J, Vishwanath RB, Chaudhuri S, Sujith RI. Network structure of turbulent premixed flames. [Chaos. 2017; 27:043107. https://doi.org/10.1063/1.4980135 PMID: 28456168](https://doi.org/10.1063/1.4980135) 35. Papadopoulos L, Puckett JG, Daniels KE, Bassett DS. Evolution of network architecture in a granular [material under compression. Physical Review E. 2016; 94(3):032908. https://doi.org/10.1103/](https://doi.org/10.1103/PhysRevE.94.032908) [PhysRevE.94.032908 PMID: 27739788](https://doi.org/10.1103/PhysRevE.94.032908) 36. Bassett DS, Owens ET, Porter MA, Manning ML, Daniels KE. Extraction of force-chain network archi[tecture in granular materials using community detection. Soft Matter. 2015; 11(14):2731–2744. https://](https://doi.org/10.1039/c4sm01821d) [doi.org/10.1039/c4sm01821d PMID: 25703651](https://doi.org/10.1039/c4sm01821d) 37. Batson J, Spielman DA, Srivastava N, Teng SH. Spectral sparsification of graphs: theory and algo[rithms. Communications of the ACM. 2013; 56(8):87–94. https://doi.org/10.1145/2492007.2492029](https://doi.org/10.1145/2492007.2492029) 38. Griffiths D. Introduction to Electrodynamics. Prentice Hall; 1999. 39. Malvern Lawrence EIntroduction to the Mechanics of a Continuous Medium Prentice-Hall, Inc., Englewood, NJ, 1969. 40. Benczu´r AA, Karger DR. Approximating S-t Minimum Cuts in O <sup>˜</sup> (N2) Time. In: Proceedings of the Twenty-eighth Annual ACM Symposium on Theory of Computing. STOC’96. New York, NY, USA: [ACM; 1996. p. 47–55. Available from: http://doi.acm.org/10.1145/237814.237827.](http://doi.acm.org/10.1145/237814.237827) 41. Peleg D, Ullman JD. An optimal synchronizer for the hypercube. SIAM Journal on computing. 1989; [18(4):740–747. https://doi.org/10.1137/0218050](https://doi.org/10.1137/0218050) 42. Rokhlin V. Rapid solution of integral equations of classical potential theory. Journal of computational [physics. 1985; 60(2):187–207. https://doi.org/10.1016/0021-9991(85)90002-6](https://doi.org/10.1016/0021-9991%0x2885%0x2990002-6) 43. Toukmaji A, Sagui C, Board J, Darden T. Efficient particle-mesh Ewald based approach to fixed and [induced dipolar interactions. The Journal of Chemical Physics. 2000; 113(24):10913–10927. https://doi.](https://doi.org/10.1063/1.1324708) [org/10.1063/1.1324708](https://doi.org/10.1063/1.1324708) 44. Isele-Holder RE, Mitchell W, Ismail AE. Development and application of a particle-particle particle-mesh Ewald method for dispersion interactions. The Journal of Chemical Physics. 2012; 137(17):174107. [https://doi.org/10.1063/1.4764089 PMID: 23145717](https://doi.org/10.1063/1.4764089) 45. Isele-Holder RE, Mitchell W, Hammond JR, Kohlmeyer A, Ismail AE. Reconsidering Dispersion Potentials: Reduced Cutoffs in Mesh-Based Ewald Solvers Can Be Faster Than Truncation. Journal of Chem[ical Theory and Computation. 2013; 9(12):5412–5420. https://doi.org/10.1021/ct4004614 PMID:](https://doi.org/10.1021/ct4004614) [26592279](http://www.ncbi.nlm.nih.gov/pubmed/26592279) 46. Kolla A, Makarychev Y, Saberi A, Teng SH. Subgraph Sparsification and Nearly Optimal Ultrasparsifiers. In: Proceedings of the Forty-second ACM Symposium on Theory of Computing. STOC’10. New [York, NY, USA: ACM; 2010. p. 57–66. Available from: http://doi.acm.org/10.1145/1806689.1806699.](http://doi.acm.org/10.1145/1806689.1806699) 47. Woerner, P., Nair, A. G., Taira, K., Oates, W. S. Network Theoretic Approach to Atomistic Material Modeling Using Spectral Sparsification ASME 2017 Conference on Smart Materials, Adaptive Structures and Intelligent Systems. American Society of Mechanical Engineers. 48. Fadrna´ E, Hladečkova´ K, Koča J. Long-range electrostatic interactions in molecular dynamics: an endothelin-1 case study. Journal of Biomolecular Structure and Dynamics. 2005; 23(2):151–162. [https://doi.org/10.1080/07391102.2005.10531229 PMID: 16060689](https://doi.org/10.1080/07391102.2005.10531229) 49. Piana S, Lindorff-Larsen K, Dirks RM, Salmon JK, Dror RO, Shaw DE. Evaluating the effects of cutoffs and treatment of long-range electrostatics in protein folding simulations. PLoS One. 2012; 7(6):e39918. [https://doi.org/10.1371/journal.pone.0039918 PMID: 22768169](https://doi.org/10.1371/journal.pone.0039918) [PLOS ONE | https://doi org/10 1371/journal pone 0213262](https://doi.org/10.1371/journal.pone.0213262) April 12 2019 17 / 17

섹션 본문 67문단 · 31,848자

(제목 없음)

1Atomic interactions in solid materials are described using network theory. The tools of network theory focus on understanding the properties of a system based upon the underlying interactions which govern their dynamics. While the full atomistic network is dense, we apply a spectral sparsification technique to construct a sparse interaction network model that reduces the computational complexity while preserving macroscopic conservation properties. This sparse network is compared to a reduced network created using a cut-off radius (threshold method) that is commonly used to speed-up computations while approximating interatomic forces. The approximations used to estimate the total forces on each atom are quantified to assess how local interatomic force errors propagate errors at the global or continuum scale by comparing spectral sparsification to thresholding. In particular, we quantify the performance of the spectral sparsification algorithm for the short-range Lennard-Jones potential and the long-range Coulomb potential. Spectral sparsification of the Lennard-Jones potential yields comparable results to thresholding while spectral sparsification yields improvements when considering a long-range Coulomb potential. The present network-theoretic formulation is implemented on two sample problems: relaxation of atoms near a surface and a tensile test of a solid with a circular hole.

Introduction

2Molecular dynamics (MD) is a common simulation tool for modeling materials at the nano and micron length scales [1,2]. In the framework of MD simulations, atoms are treated as point masses that are accelerated by an imbalance of interatomic forces from neighboring atoms. To track the atomic trajectories, numerical integration of Newton's equations of motion is performed which often requires significant computer memory and lengthy computations to account for each interatomic interaction across a large number of time-step integrations. A variety of atomistic scale insights about complex material behavior can be determined including, mechanical [1,3,4], chemical [5,6] and thermal [7][8][9] properties and in limiting cases, macroscopic constitutive relations. PLOS Many simulations frequently require millions of atoms, making the computations expensive [10]. Moreover, a large number of time steps are required to acquire meaningful thermodynamic statistics [1,2]. Additionally, accurate dynamic trajectories require time steps on the order of the frequency of atomic vibrations which is typically on the order of femtoseconds. Therefore, simulations on the nanosecond timescale require millions of time steps over millions of degrees of freedom on a three-dimensional grid [1].

3Specialized research focused on improving computational speed in MD simulations has focused on parallel implementation [1]. This has led to the creation of both novel algorithms and specialized hardware [1,[11][12][13][14]. However, long range forces remain difficult to compute and can suffer accuracy limitations. Typically, interactions above a cutoff distance are neglected (i.e., thresholding). For short range forces, this is often sufficient. However, the effects due to thresholding become uncertain when using long-range forces such as those produced from electrostatic and magnetostatic problems. Broadly speaking, the approaches currently used for dealing with these long range forces can be classified as one of the following: use a cutoff distance despite the potential issues, transform the Coulomb potential into a short range potential, e.g., Debye potential and Wolf summation, or mathematically exploit periodic boundary conditions to generate a mathematical expression long range effects [15][16][17][18]. Thresholding is the most computationally efficient of the current methods, but generates large error. The transformation strategy suffers from the same drawbacks as the thresholding strategy; however, it has been shown to be adequate in some applications [18]. Methods for solving the full solution by exploiting periodic boundary conditions are accurate, but computationally expensive [14,19,20].

4Research focusing on sparsity has recently gained traction in computational science [21][22][23]. In machine learning, the use of the l 1 norm has been leveraged to promote sparsity in the resulting models without over-fitting [24,25]. In handling big data, autoencoders and other sparse techniques are used to create sparse representations of data to reduce memory requirements [23,26]. In network theory, sparsification is used to create computationally tractable representations of complex systems [27]. The use of sparsity to model continuum dynamics has recently emerged to describe nonlinear flow phenomena but there has been limited research in the field of atomistic scale computational materials science [28].

5In this paper, we examine the kinematics and dynamics of atomistic systems using network theory. Specifically, we utilize network-based techniques which create computationally tractable representations of the atomic system without sacrificing accuracy. Network theory has long history of describing complex systems such as social interactions, electric grids, and airplane scheduling [29]. Although there have been applications in engineering systems such as chemical networks [30], fluid dynamics [28,[31][32][33][34] and granular matter [35,36], minimal research has focused on applications in molecular dynamics and solid mechanics.

6A network consists of nodes or vertices and their pairwise connections which are called edges [29].

7Sparse representations of networks are desirable because they distill the network to its core features.

8We describe and implement spectral sparsification, a technique for creating sparse representations of networks, on atomisitic networks. This method generates a sparse network while while maintaining spectral similarity with the original network [27,37]. The results to be presented here demonstrate that spectral sparsification is a viable candidate to enhance computational efficiency of MD calculations while maintaining minimum errors.

9Spectral sparsification is applied and implemented to atomic networks using the Lennard-Jones and Coulomb potentials. Spectral sparsification conserves global network properties by reorganizing interatomic force distributions in order to achieve a sparse representation of the interatomic forces. In what follows, we first introduce the essential relations used in molecular dynamics calculations followed by definitions and concepts used in network theory that are relevant to molecular dynamic modeling. We then introduce a formulation of atomic networks and describe the spectral sparsification algorithm. Finally, we present and quantify the error in kinematic and dynamic examples.

Molecular dynamics

10Molecular dynamics calculates the motion of atomic nuclei via Newton's law

11where F are the interatomic forces within the solid, m is the mass and € x is the acceleration [1,2]. The summation and calculation of F comprises the majority of the computational resources in MD simulations. This is the one of the key aspects that motivates the use of a sparse force interaction network in this work.

12The forces on the atoms are given by

13where U is the potential energy and r ¼ @ @r ab is the gradient with respect to the relative atomic distance between two atoms. This distance between two atoms α and β is defined by

14The simplest potentials are functions where the only dependent variable is the distance between two atoms, i.e. the pair potential

15The vector r α denotes the absolute position of atom α. The potential energy is defined by U αβ . Summing all pairwise potentials yields the total energy. In the current paper, we consider the Lennard-Jones and Coulomb potentials. The Lennard-Jones potential is given by

16where � 0 defines the depth of the energy well and σ defines the zero potential distance. The Coulomb potential is given by

17which describes interactions between two point charges where k is Coulomb's constant given by, in S.I. units, k � 8.99 × 10 9 Nm 2 /C 2 , and q α and q β are the charges of the two atoms [38]. In solid mechanics, stress, potential energy, and kinetic energy are frequently quantities of interest. This paper uses the standard expression for the virial Cauchy stress

18where � denotes a tensor product over the velocity of atom α given by v α . The atomic mass is m, the number of time steps chosen for time averaging the stress is N t , and the region which is being considered over the volume V O is denoted by O. The average stress over the volume is defined at the center of mass point x. This average is based on a spatial average over the velocity of the α atoms within the volume. Similarly, the last summation is over the forces F αβ for all pairs of atoms α and β in the domain O. The kinetic energy of the system is calculated by

19and the potential energy is given by summing up the pairwise interactions

20The summation α, β is again taken over all pairs atoms in the system. The last three relations will be used in addition to interatomic forces to quantify the performance of spectral sparsification versus thresholding algorithms. Rather than focusing on the entire stress tensor, we will instead look at the first and second invariants of the stress tensor [39]. The first invariant is given by the trace of the stress tensor

21and the second invariant is given by

22Physically, the first invariant is the hydrostatic pressure felt by the material while the second invariant is related to the shear applied to the material which is often used to simulate plastic deformation in solids [39].

23Errors are computed by comparing the sparse representations to the corresponding complete graph that contains all long range interactions.

Network theory

24We briefly describe the fundamental concepts from network theory followed by its application to MD simulations and the spectral sparsification algorithm.

Formulation

25Network theory is used to model the interactions between objects [29]. Formally, a graph G is an ordered set G = (V, E, w(E)) consisting of a nonempty set of the vertices, V = {v 1 , v 2 , . . ., v N }, and edges, E, which describe the connections between pairs of vertices and the weights, w(E), which assigns a nonnegative weight to each edge. If the weights are restricted to one or zero, the graph is categorized as unweighted. Otherwise, the weights can take any nonnegative value and the graph is categorized as weighted. A graph is considered to be undirected if w αβ = w βα for all edges in G. Otherwise, the graph is called directed.

26A common mathematical representation of networks is the adjacency matrix A 2 < N×N

27Relevant to this work is the fact that the adjacency matrix of an undirected graph is symmetric.

28The graph Laplacian L 2 < N×N is given by

29where k α = ∑ β A αβ is the nodal strength of α. The graph Laplacian and the adjacency matrix play key roles in graph-theoretic algorithms.

Atomistic networks

30To create an atomic network representation, we take the individual atoms as the vertices and the force magnitude as the scalar edge weights. The magnitude of the force between two atoms separated by r αβ determines the edge weight,

31In this paper, we quantify the network structure with the nodal strength and its distribution [29]. The nodal strength is particularly important in this application because it describes the total force magnitude of each particle. The strength distribution is graphically represented using a histogram plot which can display changes in structure of the graph.

Atomistic network sparsification

32Sparsification involves creating a sparse representation, G s , that approximates the true network, G. In this case, sparsity is described by a reduction in the number of edges while keeping the number of vertices fixed. Network similarity is the concept used to compare the sparse representation with the original graph. Different sparsification methods have been described based on different definitions of similarity [40,41]. Spectral sparsification [27], which defines similarity based on the eigenspectra, is chosen due to its previous success in studying dynamics across networks [28].

33For this paper, we define G s to be similar to G, with approximation order denoted by � 2 [0, 1] such that

34for all v 2 R N where L is the graph Laplacian, L s is the sparsified graph Laplacian [27]. The approximation order, � governs the potential sparsity of the system. If � = 0 the algorithm will not sparsify any edges in the network while at the other extreme where � = 1, maximum sparsification is allowed by the algorithm. The following steps describe the spectral sparsification algorithm [27,28] which achieves spectral similarity with probability greater than one half:

351. Calculate the effective resistance given by the formulâ

36where L + is the Moore-Penrose pseudoinverse of the Laplacian while p and q are the vector representation of the nodes. For example, the first node label is represented by p 1 = (1, 0, . . ., 0) = q 1 .

372. Select n e edges randomly with probability proportional to the edge's effective resistance,R ij .

38This probability is, p ij ¼R ij = P ijRij . This selects edges based on their importance to the network. The parameter n e is given by n e = 8Nlog 2 (N)/� 2 .

393. Add the sampled edges to the sparse graph G S with weightŵ ij ¼ nw ij =ðn e p ij Þ, where q is the number of samples and n is the multiplicity of selection. Edges which are not selected are removed or, equivalently their weight set to zero.

40Because spectral sparsification reduces the number of edges, it provides a novel way to reduce the computations of forces while maintaining a low level of error during MD simulations. In particular, the algorithm will be shown to be favorable for long-range forces and estimation of continuum material properties. We kinematically and dynamically implement and test this algorithm on a two-dimensional domain containing a circular hole. We show that spectral sparsification preserves the total force for long-range potentials. This result is compared to the frequently used thresholding method which fails to preserve the total force. Because of this, we consider spectral sparsification as a simple alternative to other methods, e.g. fast multipole method [20,[42][43][44][45] and the Wolf summation method [16] which also preserve the total force magnitude.

Spatial domain decomposition

41It is known that thresholding can be accomplished in OðnÞ time via spatial decomposition [1] while sparsification does not scale as effectively (see Section A in S1 File). This section describes an algorithm with better scaling properties. In particular, we present an algorithm which combines thresholding and spectral sparsification with superior scaling properties to the original spectral sparsification. We begin by describing a modification to the spatial domain decomposition used in thresholding for spectral sparsification.

42Here, we take advantage of the OðnÞ scaling of the thresholding algorithm by partitioning the domain into subdomains with size slightly larger than the cut-off distance. This allows the algorithm to only look for pairs in the neighboring subdomains. This builds upon previous work that has shown how sparsification can be performed on subgraphs of the original graph [46]. Therefore we can divide the domain spatially into subgraphs which can be individually sparsified and can also facilitate parallelization of the algorithm.

43Domain decomposition for spectral sparsification first divides the original graph G into subgraphs G = [G i , then approximates the subgraphs via sparsification G i �G i . The sparsified subgraphs (G i ) are recombined to form an approximation of the original graph, i.e. G � [G i . From a numerical standpoint, the algorithm partitions the adjacency matrix into submatrices and creates sparse approximations of the submatrices which are reassembled to generate a sparse approximation of the original matrix.

44The key steps associated with domain decomposition include:

Combined algorithm

45Our combined algorithm consists of using the positive attributes of both thresholding and sparsification. Sparsification is performed via domain decomposition described in the previous section after thresholding using a prescribed cutoff radius. There is an important tradeoff to be mentioned. As the cutoff radius shrinks, sparsification removes fewer edges and the algorithm gives results similar to thresholding. In the other direction where the cutoff radius increases, the algorithm becomes similar to pure spectral sparsification and approaches pure spectral sparsification in the limit of an infinite cutoff radius.

Kinematic implementation and results

46The present analysis evaluates spectral sparsification by investigating a test problem with the Coulomb potential arranged in a two-dimensional crystalline material with an elliptical void space (see Fig 1). Additional comparisons to a circular hole can be found elsewhere [47]. This test problem was chosen because it is relatively simple and evaluates spectral sparsification for problems with an elliptical hole defect. We compare example graphs by varying the edge densities generated by evaluating the radial cutoff length of thresholding and changing � as given in (14) for spectral sparsification. We define near-equilibrium position as the minimum energy lattice points for a perfect, infinite crystal. Near-equilibrium position, therefore, neglects surface relaxation on the boundary of our finite crystal and the free surface around the hole. The model consists of a square with 30 unit cells where atoms near the center have been removed.

47We focus on the effect of thresholding and sparsification by evaluating long range forces from the Coulomb potential in Fig 1. In this figure, we plot the network representing the original graph, the thresholded graph for a cut-off radius r cut = 10σ (σ given in (4)), and the spectral sparsified graph with � = 1. Fig 1 illustrates the differences in sparsified forces for the longrange Coulomb potential. An important difference in the algorithms is demonstrated here. Spectral sparsification naturally detects and retains important long range forces. This is visualized by noticing that both algorithms cut interactions across the hole. However, thresholding removes all of these interactions while spectral sparsification maintains a finite amount of edges while still creating a sparse representation.

48The number of nonzero entities of the adjacency matrix representing interatomic force interactions is illustrated for models exhibiting similar error levels; see Fig B in S1 File. These error measures are defined later in (18). The left image in Fig B in S1 File applies the Coulomb potential with a cutoff radius of 15σ while the right image in Fig B in S1 File applies the Coulomb potential which spectrally sparsifies the graph using � = 1. Further comparisons are given in Fig C in S1 File where the adjacency matrices of a 200 atom system for varying levels of sparsity is visualized. We see that spectral sparsification retains some of the long range forces and removes some of the medium length forces in comparison to the thresholded adjacency matrix. This highlights one key advantage of spectral sparsification: it retains sufficient long range interactions to capture long range effects while strategically removing edges for computational efficiency.

49We focus on the error analysis of the kinematic problem by examining the long range Coulomb forces and provide comparisons to the Lennard-Jones potential summarized elsewhere [47]. The number of edges removed is varied by adjusting the cutoff radius in the case of thresholding and varying the value of � for spectral sparsification. The net normalized forces versus the fraction of edges removed is plotted in Fig 2A. The net normalized force,F, is

50where A s ij and A ij are the adjacency matrices of the sparsified and original graphs, respectively. The net normalized force represents the magnitude of all the force interactions in the network. Edge sparsification is quantified by the fraction of remaining edges F e which is evaluated by

51where N s e and N o e are the number of nonzero edges in the sparsified graph and the original graph, respectively.

52In addition to the total force analysis, we also show the average normalized error of the nodal strength. This error is equivalent to the error of the total normalized force on each atom which can be calculated from

53where k � k represents the Euclidean norm and N is the number of nodes. This error describes the change in the magnitude of forces on each atom. In prior analysis, we have shown that both spectral sparsification and thresholding introduce relatively small errors until F e * 0.98 for the Lennard-Jones potential [47]. For cases F e > 0.98, it was shown that thresholding performs slightly better until F e � 0.99. This suggests that thresholding is more accurate than spectral sparsification for short range forces.

54In Fig 2, we illustrate the total force and error analysis for the Coulomb potential. It is shown that sparsification outperforms thresholding by cutting and redistributing edges to conserve global forces. We see in Fig 2A that sparsification maintains the global net force, whereas errors using thresholding increase at a faster rate as F e ! 1. Furthermore, in Fig 2B we see that spectral sparsification has lower local error than thresholding for the same fraction of edges removed. This suggests that the use of spectral sparsification is efficient at removing edges for models with long-range forces since lower error tolerances can be achieved with the same number of edges removed relative to thresholding. Additionally, Fig 2 shows that combining thresholding and spectral sparsification allows one to first select a point on the error vs. thresholded distance curve and then remove more edges without significantly changing the net force and the error (i.e. local force). This demonstrates that combining spectral sparsification with thresholding gives the best of both algorithms: better scaling due to thresholding combined with fewer edges to preserve global force accuracy due to sparsification.

55We emphasize that spectral sparsification maintains the mean nodal strength distribution while achieving a low level of global errors. In contrast, thresholding discards edges instead of redistributing them and therefore fails to maintain the mean nodal strength. Qualitatively, spectral sparsification keeps the average nodal strength constant while broadening the distribution of the nodal degree. While the distribution of the nodal strength contains randomness, the algorithm maintains a similar Laplacian eigenvalue spectrum and corresponding eigenvectors. Maintaining these two quantities should maintain global dynamic properties. Therefore, from a kinematic perspective, spectral sparsification better approximates the forces compared to thresholding.

56We also conduct numerical scaling experiments with the Coloumb potential to evaluate the performance of spectral sparsification. These examples are run using the same geometry as our previous kinematic example by varying the number of atoms from 10 to 10 4 . The number of edges and the kinematic force error is compared for spectral sparsification, thresholding, and the combined algorithm. The scaling on the number of edges is tested for several cutoff radii as indicated in the figure. Spectral sparsification used � = 1 for all simulations. We note that a cutoff radius r c = 15σ (σ = 1 in our model) has been chosen based on previous work which suggest this r c is a reasonably appropriate cutoff radius for the Coulomb potential [48,49]. Results are shown in Fig 3. The number of edges appears to scale linearly in Fig 3A, which is better than the OðnlogðnÞÞ scaling proven in [27]. Additionally, we find that the local error for sparsification scales better than for thresholding. We note that the level of error in the combined algorithm is set by the degree of thresholding.

57Given the complexity reduction and computational scaling (see Section A and Fig A in S1 File for more details), it is preferred to limit the number of times sparsification is applied Application of networks to molecular dynamics during molecular dynamic time integration simulations. We investigate the effect of sparsification using thresholding and spectral methods in the following section to quantify error propagation for a fixed amount of sparsification applied at the initial time of the simulation. We conduct these simulations on a circular hole to simplify the analysis. The sparsification is fixed in all simulations such that we can quantify the amount of error that propagates over multiple time steps of numerical integration.

Molecular dynamics implementation

58For time stepping, we use the traditional Verlet algorithm given by

59where Δt is the time step, r (i) is the position of the atoms, v (i) is their velocity, and a (i) is the acceleration at the ith time step. The acceleration is computed from the negative gradient of the potential energy normalized by the atomic mass according to (1) and (2). Two different types of errors are computed. The first is the atomic trajectory or local error. This is calculated by taking the difference in positions between an exact simulation where neither thresholding nor sparsification is applied and compared to an otherwise identical simulation where an approximation of the force is used through one of the algorithms: spectral sparsification, thresholding, or the combined algorithm. The other error metric considered is global quantities of interest including the pressure, the second stress invariant, the kinetic energy, the potential energy, and the total energy.

60Spectral sparsification used in this analysis requires all entries in the adjacency matrix to be positive. Incorporating both negative and positive charges into this formulation may be possible, but is beyond the scope of the current algorithm development [33]. Further research is required to understand how both positive and negative charges may be sparsified. In order to demonstrate the efficacy of spectral sparsification in molecular dynamics, we restrict the dynamic implementation to problems with only positive charges for the present investigation.

61Two example problems are considered using a potential which combines the Coulomb and the Lennard-Jones potentials. The Lennard-Jones potential is included for model stability.

62For reference, this equation is derived in Section B in S1 File. The magnitudes of the charges have been scaled such that the repulsive forces are strong enough to be significant while small enough to not cause the material to rupture. Specifically we set q ¼ 0:1 ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi � 0 s=k p where k was given earlier in (5) as Coulomb's constant.

63While periodic boundary conditions are ubiquitous in molecular dynamics, this paper primarily deals with defects associated with free boundary conditions. The boundary conditions are chosen so that comparisons are made to the algorithm itself and not necessarily due to issues involving periodic boundary conditions. The first example is relaxation of a solid along free boundaries. The second problem is a tensile test of a solid with a circular hole in the side using half symmetry boundary conditions (a classic problem in elasticity).

64The surface relaxation problem (without the hole) is performed for 20,000 times steps which is approximately 4.5 periods based on (20). Fig 4 shows the energy of the system, the second invariant of the stress tensor, and the average error in position and velocity for this relaxation simulation. Results are compared to a system where neither spectral sparsification nor thresholding was applied which is referred to as the exact solution. These results illustrate that spectral sparsification has lower error than thresholding in position and velocity errors. As expected, sparsification better preserves the total energy of the system as seen in Fig 4(c). Also note that the difference of the stress invariant is negligible for the simulation.

65For the second validation case, we evaluate the tensile test of a solid with a circular hole on the side and invoke half symmetry boundary conditions of a hole inside a plate. The atoms on the top of the crystal are slowly pulled by controlling their displacement in the y-direction. The atoms on the left side and the bottom have the x and y positions held fixed, respectively, to ensure half symmetry. The displacement and force of the atoms during the tensile test are recorded and plotted in Fig 5. The fact that the sparsified system closely matches the force-displacement curve suggests that a sparsified system will better predict global properties such as Application of networks to molecular dynamics elastic modulus and yield stress, which can be derived from the slope of the curve and its change in slope, respectively. As in the first example, we plot the average error in position and velocity as well as the global energy and stress invariant for the tensile test in Fig 6. We note that sparsification performs better in terms of energy of the system. Lower error in both position and velocity is achieved for up to 8 periods based on (20). We also note that the combined algorithm closely matches the thresholded algorithm. This is because the thresholding value decides the level of error in the combined algorithm.

Conclusions

66We have shown that spectral sparsification can provide a sparse representation of a material network by approximating the interatomic forces. Spectral sparsification produces a lower level of error relative to thresholding for problems containing long-range Coulomb forces. Importantly, the results suggest that sparsification maintains the net force. This is significant because it provides advantages for estimating macroscopic properties relative to thresholding. We tested this hypothesis on a simple tensile test and found the force-displacement curves for sparsification more closely resembled those of the full graph solution than thresholding for a model problem with a circular hole defect. We also presented a modification to the spectral sparsification algorithm that is fully parallelizable via spatial decomposition of the domain. Error propagation over several molecular dynamic time steps for a fixed spectral sparsification was shown to provide good estimates of many global characteristics such as total energy, average stress, and average atomic displacements for condensed atomic structures with relatively small perturbations of atomic positions. Molecular systems such as biological materials in water may undergo large configurational changes in shape. In such scenarios, the frequency of sparsification updates must be evaluated to assess accuracy. This will become important in highly nonlinear regimes and interactions containing more than two-body effects.

67Supporting information S1 File. Section A: Computational costs associated with spectral sparsification. Section B. Derivation of the angular frequency for a Lennard Jones potential. Fig A. (A) Scaling of resistance calculation where t r is the time to perform the calculation of graph resistance. (B) Scaling of sampling calculation where t s is the time to sample the edges. (C) Scaling simulation times, t d , vs. number of atoms using spectral sparsification for 100 time steps (D) Scaling simulation times, t d , vs. number of edges using spectral sparsification for 100 time steps. Fig B. Plots of the adjacency matrices created by (A) thresholding and (B) spectral sparsification. These two graphs have comparable error, but the spectrally sparsified system has 136,245 edges while the thresholded system has 307,532 edges and ignores the long range interactions of the Coulomb potential. Fig C. (A) Graphs of varying sparsity created by thresholding. The cutoff distance is given by the fraction of the maximum distance, d, across the domain consisting of *200

참고문헌 49건

  1. Pattern recognition and machine learning Choice Reviews Online · Association of College and Research Libraries · 1993 10.5860/choice.30-3308
  2. Towards Large-Scale Molecular Dynamics Simulations on Graphics Processors Lecture notes in computer science · Springer Science+Business Media · 2009 10.1007/978-3-642-00727-9_18
  3. Networks: An Introduction 2010 10.1093/acprof:oso/9780199206650.001.0001
  4. Marble 2014 10.1145/2623330.2623658
  5. Electrostatic potentials for metal-oxide surfaces and interfaces Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.50.11996
  6. Large-Scale Molecular Dynamics Simulations of Self-Assembling Systems Science · American Association for the Advancement of Science · 2008 10.1126/science.1157834
  7. Rapid solution of integral equations of classical potential theory Journal of Computational Physics · Elsevier BV · 1985 10.1016/0021-9991(85)90002-6
  8. Graph Sparsification by Effective Resistances SIAM Journal on Computing · Society for Industrial and Applied Mathematics · 2011 10.1137/080734029
  9. Network-theoretic approach to sparsified discrete vortex dynamics Journal of Fluid Mechanics · Cambridge University Press · 2015 10.1017/jfm.2015.97
  10. Phonon dispersion measured directly from molecular dynamics simulations Computer Physics Communications · Elsevier BV · 2011 10.1016/j.cpc.2011.04.019
  11. Spectral sparsification of graphs Communications of the ACM · Association for Computing Machinery · 2013 10.1145/2492007.2492029
  12. Cutoff Errors in the Ewald Summation Formulae for Point Charge Systems Molecular Simulation · Taylor & Francis · 1992 10.1080/08927029208049126
  13. Efficient particle-mesh Ewald based approach to fixed and induced dipolar interactions The Journal of Chemical Physics · American Institute of Physics · 2000 10.1063/1.1324708
  14. Subgraph sparsification and nearly optimal ultrasparsifiers 2010 10.1145/1806689.1806699
  15. An Optimal Synchronizer for the Hypercube SIAM Journal on Computing · Society for Industrial and Applied Mathematics · 1989 10.1137/0218050
  16. Fast Parallel Algorithms for Short-Range Molecular Dynamics Journal of Computational Physics · Elsevier BV · 1995 10.1006/jcph.1995.1039
  17. Development and application of a particle-particle particle-mesh Ewald method for dispersion interactions The Journal of Chemical Physics · American Institute of Physics · 2012 10.1063/1.4764089
  18. Pattern recognition and machine learning IEEE Transactions on Information Theory · Institute of Electrical and Electronics Engineers · 1963 10.1109/tit.1963.1057854
  19. Exact method for the simulation of Coulombic systems by spherically truncated, pairwise r−1 summation The Journal of Chemical Physics · American Institute of Physics · 1999 10.1063/1.478738
  20. Introduction to the mechanics of a continuous medium 1969
  21. Molecular dynamics — simulations of the fracture toughness of sapphire Materials & Design (1980-2015) · Elsevier BV · 2001 10.1016/s0261-3069(00)00044-3
  22. Implementing molecular dynamics on hybrid high performance computers – Particle–particle particle-mesh Computer Physics Communications · Elsevier BV · 2011 10.1016/j.cpc.2011.10.012
  23. Is the Ewald summation still necessary? Pairwise alternatives to the accepted standard for long-range electrostatics The Journal of Chemical Physics · American Institute of Physics · 2006 10.1063/1.2206581
  24. Sparsity preserving projections with applications to face recognition Pattern Recognition · Elsevier BV · 2009 10.1016/j.patcog.2009.05.005
  25. Laplacian Eigenmaps for Dimensionality Reduction and Data Representation Neural Computation · The MIT Press · 2003 10.1162/089976603321780317
  26. Using special-purpose hardware to achieve a hundred-fold speedup in molecular dynamics simulations of proteins 2010 10.1109/ispass.2010.5452044
  27. Computer Simulation of Molecular Dynamics: Methodology, Applications, and Perspectives in Chemistry Angewandte Chemie International Edition · Wiley · 1990 10.1002/anie.199009921
  28. Enhancing Sparsity by Reweighted ℓ 1 Minimization Journal of Fourier Analysis and Applications · Birkhäuser · 2008 10.1007/s00041-008-9045-x
  29. Extraction of force-chain network architecture in granular materials using community detection Soft Matter · Royal Society of Chemistry · 2015 10.1039/c4sm01821d
  30. Chemical kinetics and dynamics 1989
  31. Long-range Electrostatic Interactions in Molecular Dynamics: An Endothelin-1 Case Study Journal of Biomolecular Structure and Dynamics · Taylor & Francis · 2005 10.1080/07391102.2005.10531229
  32. Evaluating the Effects of Cutoffs and Treatment of Long-range Electrostatics in Protein Folding Simulations PLoS ONE · Public Library of Science · 2012 10.1371/journal.pone.0039918
  33. Multilevel summation of electrostatic potentials using graphics processing units Parallel Computing · Elsevier BV · 2008 10.1016/j.parco.2008.12.005
  34. Message Passing Inference with Chemical Reaction Networks Neural Information Processing Systems · 2013
  35. Implementing molecular dynamics on hybrid high performance computers – short range forces Computer Physics Communications · Elsevier BV · 2010 10.1016/j.cpc.2010.12.021
  36. Molecular Dynamics Method For Microscale Heat Transfer 2000 10.1201/9781315136882-6
  37. Ballistic Thermal Transport in Carbyne and Cumulene with Micron-Scale Spectral Acoustic Phonon Mean Free Path Scientific Reports · Nature Portfolio · 2015 10.1038/srep18122
  38. Reconsidering Dispersion Potentials: Reduced Cutoffs in Mesh-Based Ewald Solvers Can Be Faster Than Truncation Journal of Chemical Theory and Computation · American Chemical Society · 2013 10.1021/ct4004614
  39. Evolution of network architecture in a granular material under compression Physical review. E · American Physical Society · 2016 10.1103/physreve.94.032908
  40. Network structure of two-dimensional decaying isotropic turbulence Journal of Fluid Mechanics · Cambridge University Press · 2016 10.1017/jfm.2016.235
  41. Anisotropic and Ultralow Phonon Thermal Transport in Organic–Inorganic Hybrid Perovskites: Atomistic Insights into Solar Cell Thermal Management and Thermoelectric Energy Conversion Efficiency Advanced Functional Materials · Wiley · 2016 10.1002/adfm.201600284
  42. Network structure of turbulent premixed flames Chaos An Interdisciplinary Journal of Nonlinear Science · American Institute of Physics · 2017 10.1063/1.4980135
  43. Networked-oscillator-based modeling and control of unsteady wake flows Physical review. E · American Physical Society · 2018 10.1103/physreve.97.063107
  44. Network Theoretic Approach to Atomistic Material Modeling Using Spectral Sparsification 2017 10.1115/smasis2017-3917
  45. Network community-based model reduction for vortical flows Physical review. E · American Physical Society · 2018 10.1103/physreve.97.063103
  46. Network-theoretic approach to sparsified discrete vortex dynamics Journal of Fluid Mechanics · Cambridge University Press · 2015 10.1017/jfm.2015.97
  47. Network structure of two-dimensional decaying isotropic turbulence Journal of Fluid Mechanics · Cambridge University Press · 2016 10.1017/jfm.2016.235
  48. Development and application of a particle-particle particle-mesh Ewald method for dispersion interactions The Journal of Chemical Physics · American Institute of Physics · 2012 10.1063/1.4764089
  49. Introduction to Electrodynamics 2023 10.1017/9781009397735