An efficient and adaptive approach for modeling gravity effects in spherical coordinates