1 Introduction

Computational efficiency and accuracy are two main problems in many numerical simulation processes, and they always conflict with each other. Especially, how to enhance the computational efficiency is a key problem in molecular dynamics (MD) simulation, while the accuracy should be acceptable at the same time.

Many MD algorithms and hybrid methods were developed in the past years to reduce CPU cost in MD simulations. For MD algorithms, some of them focused on improving performance on one computer, including Verlet table [1], Cell-Linked list [2], Verlet cell-linked list [3] and Tabulated potential method [4], etc. Verlet table [1] calculated the distance between one atom and atoms in its radius of neighborhood, so it could reduce CPU time and improve computational efficiency. Compared with the Verlet table, Cell-Linked list [2] meshed the system according to the positions of all atoms, and it did not need to form a table or update the table during the simulation process, which showed its advantage when the model was more than 10 thousand atoms. Combined Verlet table and Cell-Linked list, the meshes were used to update the table in Verlet cell-linked list [3], and one did not need to calculate the distance of all the atoms. Therefore, for the same model, Verlet cell-linked list got the best computational efficiency among the three methods [5]. In MD simulations, the most time-consuming process was computing the inter-particle potential and the forces, so potentials and forces were stored in memory to save CPU time in Tabulated potential method [4]. For simple potential function, this method could not enhance computational efficiency. Using cell decomposition and data sorting method, Yao et al. [6] developed an algorithm which enhanced the neighbor list construction speed and reduced the CPU data cache miss rate. The results showed that the computational efficiency of the algorithm was 2–3 times higher than the conventional algorithms. Mason [7] presented an algorithm which did not need to construct or update the neighbor list of each atom, and the time cost was lowered by a factor of 2–3 compared with traditional algorithms. For the systems including many atoms, a modified cell-linked list method was used to reduce the number of unnecessary internuclear distance calculations by reducing the cell size in Ref. [8]. At the same time, reducing the cell size would enhance the memory requirement of computers, which might influence the computational efficiency for different systems. Nagai et al. [9] developed a mass scaling replica-exchange molecular dynamics (MSREMD) method to improve numerical stability of simulations, and the replica-exchange routine could be simplified by eliminating velocity scaling. Parallel algorithms which could enhance the simulation scale by running on multi-CPUs were also widely developed, such as force decomposition [10], static load balancing method [11], domain decomposition [12] and tree decomposition [13], etc. Both serial algorithms and parallel algorithms above improved the computational efficiency for the systems modeled by the authors without changing the simulation scale. If the scale of the MD model could be reduced, the algorithms would be more meaningful.

In order to reduce the scale of MD model without losing accuracy, multiscale methods [14,15,16] and multiresolution methods [17,18,19] which coupled MD simulation and continuum methods were developed, such as bridging scale method [20, 21], bridging domain method [22, 23], coupled atomistic and discrete dislocation (CADD) method [24], multiscale boundary condition method [25], hybrid method [26] and adaptive multiscale method [27], etc. For the multiscale methods mentioned above, MD simulations were only used in part of the model where detailed behaviors of atoms should be concerned, so the multiscale methods could enhance the computational efficiency more effectively and keep computational accuracy. According to the descriptions of the references above, computational speed of the bridging scale method was two or three times faster than full MD simulation, and the multiscale boundary condition method [25] could reduce 6/7 of the computational time compared with full MD simulation. Surprisingly, the time cost of the hybrid method [26] was only 1/20 of full MD simulation. Furthermore, the similar methods have been used to solve nanoscale sliding contact problems [28].

