1
00:00:00,420 --> 00:00:06,790
So I come back, we have now proven that our algorithm, the Monte Carlo method, really works.

2
00:00:06,870 --> 00:00:15,150
We start from a randomly generated chaos of magnetic moments that are oriented along random orientations.

3
00:00:15,510 --> 00:00:22,620
And then after just taking one after another and randomly reorienting them and then accepting the change

4
00:00:22,620 --> 00:00:28,530
or not accepting the change, we can turn this into a nice ordered Ferrer magnet.

5
00:00:29,400 --> 00:00:37,590
So, of course, so far, the result was pretty much trivial, and we have just tested our method if

6
00:00:37,590 --> 00:00:38,850
it really, really works.

7
00:00:39,660 --> 00:00:46,560
So the thing is, our energy term is still pretty simple, and in reality, there are many, many more

8
00:00:46,560 --> 00:00:47,320
terms here.

9
00:00:47,700 --> 00:00:55,350
And as our troops and dipole dipole interactions that all lead to interesting phenomena and especially

10
00:00:55,350 --> 00:01:02,160
a hot topic in today's research and physics are non linear spin textures like domain volts, for example.

11
00:01:02,910 --> 00:01:06,060
And here I want to show you how you can generate those.

12
00:01:06,900 --> 00:01:11,370
So these are often induced by the so-called Lashinsky Maria into action.

13
00:01:11,370 --> 00:01:16,710
Or you could also call it as a metric exchange interact.

14
00:01:17,550 --> 00:01:20,220
And this corresponds to the last term here.

15
00:01:20,970 --> 00:01:27,210
And you see, this is such a triple product out of some vecteur de IGY and then the two neighboring

16
00:01:27,210 --> 00:01:28,470
vectors I and J.

17
00:01:28,980 --> 00:01:34,890
So it's a bit similar to the exchange interaction, but it does not favor parallel orientations.

18
00:01:34,890 --> 00:01:39,660
But due to the cross product here, it favors perpendicular orientations.

19
00:01:40,500 --> 00:01:43,710
So you see there is some kind of fight between this term and this term.

20
00:01:44,370 --> 00:01:49,920
We have here a parallel orientation that is favourite, and here we have a perpendicular orientation

21
00:01:49,920 --> 00:01:50,700
that is favored.

22
00:01:50,700 --> 00:01:57,210
And you can imagine that this can give rise to some interesting phenomena like nonlinear spin textures

23
00:01:58,380 --> 00:02:00,300
and these defectors.

24
00:02:00,960 --> 00:02:06,180
They are, of course, a bit difficult to explain now in this cause, and this is not really what this

25
00:02:06,180 --> 00:02:06,990
course is about.

26
00:02:06,990 --> 00:02:12,810
I will just tell you that these vectors are determined basically by the symmetry of the sample or more

27
00:02:12,810 --> 00:02:16,050
precisely by a broken inversion symmetry.

28
00:02:16,140 --> 00:02:17,430
So it sounds difficult.

29
00:02:17,430 --> 00:02:23,400
But for example, if you take two materials and put them on top of each other, then you have some broken

30
00:02:23,400 --> 00:02:24,540
inversion symmetry.

31
00:02:24,870 --> 00:02:29,150
And then at the interface of these two layers, you will have these challenges.

32
00:02:29,150 --> 00:02:30,510
Shinseki, Maria Vectors De.

33
00:02:31,920 --> 00:02:38,520
And in our example, we will consider a pretty simple case where these de I.J will always point along

34
00:02:38,520 --> 00:02:41,520
the bond direction connecting two of these atoms.

35
00:02:42,390 --> 00:02:49,020
So for example, if we consider these two, then the bond will go from here to here so that the I.J

36
00:02:49,020 --> 00:02:51,270
will be pointing along this direction.

37
00:02:51,630 --> 00:02:53,670
So, for example, we could call it the X direction.

38
00:02:55,200 --> 00:03:02,820
And so as we see here, we only have x minus x y minus Y.

39
00:03:03,600 --> 00:03:06,840
So we only must consider the terms we must calculate.

