Giter VIP home page Giter VIP logo

pulse_adjoint's Introduction

CircleCI Documentation Status Anaconda-Server Badge

Pulse-Adjoint

Here we demostrate how you can constrain a cardiac computational model using clinical measurements such as pressure, volume and regional strain. The problem is formulated as a PDE-constrained optimisation problem where the objective functional represents the misfit between measured and simulated data. There are two phases; passive and active. In the passive phase the material parameters are the control parameters, and in the active phase the contraction parameter is the control parameter. The control parameters can be scalar or spatially resolved. The problem is solved using a gradient based optimization algorithm where the gradient is provided by solving the adjoint system.

Note

The code here is currently undergoing a major refactoring in order for it to be compatible with more recent versions of fenics as well as the standalone cardiac mechanics solver pulse. We expect the master branch to be stable, as development will mainly be done on other branches. The original code, hosted at Bitbucket is no longer maintained.

Installation

pulse-adjoint is written in pure python but based on fenics and dolfin-adjoint (using libabjoint). Therefore fenics version 2017 and dolfin-adjoint that uses libadjoint (not pyadjoint) is currently the only supported versions. You also need to install pulse.

As pulse-adjoint is a pure python package you can install it by simply typing

python setup.py install

when you are in the same folder as the setup.py.

Doumentation

Documentation is found at pulse-adjoint.readthedocs.io

Getting started

In order to get starting with pulse-adjoint it is beneficial to get to know FEniCS as well as the pulse, which has a lot of demos

Next you can check out the demoes in this repository. They should give an idea on how you can incorporate your own data into the pipeline. If you need to generate microstructure you can checkout out the ldrb

Citing

You are welcomed to use this code for your own reaseach, but encourage you to cite the following paper:

Finsberg, H., Xi, C., Tan, J.L., Zhong, L., Genet, M., Sundnes, J., Lee, L.C. and Wall, S.T., 2018. Efficient estimation of personalized biventricular mechanical function employing gradient‐based optimization. International journal for numerical methods in biomedical engineering, p.e2982. DOI

License

GNU LGPL v3

Contributors

pulse_adjoint's People

Contributors

finsberg avatar sigurdlekve avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.