dewi-kadita: A Python Library for Idealized Fish Schooling Simulation with Entropy-Based Diagnostics

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Herho, Sandy H. S., Anwar, Iwan P., Khadami, Faruq, Handayani, Alfita P., Sujatmiko, Karina A., Kasim, Kamaluddin, Suwarman, Rusmawan, Irawan, Dasapta E.
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915784718024704
author Herho, Sandy H. S.
Anwar, Iwan P.
Khadami, Faruq
Handayani, Alfita P.
Sujatmiko, Karina A.
Kasim, Kamaluddin
Suwarman, Rusmawan
Irawan, Dasapta E.
author_facet Herho, Sandy H. S.
Anwar, Iwan P.
Khadami, Faruq
Handayani, Alfita P.
Sujatmiko, Karina A.
Kasim, Kamaluddin
Suwarman, Rusmawan
Irawan, Dasapta E.
contents Collective motion in fish schools exemplifies emergent self-organization in active matter systems, yet computational tools for simulating and analyzing these dynamics remain fragmented across research groups. We present dewi-kadita, an open-source Python library implementing the three-dimensional Couzin zone-based model with comprehensive entropy diagnostics tailored for marine collective behavior research. The library introduces seven information-theoretic metrics -- school cohesion entropy, polarization entropy, depth stratification entropy, angular momentum entropy, nearest-neighbor entropy, velocity correlation entropy, and school shape entropy -- that characterize distinct organizational features inaccessible to classical order parameters. These metrics combine into an Oceanic Schooling Index (OSI) providing a single scalar measure of collective disorder. Validation across four canonical configurations (swarm, torus, dynamic parallel, highly parallel) confirms correct reproduction of known phase behaviors: the swarm maintains disorder with polarization $P < 0.1$ and OSI $\approx 0.71$, while the highly parallel state achieves $P = 0.998$ with OSI $= 0.24$ and velocity correlation entropy vanishing to zero. The entropy framework successfully discriminates the torus and dynamic parallel configurations that exhibit comparable order parameter magnitudes through different organizational mechanisms. Numba just-in-time (JIT) compilation accelerates pairwise interaction calculations by $10$--$100\times$, enabling simulations of $150$--$250$ agents over $1000$--$2000$ time steps within five minutes on standard workstation hardware. NetCDF4 output ensures interoperability with oceanographic analysis tools. The library addresses the need for standardized, reproducible infrastructure in collective behavior modeling analogous to established molecular dynamics codes.
format Preprint
id arxiv_https___arxiv_org_abs_2602_07948
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle dewi-kadita: A Python Library for Idealized Fish Schooling Simulation with Entropy-Based Diagnostics
Herho, Sandy H. S.
Anwar, Iwan P.
Khadami, Faruq
Handayani, Alfita P.
Sujatmiko, Karina A.
Kasim, Kamaluddin
Suwarman, Rusmawan
Irawan, Dasapta E.
Computational Physics
Soft Condensed Matter
Statistical Mechanics
92D50, 82C22
Collective motion in fish schools exemplifies emergent self-organization in active matter systems, yet computational tools for simulating and analyzing these dynamics remain fragmented across research groups. We present dewi-kadita, an open-source Python library implementing the three-dimensional Couzin zone-based model with comprehensive entropy diagnostics tailored for marine collective behavior research. The library introduces seven information-theoretic metrics -- school cohesion entropy, polarization entropy, depth stratification entropy, angular momentum entropy, nearest-neighbor entropy, velocity correlation entropy, and school shape entropy -- that characterize distinct organizational features inaccessible to classical order parameters. These metrics combine into an Oceanic Schooling Index (OSI) providing a single scalar measure of collective disorder. Validation across four canonical configurations (swarm, torus, dynamic parallel, highly parallel) confirms correct reproduction of known phase behaviors: the swarm maintains disorder with polarization $P < 0.1$ and OSI $\approx 0.71$, while the highly parallel state achieves $P = 0.998$ with OSI $= 0.24$ and velocity correlation entropy vanishing to zero. The entropy framework successfully discriminates the torus and dynamic parallel configurations that exhibit comparable order parameter magnitudes through different organizational mechanisms. Numba just-in-time (JIT) compilation accelerates pairwise interaction calculations by $10$--$100\times$, enabling simulations of $150$--$250$ agents over $1000$--$2000$ time steps within five minutes on standard workstation hardware. NetCDF4 output ensures interoperability with oceanographic analysis tools. The library addresses the need for standardized, reproducible infrastructure in collective behavior modeling analogous to established molecular dynamics codes.
title dewi-kadita: A Python Library for Idealized Fish Schooling Simulation with Entropy-Based Diagnostics
topic Computational Physics
Soft Condensed Matter
Statistical Mechanics
92D50, 82C22
url https://arxiv.org/abs/2602.07948