Skip to content

Drivers

What is a driver?

In exaDEM, a driver is a large object — a wall, a cylinder, a ball, a mesh — treated differently from the particles. The particle data structures and their parallelization are optimized for particles of comparable sizes; drivers need a special treatment because of their size and properties. A simulation can contain any number of drivers, stored in a driver list, to define boundary conditions and obstacles.

Name Driver type Operator Page
Cylinder CYLINDER register_cylinder Cylinder
Wall / surface SURFACE register_surface Surface
Ball / sphere BALL register_ball Ball
RShape (mesh) RShapeDriver register_stl_mesh / register_rshape RShape
Undefined UNDEFINED –

Note

With multi-material contact laws, every driver needs contact parameters with the particle groups, set by drivers_contact_params. With single-material laws, they are given by config_driver.

Adding a driver

Drivers are registered in the setup_drivers batch (nop by default), each with an id. Registering a second driver with an id already used overwrites the first one.

1
2
3
4
5
6
7
8
9
setup_drivers:
  - register_cylinder:
     id: 0
     state: {center: [10, 3.75, 10], axis: [1, 0, 1], radius: 16}
     params: { motion_type: STATIONARY }
  - register_surface:
     id: 1
     state: {normal: [0, 0, 1], offset: -0.5}
     params: { motion_type: STATIONARY }

The contacts with drivers are handled as interactions (types 4 to 12), built by nbh_sphere / nbh_polyhedron and processed by the contact operators like the particle-particle interactions. A test case is available for each driver in the example directory.

Motion types

The common parameters of the drivers (class Driver_params) are mainly used by the time integration scheme to determine how the driver moves. They are given in the params slot.

Motion type Description
STATIONARY no translation; rotations are allowed
LINEAR_MOTION straight-line motion at constant velocity
COMPRESSIVE_FORCE motion driven by a compressive stress, depending on the driver type
LINEAR_FORCE_MOTION linear motion driven by a constant force plus the resultant force of the sample
FORCE general motion caused by the applied forces: the driver acts like a particle (R-shape)
LINEAR_COMPRESSIVE_MOTION linear motion driven by a compressive stress
TABULATED motion defined by tabulated positions
SHAKER oscillatory motion, mimicking a shaking mechanism
PENDULUM_MOTION swinging around a suspension point
EXPRESSION velocity or angular velocity given by analytical expressions (tinyexpr)
Driver STATIONARY LINEAR_MOTION COMPRESSIVE_FORCE LINEAR_FORCE_MOTION FORCE LINEAR_COMPRESSIVE_MOTION TABULATED SHAKER PENDULUM_MOTION EXPRESSION
Cylinder ✔ ✘ ✘ ✘ ✘ ✘ ✘ ✔ ✘ ✘
Surface ✔ ✔ ✘ ✘ ✘ ✔ ✘ ✔ ✔ ✘
Ball ✔ ✔ ✔ ✘ ✘ ✘ ✔ ✘ ✘ ✘
RShape ✔ ✔ ✘ ✔ ✘ ✔ ✔ ✔ ✘ ✔

All the motion types use a velocity-Verlet integration scheme. The positions, forces or velocities are computed as follows:

\[ P = P, \qquad V = 0 \]

with \(P\) the driver position and \(V\) the driver velocity.

\[ V = M_{vector}\, C_{velocity} \]

with \(M_{vector}\) the motion vector and \(C_{velocity}\) the constant velocity.

For balls, the radius \(R\) evolves with its velocity \(R_{velocity}\) and acceleration \(R_{acceleration}\):

\[ R_{acceleration} = \frac{F_{driver} - \sigma\, S - damprate\, R_{velocity}}{0.5\, m_{system}} \]

with \(S\) the driver surface, \(m_{system}\) the mass of the system and \(damprate\) the damping rate.

\[ F = \left( F_{driver} \cdot M_{vector} + C_F \right) M_{vector} \]

with \(F_{driver}\) the sum of the forces applied by the particles on the driver, \(C_F\) the constant force and \(M_{vector}\) the motion vector.

\[ F = F_{driver} + gravity \]

with \(F_{driver}\) the sum of the forces applied by the particles on the driver.

\[ F = \left( M_{vector} \cdot F_{driver} - \sigma\, S - damprate\, V \right) M_{vector} \]

with \(V\) the driver velocity, \(S\) the driver surface, \(damprate\) the damping rate and \(M_{vector}\) the motion vector.

\[ C = A \sin(\omega T)\, N_{shaker} + C_{initial}, \qquad V = \omega A \cos(\omega T)\, N_{shaker} \]

with \(C\) the driver center, \(C_{initial}\) the initial center, \(T = t -\) motion_start_threshold, \(N_{shaker}\) the shaker direction, \(A\) the amplitude and \(\omega\) the frequency.

Pendulum

\[ B_t = A \sin(\omega T)\, D + B_0, \qquad V = 0 \]

with \(B_0\) the initial position, \(B_t\) the current position at \(T = t -\) motion_start_threshold, \(D\) the swing direction, \(A\) the amplitude, \(\omega\) the frequency, \(Anchor\) the anchor point (invariant, always on the surface) and \(N\) the normal of the surface, or the new direction of the object.

\[ V = Formula(t), \qquad V_{rot} = Formula(t) \]

with \(V\) the velocity and \(V_{rot}\) the angular velocity of the driver. The formulas are given in the expr entry (Driver_expr) of the params slot.

Keywords of the params slot:

Keyword Symbol
motion_type
motion_vector \(M_{vector}\)
const_vel \(C_{velocity}\)
const_force \(C_F\)
sigma \(\sigma\)
damprate \(damprate\)
amplitude \(A\)
omega \(\omega\)
shaker_dir \(N_{shaker}\)
pendulum_anchor_point \(Anchor\)
pendulum_initial_position \(B_0\)
pendulum_swing_dir \(D\)
motion_start_threshold, motion_end_threshold start and end time of the motion
time, positions tabulated motion
expr expressions of EXPRESSION

More