Skip to content

samuelhoover/ising-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2d Ising model in Rust

Ising model on a 2,000 x 2,000 square lattice, in 1B steps, simulated via Monte Carlo, implemented in Rust. Compiled executable completes simulation in less than 6 seconds on M1 Pro processor.

Initial lattice Final lattice
Inital, random configuration lattice Final configuration lattice
Time evolution of relative spin count
Time evolution of relative spin count

To play around with the lattice, parameters, constants, etc., modify src/main.rs and call cargo run to run. Keep in mind that this simulation will take considerably longer than the optimized executable version. To obtain the optimized executable version, build the project using cargo build -r and then call the executable (likely /target/release/ising).