Magnetic Line Integral (Part 3)

A thin, infinitely long wire passes through the origin and is perpendicular to the x y xy plane. The conductor carries a current I I . Define two points in the x y xy plane.

C = ( 1 , 0 ) D = ( 2 , 1 ) C = (1,0) \\ D = (2,1) Define the following line integral, in which the path is a straight line from C C to D D :

C D B d = γ μ 0 I \int_C^D \mathbf{B} \cdot d \mathbf{\ell} = \gamma \, \mu_0 \, I What is the absolute value of γ \gamma ?

Notes:
- The symbol ( ) (\cdot) denotes the vector dot product
- B \mathbf{B} denotes the vector magnetic flux density


The answer is 0.07379.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Steven Chase
Oct 28, 2019
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import math

N = 10**6

Cx = 1.0
Cy = 0.0

Dx = 2.0
Dy = 1.0

dx = (Dx - Cx)/N
dy = (Dy - Cy)/N

I = 1.0
u0 = 1.0

Sum = 0.0


#################################

x = Cx
y = Cy

for j in range(0,N):

    r = math.hypot(x,y)

    ux = x/r
    uy = y/r

    vx = -uy
    vy = ux

    Bmag = u0*I/(2.0*math.pi*r)

    Bx = Bmag * vx
    By = Bmag * vy

    Sum = Sum + Bx*dx + By*dy

    x = x + dx
    y = y + dy



#################################

print math.fabs(Sum)
# 0.0737918724877

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...