DEM
The Discrete Element Method is the largest group of the testbench. The cases cover spherical particles, superquadric and multi-sphere bodies, the neighbour-list algorithms, moving STL walls, wall wear, rolling resistance, restarts, rotating frames and parallel consistency. Most of these cases are pure DEM (no fluid); the coupling with the fluid is tested in CFD-DEM and IBM.
| Case | Ranks | Compile options | Checks |
|---|---|---|---|
DEM |
1 | default | particles and fields against the reference |
DEM-SKIN |
1, 2 | default | against the DEM reference, and skin against no skin on 2 ranks |
DEM-MOVINGWALLS |
1, 2 | MF_SET_VELOCITY_TRIANGULAR_WALLS, MF_MOVE_TRIANGULAR_WALLS, MF_WRITE_COLLISION_STATISTICS |
against the references |
DEMSQ |
1 | default | against the reference |
DEMSQC |
1, 2 | default | against the references, and a periodic-pair consistency check |
DEMMS |
1, 2 | MF_ROUGH_ROLLING, MF_DEM_WEAR_MODEL_ON |
against the references |
DEMMS-SKIN |
1, 2 | MF_ROUGH_ROLLING, MF_DEM_WEAR_MODEL_ON |
against the DEMMS references (bitwise) |
DEM-BODIESRANKS |
1, 4 | default | 4 ranks against 1 rank, no stored reference |
DEM-RESTART |
1, 4 (and 4 → 2) | default | restarted against continuous run, no stored reference |
DEM-RESTART-WEAR |
1, 4 (and 4 → 2) | MF_DEM_WEAR_MODEL_ON, MF_ROUGH_ROLLING |
restarted against continuous run, including the wall wear |
DEM-ROTATINGFRAME |
1, 2, 4 | MF_PARTICLE_MOTION_IN_ROTATING_FRAME |
the three runs must agree bitwise |
DEM-UNITTESTS |
– | – | unit tests of the contact functions |
The compile options are explained in Compile options.
Spherical particles
DEM: settling spheres. Spheres of 5 cm diameter (density 2000 kg/m³, Tsuji contact model) are placed on a
regular lattice in a unit box, periodic in x and y, and settle under gravity onto the floor for 1 s. The particle
data and the fields are compared with the reference. This is the basic DEM case: time integration, contact
detection, the contact forces between particles and with walls, and the particle boxes.
DEM-SKIN: neighbour lists with a skin. The DEM case with NeighbourListSkin 0.1: contacts are found from
neighbour lists that are rebuilt only when a particle has moved further than the skin, instead of in every time-step.
In serial the result must equal the DEM reference; on 2 ranks the run with the skin is compared with the same
build without the skin, which tests the exchange of the lists across processors.
DEM-MOVINGWALLS: rotating drum. One steel sphere (20 mm) in a rotating drum with lifters, described by an STL
surface that rotates at 45 rpm. It tests moving and rotating STL walls, the wall velocity seen by the contacts, and
the output of collision statistics, in serial and on 2 ranks.
DEM-ROTATINGFRAME: DEM in a rotating frame. Spheres settle in a box centred on the rotation axis, with the
particle equations solved in the rotating frame (centrifugal and Coriolis forces). The serial run and the runs on 2
and 4 ranks (split around the axis) must agree bitwise, which tests that ghost particles are transformed to the
rotating frame consistently with the owned particles.
Superquadrics
DEMSQ: superquadric shapes. Three types of superquadric bodies (from nearly a cube to a flat, rounded shape)
are placed in a small box and fall under gravity for 10 time-steps. It tests the superquadric geometry, the contact detection
between superquadrics and with walls, and their output.
DEMSQC: lasting superquadric contacts. Sixteen superquadric boxes in random orientations settle onto the floor
and onto each other in a shaft for 0.15 s. Unlike DEMSQ, the contacts last, which tests the GJK/EPA narrow phase on
persistent contacts and the transport of the tangential contact history. The 2-rank run splits the shaft, so that
contacts cross the processor boundary; its physical fields equal the serial run bitwise. A further pair of runs
checks that a contact of two superquadrics inside the domain gives the same result as the same contact across a
periodic boundary.
Multi-sphere bodies
DEMMS: multi-sphere bodies on an inclined plate. 24 bodies, each made of 15 spheres, slide and roll down an
inclined, tessellated STL plate and leave the domain through an outlet. The case is built with rolling resistance
(EPSD2, MF_ROUGH_ROLLING) and the wall-wear model (MF_DEM_WEAR_MODEL_ON), and is run in serial and on 2 ranks.
DEMMS-SKIN: multi-sphere bodies with skin neighbour lists. The DEMMS case with NeighbourListSkin 0.1:
neighbour lists on the level of the spheres of the bodies, the exchange of bodies between processors, rolling
resistance and wear in one case. It must equal the DEMMS references bitwise.
DEM-BODIESRANKS: bodies across periodic boundaries. 49 tetrahedral bodies (147 spheres each) settle on the
floor of a box that is periodic in x and y. Spheres of bodies at the periodic boundaries find the floor through the
periodic image, which on 4 ranks lies on another processor. The 4-rank run must agree with the serial run to
round-off (tolerance 1e-9 at the first output and 1e-6 at the second, as the pile amplifies the round-off of the
different summation order).
Restarts
DEM-RESTART: restart transparency. A run continued from its restart files must equal the continuous run
bitwise, for spheres (the settling bed of DEM, with friction and automatic time-stepping) and for multi-sphere
bodies (49 tetrahedral bodies with friction). With friction, the runs only agree if the restart files contain the
full contact history. Both are tested in serial and on 4 ranks; the 4-rank run is also restarted on 2 ranks (particle
IDs exact, state within 1e-9, since the decomposition changes the summation order).
DEM-RESTART-WEAR: restart of wear and rolling histories. Spheres roll onto an STL ramp and the walls of the
fluid mesh, with two wear models and EPSD2 rolling resistance. After a restart, the particles and the accumulated
wear of every wall triangle must equal those of the continuous run.
DEM-UNITTESTS: contact functions
Small programs in testcases/DEM-UNITTESTS that drive the actual contact-force functions of MultiFlow with
prescribed kinematics: no mesh, no time integration and no MPI. Each force evaluation is compared with an analytic
result:
| Test | What it checks |
|---|---|
rotational_correction_test |
transport of the tangential spring between time-steps (tilt with the contact normal, spin, projection, length preservation), for the Tsuji, Walton and linear models and for walls |
wall_handover_test |
handover of the wall-contact history when a particle moves from one wall facet to the next |
force_model_test |
the normal and tangential force models, rolling resistance and DMT cohesion |
wear_model_test |
the impact wear models against the closed-form results of the literature |
superquadric_contact_test |
superquadric derivatives and curvature, GJK and EPA |
Each program exits with the number of violated checks, so a pass is exit code 0. testcases/DEM-UNITTESTS/README.md
describes every test in detail.