|
2 Dimensional Ising Model
Simulate the change in energy and magnetization in a ferro magnet
|
Sweep over different temperatures and generate data. More...
Go to the source code of this file.
Classes | |
| class | IsingModelTest |
| Test class for the Ising model. More... | |
Macros | |
| #define | EPS_2 (-2 * std::sinh(8.)) / (std::cosh(8.) + 3) |
| The analytic expected energy for a \( 2 \times 2 \) lattice. | |
| #define | MAG_2 (std::exp(8.) + 1) / (2 * (cosh(8.) + 3)) |
| The analytic expected magnetization for a \( 2 \times 2 \) lattice. | |
| #define | CV_2 16 * (3 * std::cosh(8.) + 1) / ((std::cosh(8.) + 3) * (std::cosh(8.) + 3)) |
| The analytic heat capacity for a \( 2 \times 2 \) lattice. | |
| #define | X_2 |
| The analytic susceptibility for a \( 2 \times 2 \) lattice. | |
Functions | |
| int | main () |
| The main function. | |
Sweep over different temperatures and generate data.
Definition in file test_suite.cpp.
| #define CV_2 16 * (3 * std::cosh(8.) + 1) / ((std::cosh(8.) + 3) * (std::cosh(8.) + 3)) |
The analytic heat capacity for a \( 2 \times 2 \) lattice.
Definition at line 26 of file test_suite.cpp.
| #define EPS_2 (-2 * std::sinh(8.)) / (std::cosh(8.) + 3) |
The analytic expected energy for a \( 2 \times 2 \) lattice.
Definition at line 17 of file test_suite.cpp.
| #define MAG_2 (std::exp(8.) + 1) / (2 * (cosh(8.) + 3)) |
The analytic expected magnetization for a \( 2 \times 2 \) lattice.
Definition at line 22 of file test_suite.cpp.
| #define X_2 |
The analytic susceptibility for a \( 2 \times 2 \) lattice.
Definition at line 30 of file test_suite.cpp.
| int main | ( | ) |
The main function.
Definition at line 110 of file test_suite.cpp.