Ball / Sphere¶
The ball driver is a spherical object, defined by its center, radius, velocity and angular velocity. It can be used as a boundary condition (particles inside) or as an obstacle (particles outside).
register_ball¶
| Parameter | Description |
|---|---|
id |
driver index |
state |
ball state: radius and center (required), vel (default [0,0,0]), vrot (default [0,0,0]), rv, ra |
params |
motion parameters, default { motion_type: STATIONARY } |
Note
rais the "radius acceleration" andrvthe "radius velocity", used by the radial compression: the radius of the ball shrinks or grows until the requested pressure is reached between the ball and the particles inside. It requires theCOMPRESSIVE_FORCEmotion type.- With
LINEAR_MOTION, the velocityvelis computed frommotion_vectorandconst_vel. - With
COMPRESSIVE_FORCE, the velocityvelis set to 0.
STATIONARY¶
Example: example/spheres/ball/driver-ball-stationary.msp.
LINEAR_MOTION¶
Example: example/spheres/ball/driver-ball-linear.msp.
COMPRESSIVE_FORCE¶
Example: example/spheres/ball/driver-ball-radial-stress.msp.
TABULATED¶
Example: example/spheres/ball/driver-ball-tabulated.msp.