# Flux tube

A flux tube is a generally tube-like (cylindrical) region of space containing a magnetic field, B, such that the cylindrical sides of the tube are everywhere parallel to the magnetic field lines. It is a graphical visual aid for visualizing a magnetic field. Since no magnetic flux passes through the sides of the tube, the flux through any cross section of the tube is equal, and the flux entering the tube at one end is equal to the flux leaving the tube at the other. Both the cross-sectional area of the tube and the magnetic field strength may vary along the length of the tube, but the magnetic flux inside is always constant.
As used in astrophysics, a flux tube generally means an area of space through which a strong magnetic field passes, in which the behavior of matter (usually ionized gas or plasma) is strongly influenced by the field. They are commonly found around stars, including the Sun, which has many flux tubes from tens to hundreds of kilometers in diameter. Sunspots are also associated with larger flux tubes of 2500 km diameter. Some planets also have flux tubes. A well-known example is the flux tube between Jupiter and its moon Io.

## Definition

The flux of a vector field passing through any closed orientable surface is the surface integral of the field over the surface. For example, for a vector field consisting of the velocity of a volume of liquid in motion, and an imaginary surface within the liquid, the flux is the volume of liquid passing through the surface per unit time.
A flux tube can be defined passing through any closed, orientable surface $S_{1}$ in a vector field $F$, as the set of all points on the field lines passing through the boundary of $S_{1}$. This set forms a hollow tube. The tube follows the field lines, possibly turning, twisting, and changing its cross sectional size and shape as the field lines converge or diverge. Since no field lines pass through the tube walls there is no flux through the walls of the tube, so all the field lines enter and leave through the end surfaces. Thus a flux tube divides all the field lines into two sets; those passing through the inside of the tube, and those outside. Consider the volume bounded by the tube and any two surfaces $S_{1}$ and $S_{2}$ intersecting it. If the field $F$ has sources or sinks within the tube the flux out of this volume will be nonzero. However, if the field is divergenceless (solenoidal, $\operatorname {div} F=0$) then from the divergence theorem the sum of the flux leaving the volume through these two surfaces will be zero, so the flux leaving through $S_{2}$ will be equal to the flux entering through $S_{1}$. In other words, the flux within the tube through any surface intersecting the tube is equal, the tube encloses a constant quantity of flux along its length. The strength (magnitude) of the vector field, and the cross sectional area of the tube varies along its length, but the surface integral of the field over any surface spanning the tube is equal.
Since from Maxwell's equations (specifically Gauss's law for magnetism) magnetic fields are divergenceless, magnetic flux tubes have this property, so flux tubes are mainly used as an aid in visualizing magnetic fields. However flux tubes can also be useful for visualizing other vector fields in regions of zero divergence, such as electric fields in regions where there are no charges and gravitational fields in regions where there is no mass.
In particle physics, the hadron particles that make up all matter, such as neutrons and protons, are composed of more basic particles called quarks, which are bound together by thin flux tubes of strong nuclear force field. The flux tube model is important in explaining the so-called color confinement mechanism, why quarks are never seen separately in particle experiments.

## Types

* Flux rope: Twisted magnetic flux tube.
* Fibril field: Magnetic flux tube that does not have a magnetic field outside the tube.

## History

In 1861, James Clerk Maxwell gave rise to the concept of a flux tube inspired by Michael Faraday's work in electrical and magnetic behavior in his paper titled "On Physical Lines of Force". Maxwell described flux tubes as:
   If upon any surface which cuts the lines of fluid motion we draw a closed curve, and if from every point of this curve we draw lines of motion, these lines of motion will generate a tubular surface which we may call a tube of fluid motion.

## Flux tube strength

