Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samuelhoover/ising-rust

2D Ising model implemented in Rust.
https://github.com/samuelhoover/ising-rust

ising-model ising-model-2d monte-carlo rust-lang

Last synced: 11 days ago
JSON representation

2D Ising model implemented in Rust.

Awesome Lists containing this project

README

        

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