Although these multiscale methods could save much CPU time, the scale of the MD region could not be changed once the model was determined. If a local MD region moves together with the sliding of the contact body, the simulation process will be more approximate to the real one, and the dimension of the model could be reduced further. Maekawa et al. [29] developed an area-restricted molecular dynamics (ARMD) simulation method to investigate the friction and tool wear in nanoscale machining. In ARMD simulation method, the restricted region moved together with the tool advancement, and the results were compared with that from full MD simulation. Pandurangan et al. [30] presented a novel multiscale model to perform nanoscratch simulations. For this novel multiscale method, an MD region with constant size translated with the indenter, and other regions were modeled by meshless Hermite-Cloud method. The results from the two methods [29, 30] above did not agree well with that from full MD simulation. Therefore, it will be meaningful to develop an approach which can obtain well-agreed results besides reduction of the CPU time.

In this paper, a local region molecular dynamics (LRMD) simulation method is presented based on the contribution of displacement (COD) to solve nanoscale sliding contacts between a rigid cylindrical tip and a smooth surface. A criterion is given to determine the scale of local region, and the sliding processes are carried out between the tip and the local region. Two two-dimensional and one three-dimensional sliding contact models with different scale are simulated by using both the LRMD simulation and full MD simulation. For these three models, the friction forces obtained from LRMD simulation agree well with that from full MD simulation, which testifies the effectiveness of the LRMD simulation method.

2 Model Descriptions

For a two-dimensional nanoscale sliding contact problem, an MD model is presented in Figure 1. The rigid cylindrical tip consists of 4 layers with 120 atoms, and its radius is R = 30r0 (r0 is the Lennard-Jones parameter, r0 = 0.2277 nm [31] here). Two different scales of the substrate are used in this paper: Model I: 9153 atoms (81 layers in y direction and 113 atoms per layer in x direction); Model II: 37001 atoms (163 layers and 227 atoms per layer). Initial gap between the tip and substrate is dg = 2.5r0.

Figure 1
figure 1

Two-dimensional nanoscale sliding contact model between a rigid cylindrical tip and an elastic substrate

For two-dimensional MD simulations in this paper, a classical Lennard-Jones (L-J) potential is used to describe the interactions between all atoms:

$$U\left( {r_{ij} } \right) = 4\varepsilon \, \left[ {\left( {\frac{{r_{0} }}{{r_{ij} }}} \right)^{ 1 2} - \left( {\frac{{r_{0} }}{{r_{ij} }}} \right)^{ 6} } \right]{,} \quad r_{ij} \le r_{\text{c}}$$
(1)

where \(r_{ij} = \left\| {{\varvec{r}}_{i} - {\varvec{r}}_{j} } \right\|\), is the distance between atoms i and j, ε and r0 are the L-J parameters. For FCC Cu, ε = 6.648 × 10−20 J, r0 = 0.2277 nm [31]. Table 1 lists the relationships between the reduced units and the Systeme International (SI) units used in this paper. The cut-off radius, rc, is taken to be 2.2r0 here. Fixed boundary conditions are applied along the bottom layer, and periodic boundary conditions are applied along the left and right boundaries of the substrate. The force that atom j exerts on atom i can be written as follows:

$${\varvec{F}}(r_{ij} ) = - \nabla U\left( {r_{ij} } \right) = \left( {\frac{48\varepsilon }{{r_{0}^{2} }}} \right)\left[ {\left( {\frac{{r_{0} }}{{r_{ij} }}} \right)^{14} - \frac{1}{2}\left( {\frac{{r_{0} }}{{r_{ij} }}} \right)^{8} } \right]{\varvec{r}}_{ij} , \quad r_{ij} \le r_{\text{c}}$$
(2)
Table 1 The reduced units and SI units of the L-J potential and EAM potential

Velocity-Verlet algorithm [32] is used to calculate the coordinates, the velocities, and the accelerations of all atoms:

