Skip to content

Rotating Drum / Cylinder

The cylinder driver is an infinite cylinder, possibly rotating around its axis. It is defined by its center, axis, radius, velocity and angular velocity.

Rotating drum

register_cylinder

Parameter Description
id driver index
state cylinder state: radius and center (required), axis, vel (default [0,0,0]), vrot (default [0,0,0]), rv, ra
params motion parameters, default { motion_type: STATIONARY }

axis selects the directions of the cylinder section: [1, 0, 1] gives a cylinder infinite along \(y\).

STATIONARY

1
2
3
4
- register_cylinder:
   id: 0
   state: {center: [2.5, 2.5, 2.5], axis: [1, 0, 1], radius: 4}
   params: { motion_type: STATIONARY }

A rotating drum is a stationary cylinder with an angular velocity, e.g. vrot: [0, 0.5, 0].

SHAKER

1
2
3
4
- register_cylinder:
   id: 0
   state: {center: [25, 25, 25], axis: [1, 0, 1], radius: 25}
   params: { motion_type: SHAKER, amplitude: 0.5, omega: 1., shaker_dir: [0, 0, 1] }

Example: example/spheres/shaker_cylinder/shaker_cylinder.msp.