A tokamak is a device which uses a powerful magnetic field generated by external magnets to confine plasma in the shape of an axially symmetrical torus.