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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2735bd417aafc35f8f57b70f38a350cfd917e31953cf17b8ec9bfab7d252324b
|
|
| MD5 |
bfc68d16eef894ace0f9b7a9b9f5d45e
|
|
| BLAKE2b-256 |
59b085b00a6d88c2d7b4052e7893f5a3192f55c1dd7ffa798e2137b9e769e994
|
Provenance
The following attestation bundles were made for circulation-0.3.0.tar.gz:
Publisher:
pypi.yml on ComputationalPhysiology/circulation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
circulation-0.3.0.tar.gz -
Subject digest:
2735bd417aafc35f8f57b70f38a350cfd917e31953cf17b8ec9bfab7d252324b - Sigstore transparency entry: 1439420518
- Sigstore integration time:
-
Permalink:
ComputationalPhysiology/circulation@dce7317415614d705ef2a60cff7aa850960eb86c -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/ComputationalPhysiology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@dce7317415614d705ef2a60cff7aa850960eb86c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3ff461c6a6cd3a8825412d0f3f9f18bdb6f865e38c71425ecf8041330e1dc62
|
|
| MD5 |
3d2e9d436e4f4ad895c7c9d1dc19730e
|
|
| BLAKE2b-256 |
9ecb46ea521d85d2b5b149a36b6a56c6cf51a0616b77d72a755024dfd53b169d
|
Provenance
The following attestation bundles were made for circulation-0.3.0-py3-none-any.whl:
Publisher:
pypi.yml on ComputationalPhysiology/circulation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
circulation-0.3.0-py3-none-any.whl -
Subject digest:
a3ff461c6a6cd3a8825412d0f3f9f18bdb6f865e38c71425ecf8041330e1dc62 - Sigstore transparency entry: 1439420522
- Sigstore integration time:
-
Permalink:
ComputationalPhysiology/circulation@dce7317415614d705ef2a60cff7aa850960eb86c -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/ComputationalPhysiology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@dce7317415614d705ef2a60cff7aa850960eb86c -
Trigger Event:
push
-
Statement type: