Flux pinning is a phenomenon that occurs when flux vortices in a type-II superconductor are prevented from moving within the bulk of the superconductor, so that the magnetic field lines are "pinned" to those locations. The superconductor must be a type-II superconductor because type-I superconductors cannot be penetrated by magnetic fields. Some type-I superconductors can experience the effects of flux pinning if they are thin enough. If the material's thickness is comparable to the London penetration depth, the magnetic field can pass through the material. The act of magnetic penetration is what makes flux pinning possible. At higher magnetic fields the superconductor allows magnetic flux to enter in quantized packets surrounded by a superconducting current vortex. These sites of penetration are known as flux tubes. The number of flux tubes per unit area is proportional to the magnetic field with a constant of proportionality equal to the magnetic flux quantum. On a simple 76 millimeter diameter, 1-micrometer thick disk, next to a magnetic field of 28 kA/m, there are approximately 100 billion flux tubes that hold 70,000 times the superconductor's weight. At lower temperatures the flux tubes are pinned in place and cannot move. This pinning is what holds the superconductor in place thereby allowing it to levitate. This phenomenon is closely related to the Meissner effect, though with one crucial difference — the Meissner effect shields the superconductor from all magnetic fields causing repulsion, unlike the pinned state of the superconductor disk which pins flux, and the superconductor in place.
Flux Pinning: Flux Tube diagram
In superconductivity, a type-II superconductor is a superconductor that exhibits an intermediate phase of mixed ordinary and superconducting properties at intermediate temperature and fields above the superconducting phases.
It also features the formation of magnetic field vortices with an applied external magnetic field.
This occurs above a certain critical field strength Hc1. The vortex density increases with increasing field strength. At a higher critical field Hc2, superconductivity is destroyed. Type-II superconductors do not exhibit a complete Meissner effect.
Quantum vortices in a 200-nm-thick YBCO film imaged by scanning SQUID microscopy