1
00:00:00,060 --> 00:00:06,870
Welcome back to our cause now it's time to solve another interesting example, another interesting problem,

2
00:00:07,290 --> 00:00:12,780
and this is a very famous problem it's cold calculating the magnetic fields of a charged wire.

3
00:00:13,500 --> 00:00:20,190
So as you see here, we have a wire that is trade and the current flows from the negative to the positive

4
00:00:20,190 --> 00:00:25,560
C direction in this blue wire here and already very early in school.

5
00:00:25,890 --> 00:00:30,060
We are told that the magnetic field of such a wire looks like this.

6
00:00:30,270 --> 00:00:33,380
So basically, it circulates around the wire.

7
00:00:33,390 --> 00:00:39,060
And if you look in the current direction, so basically from the top to the bottom, then the magnetic

8
00:00:39,060 --> 00:00:42,840
field will rotate along the clockwise direction.

9
00:00:43,050 --> 00:00:45,630
If you look from the top, it's of course turn counterclockwise.

10
00:00:46,740 --> 00:00:52,680
So that's maybe a bit of a similar example as the sphere that we have calculated previously.

11
00:00:52,690 --> 00:00:57,750
So the volume of the sphere, because the volume of the sphere and also the magnetic field of such a

12
00:00:57,750 --> 00:01:02,010
wire of both phenomena that we learned very early in school.

13
00:01:02,490 --> 00:01:07,440
However, these phenomena are quite difficult to drive and to explain in detail.

14
00:01:08,010 --> 00:01:12,690
But now, since we know the integrals, we can finally do it and here's how we do it.

15
00:01:13,470 --> 00:01:16,980
We need the Maxwell equations of Magneto aesthetics.

16
00:01:17,850 --> 00:01:23,850
So if you haven't heard about the Maxwell equations or Magneto statics, it's not a big problem.

17
00:01:23,970 --> 00:01:26,760
We only need these two equations here.

18
00:01:26,970 --> 00:01:32,640
So basically an integral equation and then also an equation that he uses to curl.

19
00:01:33,090 --> 00:01:38,280
So this is something that we learned previously in the previous section about the derivatives.

20
00:01:39,660 --> 00:01:49,980
So using the Maxwell equations of Magneto statics in their integral form, one can calculate the vector

21
00:01:49,980 --> 00:01:53,400
potential of a so-called current density distribution.

22
00:01:53,940 --> 00:02:00,870
So this word current density distribution is basically just a fancy word for all the currents in our

23
00:02:00,870 --> 00:02:01,350
system.

24
00:02:01,740 --> 00:02:06,060
So in our case, we just have a single current on the z axis.

25
00:02:06,360 --> 00:02:13,260
So everyone on the z axis, we have a current and this wire here, it has a radius and it has an area.

26
00:02:13,260 --> 00:02:20,010
If we cut through it and the density is, then just the current divided by the area of the cross section.

27
00:02:21,060 --> 00:02:28,560
And this will then be our j of our where this j of R will be non-zero only on the z axis, only in the

28
00:02:28,560 --> 00:02:32,250
wire, and it will be zero everywhere else because there are no currents.

29
00:02:33,360 --> 00:02:38,520
And then from this we can basically integrate over this term here.

30
00:02:39,150 --> 00:02:40,860
So this is something that one can derive.

31
00:02:40,880 --> 00:02:45,960
We will not go into the details here, but this is the equation you can derive and you have to integrate

32
00:02:45,960 --> 00:02:50,970
over the current density distribution divided by this term.

33
00:02:50,980 --> 00:02:57,150
Where does the absolute value of art, which is the position at which we look currently, for example,

34
00:02:57,390 --> 00:03:02,460
we can take a point in space this one here and we want to calculate the magnetic field at this particular

35
00:03:02,460 --> 00:03:08,940
point, and we have to integrate over these terms and we integrate over DX v Dash.

36
00:03:09,120 --> 00:03:13,140
And this means basically a triple integral to X, Y and Z.

37
00:03:13,770 --> 00:03:20,700
And this dash here, our dash basically means we integrate of all the points in space.

38
00:03:21,270 --> 00:03:29,130
And since the current density distribution is zero everywhere except for the wire, we only have to

39
00:03:29,130 --> 00:03:31,330
integrate over the wire in this case.

40
00:03:31,950 --> 00:03:36,300
So the R dashes are basically all the points of the wire.

41
00:03:36,900 --> 00:03:40,830
So when you think about it, and integral is just something like a sum.

42
00:03:41,160 --> 00:03:48,420
So you sum up this Ah, dash this our dash this, this this and so on and so on until you have the whole

