GithubHelp home page GithubHelp logo

carlosal1015 / fenics-inversefem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ziemnono/fenics-inversefem

0.0 1.0 0.0 1.13 MB

FEniCS code for inverse FEM hyper-elasticity

License: GNU General Public License v3.0

Python 100.00%

fenics-inversefem's Introduction

fenics-inverseFEM

FEniCS code for inverse FEM hyper-elasticity

In this work, we developed a simple formulation and robust solution procedure using the FEniCS Project software for inverse deformation problems in soft-tissue biomechanics. Conversely to iterative algorithms, our method can solve with one simulation the rest-position without computing multiple solutions of the forward problem. Given a convergence threshold, our physics-based algorithm is about ten times faster and handles better large deformations than the iterative one.

Moreover, the approach also computes internal stresses in the organ with a one-shot approach, which does not require any additional direct deformation simulation from the rest configuration. The framework is implemented within an open-source pipeline enabling the seamless, fully parallelized, direct, and inverse deformation simulation of organs directly from segmented images. The design of the pipeline is flexible to user’s needs: for example, it allows the modification of the constitutive models by changing one single line of code.

FEniCS

To download FEniCS: https://fenicsproject.org/download/ and know more about it: https://fenicsproject.org/

Running the code

To simply run the code:

python3 file_name.py

FEniCS also offers parallel computation:

mpirun -n N python3 file_name.py

where N is the number of core you want to use.

Submodule: FEgen

We used a custom code FEgen to generate tetrahedral volume meshes readbale by FEniCS (.xml) from surface meshes (.obj). This tool can also read medical images NIFTI (.nii, .nii.gz) or INR (.inr, .inr.gz) and output VTK meshes (.vtu).

https://bitbucket.org/unilucompmech/fegen

Full paper

Information

Authors

  • Arnaud Mazier: Department of Computational Science, Université du Luxembourg, Esch-sur-Alzette, Luxembourg
  • Alexandre Bilger: Department of Computational Science, Université du Luxembourg, Esch-sur-Alzette, Luxembourg
  • Antonio E. Forte: Harvard University,29 Oxford St,Cambridge MA 02138,USA
  • Igor Peterlik: Institute of Computer Science, Masaryk University
  • Jack S. Hale: Department of Computational Science, Université du Luxembourg, Esch-sur-Alzette, Luxembourg
  • Stéphane P.A. Bordas: Department of Computational Science, Université du Luxembourg, Esch-sur-Alzette, Luxembourg

Contact

[email protected]

fenics-inversefem's People

Contributors

ziemnono avatar

Watchers

James Cloos 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.