The discrete element method (DEM) simulates a granular material by following every particle in it. Each grain is a rigid body with a position, a velocity and a spin. When two grains touch, a contact law turns their small overlap into a force. Newton’s second law then moves every grain forward by a very short time step, and the cycle repeats.
Peter Cundall and Otto Strack published the method for granular assemblies in 1979. It is now the usual way to study hoppers, mills, mixers, conveyors and other equipment that handles bulk solids. This article explains how the method works, what sets its cost, and where it stops being trustworthy.
Why simulate every particle
A granular material is neither a fluid nor a solid. Sand flows through an hourglass like a liquid, holds a slope like a solid, and can jam in an outlet without warning. A continuum model needs one constitutive law that covers all three states, and such laws are hard to write and harder to calibrate.
DEM takes the other route. It models only what happens between two grains: they press, they slide, they roll. Heaps, arches, segregation and avalanches then appear on their own, out of thousands of contacts, without being put in by hand. The price is computing time, because every grain and every contact is worked out at every step.
What a particle carries
Every particle has a mass, a moment of inertia, a position, an orientation, a linear velocity and an angular velocity. It also has a shape. Spheres are the simplest and the fastest, because two spheres touch exactly when the distance between their centres is less than the sum of their radii. Real grains are rarely spheres, so solvers also offer rounded polyhedra, superquadrics, or particles glued together from simpler pieces.
Each particle refers to a material: density, Young’s modulus, Poisson’s ratio, a coefficient of restitution and friction coefficients.
Contact detection
Testing every pair of N particles costs on the order of N squared operations, which is hopeless beyond a few thousand grains. DEM codes split the search in two.
The broad phase sorts particles into the cells of a grid whose cells are slightly larger than the biggest particle. A grain can only touch grains in its own cell or the cells around it, so the list of candidate pairs grows in proportion to N.
The narrow phase tests each candidate pair exactly. Does it overlap? How deep? Where is the contact point, and along which direction does the force act?
The soft-sphere contact
DEM particles do not deform. They are allowed to overlap slightly instead, and the overlap stands in for the elastic deformation a real grain would show. For two spheres the overlap is
and the contact exists while δ is positive. In a well set up run δ stays a small fraction of the radius.
Two spheres in contact
the overlap is drawn far larger than in a real run
The normal force acts along the line of centres and pushes the particles apart. The tangential force acts in the contact plane and is limited by friction.
Normal force: Hertz
Hertz’s theory of elastic contact gives the force that pushes the two spheres apart:
The effective radius and modulus combine the two bodies:
1/Eeff = (1 − ν1²)/E1 + (1 − ν2²)/E2
The force is not linear in the overlap. The contact patch grows as the spheres press together, so the contact gets stiffer the deeper it goes.
Damping: where the energy goes
A purely elastic contact returns all of its energy, so a dropped ball would bounce for ever. A damping force proportional to the approach speed removes energy during the contact. Its coefficient is chosen so that a collision between two bodies ends with the coefficient of restitution e that the user asked for, which is the ratio of rebound speed to impact speed.
That gives an easy test. A ball dropped from height h should rebound to e² h. Wind’s ball bounce example checks exactly this. The mapping from e to the damping coefficient assumes small overlaps, and its free-fall restitution example shows what happens when a very soft ball leaves that range.
Tangential force: Mindlin and Coulomb
Sideways, the contact behaves like a spring with a memory. While two grains stay in touch, the solver adds up their relative tangential displacement and applies a force that opposes it, with a stiffness from Mindlin’s theory that also grows with the overlap. Coulomb’s law caps that force:
Below the cap the contact sticks. At the cap it slides. Because the spring depends on the path the contact has taken, the solver stores a history for every contact for as long as it lasts.
The two laws together are called Hertz-Mindlin. It is the most common contact model for dry grains that do not stick to each other.
Rolling resistance
Perfect spheres roll too easily. A heap of them is flatter than a heap of real, angular grains. A rolling resistance model adds a torque at each contact that opposes relative rolling. It is a correction for the shape that is missing, and its coefficient has to be calibrated. The other option is to model the shape itself.
The loop
Once every force and torque on a particle is known, its motion follows from Newton’s and Euler’s equations:
I · dω/dt = ΣT
The DEM loop
one pass per time step
Every step repeats the same four stages. Contact detection and force calculation take most of the time.
Most codes integrate these equations with an explicit second-order scheme such as velocity Verlet. It advances the velocity by half a step with the current forces, moves the positions, works out the new forces, and then finishes the velocity step. An explicit scheme is cheap per step, but it is only stable when the step is small.
The time step
How small? A disturbance crosses a grain as an elastic wave, and the step must be short enough to resolve it. The usual yardstick is the Rayleigh time, the time a surface wave takes to travel across a particle:
G = E / (2 · (1 + ν))
Here ρ is the density, G the shear modulus and ν Poisson’s ratio. Runs use a fraction of TR, commonly 10 to 30 per cent.
Two things follow. The step shrinks in proportion to the particle radius. It also shrinks with the square root of the stiffness: make the material 100 times stiffer and the step is 10 times shorter.
Rayleigh time against stiffness
log-log axes · density 2,500 kg/m³ · Poisson's ratio 0.25
Computed from the formula above. A hundredfold change in Young's modulus changes the time step tenfold.
For a glass bead of 1 mm radius (E about 70 GPa) the Rayleigh time is about 1 µs. At 20 per cent of that, ten seconds of process take 50 million steps. With a modulus of 10 MPa the same bead needs about 600,000 steps.
This is why many DEM studies lower Young’s modulus by several orders of magnitude. For free-flowing bulk behaviour that is often acceptable, because the flow depends far more on friction than on stiffness. It is not acceptable when the contact duration, wave propagation or the stress inside a packed bed is the thing you want to know. The examples on this site use soft grains (10 MPa) and say so on each page.
What DEM is used for
- Storage and discharge: hoppers, silos and bins, where the questions are flow rate, arching and dead zones.
- Transfer and conveying: chutes, transfer points, screw and belt conveyors, and the wear they cause.
- Mixing and milling: rotating drums, ribbon blenders, ball and tumbling mills.
- Agriculture and food: seeds, grain, stalks and fruit in handling and harvesting machines.
- Earthmoving and mining: buckets, blades and tracks working in soil and rock.
- Powders: tablet coating, die filling and powder spreading in additive manufacturing.
Limits worth knowing
Particle count. A cubic metre of 1 mm sand holds about a billion grains. Engineering runs use fewer, larger particles and accept the approximation.
Shape. Spheres are fast but too mobile. Rolling resistance helps with heaps. It does not reproduce interlocking, and for that you need real shapes.
Calibration. Sliding and rolling friction between particles are model inputs, not handbook properties. They have to be fitted to a bulk test, as described in calibrating with an angle-of-repose test.
Missing physics. Moisture, cohesion, heat, wear and fluid drag each need their own model. A dry contact law says nothing about them.
Verification is not validation. Showing that a solver reproduces theory proves the equations are solved correctly. Whether those equations describe your material is a separate question, and only an experiment answers it.
How the solver does it
The solver uses a Hertz normal force and a Mindlin tangential force with contact history, damping derived from the coefficient of restitution, and EPSD rolling resistance (Type C and Type A). It integrates translation and rotation with velocity Verlet. The time step is set automatically from the Rayleigh and Hertz-Mindlin limits, and a deck that asks for a larger step is refused with the limit stated.
Shapes are spheres, rounded polyhedra and superquadrics, plus bonded assemblies that can break. Cohesion, heat transfer and wear are not available yet.
The examples that ship with Wind run as they are, and the solver is checked against theory by independent code that shares nothing with it.