Skip to main content

Crate glazier_core

Crate glazier_core 

Source
Expand description

Cellular Potts lattice, energies and the serial sweep that defines them.

The serial engine here is the correctness reference: every other engine in the workspace has to agree with it.

Re-exports§

pub use blueprint::Blueprint;
pub use cpu::Simulation;
pub use lattice::Lattice;
pub use model::CellType;
pub use model::Model;

Modules§

blueprint
The model description both engines read.
connectivity
A local test for whether taking a site would break a cell in two.
cpu
Serial Metropolis on the CPU. This is the correctness reference.
field
Diffusing chemical fields on the same lattice as the cells.
lattice
The site lattice and its periodic neighbourhood.
model
Model description: cell types, the contact matrix and the constraints.
moments
Second moments per cell, kept as running sums so a cell’s length is a constant-time read.
motility
Persistent motility: a cell that has just moved keeps moving.
npy
A writer for the one NumPy array shape this crate produces.
rng
xoshiro256++, one stream per site so the CPU and the GPU draw the same way.