Interplay between magnetic pressure and ordinary gas pressure is important to magnetohydrodynamics and plasma physics. Magnetic pressure can also be used to propel projectiles ; this is the operating principle of a railgun.