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.3.0.tar.gz (106.4 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.3.0-py3-none-any.whl (115.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spatio_flux-1.3.0.tar.gz
  • Upload date:
  • Size: 106.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 eb9c077e6d154ba9bdd501c6e362e85be02fa80229fcdbae8e46d046d6f98d4b
MD5 cc90cd617370077adaac9c33e416266a
BLAKE2b-256 e192d138b1df06e35408f5a6e7b98f9c5b442f32a7ba8e8e829899fe00de503f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: spatio_flux-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 115.3 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 625df2fba0c2def22d9fb95cf519b572ffb04be09e113e168068437f70754a00
MD5 523fabb581f1d66bfad4baf759975d2d
BLAKE2b-256 481004b41defacfe755a01734e5ce2b1702432b3cf735d134c0337016ea1a529

See more details on using hashes here.

Provenance

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