Cardiac circulation models
This package provides a set of models for the circulation of blood in the heart and the rest of the body.
Install
python -m pip install circulation
Documentation
See https://computationalphysiology.github.io/circulation
Usage
import matplotlib.pyplot as plt
import circulation
# Create a model
model = circulation.regazzoni2020.Regazzoni2020()
# Solve the model for 5 seconds with a time step of 1 ms and an evaluation time step of 10 ms
results = model.solve(T=5.0, dt=1e-3, dt_eval=0.01)
# Print some information about the pressure, flows and volumes inside the model
model.print_info()
# Plot the pressure-volume loop
fig, ax = plt.subplots()
ax.plot(results["V_LV"], results["p_LV"])
ax.set_xlabel("V [mL]")
ax.set_ylabel("p [mmHg]")
plt.show()
See more examples in the documentation.
License
MIT
Metadata
Release files for circulation 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| circulation-0.4.0.tar.gz | 25.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| circulation-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.1 kB
Release files / circulation-0.4.0.tar.gz
| Download URL | circulation-0.4.0.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e82b022e1dbb86862a2ff7d0eb2286e36302e0e49b692e0c6ae323199da50be4
|
|
BLAKE2b-256 checksum How to use checksums |
08085394a035e746e0e90d46a0abf77cea99f9f363c7a994d033346efccc6a84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency logRelease files / circulation-0.4.0-py3-none-any.whl
| Download URL | circulation-0.4.0-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c0b1478bbf4e726b2c6eaecd90c597949c37edcc7228e306ffb677b0db1872a
|
|
BLAKE2b-256 checksum How to use checksums |
f352ed1512bcd480e23adc486ec8459e7280039b7a5aded53db955fcfe2f6506
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency log