# Discrete element method

A discrete element method (DEM), also called a distinct element method, is any of a family of numerical methods for computing the motion and effect of a large number of small particles. Though DEM is very closely related to molecular dynamics, the method is generally distinguished by its inclusion of rotational degrees-of-freedom as well as stateful contact, particle deformation and often complicated geometries (including polyhedra). With advances in computing power and numerical algorithms for nearest neighbor sorting, it has become possible to numerically simulate millions of particles on a single processor. Today DEM is becoming widely accepted as an effective method of addressing engineering problems in granular and discontinuous materials, especially in granular flows, powder mechanics, ice and rock mechanics. DEM has been extended into the Extended Discrete Element Method taking heat transfer, chemical reaction and coupling to CFD and FEM into account.
Discrete element methods are relatively computationally intensive, which limits either the length of a simulation or the number of particles. Several DEM codes, as do molecular dynamics codes, take advantage of parallel processing capabilities (shared or distributed systems) to scale up the number of particles or length of the simulation. An alternative to treating all particles separately is to average the physics across many particles and thereby treat the material as a continuum. In the case of solid-like granular behavior as in soil mechanics, the continuum approach usually treats the material as elastic or elasto-plastic and models it with the finite element method or a mesh free method. In the case of liquid-like or gas-like granular flow, the continuum approach may treat the material as a fluid and use computational fluid dynamics. Drawbacks to homogenization of the granular scale physics, however, are well-documented and should be considered carefully before attempting to use a continuum approach.

## The DEM family

The various branches of the DEM family are the distinct element method proposed by Peter A. Cundall and Otto D. L. Strack in 1979, the generalized discrete element method, the discontinuous deformation analysis (DDA) (Shi 1992) and the finite-discrete element method concurrently developed by several groups (e.g., Munjiza and Owen). The general method was originally developed by Cundall in 1971 to problems in rock mechanics. Williams showed that DEM could be viewed as a generalized finite element method, allowing deformation and fracturing of particles. Its application to geomechanics problems is described in the book Numerical Methods in Rock Mechanics. The 1st, 2nd and 3rd International Conferences on Discrete Element Methods have been a common point for researchers to publish advances in the method and its applications. Journal articles reviewing the state of the art have been published by Williams and O'Connnor, Bicanic, and Bobet et al. (see below). A comprehensive treatment of the combined Finite Element-Discrete Element Method is contained in the book The Combined Finite-Discrete Element Method.

## Applications

The fundamental assumption of the method is that the material consists of separate, discrete particles. These particles may have different shapes and properties that influence inter-particle contact. Some examples are:
* liquids and solutions, for instance of sugar or proteins;
* bulk materials in storage silos, like cereal;
* granular matter, like sand;
* powders, like toner.
* Blocky or jointed rock masses
Typical industries using DEM are:
* Agriculture and food handling
* Chemical
* Detergents
* Oil and gas
* Mining
* Mineral processing
* Pharmaceutical industry
* Powder metallurgy

## Outline of the method

A DEM-simulation is started by first generating a model, which results in spatially orienting all particles and assigning an initial velocity. The forces which act on each particle are computed from the initial data and the relevant physical laws and contact models. Generally, a simulation consists of three parts: the initialization, explicit time-stepping, and post-processing. The time-stepping usually requires a nearest neighbor sorting step to reduce the number of possible contact pairs and decrease the computational requirements; this is often only performed periodically.
The following forces may have to be considered in macroscopic simulations:
* friction, when two particles touch each other;
* contact plasticity, or recoil, when two particles collide;
* gravity, the force of attraction between particles due to their mass, which is only relevant in astronomical simulations.
* attractive potentials, such as cohesion, adhesion, liquid bridging, electrostatic attraction. Note that, because of the overhead from determining nearest neighbor pairs, exact resolution of long-range, compared with particle size, forces can increase computational cost or require specialized algorithms to resolve these interactions.
On a molecular level, we may consider:
* the Coulomb force, the electrostatic attraction or repulsion of particles carrying electric charge;
* Pauli repulsion, when two atoms approach each other closely;
* van der Waals force.
All these forces are added up to find the total force acting on each particle. An integration method is employed to compute the change in the position and the velocity of each particle during a certain time step from Newton's laws of motion. Then, the new positions are used to compute the forces during the next step, and this loop is repeated until the simulation ends.
Typical integration methods used in a discrete element method are:
* the Verlet algorithm,
* velocity Verlet,
* symplectic integrators,
* the leapfrog method.

