gravity function

Gravity model