Simulate the circulation in your browser

This page runs the project's real Python engine (physiosim) with Pyodide, entirely on your device. Choose a model, change a few parameters, press Run and watch pressure, volume and flow evolve over the last three heartbeats.

Loading Python engine…

First visit downloads about 30 MB (Python, numpy, scipy, physiosim) from this site; your browser caches it afterwards.

1 · Model and parameters

Model

Agreement with the native engine

The same code path (runner.py) was run twice: natively (CPython 3.11, numpy 2.4.6, scipy 1.17.1) and inside this page's Pyodide (CPython 3.14.2, numpy 2.4.6, scipy 1.18.0), for the default scenarios of both models. Different numpy/scipy builds mean the results are not bit-identical; the differences below are the measured ones.

Maximum differences between Pyodide and native results

Loading comparison…

How this works