Skip to main content

Closed loop blood circulation model in FEniCS

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

circulation-0.2.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

circulation-0.2.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file circulation-0.2.0.tar.gz.

File metadata

  • Download URL: circulation-0.2.0.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for circulation-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a8032ebae5fd34fc48b25c7e31381359ab984db9f45bbba79cbb5c05bbee3a79
MD5 8dcc1ac809c25806e76082c749760f2d
BLAKE2b-256 2e28a04ac18e1c7bb0f036b2e0b0d23ff80d6f43683a564389264f56896f2f01

See more details on using hashes here.

Provenance

The following attestation bundles were made for circulation-0.2.0.tar.gz:

Publisher: pypi.yml on ComputationalPhysiology/circulation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file circulation-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: circulation-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for circulation-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52c597b8c09dc57a2412244a7f2f09d2213e3665610234566d12ad8e89fa0345
MD5 ea510b36b8a4ad8ec3f2aefca5682ec1
BLAKE2b-256 1c7d53ea36d1ded498dfc9893aad30e405587fffd0fed6531a490f872091a3fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for circulation-0.2.0-py3-none-any.whl:

Publisher: pypi.yml on ComputationalPhysiology/circulation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page