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.3.1.tar.gz (18.5 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.3.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for circulation-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c801f8f2bdb0a505fd4bc58a01010574a87033879615d12a8d7a216dcce77d41
MD5 668b184112660f66ac5227e5ce2606b2
BLAKE2b-256 ce2ce9da2799b37dc1be9bd0991f9277f680fbe7f054a606e0df67e34964eb70

See more details on using hashes here.

Provenance

The following attestation bundles were made for circulation-0.3.1.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.3.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for circulation-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae72913d5dc6b779fcd1a634f9ef0eef40a699e9b2da7645272ffa24545354e2
MD5 6220f4c4305a23dd695f6ae2cb02dd29
BLAKE2b-256 3655b5f3b7d19f0aa7db920966aff77d7f4f9e73b6cfe7a7c559814f80e6f3e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for circulation-0.3.1-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