Please check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=182.0]Helmholtz coil / particle trapped in magnetic mirror field[/url]