Code Monkey home page Code Monkey logo

caputo_derivatives's Introduction

Caputo Derivative

This is a companion source code for the publication Simulating Hyperelasticity and Fractional Viscoelasticity in the Human Heart (DOI: 10.1016/j.cma.2023.116048).

Content

This repository contains the following:

  • Matlab caputo fractional derivative example (/matlab_example)
  • Python caputo fractional derivative implementation (/src/py/caputoD)
  • C++ caputo fractional derivative implementation (/src/cpp/fractional/caputo.cpp)
  • Cython headers and module for compiling the c++ code to a python shared library (/src/cython)
  • Script for generating the analytical solution in Example 1 of paper (compute_analytical_solutions.py)
  • Script for generating the validation data for convergence with the number of Prony series (prony_serie_test.py)
  • Script for generating the validation data for convergence with the scaling the time interval (time_interval_test.py)

Installation

The necessary python modules are listed in requirements.txt To compile the cython module, you can:

  • Call Makefile (Linux only)
  • Run python3 make.py
  • Manually run pip install on requirements.txt and build /src/setup.py

Unittests

Unit tests are available as examples and to test that the shared library is working properly

  • Call make test
  • Call python3 make.py test

Mittag-Loeffler function

The mittag-loeffler function is the fork of the repository by Konrad Hinsen, see

https://github.com/khinsen/mittag-leffler

References

@article{ZHANG2023simulating, title = {Simulating hyperelasticity and fractional viscoelasticity in the human heart}, journal = {Computer Methods in Applied Mechanics and Engineering}, volume = {411}, pages = {116048}, year = {2023}, issn = {0045-7825}, doi = {https://doi.org/10.1016/j.cma.2023.116048}, url = {https://www.sciencedirect.com/science/article/pii/S004578252300172X}, author = {Will Zhang and Javiera Jilberto and Gerhard Sommer and Michael S. Sacks and Gerhard A. Holzapfel and David A. Nordsletten}, keywords = {Viscoelasticity, Cardiac biomechanics, Cardiac modeling, Computational modeling, fractional viscoelasticity}, }

caputo_derivatives's People

Contributors

willwiz avatar

Stargazers

Jijo Derick Abraham avatar

Watchers

 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.