Macroscale modeling and mesoscale observations of plasma density structures in the polar cap