The flux tube's strength, $F$, is defined to be the magnetic flux through a surface $S$ intersecting the tube, equal to the surface integral of the magnetic field $\mathbf {B} (\mathbf {x} )$ over $S$ $F=\int _{S}\mathbf {B} \cdot \mathbf {\hat {n}} \;dS$ Since the magnetic field is solenoidal, as defined in Maxwell's equations (specifically Gauss' law for magnetism): $\nabla \cdot \mathbf {B} =0$. the strength is constant at any surface along a flux tube. Under the condition that the cross-sectional area, $A$, of the flux tube is small enough that the magnetic field is approximately constant, $F$ can be approximated as $F\approx BA$. Therefore, if the cross sectional area of the tube decreases along the tube from $A_{1}$ to $A_{2}$, then the magnetic field strength must increase proportionally from $B_{1}$ to $B_{2}$ in order to satisfy the condition of constant flux F. ${\frac {B_{2}}{B_{1}}}={\frac {A_{1}}{A_{2}}}$

## Plasma physics
### Flux conservation

In magnetohydrodynamics, Alfvén's theorem states that the magnetic flux through a surface, such as the surface of a flux tube, moving along with a perfectly conducting fluid is conserved. In other words, the magnetic field is constrained to move with the fluid or is "frozen-in" to the fluid.
This can be shown mathematically for a flux tube using the induction equation of a perfectly conducting fluid ${\frac {\partial \mathbf {B} }{\partial t}}={\boldsymbol {\nabla }}\times (\mathbf {v} \times \mathbf {B} )$ where $\mathbf {B}$ is the magnetic field and $\mathbf {v}$ is the velocity field of the fluid. The change in magnetic flux over time through any open surface of the flux tube $\mathbf {S}$ enclosed by $C$ with a differential line element $d\mathbf {l}$ can be written as ${\frac {d\Phi _{B}}{dt}}=\int _{S}{\partial \mathbf {B} \over \partial t}\cdot d\mathbf {S} +\oint _{C}\mathbf {B} \cdot \mathbf {v} \times d\mathbf {l}$. Using the induction equation gives ${\frac {d\Phi _{B}}{dt}}=\int _{S}{\boldsymbol {\nabla }}\times (\mathbf {v} \times \mathbf {B} )\cdot d\mathbf {S} +\oint _{C}\mathbf {B} \cdot \mathbf {v} \times d\mathbf {l}$ which can be rewritten using Stokes' theorem and an elementary vector identity on the first and second term, respectively, to give $\int _{S}\mathbf {B} \cdot d\mathbf {S} ={\text{const}}.$

### Compression and extension

In ideal magnetohydrodynamics, if a cylindrical flux tube of length $L_{0}$ is compressed while the length of tube stays the same, the magnetic field and the density of the tube increase with the same proportionality. If a flux tube with a configuration of a magnetic field of $B_{0}$ and a plasma density of $\rho _{0}$ confined to the tube is compressed by a scalar value defined as $\lambda$, the new magnetic field and density are given by: $B={\frac {B_{0}}{\lambda ^{2}}}$ $\rho ={\frac {\rho _{0}}{\lambda ^{2}}}$ If $\lambda <1$, known as transverse compression, $B$ and $\rho$ increase and are scaled the same while transverse expansion decreases $B$ and $\rho$ by the same value and proportion where $B/\rho$ is constant.
Extending the length of the flux tube by $\lambda ^{*}$ gives a new length of $L=\lambda ^{*}L_{0}$ while the density of the tube remains the same, $\rho _{0}$, which then results in the magnetic field strength increasing by $\lambda ^{*}B_{0}$. Reducing the length of the tubes results in a decrease of the magnetic field's strength.

### Plasma pressure

In magnetohydrostatic equilibrium, the following condition is met for the equation of motion of the plasma confined to the flux tube: $0=-\nabla p+j\times B-\rho g$ where
* $p$ is the plasma pressure
* $j$ is the current density of the plasma
* $\rho g$ is the gravitational force
With the magnetohydrostatic equilibrium condition met, a cylindrical flux tube's plasma pressure of $p(R)$ is given by the following relation written in cylindrical coordinates with $R$ as the distance from the axis radially: $0={\frac {dp}{dR}}+{\frac {d}{dR}}\left({\frac {B_{\phi }^{2}+B_{z}^{2}}{2\mu }}\right)+{\frac {B_{\phi }^{2}}{\mu R}}$ The second term in the above equation gives the magnetic pressure force while the third term represents the magnetic tension force. The field line's twist around the axis from one end of the tube of length $L$ to the other end is given by: $\Phi (R)={\frac {LB_{\phi }(R)}{RB_{z}(R)}}$

## Examples
### Solar

Examples of solar flux tubes include sunspots and intense magnetic tubes in the photosphere and the field around the solar prominence and coronal loops in the corona.
Sunspots occur when small flux tubes combine into a large flux tube that breaks the surface of the photosphere. The large flux tube of the sunspot has a field intensity of around 3 kG with a diameter of typically 4000 km. There are extreme cases of when the large flux tubes have diameters of $6\times 10^{4}$ km with a field strength of 3 kG. Sunspots can continue to grow as long as there is a constant supply of new flux from small flux tubes on the surface of the Sun. The magnetic field within the flux tube can be compressed by decreasing the gas pressure inside and therefore the internal temperature of the tube while maintaining a constant pressure outside.
Intense magnetic tubes are isolated flux tubes that have diameters of 100 to 300 km with an overall field strength of 1 to 2 kG and a flux of around $3\times 10^{9}$Wb. These flux tubes are concentrated strong magnetic fields that are found between solar granules. The magnetic field causes the plasma pressure in the flux tube to decrease, known as the plasma density depletion region. If there is a significant difference in the temperatures in the flux tube and the surroundings, there is a decrease in plasma pressure as well as a decrease in the plasma density causing some of the magnetic field to escape the plasma.
Plasma that is trapped within magnetic flux tubes that are attached to the photosphere, referred to as footpoints, create a loop-like structure known as a coronal loop. The plasma inside the loop has a higher temperature than the surroundings causing the pressure and density of the plasma to increase. These coronal loops get their characteristic high luminosity and ranges of shapes from the behavior of the magnetic flux tube. These flux tubes confine plasma and are characterized as isolated. The confined magnetic field strength varies from 0.1 to 10 G with diameters ranging from 200 to 300 km.
The result of emerging twisted flux tubes from the interior of the Sun cause twisted magnetic structures in the corona, which then lead to solar prominences. Solar prominences are modeled using twisted magnetic flux tubes known as flux ropes.

### Planetary

Magnetized planets have an area above their ionospheres which traps energetic particles and plasma along magnetic fields, referred to as magnetospheres. The extension of the magnetosphere away from the sun known as a magnetotail is modeled as magnetic flux tubes. Mars and Venus both have strong magnetic fields resulting in flux tubes from the solar wind gathering at high altitudes of the ionosphere on the sun side of the planets and causing the flux tubes to distort along the magnetic field lines creating flux ropes. Particles from the solar wind magnetic field lines can transfer to the magnetic field lines of a planet's magnetosphere through the processes of magnetic reconnection that occurs when a flux tube from the solar wind and a flux tube from the magnetosphere in opposite field directions get close to one another.
Flux tubes that occur from magnetic reconnection forms into a dipole-like configuration around the planet where plasma flow occurs. An example of this case is the flux tube between Jupiter and its moon Io approximately 450 km in diameter at the points closest to Jupiter.