Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsingModel: generalize to arbitrary lattices #26

Open
carstenbauer opened this issue Aug 15, 2019 · 0 comments
Open

IsingModel: generalize to arbitrary lattices #26

carstenbauer opened this issue Aug 15, 2019 · 0 comments

Comments

@carstenbauer
Copy link
Owner

Although <:AbstractLattice is allowed as a type parameter it doesn't currently work for arbitrary lattices.

Among others, rand is assuming a cubic lattice.

julia> m = IsingModel(L=3, dims=2, l=l, neighs=zeros(Int, 0,0))
2D-Ising model, L=3 (36 sites)

julia> mc = MC(m, T=0.1234)
Monte Carlo simulation
Model: 2D-Ising model, L=3 (36 sites)
Beta: 8.1 (T  0.123)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants