Keywords

1 Introduction

A computationally efficient deformation simulation algorithm for elastic objects contributes to the haptic interaction of surgical training systems, games and so on. However, because a high update rate (about 500 Hz) is required for stable haptic interaction, deformation simulation with high accuracy is especially difficult due to computational cost.

To reduce computational cost of deformation simulation, an online re-mesh method is proposed [1]. In the online re-mesh method, accuracy of deformation simulation is changed locally and dynamically according to the intensity of the strain. In addition, Debunne reported that a multi-rate method is also effective in deformation simulation [2]. In the multi-rate method, the time steps of each node is determined adaptively. We previously proposed a binary online re-mesh and multi-rate method [3]. In our proposed approach, an elastic object is represented by a multi-resolution hierarchy of tetrahedral adaptive mesh. In the binary online re-mesh and multi-rate method, first, accuracy of deformation simulation is changed as with the online re-mesh method. Secondary, the time step of each node is changed based on the new accuracy of deformation simulation. Figure 1 shows the tetrahedral adaptive mesh. However, because the approach with the binary online re-mesh and multi-rate method was not implicit integration, our previous approach has a problem with the stability.

Fig. 1
figure 1

Tetrahedral adaptive mesh

2 A Fast Update Approach of a Stiffness Matrix for a Binary Online Re-Mesh and Multi-rate Finite Element Method

To solve above problem, we propose a fast update approach of stiffness matrix for finite element deformation simulation with the binary online re-mesh and multi-rate method on GPU. Figures 2 and 3 show examples of multi-rate deformation simulation of a cube model and ELL format [4] for the binary online re-mesh and multi-rate method where white lines show nonzero values of the sparse matrices. In our approach, a stiffness matrix is stored in ELL format. The advantage of selecting ELL format is that the number of columns of the ELL format is limited to 81 from feature of the tetrahedral adaptive mesh. Besides, local and fast update of a compressed global stiffness matrix is easy, for example, swapping rows. Each row of the stiffness matrix is sorted in ascending order of its time step \( \Delta t \). The time steps of each node are obtained by truncating its time step satisfying the Courant-Friedrichs-Lewy condition [5] to the nearest N-th power of two that N is natural number. In our approach, based on the time steps of each node, the size of simultaneous equations is varied in each cycle of deformation simulation.

Fig. 2
figure 2

Binary online re-mesh and multi-rate method

Fig. 3
figure 3

ELL format for binary online re-mesh and multi-rate method

3 Evaluation Experiment

As an early evaluative experiment, we compared computation time of a single-rate model, 0.134 (m) on a side of square, with a multi-rate model. The number of nodes and elements are 21 and 24, respectively. In the single-rate model, time steps of all nodes are determined to the minimum time step among all nodes. Biconjugate gradient stabilized method is used as a solver of FEM. In the simulation, the bottom right node was grasped and pulled. The simulation was performed on a PC (CPU: Intel Xeon(R) W3565 3.20 GHz), Memory: 16.0 GB, OS: Windows 10 Enterprise 64 bit, Compiler: Visual Studio 2010, SDK: Open Haptics 3.0).

Figure 4 and Table 1 show the simulation results and computation time. Through the experiment, we confirmed that our approach contributes to the reduction of computational cost of deformation simulation and the stability of deformation simulation.

Fig. 4
figure 4

Example of deformations

Table 1 Computation time of square model (ms)