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.2.0.tar.gz (106.1 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.2.0-py3-none-any.whl (115.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spatio_flux-1.2.0.tar.gz
  • Upload date:
  • Size: 106.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 cfc04e43759cf58c2818435ca24ead30995719212a867211235b379d08ff3adc
MD5 e1cc5c927775d2fac9a4940951a329d2
BLAKE2b-256 791d3fcb24776af61fcf7a033c78a8b7e566ec9724b997d0cd962ab3de225c43

See more details on using hashes here.

Provenance

The following attestation bundles were made for spatio_flux-1.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: spatio_flux-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 115.0 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 293d4e60f0b81bf22b82b4a3f305f214e8dc6101f63d8ddc7718f588047ee34d
MD5 9c2a5ab3768a896ecabe270d8986ef3e
BLAKE2b-256 8330f9a455c2c2aa147b93e616c85d4d1b468656236dcaa76a25a07ebe6fef67

See more details on using hashes here.

Provenance

The following attestation bundles were made for spatio_flux-1.2.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