Skip to main content

A FEniCS-based cardiovascular physics solver

Project description

README

  • Ambit - A FEniCS-based cardiovascular physics solver

3D nonlinear solid and fluid mechanics finite element Python code using FEniCS and PETSc libraries, supporting

  • Solid mechanics
    • Finite strain elastodynamics, implementing a range of hyperelastic isotropic and anisotropic as well as viscous constitutive laws
    • Active stress for modeling of cardiac contraction mechanics
    • Quasi-static, generalized-alpha, or one-step theta time integration
    • Nearly incompressible as well as fully incompressible formulations (latter using pressure dofs)
    • Prestressing using MULF method in displacement formulation
    • Volumetric growth & remodeling
  • Fluid dynamics
    • Incompressible Navier-Stokes/Stokes equations, either in nonconservative or conservative formulation
    • Navier-Stokes/Stokes flow in an Arbitrary Lagrangian Eulerian (ALE) reference frame
    • One-step theta, or generalized-alpha time integration
    • SUPG/PSPG stabilization for equal-order approximations of velocity and pressure
  • Lumped (0D) models
    • Systemic and pulmonary circulation flow models
    • 2-element as well as 4-element Windkessel models
    • Signalling network model
  • Coupling of different physics:
    • Monolithic coupling of ALE and fluid, 3D solid/fluid/ALE-fluid with lumped 0D flow models
    • Multiscale-in-time analysis of growth & remodeling (staggered solution of 3D-0D coupled solid-flow0d and G&R solid problem)
  • Fluid-reduced-solid interaction (FrSI)
    • Boundary subspace-projected physics-reduced solid model (incl. hyperelastic, viscous, and active parts) in an ALE fluid reference frame
  • POD-based model order reduction (MOR)
    • Projection-based model order reduction applicable to main fluid or solid field (also in a coupled problem), by either projecting the full problem or a boundary to a lower dimensional subspace spanned by POD modes

Still experimental / to-do:

  • Fluid-solid interaction (FSI) (started)
  • Finite strain plasticity
  • Electrophysiology/scalar transport
  • ... whatever might be wanted in some future ...

Installation

In order to use Ambit, you need to install FEniCSx (latest Ambit-compatible dolfinx development version dates to 19 Aug 2023)

Ambit can then be installed using pip, either the current release

python3 -m pip install ambit-fe

or latest development version:

python3 -m pip install git+https://github.com/marchirschvogel/ambit.git

Alternatively, you can pull a pre-built Docker image with FEniCSx and Ambit installed:

docker pull ghcr.io/marchirschvogel/ambit:latest

If mixed-domain functionality should be used (needed for FSI or fluid problems with valve planes that need a duplicate pressure space), a mixed container based on another dolfinx branch can be pulled:

docker pull ghcr.io/marchirschvogel/ambit:mixed

If a Docker image for development is desired, the following image contains all dependencies needed to install and run Ambit (including the dolfinx mixed branch):

docker pull ghcr.io/marchirschvogel/ambit:devenv

Usage

Have a look at example input files in ambit/tests and the file ambit_template.py in the main folder as example of all available input options

Best, check if all testcases run and pass, by navigating to ambit/tests and executing

./runtests.py

(if the mixed container is used, you can execute ./runtests.py -b mixed which will execute the additional tests requiring the mixed dolfinx branch, too)

  • Build your input file and run it with the command
mpiexec -n <NUMBER_OF_CORES> python3 your_file.py

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

ambit-fe-1.0.6.tar.gz (182.1 kB view details)

Uploaded Source

Built Distribution

ambit_fe-1.0.6-py3-none-any.whl (219.3 kB view details)

Uploaded Python 3

File details

Details for the file ambit-fe-1.0.6.tar.gz.

File metadata

  • Download URL: ambit-fe-1.0.6.tar.gz
  • Upload date:
  • Size: 182.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ambit-fe-1.0.6.tar.gz
Algorithm Hash digest
SHA256 e001f398920f7d981dd30bfe66c956ad2a24194cd4b88464d722ee7df61f995d
MD5 a1431f5f92c093c772d71a7481c9900b
BLAKE2b-256 891050f0077f9a233a2d36867e31d68b86fb06cf4e90afc5937500684fd0f7a7

See more details on using hashes here.

File details

Details for the file ambit_fe-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: ambit_fe-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 219.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ambit_fe-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f750f4fd8b1532f70e224af92803b0ab4014f447600a04bdb89a0f982f8cf9f0
MD5 38c1cc636b4604f692239ac28f14f9a1
BLAKE2b-256 099b9121e8ac5a07159eb18652ea756b296492ade17390b2dd3f8884ce8e6774

See more details on using hashes here.

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