Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.79 KB

readme.md

File metadata and controls

54 lines (35 loc) · 1.79 KB

To install dependecies run: pip install -r requirements.txt

To plot a lattice instantiate a plot object, the parameters include:

N- size of lattice
B- strength of magnetic field (default is zero)
start- low(cold) or high(hot) start (default is low)
inc- size of increments in plots (default is 0.01)
x0- starting point of plots (default is 1)
x1- final point of plots (default is 5)
steps-number of steps (default is 50000)
T - Temperature (default is 1) 

Some recipes to showcase how the program works:

Plots specific heat capacity with a cold start and with increments of 0.1 for a 10x10 lattice:

import Ising_model as I 

P=I.plots(N=10,start='Low',inc=0.1)
P.spec_heat()
P.show()

Specific heat capacity

Plots magnetization with with a hot start increments of 0.1 for a 15x15 lattice

import Ising_model as I 

P=I.plots(N=15,start='Low',inc=0.1)
P.mag()
P.show()

Specific heat capacity

Plots lattice with a hot start, with and a 150x150 lattice and equilibrated at a temperature of 2

import Ising_model as I 

P=I.plots(N=150,start='High',inc=0.1,T=2)
P.lattice()
P.show()

Specific heat capacity

Plots lattice with a hot start and with and a 100x100 lattice, with an external magnetic field of 1, and ran for 60000 steps

import Ising_model as I 

P=I.plots(N=100,start='High',B=1,steps=60000)
P.lattice()
P.show()

Specific heat capacity