40
00:03:06,840 --> 00:03:13,140
The terms were the points along the X direction or along the Y direction.

41
00:03:14,160 --> 00:03:20,970
So here it is, gives us a term D and then unit vector along X times this and unit vector along y times

42
00:03:20,970 --> 00:03:21,270
this.

43
00:03:22,020 --> 00:03:26,410
And if you calculate the cross product, then you will end up with such a term.

44
00:03:26,490 --> 00:03:31,170
This is what we have to implement now in our new energy function.

45
00:03:32,640 --> 00:03:40,500
So since it's pretty similar to the exchange, I will copy this one here and actually let me switch

46
00:03:40,500 --> 00:03:46,560
off the magnetic field for now because we will now focus not on the magnetic fields, but on the DMI.

47
00:03:47,940 --> 00:03:53,280
So I call this energy DMI and energy DMI contribution.

48
00:03:54,570 --> 00:03:57,150
And here we call energy DMI my contribution.

49
00:03:57,840 --> 00:04:00,750
And now here we must just call the results.

50
00:04:01,710 --> 00:04:04,140
So since it's a bit difficult, I will write.

51
00:04:04,710 --> 00:04:16,920
The result is 0.5 times the times and then the neighbors right plus left plus up plus down.

52
00:04:17,850 --> 00:04:19,829
And we will now specify, right?

53
00:04:21,829 --> 00:04:22,310
Left.

54
00:04:23,750 --> 00:04:25,580
Up and down.

55
00:04:26,720 --> 00:04:32,840
And of course, we must also specify the strength, which we could say is 0.3.

56
00:04:33,070 --> 00:04:36,290
So typically, it's very, very small, much smaller than James.

57
00:04:36,290 --> 00:04:40,910
So in is one than this is probably something like zero zero something.

58
00:04:41,420 --> 00:04:47,090
But yeah, let's just consider a bit of a larger value here so that we see something in our result.

59
00:04:48,350 --> 00:04:51,710
So now for the individual neighbors here.

60
00:04:52,040 --> 00:04:59,300
So basically, we start from one moment am I and then consider all the foreign neighbors?

61
00:04:59,900 --> 00:05:05,180
So we have now four terms here and the term with the right neighbors.

62
00:05:05,180 --> 00:05:15,170
So we could say along the positive x direction would be magnetization and then x y zero.

63
00:05:16,880 --> 00:05:21,830
And then we have here the Y coordinate.

64
00:05:22,490 --> 00:05:29,420
So this would be index one times the neighbor and the Z component.

65
00:05:29,750 --> 00:05:30,860
So I copy this.

66
00:05:31,430 --> 00:05:32,990
Take the neighbor to the right.

67
00:05:33,650 --> 00:05:38,270
So here plus one and the z component to.

68
00:05:39,740 --> 00:05:42,230
And then we subtract the other term.

69
00:05:43,010 --> 00:05:48,320
So basically, I take this one and just right here, two comma one.

70
00:05:49,550 --> 00:05:56,660
So no one thing that we learned here for the exchange interaction was we need this modulo with the length

71
00:05:56,900 --> 00:05:59,990
so that we don't run into problems with the indices.

72
00:06:00,920 --> 00:06:05,540
So whenever we have X plus one or X minus one, I write modulo length.

73
00:06:06,830 --> 00:06:09,290
And so this is already our first term.

74
00:06:10,910 --> 00:06:15,440
Now, along the left direction, it's pretty similar.

75
00:06:15,440 --> 00:06:18,500
We have here just x minus one and X minus one.

76
00:06:18,920 --> 00:06:27,380
And now the sign is reversed because the vector node doesn't point from here to here, but from here

77
00:06:27,380 --> 00:06:27,950
to here.

78
00:06:28,370 --> 00:06:32,360
So and since the vector should always point along to bond, it's now opposite.

79
00:06:33,230 --> 00:06:36,590
And so this means we have to change the sign here minus.

80
00:06:38,210 --> 00:06:38,750
And plus.

81
00:06:40,420 --> 00:06:42,510
And now we only need the other one.

