Biot-Savart Field Calculator
Biot-Savart Field Calculator computes magnetic field from a current-carrying wire at a point, visualizing field magnitude for electromagnetism studies.
Formulas Used in Biot-Savart Field Calculator
The calculator uses the following formulas for a straight wire along the z-axis:
Biot-Savart Law:
\\[ d\mathbf{B} = \frac{\mu_0 I}{4\pi} \frac{d\mathbf{l} \times (\mathbf{r} – \mathbf{r}’)}{|\mathbf{r} – \mathbf{r}’|^3} \\]Magnetic Field Components:
\\[ B_x = -\frac{\mu_0 I y}{4\pi (x^2 + y^2)} \left[ \frac{z_2 – z}{\sqrt{x^2 + y^2 + (z_2 – z)^2}} – \frac{z_1 – z}{\sqrt{x^2 + y^2 + (z_1 – z)^2}} \right] \\] \\[ B_y = \frac{\mu_0 I x}{4\pi (x^2 + y^2)} \left[ \frac{z_2 – z}{\sqrt{x^2 + y^2 + (z_2 – z)^2}} – \frac{z_1 – z}{\sqrt{x^2 + y^2 + (z_1 – z)^2}} \right] \\] \\[ B_z = 0 \\]Magnetic Field Magnitude:
\\[ B = \sqrt{B_x^2 + B_y^2} \\]Where:
- \\( \mu_0 = 4\pi \times 10^{-7} \, \text{T·m/A} \\): Permeability of free space
- \\( I \\): Current (A)
- \\( z_1, z_2 \\): Wire endpoints (m)
- \\( (x, y, z) \\): Observation point (m)
- \\( B_x, B_y, B_z \\): Magnetic field components (T)
- \\( B \\): Magnetic field magnitude (T)
Example Calculations
Example 1: Standard Case
Input: Current = 10 A, z₁ = -0.1 m, z₂ = 0.1 m, x = 0.05 m, y = 0.05 m, z = 0 m
Result: B_x = -2.828e-5 T, B_y = 2.828e-5 T, B_z = 0 T, B = 4e-5 T
Example 2: Higher Current
Input: Current = 50 A, z₁ = -0.1 m, z₂ = 0.1 m, x = 0.05 m, y = 0.05 m, z = 0 m
Result: B_x = -1.414e-4 T, B_y = 1.414e-4 T, B_z = 0 T, B = 2e-4 T
Example 3: Closer Observation Point
Input: Current = 10 A, z₁ = -0.1 m, z₂ = 0.1 m, x = 0.01 m, y = 0.01 m, z = 0 m
Result: B_x = -1.96e-4 T, B_y = 1.96e-4 T, B_z = 0 T, B = 2.773e-4 T