8.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.

ParallelFiniteVoronoiSimulator(pts, phys[, ...])

Python multiprocessing domain-decomposed simulator for the AFV model.

Functions

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

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

visualize_2d_parallel(pts, diag, r[, ax, ...])

Visualize a 2D snapshot from pyafv.ParallelFiniteVoronoiSimulator.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 APIs (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.

DomainDecomposition(domain_id, grid_ix, ...)

Point-only data for one spatial domain plus its halo.

decompose_points(points[, grid_shape, ...])

Decompose points into owned grid domains plus halo/local points.