Magnetic-field control of gas flow in a supersonic intake