Numerical modeling of frontal and basal accretion at collisional margins