This demo is a JavaScript port of pyafv, the open-source Python implementation of the Active Finite Voronoi model by Wei Wang and Brian Camley (Johns Hopkins).
Active Finite Voronoi (AFV). Each cell is the Voronoi region around a self-propelled point, intersected with a disk of radius ℓ. Boundaries are a mix of straight edges (shared with neighbours inside range ℓ) and circular arcs (cell–medium interface).
Energy: E = Σ [Kₐ(A−A₀)² + Kₚ(P−P₀)²] + Λ · L_arc. The line-tension Λ on non-contacting arcs controls adhesion/cohesion; at small Λ cells detach and fragment, at large Λ the tissue stays confluent.
Unlike confluent Voronoi/vertex models (like SPV), AFV allows free boundaries, detachment, and fragmentation — bridging cohesive tissues and isolated motile cells.
This demo is a JavaScript port of pyafv, the open-source Python implementation by W. Wang and B. A. Camley:
[1] W. Wang and B. A. Camley, Divergence of detachment forces in the finite Voronoi model, arXiv preprint arXiv:2604.15481 (2026). [GitHub]
[2] Huang, J., Levine, H., Bi, D. Bridging the gap between collective motility and epithelial–mesenchymal transitions through the active finite Voronoi model. Soft Matter 19, 9389 (2023).
[3] Teomy, E., Kessler, D. A., Levine, H. Confluent and nonconfluent phases in a model of cell tissue. Phys. Rev. E 98, 042418 (2018).