A python library for cardiac geometries
Project description
Cardiac Geometries
This is a library for creating idealized cardiac geometries in FEniCS using gmsh
.
Currently you can create bi-ventricular (BiV) and left-ventricular (LV) ellipsoidal geometries as well as slab geometries. There is also support for creating bi-ventricular and slab geometries embedded in a torso / bath.
This package can also output analytic fiber orientations for LV and Slab and integrated with the ldrb algorithm BiV geometries.
Install
User are encourage to use the the provided docker image
docker pull ghcr.io/computationalphysiology/cardiac_geometries:latest
which comes pre-installed with FEniCs and gmsh.
You can also install cardiac-geometries
using pip
python3 -m pip install cardiac-geometries
but this requires FEniCS and gmsh to be installed in other ways. See more at https://computationalphysiology.github.io/cardiac_geometries/install.html
Getting started
cardiac-geometries
comes with a command-line interface, and to e.g create an LV mesh you can do
cardiac-geometries create-lv-ellipsoid lv-mesh
The same functionality can be accessed through the Python API, e.g
import cardiac_geometries
geo = cardiac_geometries.mesh.create_lv_ellipsoid(outdir="lv-mesh")
See https://computationalphysiology.github.io/cardiac_geometries/quickstart.html for more info.
Documentation
Please read the documentation at http://computationalphysiology.github.io/cardiac_geometries for more info.
Contributing
See https://computationalphysiology.github.io/cardiac_geometries/CONTRIBUTING.html
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
File details
Details for the file cardiac_geometries-1.1.7.tar.gz
.
File metadata
- Download URL: cardiac_geometries-1.1.7.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c22a29b11888ecf650b231b904d2e8fce829220a010b92c25fbe15770af81b10 |
|
MD5 | 921b24afe0bf27134f3c9412bc63193c |
|
BLAKE2b-256 | ecbf20add61a2eb555c05d7f6d5888ab81cdf798932169666cbb9e23495291d2 |
File details
Details for the file cardiac_geometries-1.1.7-py2.py3-none-any.whl
.
File metadata
- Download URL: cardiac_geometries-1.1.7-py2.py3-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7318e0be7ae81d3a49b8b97710d357e79cdf9bb1e4398a1df6a6e2b5374f6a05 |
|
MD5 | d2ca94e48a398c56fc9fbfdedaf58b29 |
|
BLAKE2b-256 | c0bdae845fa463050de3b5d7740cae8c8e20451d93677cce27bf0a20cbc5ecd8 |