Skip to content

Drivers

A driver is a large object treated differently from the particles: a wall, a cylinder, a ball or a mesh. Drivers are registered in the setup_drivers batch, each with a unique id:

1
2
3
4
5
setup_drivers:
  - register_cylinder:
     id: 0
     state: {radius: 10, center: [10, 10, 10], axis: [1, 0, 1], vrot: [0, 0.5, 0]}
     params: { motion_type: STATIONARY }

The cylinder is infinite along the axis whose component is 0 in axis (here y), and rotates at vrot (rad/s). STATIONARY means that the driver does not translate; it can still rotate.

At the start of the run, print_drivers prints the drivers:

==================== Driver Configurations =======================
===== Summary
Drivers Stats
Number of drivers: 1
Number of Cylinders: 1
...

See Drivers for all the driver types and motion types.