This project is to find the ground state and to show how ferromagnetic square lattice converts to paramagnetic square lattice with increase in magnetic disorder,and to find the ground state in random field ising model using min-cut maxx-flow theorem (push-relabel) and H.k clustering method.
g -o main RFIM_2D_main.cpp LatticeStuff.cpp PushRelabel.cpp clustering.cpp -Wall
edit the parameters (lattice size, no of configurations, range of delta's) in parameters.h file.
(this result is produced using openCV)