Elsevier Science Home
Computer Physics Communications Program Library
Full text online from Science Direct
Programs in Physics & Physical Chemistry
CPC Home

[Licence| Download | New Version Template] addl_v1_0.tar.gz(201 Kbytes)
Manuscript Title: TrapCAD: A program to model magnetic traps of charged particles.
Authors: J. Vamosi, S. Biri
Program title: TrapCAD
Catalogue identifier: ADDL_v1_0
Distribution format: tar.gz
Journal reference: Comput. Phys. Commun. 98(1996)215
Programming language: C.
Computer: IBM PC or compatible.
Operating system: MS-DOS 6.0.
RAM: 512K words
Keywords: Plasma physics, Magnetic confinement, Magnetic trap, Ion trap, Ecr, Ecris, Resonant zone, Microwave heating, Autocad.
Classification: 19.9.

Nature of problem:
TrapCAD computes the parameters of a charged particle magnetic trap in cylindrical and/or multipole geometry (that is usually used for several types of ion traps and ion sources) and visualizes the magnetic field line structure. Particle movement simulation inside the trap is also possible.

Solution method:
A 4th order Runge-Kutta method was used for the integration of the magnetic field line equation. The Lorentz force integration was implemented by a time-centered leapfrog scheme explicitly solving the motion equation. The time step is dynamically determined in both cases.

Running time:
The computing time is dependent on the type and clock rate of the CPU. Assuming a 486DX-33 processor the drawing of a field line takes less than a second, drawing and computing the parameters of the resonant zone takes less than a minute and an electron movement simulation for 100 ns takes some minutes.