82
00:06:42,610 --> 00:06:54,190
So this one we have this time we have magnetization the Z component x y zero times magnetization x component.

83
00:06:54,190 --> 00:06:55,330
So does this zero.

84
00:06:55,870 --> 00:06:58,360
And then along the Y direction.

85
00:06:58,360 --> 00:07:10,000
So this would be y plus one modulo rulings and then minus with the reversed components.

86
00:07:10,030 --> 00:07:19,660
So zero and two and then the down direction was exactly the same, just with the reversed signs.

87
00:07:20,710 --> 00:07:24,310
And of course, not two plus one, but minus one.

88
00:07:25,900 --> 00:07:26,950
OK, and that's it.

89
00:07:27,280 --> 00:07:27,700
Does.

90
00:07:27,820 --> 00:07:29,200
Those are the four neighbors.

91
00:07:29,200 --> 00:07:37,060
We add them up, multiply them by D and zero point five as in the formula here and now, we must just

92
00:07:37,060 --> 00:07:43,890
include this in yeah, in the step exchange.

93
00:07:44,620 --> 00:07:46,750
No notice to exchange, but the step T.

94
00:07:47,530 --> 00:07:49,570
So here I already wrote of day three.

95
00:07:49,570 --> 00:07:56,290
We include the energy corresponding to the geologists De Maria into action, so it would be here.

96
00:07:56,830 --> 00:08:01,180
And since this considers neighbors, we need to factor two this time again.

97
00:08:01,360 --> 00:08:07,780
So energy, DMI contribution and here as well.

98
00:08:10,840 --> 00:08:12,280
OK, that looks good.

99
00:08:13,210 --> 00:08:18,230
And here we don't really need to change much.

100
00:08:18,250 --> 00:08:23,250
Just update two and three at interaction with magnetic fields and DMI.

101
00:08:24,700 --> 00:08:30,340
And I noticed one thing that I missed actually previously, but it didn't really matter because it's

102
00:08:30,340 --> 00:08:31,990
just optional just for tracking.

103
00:08:32,440 --> 00:08:34,270
I didn't update here the energy.

104
00:08:35,020 --> 00:08:36,850
So of course, here I must write

105
00:08:40,030 --> 00:08:47,710
that this is energy exchange, energy, magnetic.

106
00:08:47,720 --> 00:08:53,230
This is what I missed previously, but it didn't matter because we never used this energy list for anything.

107
00:08:53,680 --> 00:08:59,410
We only need the energy change in this one I updated and energy the my.

108
00:09:01,630 --> 00:09:02,230
All right.

109
00:09:03,220 --> 00:09:10,390
So I think I will play now a bit with the parametres and show you then a good solution, so see you

110
00:09:10,390 --> 00:09:10,990
in a second.

111
00:09:11,110 --> 00:09:14,110
So it turns out the first result already was very good.

112
00:09:14,200 --> 00:09:20,260
So I left the step number at five million and I left the devalue at zero point three.

113
00:09:20,800 --> 00:09:21,760
And this is what we got.

114
00:09:22,570 --> 00:09:25,330
So we get a so-called spin spiral.

115
00:09:25,900 --> 00:09:32,860
So it's a spin or two magnetic moment really spirals once around a circle when you go from left to right.

116
00:09:33,370 --> 00:09:37,840
And this is a typical signature of the so-called gelatin scheme area interaction.

117
00:09:38,770 --> 00:09:42,240
So in total, the magnetization is zero here.

118
00:09:42,250 --> 00:09:45,940
So if you add up all of the arrows, they would compensate and would give zero.

119
00:09:46,750 --> 00:09:50,170
But still, you have some order in your system.

120
00:09:50,170 --> 00:09:57,160
So it's nothing compared to the chaotic starting configuration.

121
00:09:57,160 --> 00:09:58,630
It's really well ordered.

122
00:09:59,260 --> 00:10:04,300
But it's the so-called spin spiral where you have this compensated magnetization in total.

123
00:10:05,620 --> 00:10:06,070
All right.

124
00:10:06,080 --> 00:10:09,310
So this was really all I wanted to show you.

