# glazier
Cellular Potts tissue simulation on the CPU and the GPU, in Rust.
[](https://crates.io/crates/glazier-cpm)
[](https://docs.rs/glazier-cpm)
The facade crate re-exports `glazier-core`, adds `glazier-cuda` behind the
`cuda` feature, and ships the `glazier` binary that runs a model description
from JSON.
```bash
cargo install glazier-cpm --features cuda
glazier --model monolayer.json --out runs/gpu --engine gpu
```
The crates.io name `glazier` belongs to an unrelated crate, so the package
takes a suffix. The library and the binary keep the plain name.
The engine keeps a sheet or a block of cells on a periodic lattice under
contact, volume, surface and length energies, with diffusing chemical fields,
chemotaxis, persistent motility, division, death and a connectivity veto. The
device runs every term the serial reference does, 304 times faster on a 4096 by
4096 lattice.
Full documentation, figures and the exchange-format work are in the
[repository](https://github.com/alejandro-soto-franco/glazier).
Named after James Glazier, whose work with Graner and Hogeweg applied the
Potts lattice to tissue.