Spherical harmonic–based DEM in LAMMPS: Implementation, verification and performance assessment

IF 7.2 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS
Mohammad Imaran , James Young , Rosario Capozza , Kevin Stratford , Kevin J. Hanley
{"title":"Spherical harmonic–based DEM in LAMMPS: Implementation, verification and performance assessment","authors":"Mohammad Imaran ,&nbsp;James Young ,&nbsp;Rosario Capozza ,&nbsp;Kevin Stratford ,&nbsp;Kevin J. Hanley","doi":"10.1016/j.cpc.2024.109290","DOIUrl":null,"url":null,"abstract":"<div><p>Particle shape plays a major role in the behaviour of most granular systems. This has led to increasing interest in the representation of arbitrarily shaped particles in discrete element method (DEM) simulations. In this paper, we present a simulation approach based on the representation of particle shapes using spherical harmonics where their radii can be calculated in spherical coordinates. An energy-conserving contact model is adopted which is based on the volume of overlap between interacting particles. Contact detection makes use of the bounding spheres of the interacting particles, simplifying its incorporation within a conventional sphere-based DEM code. The volume of overlap and other required quantities are calculated using Gaussian quadrature integration of the spherical cap formed by the bounding spheres. Both the accuracy and the computational cost increase with the number of quadrature points. The algorithm has been implemented as a LAMMPS user package, and verified by means of energy conservation. The performance and parallel scaling of the approach are illustrated, and an observed scaling limitation owing to load imbalance arising from the evaluation of the overlap volume is discussed.</p></div><div><h3>Program summary</h3><p><em>Program Title:</em> SH-DEM LAMMPS package</p><p><em>CPC Library link to program files:</em> <span>https://doi.org/10.17632/vk6fj6yjtf.1</span><svg><path></path></svg></p><p><em>Developer's repository link:</em> <span>https://github.com/EPCCed/lammps/tree/feature-sh-dem</span><svg><path></path></svg></p><p><em>Licensing provisions:</em> GPLv2</p><p><em>Programming language:</em> C++</p><p><em>Nature of problem:</em> Particles are often highly non-spherical. Spherical harmonics provide a natural way to represent complex particle shapes within a discrete element method (DEM) simulation. However, there is no publicly available DEM code which allows particle shapes to be represented using spherical harmonics.</p><p><em>Solution method:</em> The <em>SH-DEM</em> package extends the capabilities of LAMMPS so that irregularly shaped particles can be represented using spherical harmonics. The package includes the definition of a new ‘shdem’ atom style for spherical harmonic particles, a time integration scheme for these particles based on the Velocity Verlet algorithm, algorithms for detecting and evaluating contacts between spherical harmonic particles, evaluation of the contact forces between these particles and rigid walls, and two energy computes for groups of spherical harmonic particles.</p><p><em>Additional comments including restrictions and unusual features:</em> The <em>SH-DEM</em> package is applicable only to 3D simulations. In order for a particle to be defined by spherical harmonics, it is required that any line segment drawn from an origin inside the particle crosses the contour of the particle's three-dimensional surface only once. If the ‘shdem’ atom style is used, the current implementation requires all particles to be defined using this atom style, e.g., mixtures of sphere and shdem atom styles are not permitted.</p></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":null,"pages":null},"PeriodicalIF":7.2000,"publicationDate":"2024-06-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S0010465524002133/pdfft?md5=6a37d7ef4a05ac7454f2edf50210087d&pid=1-s2.0-S0010465524002133-main.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Physics Communications","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010465524002133","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0

Abstract

Particle shape plays a major role in the behaviour of most granular systems. This has led to increasing interest in the representation of arbitrarily shaped particles in discrete element method (DEM) simulations. In this paper, we present a simulation approach based on the representation of particle shapes using spherical harmonics where their radii can be calculated in spherical coordinates. An energy-conserving contact model is adopted which is based on the volume of overlap between interacting particles. Contact detection makes use of the bounding spheres of the interacting particles, simplifying its incorporation within a conventional sphere-based DEM code. The volume of overlap and other required quantities are calculated using Gaussian quadrature integration of the spherical cap formed by the bounding spheres. Both the accuracy and the computational cost increase with the number of quadrature points. The algorithm has been implemented as a LAMMPS user package, and verified by means of energy conservation. The performance and parallel scaling of the approach are illustrated, and an observed scaling limitation owing to load imbalance arising from the evaluation of the overlap volume is discussed.

Program summary

Program Title: SH-DEM LAMMPS package

CPC Library link to program files: https://doi.org/10.17632/vk6fj6yjtf.1

Developer's repository link: https://github.com/EPCCed/lammps/tree/feature-sh-dem

