Reference

This package doesn't export any symbols. It is recommended to import as:

import IsingModels as Ising
IsingModels.βcConstant
βc

Critical temperature of the 2-dimensional infinite lattice Ising model determined by Onsager.

source
IsingModels.dynamic_hybrid!Method
dynamic_hybrid!(σ, β; steps, save_interval)

Same as hybrid!, but adjusts numbers of Metropolis and Wolff steps dynamically.

source
IsingModels.hybrid!Method
hybrid!(σ, β; steps = 1, save_interval = length(σ), local_steps = length(σ))

Hybrid sampler, performing local_steps of Metropolis sampling, then one Wolff cluster move, then another local_steps of Metropolis sampling, one more Wolff cluster move, and so on.

source
IsingModels.metropolis!Function
metropolis!(σ, β, h = 0; steps = 1, save_interval = length(σ))

Performs one or more Metropolis MC steps from the configuration σ, at inverse temperature β. Returns three lists: σ_t, M, E, where σ_t contains configurations sampled at intervals save_interval (by default equals the number of sites), M is the record of magnetizations, and E the record of energies.

source
IsingModels.mf_random_magnetizationsFunction
mf_random_magnetizations(N, β, h = 0; f = nothing, B = 1)

Generates a random magnetization of the Curie-Weiss model, that is, a value of

\[M = \sum_{i=1}^N s_i\]

that follows the statistics of the mean-field (MF) Curie-Weiss model, with energy function:

\[E = -\sum_{i < j} s_i s_j - h * \sum_i s_i + f(M)\]

By default f(M) = 0.

B controls the number of samples generated.

source
IsingModels.wolff!Method
wolff!(σ, β; steps = 1, save_interval = 1)

Perfoms one or more Wolff MC steps from the configuration σ, at inverse temperature β.

source