43
00:03:48,420 --> 00:03:49,020
integral.

44
00:03:50,280 --> 00:03:54,690
And then we will, of course, plot this vector potential and look at it.

45
00:03:55,110 --> 00:04:00,240
However, the vector potential is not a real physical quantity that we can use or that we can measure.

46
00:04:00,690 --> 00:04:06,540
What we can measure is the magnetic field, and for this we have to calculate and the curl of the vector

47
00:04:06,540 --> 00:04:07,080
potential.

48
00:04:07,980 --> 00:04:11,520
And as I said, there are many more details here to consider.

49
00:04:11,880 --> 00:04:16,110
And if you find this topic interesting, you can have a look at my other course.

50
00:04:16,440 --> 00:04:21,810
It's called electrodynamics based on the Maxwell equations that we will really derive this equation,

51
00:04:22,200 --> 00:04:26,130
and we will also solve this particular problem here analytically.

52
00:04:26,790 --> 00:04:31,140
However, this course, we will solve it numerically, and this is how we do it.

53
00:04:32,370 --> 00:04:35,250
First of all, we must, of course, run the cell here.

54
00:04:35,250 --> 00:04:38,130
We must import Nampai and probably for plotting.

55
00:04:38,520 --> 00:04:43,350
And then we will consider our host trade wire, which is this blue wire here.

56
00:04:44,250 --> 00:04:51,100
And to solve the problem analytically, we would have to use some approximations.

57
00:04:51,630 --> 00:04:56,940
So now we solve it numerically, so we don't need these approximations, but I still want to be very

58
00:04:56,940 --> 00:04:59,070
close to the limits where we can.

59
00:04:59,350 --> 00:05:04,810
Ladies approximation, so then we can compare the analytical solution with our numerical solution.

60
00:05:05,800 --> 00:05:08,260
So first of all, we have to define some three factors.

61
00:05:09,010 --> 00:05:10,900
I will not care about the numbers here.

62
00:05:10,900 --> 00:05:12,070
I just set them to one.

63
00:05:12,460 --> 00:05:18,970
And then we have to define the wire, so we need the the current density.

64
00:05:19,360 --> 00:05:25,450
So as I said, current density will only be non-zero in the wire and zero everywhere else.

65
00:05:25,930 --> 00:05:32,890
So the current density will have a value j0 here in the wire and it will be constant in this j0 is,

66
00:05:32,890 --> 00:05:33,940
in our case, one.

67
00:05:34,300 --> 00:05:38,980
And if you would use a unit, it would be something like unpair per square meter.

68
00:05:40,330 --> 00:05:47,740
Then the wire has, of course, a radius, which is the limits where we can solve it analytically has

69
00:05:47,740 --> 00:05:51,370
to be very, very small, so it must actually be infinitely thin.

70
00:05:51,790 --> 00:06:00,520
So we take a small number here one millimeter and the length of the wire would be infinitely large in

71
00:06:00,520 --> 00:06:02,470
the limit where we could solve it analytically.

72
00:06:02,740 --> 00:06:08,770
So we need a very long wire, and I've just taken here one kilometer, which is actually very, very

73
00:06:08,770 --> 00:06:09,010
long.

74
00:06:09,010 --> 00:06:12,040
But OK, let's deal with such a long wire.

75
00:06:12,940 --> 00:06:22,510
So actually, the way that I will program here is that the wire has a length starting from minus L0

76
00:06:22,840 --> 00:06:24,640
going to plus L0.

77
00:06:25,090 --> 00:06:27,460
So actually, the length is two kilometers here.

78
00:06:28,870 --> 00:06:37,330
However, we will only consider the X y plane because if the wire would be infinitely large, then all

79
00:06:37,330 --> 00:06:41,440
other planes would behave equally in our case, since we have a finite length.

80
00:06:42,250 --> 00:06:47,100
It would, of course, depend a bit on the Z coordinate, but if we would say OK, we consider really

81
00:06:47,110 --> 00:06:52,840
an infinitely large wire, then we only have to consider a single plane and every plane would look the

82
00:06:52,840 --> 00:06:53,140
same.

83
00:06:53,770 --> 00:06:56,080
So we consider here a to Z equals zero plane.

84
00:06:57,190 --> 00:07:02,890
And then this one I told you already we have a very thin wire, so it has a radius are zero.

85
00:07:02,900 --> 00:07:08,680
But basically the current density will be non-zero.

86
00:07:08,680 --> 00:07:14,260
Only four X equals zero and Y equals zero, which is exactly the z axis.

