An example synchrocyclotron includes the following: a voltage source to provide a radio frequency (RF) voltage to a cavity to accelerate particles from a particle source; a coil to receive a variable electrical current and to generate a magnetic field that is at least 4 Tesla to cause the particles to move orbitally within the cavity; and an extraction channel to receive the accelerated particles and to output the received particles from the cavity. The particles that are output from the cavity have an energy that is variable based at least on the variable electrical current applied to the coil.