Skip to main content

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)

Source distribution for circulation 0.4.0
File Size Uploaded
circulation-0.4.0.tar.gz 25.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for circulation 0.4.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.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