7.1. pyafv

PyAFV - A Python implementation of the active finite Voronoi (AFV) model in 2D.

Classes

PhysicalParams([r, A0, P0, KA, KP, Lambda, ...])

Physical parameters for the active finite Voronoi (AFV) model.

FiniteVoronoiSimulator(pts, phys[, backend])

Simulator for the active finite Voronoi (AFV) model.

Functions

visualize_2d(pts, diag, r[, ax])

Visualize a 2D snapshot using the diagnostic dict diag generated by pyafv.FiniteVoronoiSimulator.build().

target_delta(params, target_force)

Given the physical parameters and a target detachment force, compute the corresponding delta.

Subpackages

calibrate

Subpackage for calibrating the detachment forces against the deformable polygon (DP) model.

Experimental API (use with caution)

tile_pbc(pts, L[, r])

Periodic tiling of pts (N,2), with bookkeeping.

rebuild_connection_matrix(N, connect)

Build a symmetric sparse adjacency matrix from a cell-cell edge list.

select_daughter_cluster(N, connect)

Randomly pick one connected component ("daughter cluster") from the connectivity graph.

get_cluster_sizes(N, connect)

Compute the sizes of all connected components in the connectivity graph.