 |
A parallel C++ Library for Simulations in the Heisenberg Model
|
An abstract class representing the model describing the spins. A model class has to derive from it an...
void flip(const dim3 index, Grid< short int > &grid) final
Computes the energy difference, when a random point is flipped.
float calcEnergy(const Grid< short int > &grid) final
Computes the overall energy of the entire grid.
Ising(float J, float3 B, SimulationStrategy s)
void simulate() const override
float calcMagnetization(const Grid< short int > &grid) final
Computes the overall magnetization of the entire grid.
float calcEnergy(const Grid< short int > &grid, const dim3 index) final
Computes the energy difference, when random_point is flipped.
std::function< void(const Ising &)> SimulationStrategy
A class storing spin values as a grid and certain meta information.