The Ising Model in Python: Statistical Mechanics and Permanent Magnets

  Рет қаралды 41,145

Mr. P Solver

Mr. P Solver

Күн бұрын

Пікірлер: 57
@adwaitnaravane5285
@adwaitnaravane5285 3 жыл бұрын
Stat mech is the most beautiful thing in Physics.
@ricomajestic
@ricomajestic 6 ай бұрын
It really is!
@muhammadhidayat1337
@muhammadhidayat1337 2 жыл бұрын
I'm currently in undergraduate trying to understand what ising model is, and suddenly found this video. Thank you so much!
@generaliroh842
@generaliroh842 Жыл бұрын
Sama ngab
@charltonwake6813
@charltonwake6813 3 жыл бұрын
"Did this in undergrad without numba"'; gave me flashbacks when I had to do Ising Models in undergrad, taking my side panels off and setting up 2 desk fans to blow into my pc in fear of it over heating. God bless numba!
@ganstabreakincity
@ganstabreakincity 3 жыл бұрын
Here before this channel has million subscribers, give it some time. Pure knowledge, I wish I can learn and collaborate with you given the time. Appreciate your work.
@peabrane8067
@peabrane8067 2 жыл бұрын
Wow that convolve operation to get the energy is so smart. I never thought of that Would probably gave me a 10x speedup for my PhD....
@estebanrodriguez3922
@estebanrodriguez3922 3 жыл бұрын
This is outstanding great quality content. I've always wanted to make similar videos on youtube but PhD and academia are just too frantic! Keep it up!
@AlessandroAmbler
@AlessandroAmbler 3 жыл бұрын
Really cool vids man! Stumbled across one of your reddit posts and thought I reconised your face haha, subbed!
@MrPSolver
@MrPSolver 3 жыл бұрын
Hahaha cheers dude 😂
@JonathonRiddell
@JonathonRiddell 3 жыл бұрын
Great video! Numba seems super powerful, my code in undergrad for this similarly took forever to complete :).
@corneldevilliers461
@corneldevilliers461 3 жыл бұрын
Clear and straightforward, excellent resource for the topic
@adityadhardwivedi634
@adityadhardwivedi634 Жыл бұрын
Glad I got internship in the very first summer at my Institute under condensed matter professor just because of curiosity of phase transition that occurs in matter. I'll get to learn many things, thanks for this video, man!
@deltascience7252
@deltascience7252 3 жыл бұрын
dude I saw this on reddit and you're so underrated, i'll ask my friends to subscribe to you
@CarlosRoberto-vb9gi
@CarlosRoberto-vb9gi 3 жыл бұрын
Finally I understand the meaning of the Ising model. Thanks for this great video.
@randomstuff9960
@randomstuff9960 Жыл бұрын
Why doesn't this have more views and likes? That was simply amazing!
@markushaysnielsen4885
@markushaysnielsen4885 3 жыл бұрын
There’s that njit :-) Amazing video!
@ayabongandlungwana4407
@ayabongandlungwana4407 2 жыл бұрын
Wow this video has helped me to complete my assignment, although I'm using C to simulate the results. It gave me an idea about the how results should look like and better understand for the whole Ising model.. Thank you bro
@AJ-et3vf
@AJ-et3vf 3 жыл бұрын
Awesome! Love your videos! This channel is seriously underrated and needs more views :) very quality and enjoyable videos.
@westmoreland5889
@westmoreland5889 3 жыл бұрын
waiting for your sympy video...
@lasinar9090
@lasinar9090 9 ай бұрын
Nice work…❤
@benburdick9834
@benburdick9834 3 жыл бұрын
These are some great videos! I would love to see your process of putting the notebooks together.
@MrPSolver
@MrPSolver 2 жыл бұрын
Correction: In the function I used to originally get the energy of the lattice, I should have divided the return value by 2 to avoid double counting of pairs. This doesn't effect the dynamics of the system (since this only depends on change in energy), but it slightly changes the energy plot.
@laika4048
@laika4048 2 жыл бұрын
why did you calculate the total energy of all the lattice? I think you should only calculate energy for one site i,j and then because ergodic theorem it would be equal to the energy of all the lattice. Or i am missing something?
@godwinosabutey2876
@godwinosabutey2876 Жыл бұрын
Thank you! Very nice work and good explanation there. The Numba and the codes work incredibly well and fast. I was wondering how higher order interactions, such as those involving three bodies as opposed to two, might be implemented in a similar manner. Any advice you can give me?
@GabrielleduVent
@GabrielleduVent 2 жыл бұрын
Thanks for uploading this video! I'm a python newbie who needs to run Ising models and this clarified quite a few things. Few questions: 1. For the total initial energy, if I am using a very specific energy equation, do I need to change it from convolution to something else? My set up is that it starts with all down or up spins. 2. Since my setup is starting with 100% down or upspin, how would that affect the probability equation (2nd line after #3/4. change state...)? 3. How would I change the probability function to incorporate my energy equation? Thanks in advance!
@NGBigfield
@NGBigfield 2 жыл бұрын
You are an absolute genius!
@godwinosabutey2876
@godwinosabutey2876 Жыл бұрын
Thank you! Very nice work and good explanation there. The Numba and the codes work incredibly well and fast. I was wondering how higher order interactions, such as those involving three bodies as opposed to two, might be implemented in a similar manner. Any advice you can give me? @Mr. P Solver
@quornnugget7799
@quornnugget7799 7 ай бұрын
Does the energy calculation allow for periodic boundary conditions on our lattice?
@henryouang
@henryouang 2 жыл бұрын
This was really great. Thanks!
@joyzhong7279
@joyzhong7279 2 жыл бұрын
Thank you so much for the content!
@chisomdim2031
@chisomdim2031 2 жыл бұрын
Whao, You just saved a life! Thanks man! This is so on point👌
@TheAbdel
@TheAbdel 2 жыл бұрын
Amazing work. Bravo !
@aaronthomas6434
@aaronthomas6434 2 жыл бұрын
Great Video! Helping me so much for my assignment! One question, for the full Hamiltonian where you would include the external energy contribution i.e the external field multiplied by the sum over all spins, would you simply add this into the get energy function or amend it somehow within the metropolis algorithm? Kepp up the brilliant work!
@ahxmeds
@ahxmeds 2 жыл бұрын
Great content. You are too good, Luke.
@MrPSolver
@MrPSolver 2 жыл бұрын
Thank you Shadab!
@physicsguy9774
@physicsguy9774 2 жыл бұрын
amazing work mate! are you a physicist?
@md.tohidulislam7041
@md.tohidulislam7041 2 жыл бұрын
Thank you so very much. It saved a lot of time. I do appreciate your knowledge.
@drissboutat6430
@drissboutat6430 2 жыл бұрын
You're amazing 👏 a lot of thanks for this video
@cscsquad1902
@cscsquad1902 2 жыл бұрын
okay how do you apply it to a real system? for example, we want to study magnetic behavior of some ferromagnetic metal (ie cobalt) which has a hcp structure. In that case, you would need the exact positions of the spins. Do you have any idea?
@anuranbhunia
@anuranbhunia Жыл бұрын
How do I view the final spin array bitmap after the Metropolis algorithm has worked upon it?
@thomsday
@thomsday 2 жыл бұрын
that cuttings :D
@homa_ghaiedi2626
@homa_ghaiedi2626 Жыл бұрын
How would you introduce the presence of an external magnetic field to this code?
@حيدرالعبيدي-ج4د
@حيدرالعبيدي-ج4د 3 жыл бұрын
Hello..I am a PhD student in physics from Iraq..I hope you can help me find codes in the Python program to study the Fe(phen) molecule to investigation of the spin crossover phenomenon by monte carlo (ising model 2D)..with many thanks to you
@sadaf6295
@sadaf6295 2 жыл бұрын
Hey .. How to make code in python for.. Spin correlation function for Heisenberg spin Hamiltonian.. ?? I am new to python.. Please give me some your suggestion
@sagarpatel3043
@sagarpatel3043 2 жыл бұрын
I do not understand. Why positive spin sample and negative spin sample are separated in the starting? If +1 means spin-up and -1 means spin-down one sample is enough. Forgive my lack of intelligence.
@J-rb9dx
@J-rb9dx Жыл бұрын
Hello! Is there any way to display the new ising model with the updated spins?
@muditgaur9736
@muditgaur9736 8 ай бұрын
Can u do the same for Classical XY model
@sadaf6295
@sadaf6295 3 жыл бұрын
Hey.. Can you make video on Heisenberg spin hamiltonian in python like yo find eigen value and eigen vectors and what happens when N change.. M a total Biggener in python.. But i have write a program.. Please help me..
@clf400
@clf400 2 жыл бұрын
Your mic is clipping. I recommend lowering the gain during recording because it sounds bad
@raa9558
@raa9558 Жыл бұрын
Ab So Lu Te Ly Brilliant
@mB-mp6io
@mB-mp6io 2 жыл бұрын
where the code disappear
@kasraburiaey7862
@kasraburiaey7862 2 жыл бұрын
Is the code complete?
@prikarsartam
@prikarsartam 2 жыл бұрын
I get trouble with the "plt.style.use(['science','notebook', 'grid'])" part, would you kindly provide solution?
@Eta_Carinae__
@Eta_Carinae__ Жыл бұрын
Hi! I tried more or less the same thing, except the way I noised the lattice is by randomly flipping every cell per timestep according to a bernoulli trial with the chance of success standing in for the chance to flip (I use numpy.random.binomial, and just set the no. trials to 1). Is there a reason why you flip one cell per timestep instead of a random number? Cheers!
@banditadas3420
@banditadas3420 2 жыл бұрын
plt.style.use(['science', 'notebook','grid']) isnt working for me , its showing lot of error with OSError: 'science' not found in the style library and input is not a valid URL or path; see `style.available` for list of available styles
Biot Savart Law in Python: Any wire you want, no paper required
24:46
МЕБЕЛЬ ВЫДАСТ СОТРУДНИКАМ ПОЛИЦИИ ТАБЕЛЬНУЮ МЕБЕЛЬ
00:20
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 51 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 72 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 35 МЛН
The hardest sum aka the Ising model #SoME3
34:50
NumberCruncher
Рет қаралды 18 М.
Eigenstates of ANY 1D Potential in PYTHON
19:41
Mr. P Solver
Рет қаралды 36 М.
ChatGPT Vs. Stack Overflow Be Like...
3:26
Mr. P Solver
Рет қаралды 76 М.
Physics of Complex Systems: The Ising Model
6:39
Critical Point
Рет қаралды 7 М.
10x Faster Than NumPy (GPU Magnet Simulation)
43:15
Mr. P Solver
Рет қаралды 15 М.
The Ising model
21:59
Gareth Tribello
Рет қаралды 50 М.
Optimization with Cython: Ising Models (Part 1)
14:46
Jake Vanderplas
Рет қаралды 19 М.
МЕБЕЛЬ ВЫДАСТ СОТРУДНИКАМ ПОЛИЦИИ ТАБЕЛЬНУЮ МЕБЕЛЬ
00:20