|
2 Dimensional Ising Model
Simulate the change in energy and magnetization in a ferro magnet
|
The definition of the Ising model. More...
#include "data_type.hpp"#include "utils.hpp"#include <armadillo>#include <cstdint>#include <random>#include <unordered_map>Go to the source code of this file.
Classes | |
| class | IsingModel |
| The Ising model in 2 dimensions. More... | |
Macros | |
| #define | INDEX(I, N) (I + N) % N |
| I modulo N. | |
| #define | UP 0 |
| Used for the neighbor matrix in the class. | |
| #define | LEFT 0 |
| Used for the neighbor matrix in the class. | |
| #define | DOWN 1 |
| Used for the neighbor matrix in the class. | |
| #define | RIGHT 1 |
| Used for the neighbor matrix in the class. | |
| #define DOWN 1 |
Used for the neighbor matrix in the class.
Definition at line 28 of file IsingModel.hpp.
| #define INDEX | ( | I, | |
| N | |||
| ) | (I + N) % N |
I modulo N.
Definition at line 23 of file IsingModel.hpp.
| #define LEFT 0 |
Used for the neighbor matrix in the class.
Definition at line 27 of file IsingModel.hpp.
| #define RIGHT 1 |
Used for the neighbor matrix in the class.
Definition at line 29 of file IsingModel.hpp.
| #define UP 0 |
Used for the neighbor matrix in the class.
Definition at line 26 of file IsingModel.hpp.