Skip to main content

PhysioBlocks

PhysioBlocks allows the simulation of dynamical models of physiological systems.

User Levels

They are several use cases for PhysioBlocks depending on the user profile:

  • Level 1: Configure and run physiological systems simulation (for pre-existing systems)
  • Level 2: Create new systems with existing blocks without writing code
  • Level 3: Write and add new blocks to the library.

Principle

  • A Net (system) is built from Nodes and Blocks connected by those nodes.
  • At each node in the net, connected blocks share Degrees of Freedom (ex: pressure) and send Fluxes that verify Kirchhoff Law.
  • ModelComponents concatenate blocks equations to the global system (if necessary, for modularity purposes within the block)

Interactions

Level 1: Configure and run a simulation : JSON

  • Update the model parameters

Level 2: Create Nets : JSON

  • Declare the nodes, the blocks, and the block - nodes connections

Level 3: Write and add models to the library: Python

  • Declare the quantities to use in the model
  • Write the fluxes and equations

Documentation

Here are the links to the sections of the full documentation:

Quick start

Complete instructions are available in the documentation. This instructions will enable you to launch a reference simulation.

Installation

This project requires a recent version of python installed. Then:

    pip install physioblocks

Configuration

To configure PhysioBlocks Launcher:

# Create an empty folder where you want to store simulations results.
mkdir $LAUNCHER_FOLDER_PATH$

# Configure the folder
python -m physioblocks.launcher.configure -d $LAUNCHER_FOLDER_PATH$ -v

Launch a simulation

With a Launcher folder configured:

# Move to your configured launcher folder
cd $LAUNCHER_FOLDER_PATH$

#  Launch a reference simulation
python -m physioblocks.launcher references/spherical_heart_sim.jsonc -v -s QuickStart

Results will be available in the $LAUNCHER_FOLDER_PATH$/simulations/QuickStart series folder:

  • the csv files contain the simulation results.
  • the html files allow you to visualize the results.
  • the log and json files are here for debug purposes.

Metadata

Release files for physioblocks 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for physioblocks 1.2.0
File Size Uploaded
physioblocks-1.2.0.tar.gz 7.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for physioblocks 1.2.0
File Interpreter ABI Platform
physioblocks-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 MB

Release files / physioblocks-1.2.0.tar.gz

Download URL physioblocks-1.2.0.tar.gz
Size 7.6 MB
Tags Source
SHA-256 checksum
How to use checksums
6f9042fc01bdeab5d62ae2d055ac79f3dbc294156c766d21c57b5f7e72d6ba00
BLAKE2b-256 checksum
How to use checksums
f5de489adf563cef6e8e05a355620ca6511d1c462ae7ac5cfd6220f2ba8c50f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / physioblocks-1.2.0-py3-none-any.whl

Download URL physioblocks-1.2.0-py3-none-any.whl
Size 181.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac7a2abe6344c31ab1aceee4270b73347aed4649eabd79abfa47925021b87cce
BLAKE2b-256 checksum
How to use checksums
c6471f9fffb1e6cf431dba14f2a13656596d14ccc9ed93a4bfaa157222711ed2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page