Skip to content

Force Field

The compute_force batch, called at every time step by the numerical scheme, computes the forces and moments applied to the particles:

1
2
3
4
5
compute_force:
  - gravity_force
  - contact_sphere:
     config: { kn: 1000, kt: 1000, kr: 0.0, mu: 0.1, damp_rate: 0.999 }
     config_driver: { kn: 1000, kt: 800, kr: 0.0, mu: 0.3, damp_rate: 0.999 }
  • gravity_force applies \(\mathbf{f} = m\,\mathbf{g}\), with \(\mathbf{g} = (0, 0, -9.807)\) by default.
  • contact_sphere applies the hooke contact law between spheres (config) and between spheres and drivers (config_driver).
Parameter Description
kn normal stiffness
kt tangential stiffness
kr rolling resistance stiffness
mu friction coefficient
damp_rate damping rate of the normal force

With polyhedra, the operator is contact_polyhedron. See Force Field for the other contact laws (Hertz, cohesion, DMT), multi-material parameters and external forces.