## Thermal DEM

The discrete element method is widely applied for the consideration of mechanical interactions in many-body problems, particularly granular materials. Among the various extensions to DEM, the consideration of heat flow is particularly useful. Generally speaking in Thermal DEM methods, the thermo-mechanical coupling is considered, whereby the thermal properties of an individual element are considered in order to model heat flow through a macroscopic granular or multi-element medium subject to a mechanical loading. Interparticle forces, computed as a part of classical DEM, are used to determined areas of true interparticle contact and thus model the conductive transfer of heat from one solid element to another. A further aspect that is considered in DEM is the gas phase conduction, radiation and convection of heat in the interparticle spaces. To facilitate this, properties of the inter-element gaseous phase need to be considered in terms of pressure, gas conductivity and the mean-free path of gas molecules.

## Long-range forces

When long-range forces (typically gravity or the Coulomb force) are taken into account, then the interaction between each pair of particles needs to be computed. Both the number of interactions and cost of computation increase quadratically with the number of particles. This is not acceptable for simulations with large number of particles. A possible way to avoid this problem is to combine some particles, which are far away from the particle under consideration, into one pseudoparticle. Consider as an example the interaction between a star and a distant galaxy: The error arising from combining all the stars in the distant galaxy into one point mass is negligible. So-called tree algorithms are used to decide which particles can be combined into one pseudoparticle. These algorithms arrange all particles in a tree, a quadtree in the two-dimensional case and an octree in the three-dimensional case.
However, simulations in molecular dynamics divide the space in which the simulation take place into cells. Particles leaving through one side of a cell are simply inserted at the other side (periodic boundary conditions); the same goes for the forces. The force is no longer taken into account after the so-called cut-off distance (usually half the length of a cell), so that a particle is not influenced by the mirror image of the same particle in the other side of the cell. One can now increase the number of particles by simply copying the cells.
Algorithms to deal with long-range force include:
* Barnes–Hut simulation,
* the fast multipole method.

## Combined finite-discrete element method

Following the work by Munjiza and Owen, the combined finite-discrete element method has been further developed to various irregular and deformable particles in many applications including pharmaceutical tableting, packaging and flow simulations, and impact analysis.

## Advantages and limitations

Advantages
* DEM can be used to simulate a wide variety of granular flow and rock mechanics situations. Several research groups have independently developed simulation software that agrees well with experimental findings in a wide range of engineering applications, including adhesive powders, granular flow, and jointed rock masses.
* DEM allows a more detailed study of the micro-dynamics of powder flows than is often possible using physical experiments. For example, the force networks formed in a granular media can be visualized using DEM. Such measurements are nearly impossible in experiments with small and many particles.
* The general characteristics of force-transmitting contacts in granular assemblies under external loading environments agree with experimental studies using Photo-stress analysis (PSA).
Disadvantages
* The maximum number of particles, and duration of a virtual simulation is limited by computational power. Typical flows contain billions of particles, but contemporary DEM simulations on large cluster computing resources have only recently been able to approach this scale for sufficiently long time (simulated time, not actual program execution time).
* DEM is computationally demanding, which is the reason why it has not been so readily and widely adopted as continuum approaches in computational engineering sciences and industry. However, the actual program execution times can be reduced significantly when graphical processing units (GPUs) are utilized to conduct DEM simulations, due to the large number of computing cores on typical GPUs. In addition GPUs tend to be significantly more energy efficient than conventional computing clusters when conducting DEM simulations i.e. a DEM simulation solved on GPUs requires less energy than when it is solved on a conventional computing cluster.