$$\begin{aligned} {\varvec{r}}\left( {t + \Delta t} \right) &= {\varvec{r}}\left( t \right) + {\varvec{v}}\left( t \right)\Delta t + \frac{1}{2}{\varvec{a}}\left( t \right)\Delta t^{2} \hfill \\ {\varvec{v}}\left( {t + \Delta t/2} \right) &= {\varvec{v}}\left( t \right) + \frac{1}{2}{\varvec{a}}\left( t \right)\Delta t \hfill \\ {\varvec{a}}\left( {t + \Delta t} \right) &= - \frac{1}{m}\nabla U\left( {{\varvec{r}}\left( {t + \Delta t} \right)} \right) \hfill \\ {\varvec{v}}\left( {t + \Delta t} \right) &= {\varvec{v}}\left( {t + \Delta t/2} \right) + \frac{1}{2}{\varvec{a}}\left( {t + \Delta t} \right)\Delta t \hfill \\ \end{aligned}$$
(3)

where Δt is the time step, r is the coordinate vector, v is the velocity vector, and a is the acceleration vector, m is the mass of an atom.

The local region molecular dynamics (LRMD) simulation method is achieved through the contribution of displacement (COD) of atoms on the centerline of the substrate. The COD Cd is defined as follows:

$$C_{\text{d}} = \frac{{\sum\nolimits_{i = 1}^{k} {u_{i} } }}{{\sum\nolimits_{i = 1}^{n} {u_{i} } }}$$
(4)

where ui is the displacement component in the indentation direction of the center atom on the ith layer (numbered from the topmost layer to the bottom layer), k is the number of included layers in local region, and n is the total number of layers included in the substrate.

The flowchart for the LRMD simulation method is given in Figure 2. Indentation process is carried out first before sliding contact, and full MD simulation is used. When the indentation is finished, a local region is chosen according to Cd. Calculating the Cd until Cd ≥ 95% corresponding to i = k, then k layers atoms in the indentation direction will be chosen to form a local region model which will be used to simulate the sliding contact processes.

Figure 2
figure 2

Flowchart for LRMD simulation method

3 Results and Discussion

For two-dimensional MD simulations in this paper, velocity-Verlet algorithm is carried out with a fixed time step, Δt = 0.95 fs. Initially, velocities of all the atoms except fixed boundary ones are set with random Gaussian distribution under an equivalent temperature T = 300 K. The system will be relaxed for 2000Δt to reach its minimum energy configuration before loading. Then, the tip moves to the substrate with a displacement increment Δs= 0.025r0 and indentation speed keeps at v = 1.0 m/s. The indentation depth is dI = 2.5r0. When the indentation is finished, the tip slides along x direction. A high sliding speed could induce biased results, so the sliding speed is chosen as v = 1.0 m/s here. The tip moves to right for 160Δs to finish the sliding contact processes.

3.1 Sliding Contacts of Model I

For model I (113 × 81 atoms), Figure 3 shows the displacements in y direction of atoms on the centerline of the substrate after the indentation. The COD is calculated according to Eq. (4), and k = 61 corresponding to Cd = 95.6%. So, 61 layers in y direction is selected, and the scale of model I for the sequent sliding contact is changed to 113 × 61 atoms. Friction forces from the LRMD simulation are given and compared with full MD simulation (113 × 81 atoms) in Figure 4. The results from the two methods agree well with each other, which testifies the validity of the LRMD simulation method. Additionally, the period of fluctuation is 1.125r0 (= 45Δs), and the distance between two adjacent atoms in x direction is 1.122r0 (= 21/6r0 for FCC Cu). The difference between the two values is caused by the displacement increment.

Figure 3
figure 3

Displacements in y direction of atoms on the centerline of the substrate (113 × 81)

Figure 4
figure 4

Friction forces comparison between LRMD simulation and full MD simulation (113 × 81)

3.2 Sliding Contacts of Model II

For model II (227 × 163 atoms), Figure 5 shows the displacements in y direction of atoms on the centerline of the substrate after the indentation. The COD is calculated according to Eq. (4), and k = 123 corresponding to Cd = 95.1%. Then, the scale of the model for the sequent sliding contact is 227 × 123 atoms. During the whole sliding process, friction forces from the LRMD simulation and from full MD simulation are compared with each other in Figure 6. The agreement between two curves verifies the effectiveness of the LRMD simulation method further. Besides, the period of the fluctuation is also 1.125r0 (= 45Δs), which is same as the case of Model I.

