|
2 Dimensional Ising Model
Simulate the change in energy and magnetization in a ferro magnet
|
Type to use with the IsingModel class and montecarlo module. More...
#include <data_type.hpp>
Public Member Functions | |
| data_t () | |
| constructor with no parameters. | |
| data_t (double E, double E2, double M, double M2, double M_abs) | |
| Constructor with parameters. | |
| template<class T > | |
| data_t | operator/ (T num) |
| Overload of the division operator. | |
| template<class T > | |
| data_t & | operator/= (T num) |
| Overload of the division equals operator. | |
| template<class T > | |
| data_t | operator* (T num) |
| Overload of the multiply operator. | |
| template<class T > | |
| data_t & | operator*= (T num) |
| Overload of the multiply equals operator. | |
| data_t | operator+ (const data_t &b) |
| Overload of the addition operator. | |
| data_t & | operator+= (const data_t &b) |
| Overload of the addition equals operator. | |
Public Attributes | |
| double | E |
| Energy. | |
| double | M |
| Magnetization. | |
| double | E2 |
| Energy squared. | |
| double | M2 |
| Magnetization squared. | |
| double | M_abs |
| Absolute Magnetization. | |
Type to use with the IsingModel class and montecarlo module.
Definition at line 19 of file data_type.hpp.
|
inline |
constructor with no parameters.
Definition at line 29 of file data_type.hpp.
|
inline |
Constructor with parameters.
| E | Initial energy |
| E2 | Initial energy squared |
| M | Initial magnetization |
| M2 | Initial magnetization squared |
| M_abs | Initial absolute magnetization |
Definition at line 45 of file data_type.hpp.
|
inline |
Overload of the multiply operator.
| num | The number to multiply each field by. |
Definition at line 96 of file data_type.hpp.
|
inline |
Overload of the multiply equals operator.
| num | The number to multiply each field by. |
Definition at line 114 of file data_type.hpp.
Overload of the addition operator.
| b | The data_t field to add. |
Definition at line 132 of file data_type.hpp.
Overload of the addition equals operator.
| b | The data_t field to add. |
Definition at line 150 of file data_type.hpp.
|
inline |
Overload of the division operator.
| num | The number to divide each field by. |
Definition at line 60 of file data_type.hpp.
|
inline |
Overload of the division equals operator.
| num | The number to divide each field by. |
Definition at line 79 of file data_type.hpp.
| double data_t::E |
Energy.
Definition at line 21 of file data_type.hpp.
| double data_t::E2 |
Energy squared.
Definition at line 23 of file data_type.hpp.
| double data_t::M |
Magnetization.
Definition at line 22 of file data_type.hpp.
| double data_t::M2 |
Magnetization squared.
Definition at line 24 of file data_type.hpp.
| double data_t::M_abs |
Absolute Magnetization.
Definition at line 25 of file data_type.hpp.