125
00:10:09,340 --> 00:10:10,870
This is once again the energy.

126
00:10:11,290 --> 00:10:19,930
And really, we have shown that you can include several more energy terms here.

127
00:10:19,930 --> 00:10:25,990
We have no exchange interaction, interaction with magnetic fields, DMI and now you could go ahead

128
00:10:25,990 --> 00:10:29,800
and add more and more terms to make the system more and more realistic.

129
00:10:30,400 --> 00:10:33,340
And you could also change these parameters, for example, J.

130
00:10:33,470 --> 00:10:40,450
D, to really resemble actual physical samples and materials.

131
00:10:40,960 --> 00:10:48,190
And for example, there exist different materials that have different ratios of DOJ constants that give

132
00:10:48,190 --> 00:10:51,670
different lengths of these periods of these spin spirals.

133
00:10:52,660 --> 00:10:59,350
What you can also do is experiment with the step, size and experiment with the change of the temperature.

134
00:10:59,800 --> 00:11:06,760
And you could, of course, also increase the sample size by increasing the value of length.

135
00:11:07,270 --> 00:11:14,080
But this will then lead to new problems because then it will take more steps to converge because you

136
00:11:14,080 --> 00:11:19,180
have the more moments and then you would have to simulate for even a longer time.

137
00:11:19,990 --> 00:11:26,560
So the whole purpose here was to show you how you can implement a Monte Carlo method and of course,

138
00:11:26,560 --> 00:11:29,050
in general to learn more about Python and physics.

139
00:11:29,680 --> 00:11:37,840
And we've we have really accomplished a working algorithm, and we have been able to solve a different,

140
00:11:38,260 --> 00:11:39,270
difficult problem.

141
00:11:39,280 --> 00:11:46,270
We have been able to show that this chaotic configuration turns it to the smell ordered configuration

142
00:11:46,690 --> 00:11:50,080
just by providing this energy term here.

143
00:11:50,530 --> 00:11:56,470
And this was something we could have never solved analytically, at least not straightforwardly, because

144
00:11:56,470 --> 00:12:00,220
they are just too many variables involved in the system.

145
00:12:01,600 --> 00:12:03,010
So it really works.

146
00:12:03,010 --> 00:12:09,310
But now to get further and to get good results and interesting results and to include more interactions

147
00:12:09,310 --> 00:12:11,590
here is really a science on its own.

148
00:12:12,040 --> 00:12:18,970
And there are really experts in this field who only do Monte Carlo simulations so it can get difficult,

149
00:12:19,150 --> 00:12:19,930
pretty fast.

150
00:12:21,520 --> 00:12:25,660
So here, just as an example, I have increased the size of the system.

151
00:12:25,660 --> 00:12:29,680
So here now we have 40 times, 40 magnetic moments.

152
00:12:30,100 --> 00:12:36,120
And you see, when I now relax the system, it still looks pretty much ordered and we see the non-coding

153
00:12:36,120 --> 00:12:36,700
clarity.

154
00:12:37,030 --> 00:12:42,460
But we do not see this nice spin spiral that is parallel to the edge of the sample.

155
00:12:42,850 --> 00:12:49,540
So here we really see some domain walls that go in a disordered way through the sample.

156
00:12:49,540 --> 00:12:53,920
And this is really what happens when you make the system larger than it gets more and more difficult

157
00:12:54,340 --> 00:12:57,670
to really converge to the actual energetic minimum.

158
00:12:58,240 --> 00:13:03,940
So in this case, you would have to increase the number of steps for the simulation or for the relaxation,

159
00:13:04,390 --> 00:13:12,250
and you should play with the temperature and really from here and it gets difficult and very demanding,

160
00:13:12,550 --> 00:13:13,630
very fast.

161
00:13:14,590 --> 00:13:20,170
So in my research, I also did some of these Monte Carlo simulations, and some of those simulations

162
00:13:20,170 --> 00:13:24,190
took almost three days on the very, very fast computer.

163
00:13:24,200 --> 00:13:27,730
So you see, it gets really, really difficult quickly.

