You can change the radius or distance between two coil and set up a magnetic mirror field. The field can trapped charged particle between two coils