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.

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


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-1.1.8.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cardiac_geometries-1.1.8-py2.py3-none-any.whl (35.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cardiac_geometries-1.1.8.tar.gz.

File metadata

  • Download URL: cardiac_geometries-1.1.8.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cardiac_geometries-1.1.8.tar.gz
Algorithm Hash digest
SHA256 0708aae0548043caa02f3d6b7296bf9a3f9c1a04bbe892e5a09ecbb8ab00152f
MD5 2dc80b57b70f6dc09033a0dde435ff2b
BLAKE2b-256 9cb870488736e5fa3744fbc0ef6d3004c71148a8f0705fd9fbfde15f66312f4f

See more details on using hashes here.

File details

Details for the file cardiac_geometries-1.1.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cardiac_geometries-1.1.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dbdc28c2028b2764fefba9709c33cdbe05543945314056c9b81ec6d47018fd1d
MD5 d1c95025ee456d6145381fe0295493fe
BLAKE2b-256 6499663b6e8874fd722272917f73bc11471afe7d037b03969a52533f7d81756b

See more details on using hashes here.

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