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.
Example simulation
Motile particles carrying internal metabolic models interact with evolving spatial nutrient fields.
Ecosystem
Spatio-Flux is part of Vivarium 2.0, an open-source ecosystem for compositional modeling:
bigraph-schema— typed hierarchical schemasprocess-bigraph— process and composite simulation interfacesbigraph-viz— visualization of bigraph structure and data flowspatio-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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
634c9f73fd45e821e52f98bcac27008fd4300b5c79dc613248763413a8d89811
|
|
| MD5 |
513ea70ea7cb37725daadfa7bd293f68
|
|
| BLAKE2b-256 |
53797961318691d8c39c5015bc8da695eed765119b73959cff9f48d70aaf57ef
|
Provenance
The following attestation bundles were made for spatio_flux-1.1.0.tar.gz:
Publisher:
release.yml on vivarium-collective/spatio-flux
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spatio_flux-1.1.0.tar.gz -
Subject digest:
634c9f73fd45e821e52f98bcac27008fd4300b5c79dc613248763413a8d89811 - Sigstore transparency entry: 1436170686
- Sigstore integration time:
-
Permalink:
vivarium-collective/spatio-flux@10214b626bb9fe55977b8588059c860c7a3db12d -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/vivarium-collective
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@10214b626bb9fe55977b8588059c860c7a3db12d -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30ff45717623f4fe7bc845aed409f87926432189aff8de004ab1c2a9f8d7dd2a
|
|
| MD5 |
22923862ab827832627cb4e41a88e70e
|
|
| BLAKE2b-256 |
32fcbbb94c8ab368476518eb7b97c4347cb90b04632e420f1aab2fa4511aa0cf
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spatio_flux-1.1.0-py3-none-any.whl -
Subject digest:
30ff45717623f4fe7bc845aed409f87926432189aff8de004ab1c2a9f8d7dd2a - Sigstore transparency entry: 1436170689
- Sigstore integration time:
-
Permalink:
vivarium-collective/spatio-flux@10214b626bb9fe55977b8588059c860c7a3db12d -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/vivarium-collective
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@10214b626bb9fe55977b8588059c860c7a3db12d -
Trigger Event:
push
-
Statement type: