Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 947 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 947 Bytes

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).