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.
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:
with \(P\) the driver position and \(V\) the driver 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}\):
with \(S\) the driver surface, \(m_{system}\) the mass of the system and \(damprate\) the damping rate.
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.
with \(F_{driver}\) the sum of the forces applied by the particles on the driver.
with \(V\) the driver velocity, \(S\) the driver surface, \(damprate\) the damping rate and \(M_{vector}\) the motion vector.
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.
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.
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 |