A model of the magnetopause using an angular distribution function for the incident particles