선정목록으로
ImageMech: From image to particle spring network for mechanical characterization
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (9) 타이어코드(10) 아라미드(21) 에폭시수지
기본 정보
- 저자
- DOI
- 10.48550/arxiv.2201.04565
- 저널
- arXiv (Cornell University)
- 발행년도
- 2022
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.2201.04565
- 토픽
- Composite Material Mechanics
- OpenAlex ID
- W6891904180
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (9) 타이어코드, (10) 아라미드, (21) 에폭시수지
- R&D 측면
- 분석·모델링
- 확신도
- 0.80
- 근거 용어
- Lattice spring model, mechanical characterization, fracture mechanism, elasticity, composite materials
- 판단 근거
- 이 논문은 복잡한 구조를 가진 복합재료의 탄성과 파괴 메커니즘을 예측하기 위한 GPU 가속 입자 스프링 네트워크(LSM) 모델링 플랫폼을 다룹니다. 이는 코오롱인더스트리의 고강도 섬유, 아라미드, 엔지니어링 플라스틱 컴파운드 등 복합 소재의 물성 예측 및 설계 최적화에 응용될 수 있는 범용적인 수치 해석 방법론입니다.
- R&D 활용 포인트
- 타이어코드, 아라미드 보강재, 또는 고기능성 컴파운드 소재의 미세 구조 변화에 따른 기계적 물성(탄성, 파괴 인성)을 시뮬레이션하여 신소재 설계 주기를 단축하는 데 활용 가능합니다.
- 평가 입력
- 본문 31,257자
초록
The emerging demand for advanced structural and biological materials calls for novel modeling tools that can rapidly yield high-fidelity estimation on materials properties in design cycles. Lattice spring model (LSM), a coarse-grained particle spring network, has gained attention in recent years for predicting the mechanical properties and giving insights into the fracture mechanism with high reproducibility and generalizability. However, to simulate the materials in sufficient detail for guaranteed numerical stability and convergence, most of the time a large number of particles are needed, greatly diminishing the potential for high-throughput computation and therewith data generation for machine learning frameworks. Here, we implement CuLSM, a GPU-accelerated CUDA C++ code realizing parallelism over the spring list instead of the commonly used spatial decomposition, which requires intermittent updates on the particle neighbor list. Along with the image-to-particle conversion tool Img2Particle, our toolkit offers a fast and flexible platform to characterize the elastic and fracture behaviors of materials, expediting the design process between additive manufacturing and computer-aided design. With the growing demand for new lightweight, adaptable, and multi-functional materials and structures, such tailored and optimized modeling platform has profound impacts, enabling faster exploration in design spaces, better quality control for 3D printing by digital twin techniques, and larger data generation pipelines for image-based generative machine learning models.
본문 31,257자
본문 펼치기
# ImageMech: From image to particle spring network for mechanical characterization
#### Yuan Chiang †, Ting-Wai Chiu ‡, §, ¶, and Shu-Wei Chang ∗ †, ∥
_†Department_ _of_ _Civil_ _Engineering,_ _National_ _Taiwan_ _University,_ _Taipei,_ _Taiwan_
_‡Physics_ _Department,_ _National_ _Taiwan_ _University,_ _Taipei,_ _Taiwan_
_§Institute_ _of_ _Physics,_ _Academia_ _Sinica,_ _Taipei,_ _Taiwan_
_¶Physics_ _Department,_ _National_ _Taiwan_ _Normal_ _University,_ _Taipei,_ _Taiwan_
_∥Department_ _of_ _Biomedical_ _Engineering,_ _National_ _Taiwan_ _University,_ _Taipei,_ _Taiwan_
#### February 28, 2022
### Abstract
The emerging demand for advanced structural and biological materials calls for novel modeling tools that
can rapidly yield high-fidelity estimation on materials properties in design cycles. Lattice spring model
(LSM), a coarse-grained particle spring network, has gained attention in recent years for predicting the
mechanical properties and giving insights into the fracture mechanism with high reproducibility and gen
eralizability. However, to simulate the materials in sufficient detail for guaranteed numerical stability and
convergence, most of the time a large number of particles are needed, greatly diminishing the potential
for high-throughput computation and therewith data generation for machine learning frameworks. Here,
we implement CuLSM, a GPU-accelerated CUDA C++ code realizing parallelism over the spring list
instead of the commonly used spatial decomposition, which requires intermittent updates on the particle
neighbor list. Along with the image-to-particle conversion tool Img2Particle, our toolkit offers a fast and
flexible platform to characterize the elastic and fracture behaviors of materials, expediting the design
process between additive manufacturing and computer-aided design. With the growing demand for new
lightweight, adaptable, and multi-functional materials and structures, such tailored and optimized model
ing platform has profound impacts, enabling faster exploration in design spaces, better quality control for
3D printing by digital twin techniques, and larger data generation pipelines for image-based generative
machine learning models.
∗changsw@ntu.edu.tw
### 1 Introduction
Materials with complex geometry and multiple constituents can be difficult to predict the mechanical
properties, such as elasticity, plasticity, hysteresis, and fracture. The properties are usually coupled
with the structure and topology of materials, and in many cases change under different bound
ary conditions. Classical solid mechanics are highly accurate if the assumptions of homogeneity
and small deformation are practical. Problems arise when materials become nonhomogeneous and
undergo large deformation. Multiple assumptions and parameter fittings are often required, en
gendering intensive computational cost and prolonged calibration. In particular, many biomimetic
and bioinspired motifs involve complex structures and composite materials by design (Wegst et al.,
2015). For example, birds have hollow and pneumatized bones for avian purpose. Inside the dense
and thin exterior, there are hollows with internal reinforcing structures, including ridges, struts, and
foams (Sullivan et al., 2017) (see Figure 1 ). These complex structures pose nearly insurmountable
challenges to continuum approaches (such as finite element methods, FEMs) since the number of
elements required by sufficiently detailed characteristics increases dramatically. To resolve the com
putational intractability of ultra-high mesh models, homogenization techniques are often adopted
to replace the materials at smaller scales by the equivalent larger ones (Roters et al., 2010). The
degrees of freedom therefore decrease correspondingly in favor of the computing capability and de
sired scalability. However, the process of homogenization inevitably losses information content and
geometry details, leading to inaccurate evaluation on the mechanical properties. In this regard, a
different perspective is necessary for describing the materials in an efficient approach but without
much loss of details.
Lattice spring model (LSM) has been proved to be an effective tool to predict the elasticity,
plasticity, and fracture behaviors of metals (Buxton et al., 2001; Chen et al., 2014), osteon-inspired
cellular composites (Libonati et al., 2017), and geometrically toughened structural composites (Chi
ang et al., 2020; Tsai et al., 2021). The underlying physics of LSM is simply the truncated potential
of springs between particles (or beads), which are the representative volume element (RVE) of
the discrete material bodies. The fracture occurs when the length of elongated spring exceeds the
critical length, leading to the spring breakage and the release of stored elastic strain energy. This
straightforward criteria has provided predictive insights in the fracture behaviors of many brittle
materials.
One of the most popular codes for large-scale particle dynamics simulations is LAMMPS
[(http://lammps.sandia.gov).](http://lammps.sandia.gov) The current acceleration of LSM calculation in LAMMPS package
relies on spatial decomposition rather than spring list (bond list) parallelization. Parallelization
on large spring list is crucial for LSM acceleration since the spring force calculation is the major
bottleneck of time integration. Each particle in the middle of triangular packing lattice, for exam
ple, has six springs connected with its first nearest neighbors. To enhance the performance of LSM
simulation, we develop a CUDA-enhanced lattice spring model code (CuLSM), which implements
GPU parallelization on particle and spring lists. CuLSM provides a great speedup for large particle
spring networks with tens of thousands of particles and springs. This work as well as associated
codes is important for future large-scale LSM simulations where a large number of particles are
necessary to provide enough resolution for biological/biomimetic geometries and complex physical
phenomena such as stress concentration, shielding, and plastic zone.
Here we present a handy platform to evaluate the mechanical properties of biological or
biomimetic materials design based on 2D image geometry and prescribed materials constants. The
images can be obtained from microscopy, computed tomography scan (Bibb et al., 2011; Liang et al.,
2009), or other imaging methods and artificial design (such as generative adversarial networks) and
can be converted into different types of particles based on the gray-scale pixel values. We report
an image-particle conversion tool—Img2Particle, which takes the image and number of particle
types as input, and outputs the triangular packing particle model with boundary and notch for
mechanical characterization. CuLSM subsequently performs displacement-control mechanical test
to determine the mechanical properties. System energies, particle trajectories and other derived
attributes are computed using various parallelism scheme. The platform provides reliable pipeline
from image to mechanical properties and meanwhile achieves high-performance speedup compared
with CPU-centered programs.
Figure 1. ImageMech platform from image to mechanical properties. Taiwan blue magpie ( _Urocissa_
_caerulea_ ) (photo credit: John& Fish on Flickr, CC [BY-NC-ND](https://creativecommons.org/licenses/by-nc-nd/2.0/) 2.0). Cross section of bird bone (photo
credit: Josef Reischig, CC [BY-SA](https://creativecommons.org/licenses/by-sa/3.0/) 3.0).
### 2 Materials and Methods
#### 2.1 Force calculation
Consider two particles _i, j_ connected by a harmonic spring of stiffness _k_ . The potential energy
(elastic strain energy) stored in the spring can be expressed in a function of two particle coordinates
r _i_ and r _j_ . For a system with _N_ particles and _M_ springs, the total potential energy is
<u>1</u>
- _rij_ _−_ _rij_ <sup>0</sup>
2 <sup>_k_</sup>
�2 (1 _−_ Ξ( _rij_ _−_ _rc_ )) (1)
_U_ ( r ) =
( _i,j_ ) _∈_ M
where _rij_ = _∥_ r _i_ _−_ r _j∥_ and _rij_ <sup>0</sup> <sup>are</sup> <sup>the</sup> <sup>instantaneous</sup> <sup>length</sup> <sup>and</sup> <sup>equilibrium</sup> <sup>length</sup> <sup>of</sup> <sup>the</sup> <sup>spring</sup>
between particles _i, j_ . ( _i, j_ ) is the unique pair of particles in the spring set M (spring list) of size
_M_ . Ξ( _rij_ _−_ _rc_ ) is the Heaviside step function switching on at cutoff _rc_, where the spring breakage
happens.
The force exerted on the individual particle _i_ can be obtained through the gradient of potential
energy
F <sup>_i_</sup> = _−_ <sup>_<u>∂U</u>_</sup>
_∂_ r _i_
- _<u>∂rij</u>_
_∂_ r _i_
= _−_
= _−_
_j∈N_ ( _i_ )
_j∈N_ ( _i_ )
_k_
_k_
(2)
- _rij_ _−_ _rij_ <sup>0</sup>
- _rij_ _−_ _rij_ <sup>0</sup>
(1 _−_ Ξ( _rij_ _−_ _rc_ ))
_j∈N_ ( _i_ )
- <u>r</u> _<u>i −</u>_ <u>r</u> _<u>j</u>_
_∥_ r _i −_ r _j∥_ <sup>(1</sup> <sup>_−_</sup> <sup>Ξ(</sup> <sup>_rij_</sup> <sup>_−_</sup> <sup>_rc_</sup> <sup>)) =</sup>
f <sup>_ji_</sup>
, where f <sup>_ji_</sup> is the force applied by the spring ( _i, j_ ) on the particle _i_ .
#### 2.2 Velocity Verlet integration
Velocity Verlet integration is used to solve the second-order ODE of Newton’s equation of motion
F = _m_ x ¨. One Verlet integration iteration contains three subroutines. First, given positions x,
velocities v as well as accelerations a of all particles at time _t_, the positions at the next timestep
_t_ + ∆ _t_ are calculated as
x ( _t_ + ∆ _t_ ) = x ( _t_ ) + v ( _t_ )∆ _t_ + <sup><u>1</u></sup> 2 <sup>a</sup> <sup>(</sup> <sup>_t_</sup> <sup>)∆</sup> <sup>_t_</sup> <sup>2</sup> (3)
. Second, the accelerations at the next timestep are obtained from the forces using the configuration
at the next timestep x ( _t_ + ∆ _t_ ).
a ( _t_ + ∆ _t_ ) = _m_ <sup><u>1</u></sup>
_m_ <sup><u>1</u></sup> <sup>F</sup> <sup>(</sup> <sup>x</sup> <sup>(</sup> <sup>_t_</sup> <sup>+ ∆</sup> <sup>_t_</sup> <sup>)) =</sup> <sup>_−_</sup> _m_ <sup><u>1</u></sup>
(4)
_m_ <sup><u>1</u></sup> <sup>_∇_</sup> <sup>_U_</sup> <sup>(</sup> <sup>x</sup> <sup>(</sup> <sup>_t_</sup> <sup>+ ∆</sup> <sup>_t_</sup> <sup>))</sup>
. Third, the velocities at the next timestep are then updated as
v ( _t_ + ∆ _t_ ) = v ( _t_ ) + <sup><u>1</u></sup> 2 <sup>(</sup> <sup>a</sup> <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>a</sup> <sup>(</sup> <sup>_t_</sup> <sup>+ ∆</sup> <sup>_t_</sup> <sup>)) ∆</sup> <sup>_t_</sup> (5)
. In code implementation, we use the half-step velocity scheme to further reduce the memory usage
of acceleration vectors. Velocity verlet integration has been proved to be numerically stable and
possess important properties for physics such as time reversibility.
#### 2.3 GPU parallelization
Instead of using spatial decomposition which requires _prior_ knowledge of particle coordinates and
multiple CPU threads to divide entire domain into several computing subdomains, this work applies
GPU parallelization to the force calculations of spring list. By doing so, the algorithm focuses on
the pair relations between particles connected by springs regardless of their separating distance.
The method has a merit that the examination of particle coordinates is unnecessary and therefore
accelerates the computing speed.
Simulations are implemented by the in-house CUDA C++ code CuLSM on a desktop with Intel
i5-8400 and Nvidia GeForce GTX 1060. First, vectors of positions, velocities, and accelerations of all
particles are copied from host to device memory. All of the subsequent boundary displacement and
velocity Verlet integration are executed on the device, with periodic callback copying from device
to host when the output of particle states are needed. Five GPU kernel functions for boundary
displacement, updating position, calculating force, updating acceleration, and updating velocity are
implemented at each timestep controlled sequentially by CPU.
Positions, velocities, and accelerations vectors of all particles are flattened into 1D array and
assigned continuously in both host and device memory. 1D block in 1D grid is used, and the block
size is fixed as 256 for both particle and spring list. The grid size is dynamically allocated according
to the model size of LSM.
Figure 2 shows the computing flowchart in CuLSM. In the preprocessing stage, the initial
particle-spring network is constructed from the desirable geometry. Particle masses and spring
parameters are then assigned according to their specific types. After the model is constructed, the
boundary conditions and simulation configurations are set. At this stage, CuLSM has read model
input, boundary conditions, and simulation configurations and has stored the data in host memory.
Before simulation starts, particle and bond vectors are copied from host memory to device memory.
At each timestep, boundary displacements are first applied using a GPU kernel function. Another
three GPU kernel functions for updating positions, velocities, and accelerations are then initialized
for velocity Verlet integration. The position, velocity, and acceleration vectors are flattened into
1D arrays and are allocated continuously in the global memory space. Due to the independence
of vector spaces, each thread takes care of single component at a time. However, in the force
calculation, the _race_ _condition_ emerges when multiple spring forces try to access and add particle
forces at the same time, leading to memory conflicts and unexpected results. Thus, the _atomic_
_operation_ is used to serializing the requests (access and addition) from threads across the entire
grid. The particle forces are first set as zeros and then summed over spring forces using `atomicAdd`
function, as shown in the following code.
```
__global__ void calculate_force(double* x, double* f, float* k, float* r0, float* rc, int*
```
_�→_ `atom_i,` `int*` `atom_j,` `int` `natoms,` `int` `nbonds)`
```
{
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i < natoms) {
f[i*3] = 0;
f[i*3 + 1] = 0;
f[i*3 + 2] = 0;
}
__syncthreads();
if (i < nbonds) {
```
```
}
```
```
int ai = atom_i[i];
int aj = atom_j[i];
int index_i = ai * 3;
int index_j = aj * 3;
double r_ij = sqrt(pow(x[index_j] - x[index_i], 2) +
pow(x[index_j + 1] - x[index_i + 1], 2) +
pow(x[index_j + 2] - x[index_i + 2], 2));
if (r_ij > rc[i]) k[i] = 0;
double fix = -k[i] * (r_ij - r0[i]) * (x[index_i] - x[index_j])/r_ij;
double fiy = -k[i] * (r_ij - r0[i]) * (x[index_i + 1] - x[index_j + 1])/r_ij;
double fiz = -k[i] * (r_ij - r0[i]) * (x[index_i + 2] - x[index_j + 2])/r_ij;
atomicAdd(&f[index_i], fix);
atomicAdd(&f[index_i + 1], fiy);
atomicAdd(&f[index_i + 2], fiz);
atomicAdd(&f[index_j], -fix);
atomicAdd(&f[index_j + 1], -fiy);
atomicAdd(&f[index_j + 2], -fiz);
}
__syncthreads();
```
At each iteration, timestep is checked if satisfying the conditions for callback or termination.
Once the condition for simulation output is satisfied, particle position and velocity vectors are
copied back from device to host memory. The spring stiffness vector is also copied for calculating
potential energy. The system potential energy and kinetic energy are calculated on CPU.
Figure 2. Computing flowchart in CuLSM. The green blocks are implemented by GPU kernels, which
parallelize particle and spring vectors. At each iteration, timestep is checked if satisfying the conditions
for callback or termination.
### 3 Results
#### 3.1 CuLSM demonstrates strong validity against analytical and numer- ical results
We first compare the trajectory of a simple harmonic oscillator solved numerically by CuLSM with
the analytical solution. For a system consisting of two particles with mass _m_ = 1 kg connected by
a harmonic spring with spring constant _k_ = 1 _×_ 10 <sup>_−_</sup> <sup>4</sup> N/m and equilibrium distance _r_ 0 = 10m, the
equation of motion is a second-order ordinary differential equation:
_mx_ ¨ + _kx_ = _kr_ 0 (6)
. We fix one particle at the origin _x_ = 0m and place another one still at _x_ = 3 _r_ 0 _/_ 2m when time
_t_ = 0s, as shown in Figure 3A . The time integral interval _δt_ for CuLSM is set as 1s. The simulation
was run for 1000s and the output interval is 10s. As depicted by Figure 3B, our model provides an
accurate numerical solution for a simple harmonic oscillator without error accumulation over time.
Figure 3. Validation of CuLSM against the analytical solution of a simple harmonic oscillator. (A)
Boundary and initial conditions of the oscillator. (B) Trajectory computed by CuLSM compared to
analytical solution.
We also test our code against LAMMPS (3 Mar 2020, stable release) and compare the perfor
mance in the next subsection. As illustrated by Figure 4A, we construct a series of 2D composite
materials with the soft inclusions arranged in a Poisson distribution (Chiang et al., 2020). Three
kinds of linear fracture springs, including stiff-stiff, soft-soft, and stiff-soft springs, are used to model
Table 1. Constants of linear fracture spring
_ke_ _r_ 0 _rc_
Springs
[MT <sup>_−_</sup> <sup>2</sup> ] [L] [L]
stiff-stiff 2 _._ 00 _×_ 10 <sup>_−_</sup> <sup>3</sup> 10 10.1
soft-soft 2 _._ 00 _×_ 10 <sup>_−_</sup> <sup>5</sup> 10 11.0
stiff-soft 1 _._ 25 _×_ 10 <sup>_−_</sup> <sup>4</sup> 10 10.4
stiff, soft and interfacial materials ( Table 1 ). The stiff, soft, and boundary particles are marked
as dark blue, light blue, and red, respectively. To model the mode-I fracture behaviors, bound
ary particles were displaced apart along _x_ axis at the strain rate of 10 <sup>_−_</sup> <sup>6</sup> . The size of composites
increases from 1000 _×_ 1000 to 2000 _×_ 2000 squared unit length, with area ratio _ρA_ linearly increas
ing from 1 _._ 0 to 4 _._ 0 ( Table 2 ). The uniaxial tensile tests are performed to validate the results by
CuLSM against those by LAMMPS. As shown in Figure 4B, the potential and kinetic energies
computed by CuLSM perfectly coincide with those computed by LAMMPS before the peaks of po
tential energies. We also note that the potential and kinetic energies increase as the size of Poisson
composite become large. Small energy discrepancies at large strain are observed, but the tenden
cies are similar. We further compare the fracture patterns obtained from CuLSM and LAMMMPS
( Figure 5 ). Regardless of the size of the composites, CuLSM and LAMMPS yield akin fracture
patterns. The cracks nucleate, propagate, and bifurcate at strikingly similar locations in CuLSM
and LAMMPS series, proving strong fidelity of CuLSM. CuLSM reads input of particle geometry
from LAMMPS Data file formatted in _bond_ atom style. During simulation output, CuLSM outputs
particle coordinates in LAMMPS Dump file. The outputted files are readily readable and operable
by visualization tools such as OVITO (Stukowski, 2009).
In Figure 6, we present virial stress _σ_ <sup>_V_</sup> (Subramaniyan and Sun, 2008; Thompson et al., 2009)
and Lagrangian strain _ϵ_ <sup>_L_</sup> (Shimizu et al., 2007) fields of Poisson composite at bulk engineering
strain _ϵ_ = 0 _._ 02:
_l∈_ Ω
_ij_ <sup>_V_</sup> <sup>=</sup> <sup><u>1</u></sup>
<u>1</u>
2
_i_
_i_ <sup>_kv_</sup> _j_ <sup>_k_</sup>
_j_
_σij_ <sup>_V_</sup>
Ω
- _fj_ <sup>_kl_</sup>
_j_ <sup>_kl_</sup> <sup>_−_</sup> <sup>_mkv_</sup> _i_ <sup>_k_</sup>
(7)
_k∈_ Ω
- _x_ <sup>_l_</sup> _i_
<sup>_l_</sup> _i_ <sup>_−_</sup> <sup>_x_</sup> _i_ <sup>_k_</sup>
<sup>_L_</sup> _ij_ <sup>=</sup> <sup><u>1</u></sup>
2
_ϵ_ <sup>_L_</sup> _ij_
<sup><u>1</u></sup> (8)
2 <sup>(</sup> <sup>_JijJji −_</sup> <sup>_δij_</sup> <sup>)</sup>
Figure 4. Mode-I fracture simulation of Poisson composites by LSM. (A) Model size, notch size, and
boundary conditions. Stiff-stiff, stiff-soft, and soft-soft springs are used to model stiff, soft, and interfacial
materials. (B) Potential and kinetic energies of LSMs with different area ratios _ρA_ ranging from 1 _._ 0 to
4 _._ 0. The solid lines are computed by CuLSM, and the dashed lines are computed by LAMMPS.
, where Ωis the finite domain volume considered, _x, v_ are particle position and velocity, _f_ is the
force between particle pairs; _J_ is the locally affine transformation matrix considering the relative
displacement of particle with its first nearest neighbors, and _δ_ is the Kronecker delta. The result
indicates that the discrepancies of stress and strain fields calculated by CuLSM and LAMMPS are
negligible.
#### 3.2 Benchmarks of CuLSM acceleration
To benchmark the performance of CuLSM, we record the computing time of mode-I fracture simu
lations on Poisson composites of different sizes, as listed in Table 2 . In Figure 7, we compare the
total wall time of simulations by CuLSM (1 CPU + 1 GPU) and LAMMPS with 1 CPU, 2 CPUs,
Figure 5. Mode-I fracture patterns predicted by CuLSM and LAMMPS at engineering strain _ϵ_ = 0 _._ 075.
4 CPUs, 1 CPU + 1 GPU. With inter-processor communication cutoff _r_ comm = 100 _r_ <sup>0</sup> and default
step interval for neighbor list update _Tn_ = 10, LAMMPS with 1 CPU can be one to two orders
Figure 6. Stress and strain fields in Poisson composites calculated by CuLSM and LAMMPS at engineering strain _ϵ_ = 0 _._ 02.
slower than CuLSM. With these settings, LAMMPS is unfavorably slow and spatial decomposition
scheme is incapable of accelerating the LSM simulation efficiently. Note that LAMMPS does not
currently support GPU acceleration on bond potentials. Therefore, LAMMPS 1 CPU + 1 GPU
shows no speedup compared to LAMMPS 1 CPU. With communication cutoff ( _r_ comm = 4 _r_ <sup>0</sup> ) and
turning off the neighbor list update ( _Tn_ = _∞_ ), the total wall time of LAMMPS scales in the same
order with CuLSM with respect to particle number. CuLSM can be up to 4.4 times faster than
LAMMPS with 1 CPU and around 1.5 speedup compared to LAMMPS with 4 CPUs. CuLSM-CPU
with 1 CPU has comparable speed with LAMMPS with 2 CPUs. Note that the optimal neighbor
setting depends on the simulation cases for the spatial decomposition scheme. The GPU speedup
of CuLSM, _i.e._ the speedup of CuLSM 1 CPU + 1 GPU against CuLSM-CPU 1 CPU, is also
presented in the bottom panel of Figure 7 . On the machine with Intel i5-8400 and Nvidia GeForce
GTX 1060, the GPU speedup of CuLSM is about 2.5. CuLSM reduces total wall time (including
input, output, and copying) by a considerable margin, with only 1 CPU and 1 GPU. The enhanced
performance results from the parallelization on particle and spring lists. The input files for all the
benchmarks and more information can be found online at the link in Data Availability Statement.
Table 2. Model summary of Poisson composites
Area ratio Size Particle number Spring number
1.0 1000 _×_ 1000 12046 34753
1.5 1225 _×_ 1225 17862 52104
2.0 1414 _×_ 1414 23729 69476
2.5 1581 _×_ 1581 29418 86080
3.0 1732 _×_ 1732 35330 103904
3.5 1871 _×_ 1871 41179 120960
4.0 2000 _×_ 2000 46836 137759
Figure 7. Comparison of the total computing wall time by CuLSM and LAMMPS. Note that LAMMPS:
1 CPU + 1 GPU does not support parallelism on spring list. The bottom panel compares the maximum
and minimum speedup of CuLSM against LAMMPS of _r_ comm = 4 _r_ <sup>0</sup> and _Tn_ = _∞_ . The maximum speedup
compares CuLSM: 1 CPU + 1 GPU with LAMMPS: 1 CPU, and the minimum speedup compares CuLSM:
1 CPU + 1 GPU with LAMMPS: 4 CPUs. The GPU speedup of CuLSM (CuLSM: 1 CPU + 1 GPU
versus CuLSM-CPU: 1 CPU) is presented.
### 4 Discussion and Conclusion
In this work, we present a CUDA C++ code CuLSM for large-scale LSM simulations. By realizing
the parallelism on particle and spring lists, CuLSM has been optimized for LSM simulations and
secures a remarkable boost in computing speed in comparison with general-purpose LAMMPS
package. Since all of the interactions in LSM are harmonic pair potentials, the speedup of spatial
decomposition used in LAMMPS is limited. Without updating neighbor list during simulations,
CuLSM remarkably accelerates the time integration on GPU and only copy data from device to
host when needed.
Currently, the broken springs are not deleted from the spring list but are irreversibly assigned
zero stiffness to emulate the free deformation. We deliberately retain these broken springs since
in future studies the stiffness may need to recover when the materials is subject to compression,
bending, and cyclic loading. Indeed, different spring properties and mechanical elements, _e.g._, non
linear elasticity, viscocity, and plasticity, are worth being added into the particle-spring networks.
Multi-body potentials such as angle potential and volume-compensated particle method (Chen
et al., 2014) are also of interest in future studies. More in-depth theoretical formulations are
required for investigating high-level phenomena such as dislocation, Bauschinger effect, and yield
surface evolution.
CuLSM is readily extensible to multi-GPUs and can be further incorporated with multithread
environment for the larger and three-dimensional models. To further reduce the memory copying
time between host and device, the unified memory can be used to allocate memory address space
accessible from any CPUs and GPUs in the system. Moreover, the _parallel_ _reduction_ scheme can be
adopted to speed up the calculation of the global attributes, such as potential and kinetic energies.
The future opportunities this work brings include:
- The toolkit we developed provides a faster and more flexible structure-properties platform,
which expedites the particle-based simulation and materials design procedures.
- CuLSM opens the venue for high-throughput and high-fidelity data generation to meet the
increasing need for machine learning aided materials design protocols (Kim et al., 2021; Sui
et al., 2021).
- The work largely reduces the computational cost for predicting elasticity and fracture be
haviors of complex materials systems, further accelerating the design phase through offering
predictive insights for additive manufacturing and mechanical experimentation.
- The LSM simulations provide rich and detailed geometric and topological data where the rela
tionship with high-level mechanical properties underlies. One future research direction would
be finding out the physics rules from local to global hierarchy that govern the macroscopic
behavior of structural materials.
In conclusion, we provide a powerful and efficient framework to characterize and predict the
elasticity and fracture mechanism of materials. The remarkable speedup CuLSM enables entails
more extensive application in sophisticated materials design. The robustness and adroitness it
promises drive new design perspective other than continuity in practical circumstances. With the
emerging new intersection between physics-based simulation and deep learning, the toolkit holds
exciting key to advanced materials design.
### References
Bibb, R., Thompson, D., and Winder, J. (2011). Computed tomography characterisation of additive
manufacturing materials. _Medical_ _engineering_ _&_ _physics_, 33(5):590–596.
Buxton, G. A., Care, C. M., and Cleaver, D. J. (2001). A lattice spring model of heterogeneous
materials with plasticity. _Modelling and simulation in materials science and engineering_, 9(6):485.
Chen, H., Lin, E., and Liu, Y. (2014). A novel volume-compensated particle method for 2d elasticity
and plasticity analysis. _International_ _Journal_ _of_ _Solids_ _and_ _Structures_, 51(9):1819–1833.
Chiang, Y., Tung, C.-C., Lin, X.-D., Chen, P.-Y., Chen, C.-S., and Chang, S.-W. (2020). Geomet
rically toughening mechanism of cellular composites inspired by fibonacci lattice in liquidambar
formosana. _Composite_ _Structures_, page 113349.
Kim, Y., Kim, Y., Yang, C., Park, K., Gu, G. X., and Ryu, S. (2021). Deep learning framework
for material design space exploration using active transfer learning and data augmentation. _npj_
_Computational_ _Materials_, 7(1):1–7.
Liang, X., Jacobs, R., Martens, W., Hu, Y., Adriaensens, P., Quirynen, M., and Lambrichts, I.
(2009). Macro-and micro-anatomical, histological and computed tomography scan characteriza
tion of the nasopalatine canal. _Journal_ _of_ _clinical_ _periodontology_, 36(7):598–603.
Libonati, F., Cipriano, V., Vergani, L., and Buehler, M. J. (2017). Computational framework
to predict failure and performance of bone-inspired materials. _ACS_ _Biomaterials_ _Science_ _&_
_Engineering_, 3(12):3236–3243.
Roters, F., Eisenlohr, P., Hantcherli, L., Tjahjanto, D. D., Bieler, T. R., and Raabe, D. (2010).
Overview of constitutive laws, kinematics, homogenization and multiscale methods in crystal plas
ticity finite-element modeling: Theory, experiments, applications. _Acta_ _Materialia_, 58(4):1152–
1211.
Shimizu, F., Ogata, S., and Li, J. (2007). Theory of shear banding in metallic glasses and molecular
dynamics calculations. _Materials_ _transactions_, pages 0710160231–0710160231.
Stukowski, A. (2009). Visualization and analysis of atomistic simulation data with ovito–the open
visualization tool. _Modelling and Simulation in Materials Science and Engineering_, 18(1):015012.
Subramaniyan, A. K. and Sun, C. (2008). Continuum interpretation of virial stress in molecular
simulations. _International_ _Journal_ _of_ _Solids_ _and_ _Structures_, 45(14-15):4340–4346.
Sui, F., Guo, R., Zhang, Z., Gu, G. X., and Lin, L. (2021). Deep reinforcement learning for digital
materials design. _ACS_ _Materials_ _Letters_, 3(10):1433–1439.
Sullivan, T. N., Wang, B., Espinosa, H. D., and Meyers, M. A. (2017). Extreme lightweight
structures: avian feathers and bones. _Materials_ _Today_, 20(7):377–391.
Thompson, A. P., Plimpton, S. J., and Mattson, W. (2009). General formulation of pressure and
stress tensor for arbitrary many-body interaction potentials under periodic boundary conditions.
_The_ _Journal_ _of_ _chemical_ _physics_, 131(15):154107.
Tsai, Y.-Y., Chiang, Y., Buford, J. L., Tsai, M.-L., Chen, H.-C., and Chang, S.-W. (2021). Mechan
ical and crack propagating behavior of sierpi´nski carpet composites. _ACS_ _Biomaterials_ _Science_
_&_ _Engineering_ .
Wegst, U. G., Bai, H., Saiz, E., Tomsia, A. P., and Ritchie, R. O. (2015). Bioinspired structural
materials. _Nature_ _materials_, 14(1):23–36.
### Data availability statement
The CuLSM code associated with this paper is publicly available on GitHub
[(https://github.com/Chiang-Yuan/culsm).](https://github.com/Chiang-Yuan/culsm) The Img2Particle code is available on GitHub
[(https://github.com/Chiang-Yuan/Img2Particle).](https://github.com/Chiang-Yuan/Img2Particle)
### Author contributions
YC conceived the idea and developed the research. YC coded the program and performed simu
lations with advice from TWC. YC wrote the manuscript with input and advice from TWC and
SWC.
### Acknowledgements
The authors appreciate the financial support from the Ministry of Science and Technology, Taiwan
[109-2224-E-007-003, 110-2112-M-003-009, 110-2636-E-002-013].
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.