Figure 5
figure 5

Displacements in y direction of atoms on the centerline of the substrate (227 × 163)

Figure 6
figure 6

Friction forces comparison between LRMD simulation and full MD simulation (227 × 163)

3.3 Three-dimensional Model for Sliding Contacts

To testify the idea further, a three-dimensional MD model is given in Figure 7. The model includes a rigid cylindrical tip and an elastic substrate (monocrystal copper with [0 0 1] surface). The tip consists of 3200 atoms with the radius R = 100d (d is the minimum interatomic distance, d = 0.2556 nm). The dimension of the substrate is 60a0 × 4a0 × 25a0 (a0 is the equilibrium lattice constant, for FCC Cu, a0 = 0.3615 nm), corresponding to x, y, z directions, and the total number of atoms of the substrate is 24000. Initial gap between the tip and substrate is dg = 2.2d. Fixed boundary conditions are applied on the bottom two layers, and periodic boundary conditions are applied along the y-axis and the two vertical boundaries of the xOz section of the substrate. Embedded-atom method (EAM) is employed to describe the interactions between all atoms. Velocity-Verlet algorithm is carried out with a fixed time step, Δt = 5 fs. The temperature of the system is T = 300 K. The system will be relaxed for 2000Δt to reach its minimum energy configuration before loading. Then, the tip moves to the substrate with a displacement increment Δs = 0.02d and the indentation depth is dI = 0.4d. When the indentation is finished, the tip slides along x direction, and the relaxation time is also 2000Δt. The tip moves to right for 200Δs to finish the sliding contact processes.

Figure 7
figure 7

Three-dimensional nanoscale sliding contact model between a rigid cylindrical tip and an elastic substrate

After the indentation, the COD can be obtained by Eq. (4), and the dimension is 19a0 in z direction corresponding to Cd = 95.7%. So, the scale of the following model for sliding contact is 60a0 × 4a0 × 19a0. Figure 8 compares the friction forces from full MD simulation (60a0 × 4a0 × 25a0) and LRMD simulation (60a0 × 4a0 × 19a0). For the full MD simulation, the maximum friction force is 5.302, and the value is 4.805 for the LRMD simulation. The difference between the maximum friction forces is 9.37%, which shows the effectiveness of the LRMD simulation method. Due to the indentation depth is small, friction forces are mainly influenced by adhesive forces. For full MD model, the deformation of the substrate will revert to some extent, while the reversion for the LRMD model will be lower than the full MD model due to fixed boundary conditions on the bottom two layers of the LRMD model. Lower reversion makes lower adhesive forces in the opposite direction of sliding, so the friction forces show the difference between LRMD and full MD. From Figure 8, one can also find that the periods of the fluctuation of these two curves are all 1.4d (= 70Δs). This period approximates to the lattice constant a0, and the difference between the two values should be also caused by the displacement increment. The phenomenon agrees well with the conclusion of Ref. [33], which shows validity of the LRMD simulation method.

Figure 8
figure 8

Friction forces comparison between LRMD simulation and full MD simulation (60a0 × 4a0 × 25a0)

4 Discussion

For two-dimensional sliding contact problems shown in Figure 9, friction force can be written as [34]:

$$F = F_{\text{ploughing}} + F_{\text{adhesion}}$$
(5)

where F is total friction force. Fploughing and Fadhesion are ploughing component and adhesion component, respectively. For a given load

$$F_{\text{ploughing}} \,\infty \,\sqrt {\frac{1}{{2({R \mathord{\left/ {\vphantom {R \delta }} \right. \kern-0pt} \delta }) - 1}}}$$
(6)

