|
2 Dimensional Ising Model
Simulate the change in energy and magnetization in a ferro magnet
|
The definition of the Ising model. More...
#include "constants.hpp"#include "data_type.hpp"#include "typedefs.hpp"#include "utils.hpp"#include <armadillo>#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 |
| #define | UP 0 |
| #define | LEFT 0 |
| #define | DOWN 1 |
| #define | RIGHT 1 |
| #define DOWN 1 |
Definition at line 29 of file IsingModel.hpp.
| #define INDEX | ( | I, | |
| N | |||
| ) | (I + N) % N |
Definition at line 24 of file IsingModel.hpp.
| #define LEFT 0 |
Definition at line 28 of file IsingModel.hpp.
| #define RIGHT 1 |
Definition at line 30 of file IsingModel.hpp.
| #define UP 0 |
Definition at line 27 of file IsingModel.hpp.