Contact Resolution for General Level Surfaces using Automatic Differentiation

Authors:

Abstract
A contact resolution algorithm for generic shapes based on level surfaces in DEM is presented. This algorithm is only able to detect whether or not two general shapes are in contact. In the case of small particles with electrostatic forces, contact detection is not sufficient, as inter-particle forces are active even if they are not in contact. It is therefore extended here to obtain the distance between the particles, or the virtual overlap, and the initial contact point. From a user point of view, these algorithms for general irregular shapes are not very attractive. They require the solution of a system of nonlinear equations. A Newton-Raphson approach to linearise these equations leads to a series of linear equations containing the gradients and the Hessians of the level surfaces. These gradients and Hessians generally have to be obtained explicitly, either by manually deriving the function, or by some symbolic algebra package. In addition, they have to be coded and debugged by the user. These steps make the implementation of new shapes, although trivial, error-prone and time-consuming. Derivation, however, is as mechanistic process, and there is no reason why a software component being able to execute the evaluation of a function, specified by the user in the form of an algorithm, would not also be capable of providing partial derivatives of any order. Here a technique, called Automatic Differentiation (AD) is used to accomplish this. By the use of AD, the user only has to provide the code for the evaluation of the level surface. Under the hood, the software provides first and second order partial derivatives automatically to construct the linear systems for contact resolution. The use of DEM as a numerical technique for investigating granular flow problems and eventually for engineering bulk handling systems is very promising. Yet there are many scientific and numerical issues that need to be solved before these promises can become a reality. One of these problems is dealing with irregular shapes. Several approaches have been taken to treat irregular shapes. Some of them are based on polygonal representations. Polygonal objects lack curvature and consequently it is difficult to define realistic contact force models (unless a very high number of polygons is used). Overlapping spheres have also been used. Spheres do not lack curvature, but generally they provide the wrong curvature at a point and hence the wrong force. A more generic approach was taken by Cleary et al. They based their approach on level surfaces but concentrated, on hyper-ellipsoids. They provided an efficient algorithm for contact detection in the form of a quantity which depends on position and orientation of the respective particles which changes sign when in contact. For electrostatically charged particles this is not sufficient as there are inter-particle forces acting even when contact is not established and the closest distance between particles is needed and the algorithm needs modification. This problem will be tackled in section 1. A further problem of a more practical nature is that the algorithm relies on the Newton-Raphson scheme for the solution of a nonlinear system and hence the user is required to specify not only the function describing the level surface of the particles, but also the gradient and the Hessian with respect to position. The latter is necessary because the gradient already appears in the nonlinear system. Although this task is trivial in principle, it is error-prone and time-consuming. This problem will be dealt with in section 2.