Ising Model and Metropolis Algorithm
This example integrates computation into a physics lesson on the Ising model of a ferromagnet. Exercises are included at the end. Students learn how to implement the Metropolis algorithm, write modular programs, plot physical relationships, run for-loops in parallel, and develop machine learning algorithms to classify phases and to predict the temperature of a 2D configuration of spins.
Note on required products:
MATLAB is the only required product to run the live script, although some of the exercises use Statistics and Machine Learning Toolbox, Parallel Computing Toolbox, and Neural Network Toolbox.
Zitieren als
MathWorks Physics Team (2024). Ising Model and Metropolis Algorithm (https://www.mathworks.com/matlabcentral/fileexchange/62194-ising-model-and-metropolis-algorithm), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Sciences > Physics >
- Sciences > Physics > Condensed Matter & Materials Physics >
- Sciences > Physics > Thermodynamics & Statistical Physics >
- Sciences > Chemistry > Quantum Computing >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
IsingModelAndMetropolisAlgorithm/
IsingModelAndMetropolisAlgorithm/
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.2.0.0 | Added an exercise to parallelize the Metropolis algorithm on a GPU. |
||
1.1.0.0 | Updated summary description. |
||
1.0.0.0 | Revised based on team review. |