[][src]Crate ising_lib

Everything you need to run Ising model simulation. Despite its simplicity, the simulation allows us to observe an interesting physical phenomenon - phase transition. ndarray's arrays are used to store the spin lattice and perform computations. The lattice can either be generated by rands RNG or be provided by the user.

Notes on consistency

  • Spin indices are always (usize, usize).
  • Spin values are stored using i32, which is the fastest integer type.
  • Energy (E), energy fluctuations (dE), magnetization (I) and magnetic susceptibility (X) are f64.
  • Variables representing physical properties are denoted using non-snake case.

Modules

calculations

Utilities for calculations and measurements.

lattice

Stuff related to spin lattice.

prelude

Public exports.