Defining the current vector in the biot savart law?

Click For Summary
SUMMARY

The discussion centers on the application of the Biot-Savart Law to calculate the magnetic field generated by a current loop using MATLAB. The user has successfully computed the integral components I*dl and R/R^2 but encounters issues when performing the cross product, leading to a magnetic field value of zero outside the current loop. It is clarified that the Biot-Savart Law is applicable only along the wire, and the user must ensure that the current vector is correctly defined in the MATLAB matrix to avoid erroneous zero values in the cross product calculation.

PREREQUISITES
  • Understanding of the Biot-Savart Law and its mathematical formulation
  • Proficiency in MATLAB for matrix operations and vector calculations
  • Knowledge of vector cross products and their physical significance in electromagnetism
  • Familiarity with magnetic field concepts and current loops
NEXT STEPS
  • Review the implementation of the Biot-Savart Law in MATLAB for accurate magnetic field calculations
  • Learn about vector operations in MATLAB, specifically focusing on cross products
  • Explore the physical implications of magnetic fields generated by current loops
  • Investigate the behavior of magnetic fields at various distances from current-carrying wires
USEFUL FOR

Physics students, electrical engineers, and anyone involved in computational electromagnetism who seeks to understand the application of the Biot-Savart Law in practical scenarios.

arronslacey
Messages
8
Reaction score
0
I am trying to use the biot savart law to calculate the magnetic field of a given object. I have got to the stage where I have calculated I*dl and R/R^2 separately (doing this in matlab. The problem is where I come to the cross product. If I have a uniform current, the values of the current vector would be zero where there is no cable. i.e. if I have a current loop of uniform current = 1, anywhere outside or inside the current loop, the value of I*dl = 0 right? So if this is correct, when I take the cross product of I*dl and R/R^2, I will be crossing a vector of value 0, with the R/R^2 in places outisde of the loop, which leads to a value of 0. Although, the magnetic field due to the current is only 0 is the distance goes to infinity, so I cannot have a space in the vicinity of the wire with magnetic field = 0. What am I not understanding here?
 
Physics news on Phys.org
hi arronslacey! :wink:

the biot-savart law is B = (µo/4π) ∫ (I dl x r^)/r2

it gives the magnetic field induced by a current I flowing along a wire with line lement dl

you only use it along the wire! :smile:
 
HI Tim, thanks for you reply. I see that you only use the current on the actual wire. I'll try to explain a bit further. I am doing this in matlab, so each variable in the equation is in the form of a matrix. I have a picture of a circle which I am trying to super impose a magnetic field on. So the variables might look like:

I = 0 0 0 0 0 0
0 0 1 1 0 0
0 1 0 0 1 0
0 0 1 1 0 0
0 0 0 0 0 0

dL = 0 0 0 0 0 0
0 0 -0.05 0.05 0 0
0 -0.05 0 0 0.05 0
0 0 -0.05 0.05 0 0
0 0 0 0 0 0

where I need to cross dL with R = Rs/Rxs.^2. Doing a cross product will take element (1,1) of dL and cross it with element R(1,1), which would give me 0. This should not be the case! so either my logic is wrong here, or I am using the wrong variables in the cross product.
 
(isn't I just a number? :confused:)

r is the position vector from the element dl to the fixed point that you're measuring B at
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
1K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
10
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
2K