next up previous
Next: The Analytical Solution Up: A Uniform Field Previous: A Uniform Field

Units

Note firstly that there are only 2 independent constants in the problem, $qB/m$ and $\gamma/m$, and that these constants have the units of inverse time; in fact the former is the cyclotron frequency and the latter is a damping rate. In general in any programming problem it pays to think carefully about the units to be used in the program. There are several reasons for this. In general you should look for the natural units of a problem and write your program appropriately. Note that these will generally not be SI or cgs. In the problem we are considering here there are 2 natural time scales, $m/qB$ and $m/\gamma$. If we decide to work in one of these, e.g. the cyclotron period $m/qB$, we can rewrite (1.43) in the simpler form
$\displaystyle {\d v_x\over \d t'}$ $\textstyle =$ $\displaystyle +v_y
- \left\vert\gamma\over qB\right\vert v_x$ (1.44)
$\displaystyle {\d v_y\over \d t'}$ $\textstyle =$ $\displaystyle -v_x
- \left\vert\gamma\over qB\right\vert v_y$ (1.45)

or perhaps
$\displaystyle {\d v_x\over \d t'}$ $\textstyle =$ $\displaystyle -v_y
- \left\vert\gamma\over qB\right\vert v_x$ (1.46)
$\displaystyle {\d v_y\over \d t'}$ $\textstyle =$ $\displaystyle +v_x
- \left\vert\gamma\over qB\right\vert v_y$ (1.47)

depending on the sign of $qB/m$. Here $ t = t' \vert m/qB\vert$ and we have chosen our coordinate system such that the magnetic field, $\bi{B}$, is in the $z$-direction. Note, in addition, that choosing the units appropriately has eliminated all but one of the constants from the problem. This cuts down on superfluous arithmetic in the program.
next up previous
Next: The Analytical Solution Up: A Uniform Field Previous: A Uniform Field