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.0.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.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: circulation-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2735bd417aafc35f8f57b70f38a350cfd917e31953cf17b8ec9bfab7d252324b
MD5 bfc68d16eef894ace0f9b7a9b9f5d45e
BLAKE2b-256 59b085b00a6d88c2d7b4052e7893f5a3192f55c1dd7ffa798e2137b9e769e994

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: circulation-0.3.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3ff461c6a6cd3a8825412d0f3f9f18bdb6f865e38c71425ecf8041330e1dc62
MD5 3d2e9d436e4f4ad895c7c9d1dc19730e
BLAKE2b-256 9ecb46ea521d85d2b5b149a36b6a56c6cf51a0616b77d72a755024dfd53b169d

See more details on using hashes here.

Provenance

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