Skip to main content

A demonstration of process composition rebuilding and extending COMETS by composing functional components

Project description

Spatio-Flux: A Reference Application for Compositional Multiscale Simulation

Spatio-Flux is a reference application for compositional multiscale biological modeling built using the Process-Bigraph framework. It demonstrates how independently developed models—metabolism, spatial transport, particle dynamics, and population restructuring—can be composed into a single executable simulation through typed interfaces and shared orchestration, rather than tightly coupled solvers.

Spatio-Flux serves as the primary worked example in
Process Bigraphs and the Architecture of Compositional Systems Biology by Agmon & Spangler (arXiv:2512.23754).


What Spatio-Flux is

Spatio-Flux is designed as a testbed and reference implementation, not as an optimized domain-specific simulator. Its purpose is to make model composition explicit and inspectable.

In particular, Spatio-Flux demonstrates how to:

  • compose heterogeneous modeling paradigms (ODEs, dFBA, spatial fields, particles),
  • couple mechanisms through shared, typed state rather than direct process calls,
  • coordinate multi-timescale execution using reusable orchestration patterns,
  • swap or recombine processes without modifying surrounding models.

Automated test suite

The heart of Spatio-Flux is its automated test suite, which exercises a wide range of composition patterns using reusable process families.

Covered examples include:

  • Monod and dynamic FBA metabolism
  • Hybrid microbial communities
  • COMETS-style spatial dFBA
  • Brownian and Newtonian particle systems
  • Particle–field exchange adapters
  • Event-driven division and boundary handling

Each test produces:

  • a process-bigraph visualization of model structure,
  • serialized schemas and state for inspection,
  • and domain-specific plots or animations.

Live test report:
👉 https://vivarium-collective.github.io/spatio-flux/report/index.html


Reference composite

The figure below shows a representative “mega-composite” integrating metabolic, spatial, mechanical, and structural processes into a single process bigraph.

Spatio-Flux reference composite


Example simulation

Motile particles carrying internal metabolic models interact with evolving spatial nutrient fields.

Spatio-Flux reference demo


Ecosystem

Spatio-Flux is part of Vivarium 2.0, an open-source ecosystem for compositional modeling:

  • bigraph-schema — typed hierarchical schemas
  • process-bigraph — process and composite simulation interfaces
  • bigraph-viz — visualization of bigraph structure and data flow
  • spatio-flux — reference multiscale application and test suite

All components are open source:
https://github.com/vivarium-collective

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spatio_flux-1.1.0.tar.gz (93.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spatio_flux-1.1.0-py3-none-any.whl (101.6 kB view details)

Uploaded Python 3

File details

Details for the file spatio_flux-1.1.0.tar.gz.

File metadata

  • Download URL: spatio_flux-1.1.0.tar.gz
  • Upload date:
  • Size: 93.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spatio_flux-1.1.0.tar.gz
Algorithm Hash digest
SHA256 634c9f73fd45e821e52f98bcac27008fd4300b5c79dc613248763413a8d89811
MD5 513ea70ea7cb37725daadfa7bd293f68
BLAKE2b-256 53797961318691d8c39c5015bc8da695eed765119b73959cff9f48d70aaf57ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for spatio_flux-1.1.0.tar.gz:

Publisher: release.yml on vivarium-collective/spatio-flux

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spatio_flux-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: spatio_flux-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 101.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spatio_flux-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30ff45717623f4fe7bc845aed409f87926432189aff8de004ab1c2a9f8d7dd2a
MD5 22923862ab827832627cb4e41a88e70e
BLAKE2b-256 32fcbbb94c8ab368476518eb7b97c4347cb90b04632e420f1aab2fa4511aa0cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for spatio_flux-1.1.0-py3-none-any.whl:

Publisher: release.yml on vivarium-collective/spatio-flux

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page