Skip to main content

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.


User are encourage to use the the provided docker image

docker pull

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

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 for more info.


Please read the documentation at for more info.





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

cardiac_geometries-0.10.1.tar.gz (32.0 kB view hashes)

Uploaded source

Built Distribution

cardiac_geometries-0.10.1-py2.py3-none-any.whl (37.8 kB view hashes)

Uploaded py2 py3

Supported by

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