Particle Accelerator Lab teaching notes

For middle and high school science and computer science teachers. These notes cover a first period, the levels, the misconceptions the app is built to confront, and what it leaves out.

Using this with a class? Make a free class and add your students yourself: each gets a username and password, with no email or Google account needed. Or give them one join code. Using Google Classroom? Post the link there; with a free class, the link also puts each student in your class, so you see their work. mytekDev is also available from the Google Workspace Marketplace, so your school's Google admin can install it for everyone.A first lesson: Open it on the projector at Level 1 and press play. The starter sets every bending magnet to 1.0 tesla, and the beam is lost in the first magnet, swinging out into the pipe's wall. Ask what would make it turn more. The card gives the sum, field = angle x rigidity / length: 0.3927 x 3.336 / 1, about 1.31 tesla. Change the number and play again: the beam goes round 10 times.

Set up a free class Share to Google Classroom
Put this on your class site

Students can use Particle Accelerator Lab right on your page, with no account. What they make stays on that page; to keep their work, they make a free account.

Google Sites: Insert, then Embed, then By URL, and paste this address.

https://mytekdev.com/try/particleacceleratorlab?embed=1

Canvas, a blog, or any page that takes HTML: paste this code where you edit the page as HTML.

<iframe src="https://mytekdev.com/try/particleacceleratorlab?embed=1" width="100%" height="640" style="border:0" allow="fullscreen" title="Particle Accelerator Lab demo from mytekDev"></iframe>

About these notes

Particle Accelerator Lab is a small proton ring, programmed in Blocks or Python. The ring is 64 meters round, with 16 bending magnets 1 meter long, 8 focusing magnets of each kind, one copper cavity and a pipe 30 mm each way from the middle. The injector sends protons with 1 GeV/c of momentum, 433 MeV of energy of motion, at 0.73 of light's speed. A run is a bunch of 12 protons, and the program sets the magnets before they go in and as they go round.

Levels 1 to 9 are open, and each saves its best run. Levels 1 to 3 use a wider test pipe, 50 mm, so a field rounded to two places works; Level 4 on uses the real 30 mm one. Level 6 is a different machine, a tabletop cyclotron like the 1931 one. The levels after them in the Levels menu, an electron ring, a medical synchrotron and a collider, open in later versions. Build a ring and the machine sheet are in the Machine and File menus.

Every run uses the same bunch, so a program gives the same numbers every time and on every computer. Help, Same on every computer? shows a check number to compare between machines.

A first period

Levels 1 to 3 fit a period, with time to talk about why a magnet never speeds the beam up.

  1. Run the starter (10 minutes) Open Level 1 and press the round play button or the space bar. The starter sets every bending magnet to 1.0 tesla, and the beam is lost in the first one, swinging out into the wall. Ask which way it went and what would turn it more.
  2. Work out the field (10 minutes) Each magnet must turn the beam one sixteenth of a circle, 0.3927 radians. The field it needs is that angle times the beam's rigidity, 3.336 tesla meters, over the magnet's length, 1 meter: about 1.31 tesla. Set it and play again: 10 turns. Try 1.30 too: lost after 3 magnets, 0.8% too weak.
  3. Push it (10 minutes) Level 2: turn the cavity on for 10 turns at 100 kilovolts, then off. The card says the speed changed at the cavity 10 times and in a bending magnet never. Ask why a magnet cannot speed a particle up.
  4. Focus it (15 minutes) Level 3: with only the bending magnets set, the beam drifts up into the pipe. Set the QD focusing magnets to minus 2.965: one kind squeezes across, the other up and down, and together they hold it for 100 turns.

The levels

Each level opens with one idea and a card that says what to do. A lost beam's card says where, which way and what to change; a finished level's card gives the numbers and what real machines do.

LevelThe jobWhat it is built to show
1. Bend it roundSend the beam round 10 timesField = angle x rigidity / length: 1.31 tesla closes the ring; 1.30 is lost after 3 magnets
2. Steer, don't pushSpeed the beam up half an MeVOnly the cavity changes the speed: +1.000 MeV in 10 turns, 0 of 480 magnet passes
3. Focus or lose itHold the beam for 100 turnsAlternating focusing holds both ways; one kind alone loses it up and down
4. Not a whole number300 turns in the real pipe with one magnet 0.1% strongAt tune 0.99 the error adds up and the beam is lost on turn 6; at 1.17 it holds
5. Fix the orbitEvery monitor within 2 mmOne magnet 4 mm out of line runs the orbit 8.4 mm off; a scan of corrector C4 from noisy readings finds about 0.9
6. Spiral outSpiral protons to the cyclotron's edgeThe voltage must go back and forth 12.5 million times a second in 0.82 tesla; protons leave with about 80 keV in 20 turns
7. Ride the wave300 turns with the cavity on and the bunch togetherOn the wave's rising side the bunch holds; at the top it is pushed out of the ring; on the falling side it spreads
8. Ramp itSpeed the beam up 50 MeVRaising the field every turn from the rigidity: 483 MeV in 237 turns, the field 1.310 to 1.398 tesla
9. The speed limitDouble the energy of motionRaise the focusing too: 433 to 866 MeV for only 17% more speed, 0.729 to 0.854 of light's

What students get wrong, and where the app answers it

What students thinkWhere the app answers it
Magnets speed the beam upLevel 2: the speed changes at the cavity every time and in a bending magnet never, 0 of 480 passes. A magnetic force is sideways to the motion.
Close enough is good enoughLevel 1: 1.30 tesla, 0.8% too weak, is lost after 3 magnets. Real ring magnets are set to about one part in ten thousand.
One kind of focusing magnet holds a beamLevel 3: a magnet that squeezes across spreads up and down. Only alternating the two holds it both ways.
More push is always betterLevel 7: timed at the top of the wave, every pass pushes hardest, and the beam outgrows the fixed magnets and hits the wall.
More energy means proportionally more speedLevel 9: doubling the energy of motion adds only 17% to the speed. Near light's speed the energy goes into momentum.
A ring is big because the particles are fastBuild a ring: a stiffer beam needs a stronger field for the same bend, and past about 2 tesla iron magnets cannot give it, so the ring has to grow (or the magnets need supercooled coils).
You can see a particle beamEvery level: the glowing line is a drawing, and the stage says so. A proton beam in a vacuum pipe gives off almost no light.

What the app simplifies, on purpose

Setting it up for a class

No setup is needed. With free accounts, each student's levels, best runs, program and any ring built save as one project, with a picture of the hall. Typed words in a shared project, its name and the program, pass the platform's filter.

Faster and Slower change only how fast the beam is shown; the turns and the numbers do not change. A real proton goes round this ring in about 0.29 millionths of a second, and the speed box says so. The camera button switches between the view from above, a ride with the beam and the control desk. How it works, in the Help menu, covers every idea and every program call.

File, Machine sheet prints one page: the ring from above, the last run, the magnets, the levels and the program. It works as an exit ticket or for a portfolio.

Standards

Levels 1 to 3 need only setting numbers. Levels 4 to 9 add loops and variables and fit high school physics, engineering and programming classes.

More help

Is something on this page wrong or not clear? Write to us.

Page last reviewed December 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.