2. Magnetic Flux Tool — Theory
Magnetic flux through a surface measures how much magnetic field “threads” that surface:
\[
\Phi_B=\int_S \mathbf{B}\cdot d\mathbf{A}
\]
Here, \(d\mathbf{A}=\hat{\mathbf{n}}\,dA\) is the directed area element (normal vector \(\hat{\mathbf{n}}\) times area).
If \(\mathbf{B}\) is uniform and makes an angle \(\theta\) with \(\hat{\mathbf{n}}\), then:
\[
\Phi_B = B\,A\cos\theta
\]
Units
- \(B\): tesla (T)
- \(A\): square meters (m\(^2\))
- \(\Phi_B\): weber (Wb), where \(1\,\mathrm{Wb}=1\,\mathrm{T\cdot m^2}\)
Uniform-field (closed form)
For a simple loop in a uniform field:
- Compute the surface area \(A\).
- Compute \(\cos\theta\) (make sure \(\theta\) is in radians if using trig directly).
- Multiply: \(\Phi_B=B\,A\cos\theta\).
Areas used in this tool
- Circle (radius \(R\)): \(\;A=\pi R^2\)
- Rectangle (width \(w\), height \(h\)): \(\;A=w\,h\)
Non-uniform field (numerical integration)
If the field magnitude varies over the surface, the tool approximates:
\[
\Phi_B \approx \sum_{i} \Big(B(x_i,y_i)\cos\theta\Big)\,\Delta A
\]
This is a grid-based numerical approximation over the chosen shape. Increasing the
resolution improves accuracy but may run slower.
Sign convention
Flux can be positive or negative depending on the chosen surface normal direction.
This tool uses the normal shown in the diagram. If \(\theta=0^\circ\), the field is aligned
with the normal and flux is positive; if \(\theta=180^\circ\), flux is negative.
Sample
\(B=0.4\,\mathrm{T}\), \(A=0.05\,\mathrm{m^2}\), perpendicular (\(\theta=0\)):
\[
\Phi_B = B\,A\cos 0 = 0.4 \cdot 0.05 \cdot 1 = 0.02\ \mathrm{Wb}
\]
Website tip
Flux lines are qualitative: more dense lines indicate larger \(|\Phi_B|\).
The “Play” animation illustrates “threading” through the surface.