Numerical Methods

Outline

Introduction

Linear
Equations

Interpolation

Numerical
Solutions

Computer
Measurement

      

Magnetic deflection of an electron beam

A magnetic field placed perpendicular to the velocity of electrons in an electron beam will bend the electrons in a direction that is perpendicular to both the velocity and the magnetic field. In the diagram below, electrons are accelerated through a voltage $V_x$ towards a positively charged plate. Some of the electrons pass through a small hole in the plate and form and electron beam that travels to a circular region where a magnetic field is generated by a solenoid. The Lorentz force deflects the electrons and they follow a circular path in the magnetic field. The beam then travels further and strikes a screen that is 15 cm to the right of the center of the solenoid.

In the simulation below, the electrons are accelerated from rest to the positively charged plate in a distance of 5 cm. The center of the solenoid is 10 cm to the right of the plate and the screen is 15 cm to the right of the center of the solenoid. The radius of the solenoid is 3 cm. A positive current through the solenoid results in a magnetic field in the positive $z$ direction. The acceleration voltage, the current through the solenoid, and the number of windings per meter of the solenoid can be adjusted. When the sliders are adjusted, the resulting forces are passed to a sixth-order differential equation solver which calculates the electron trajectory.

 

  

$V_x=$ 5000 [V]

$I=$ 1 [A]

$n=$ 2000 [turns/m]

 

$B=$  T

 Numerical 6th order differential equation solver 

$ \large \frac{dx}{dt}=$

$v_x$

$ \large \frac{dv_x}{dt}=$

$ \large \frac{dy}{dt}=$

$v_y$

$ \large \frac{dv_y}{dt}=$

$ \large \frac{dz}{dt}=$

$v_z$

$ \large \frac{dv_z}{dt}=$

Initial conditions:

$t_0=$

$\Delta t=$

$x(t_0)=$

$N_{steps}$

$v_x(t_0)=$

Plot:

vs.

$y(t_0)=$

$v_y(t_0)=$

$z(t_0)=$

$v_z(t_0)=$

 $t$   $x$   $v_x$   $y$   $v_y$   $z$   $v_z$