Physioblocks allows the simulation of dynamical models of physiological systems
Project description
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 -t -s QuickStart
# This can take some time.
Results will be available in the $LAUNCHER_FOLDER_PATH$/simulations/QuickStart series folder.
Project details
Release history Release notifications | RSS feed
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 physioblocks-1.0.0.tar.gz.
File metadata
- Download URL: physioblocks-1.0.0.tar.gz
- Upload date:
- Size: 16.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34932aaa79d8a9132edd45125485f524ad37c0df226508a72fdc0f976cee0844
|
|
| MD5 |
943d824c7957497e8395046210654a03
|
|
| BLAKE2b-256 |
89107a0c27f6133c232990de82e535277ecb0ed9cf6e3bfa26c17913cb6d4c31
|
File details
Details for the file physioblocks-1.0.0-py3-none-any.whl.
File metadata
- Download URL: physioblocks-1.0.0-py3-none-any.whl
- Upload date:
- Size: 159.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09cbb7bf4ab6461cffc911f011cf640d28bfee655f8f508d9e3df42cb66b0b2d
|
|
| MD5 |
7cb44652d393912d4b5d00377c382ed0
|
|
| BLAKE2b-256 |
8e07822d5392f1b54df665108dda952816d3c7e8a051ea692601ec0f91a33e5a
|