lgca.interactions

Interaction functions and helper functions for classical LGCA with volume exclusion.

Functions

aggregation(lgca)

Bias movement towards higher cell density.

alignment(lgca)

Align moving cells with their neighbours.

birth(lgca)

Perform a simple birth step followed by a random walk.

birthdeath(lgca)

Perform a birth--death step followed by a random walk.

chemotaxis(lgca)

Rearrange nodes in response to an external gradient.

contact_guidance(lgca)

Align cells with a predefined guiding axis.

disarrange(a[, axis])

Shuffle a in-place along the given axis.

ent_prod(x)

excitable_medium(lgca)

Simulate an excitable medium following Barkley's model.

go_or_grow(lgca)

Perform the go-or-grow switching interaction.

go_or_rest(lgca)

Switch cells between moving and resting states based on local density.

nematic(lgca)

Implement nematic alignment of neighbouring cells.

only_propagation(lgca)

Placeholder interaction that performs no rearrangement.

p_binom(k, n, p)

persistent_walk(lgca)

Rearrange nodes to implement persistent motion.

random_walk(lgca)

Apply a random walk to all nodes.

s_binom(n, p0, kmax)

tanh_switch(rho[, kappa, theta])

wetting(lgca)

Model wetting dynamics on an adhesive surface.