Licensing provisions: GPLv2

Programming language: C++

Nature of problem: Particles are often highly non-spherical. Spherical harmonics provide a natural way to represent complex particle shapes within a discrete element method (DEM) simulation. However, there is no publicly available DEM code which allows particle shapes to be represented using spherical harmonics.

Solution method: The SH-DEM package extends the capabilities of LAMMPS so that irregularly shaped particles can be represented using spherical harmonics. The package includes the definition of a new ‘shdem’ atom style for spherical harmonic particles, a time integration scheme for these particles based on the Velocity Verlet algorithm, algorithms for detecting and evaluating contacts between spherical harmonic particles, evaluation of the contact forces between these particles and rigid walls, and two energy computes for groups of spherical harmonic particles.

Additional comments including restrictions and unusual features: The SH-DEM package is applicable only to 3D simulations. In order for a particle to be defined by spherical harmonics, it is required that any line segment drawn from an origin inside the particle crosses the contour of the particle's three-dimensional surface only once. If the ‘shdem’ atom style is used, the current implementation requires all particles to be defined using this atom style, e.g., mixtures of sphere and shdem atom styles are not permitted.

LAMMPS 中基于球谐波的 DEM:实施、验证和性能评估
颗粒形状在大多数颗粒系统的行为中起着重要作用。因此,在离散元素法(DEM)模拟中表示任意形状的颗粒越来越受到关注。在本文中,我们提出了一种基于使用球面谐波表示颗粒形状的模拟方法,颗粒的半径可以用球面坐标计算。本文采用了一种能量守恒接触模型,该模型基于相互作用的粒子之间的重叠体积。接触检测利用了相互作用粒子的边界球,从而简化了将其纳入传统基于球体的 DEM 代码的过程。重叠体积和其他所需数量是通过对边界球形成的球帽进行高斯正交积分计算得出的。精度和计算成本都会随着正交点数量的增加而增加。该算法已作为 LAMMPS 用户软件包实现,并通过能量守恒进行了验证。说明了该方法的性能和并行缩放,并讨论了由于评估重叠体积时产生的负载不平衡而导致的缩放限制:SH-DEM LAMMPS 程序包 CPC 库与程序文件的链接:https://doi.org/10.17632/vk6fj6yjtf.1Developer's 资源库链接:https://github.com/EPCCed/lammps/tree/feature-sh-demLicensing 规定:GPLv2 编程语言问题性质:粒子通常高度非球形。球谐波是离散元法 (DEM) 模拟中表示复杂粒子形状的一种自然方法。然而,目前还没有公开的 DEM 代码允许使用球面谐波来表示粒子形状:SH-DEM 软件包扩展了 LAMMPS 的功能,从而可以使用球谐波来表示不规则形状的粒子。求解方法:SH-DEM 软件包扩展了 LAMMPS 的功能,使不规则形状的粒子可以用球谐波表示。该软件包包括为球谐波粒子定义新的 "shdem "原子样式、基于速度 Verlet 算法的这些粒子的时间积分方案、检测和评估球谐波粒子之间接触的算法、评估这些粒子与刚性壁之间的接触力以及球谐波粒子组的两种能量计算:SH-DEM 软件包仅适用于三维模拟。为了用球谐波对粒子进行定义,要求从粒子内部原点绘制的任何线段只能与粒子的三维表面轮廓线交叉一次。如果使用了 "shdem "原子样式,当前的实现要求所有粒子都必须使用这种原子样式来定义,例如,不允许混合使用球形和 shdem 原子样式。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Computer Physics Communications
Computer Physics Communications 物理-计算机:跨学科应用
CiteScore
12.10
自引率
3.20%
发文量
287
审稿时长
5.3 months
期刊介绍: The focus of CPC is on contemporary computational methods and techniques and their implementation, the effectiveness of which will normally be evidenced by the author(s) within the context of a substantive problem in physics. Within this setting CPC publishes two types of paper. Computer Programs in Physics (CPiP) These papers describe significant computer programs to be archived in the CPC Program Library which is held in the Mendeley Data repository. The submitted software must be covered by an approved open source licence. Papers and associated computer programs that address a problem of contemporary interest in physics that cannot be solved by current software are particularly encouraged. Computational Physics Papers (CP) These are research papers in, but are not limited to, the following themes across computational physics and related disciplines. mathematical and numerical methods and algorithms; computational models including those associated with the design, control and analysis of experiments; and algebraic computation. Each will normally include software implementation and performance details. The software implementation should, ideally, be available via GitHub, Zenodo or an institutional repository.In addition, research papers on the impact of advanced computer architecture and special purpose computers on computing in the physical sciences and software topics related to, and of importance in, the physical sciences may be considered.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信