where δ is scratching depth, and R is the radius of the cylindrical tip. For the same cylindrical tip, Fploughing increases as the increasing of δ according to Eq. (6). In this work, displacements in y direction of the substrate atoms caused by the indentation will influence δ directly. For the models studied in this paper, the simulations consist of two main processes including indentation process and sliding process. The number of layers in indentation direction plays an important role in the indentation process. After indentation (d = 2.5r0, two-dimensional model for example), Figure 10 compares the displacements in y direction of the first layer atoms for two different full MD models: 113 × 81 and 113 × 61 atoms. The displacements in y direction for the small model (113 × 61) are lower than the large model (113 × 81). From this figure, one can find that the displacements of each atom is different, and a dent occurs on surface of the original flat substrate. Contact areas are nearly the same for the two models, and adhesion component Fadhesion is proportional to the contact area. So, one can infer that there is little difference between two models for adhesion components, and Fploughing will be the main role to induce the difference between total friction forces in the sliding processes under this indentation depth.

Figure 9
figure 9

Schematic diagram for sliding contact problems

Figure 10
figure 10

Comparison of displacements of the first layer atoms for different two-dimensional full MD models

Comparing Figure 9 and Figure 10, the scratching depths of the two models are not as ideal as Figure 9. Equivalent scratching depth can be defined as follows:

$$\delta_{\text{e}} = \bar{y} - {y_{\text{min}}}$$
(7)

where \(\bar{y}\) is average value of Y-coordinate of the first layer atoms after indentation, and ymin is the minimum value of Y-coordinate of the first layer atoms after indentation. They can be obtained as:

$$\bar{y} = \frac{1}{{n_{\text{layer}} }}\sum\limits_{i = 1}^{{n_{\text{layer}} }} {(y_{\text{o}} - \left| {\Delta y_{i} } \right|)}$$
(8)
$${y_{\text{min}}} = y_{\text{o}} - \left| {\Delta y_{\text{max} } } \right|$$
(9)

where yo is the original value of Y-coordinate of the first layer atoms, Δyi is the displacement in y direction of atom i on the first layer, Δymax is the maximum displacement in y direction of the first layer atoms, and nlayer is total number of atoms on the first layer. Then, Eq. (7) can be rewritten as

$$\delta_{\text{e}} = \bar{y} - {y_{\text{min}} } = \left| {\Delta y_{\text{max} } } \right| - \frac{1}{{n_{\text{layer}} }}\sum\limits_{i = 1}^{{n_{\text{layer}} }} {\left| {\Delta y_{i} } \right|}$$
(10)

By using Eq. (10) and the data from Figure 10, the equivalent scratching depths for the two models can be obtained, and the values are 0.767r0 (113 × 81) and 0.780r0 (113 × 61), respectively. The smaller model gets higher equivalent scratching depth, which will induce higher ploughing components and higher friction forces under the same initial conditions. Therefore, one should not use an original small model to simulate the large scale sliding contact problems due to different equivalent scratching depth, while LRMD simulation method can be used instead due to its same indentation model and same equivalent scratching depth.

5 Conclusions

Based on the contribution of displacement, a local region molecular dynamics simulation method is developed in this study. Two-dimensional and three-dimensional nanoscale sliding contacts between rigid cylindrical tips and elastic substrates with different scales are used as examples to testify the validity of the LRMD simulation method. Some conclusions are drawn as follows.

  1. (1)

    The contribution of displacement can be a criterion used to estimate the effective local region during indentation process.

  2. (2)

    LRMD simulation method can be used to solve nanoscale sliding contacts effectively, while original small MD model cannot be used to simulate the large scale sliding contact problems due to different equivalent scratching depth.

  3. (3)

    For the same indentation depth, the scale of the model influences the equivalent scratching depth, and smaller model induces higher equivalent scratching depth as well as higher friction forces.

  4. (4)

    Compared with full MD simulation, LRMD simulation method could save 35.67% CPU time.