- #1
IreneFerri
- 4
- 4
- TL;DR Summary
- Ask for help in a computational issue implementing the Landau-Wang algorithm on a magnetic spins model with Heisenberg hamiltonian.
I have been struggling for over a month now with a problem I cannot fix. I would really appreciate any comment or guidance. Thank you!
I am considering an Ising-like model with N agents that han hold one of the following 3 states, represented by vectors:
state + : vector (1 0)
state 0 : vector (0 alpha) ; alpha is a real, positive parameter
state - : vector (-1 0)
All agents are connected (fully connected graph)
The interaction hamiltonian is H = -J*sum(s_i*s_j), extended to all pairs (This is the Heisenberg hamiltonian, Ising-like).
The system's energy only depends on the number of agents in each state as follows:
E = 0.5*(((num(+) - num(-))**2) + alpha**2 * num(0) - num(+) - num(-) - alpha**2 * num(0))
I am determining a first order transition using the wang-landau algorithm but I have problems with the implementation. I get unvisited configurations, so the histogram never becomes flat.
I am trying with an arbitrary value of alpha = 0.2
It seems to work for N <= 14 (I attach figures of the unnormalised logarithm of the density states array versus energy) but I doesn't work for bigger systems.
My code is public in github in the following link: https://github.com/IreneFerri/alpha3states.git
I am considering an Ising-like model with N agents that han hold one of the following 3 states, represented by vectors:
state + : vector (1 0)
state 0 : vector (0 alpha) ; alpha is a real, positive parameter
state - : vector (-1 0)
All agents are connected (fully connected graph)
The interaction hamiltonian is H = -J*sum(s_i*s_j), extended to all pairs (This is the Heisenberg hamiltonian, Ising-like).
The system's energy only depends on the number of agents in each state as follows:
E = 0.5*(((num(+) - num(-))**2) + alpha**2 * num(0) - num(+) - num(-) - alpha**2 * num(0))
I am determining a first order transition using the wang-landau algorithm but I have problems with the implementation. I get unvisited configurations, so the histogram never becomes flat.
I am trying with an arbitrary value of alpha = 0.2
It seems to work for N <= 14 (I attach figures of the unnormalised logarithm of the density states array versus energy) but I doesn't work for bigger systems.
My code is public in github in the following link: https://github.com/IreneFerri/alpha3states.git