Git Product home page Git Product logo

pypd's Introduction

PyPD

A simple and performant Python implementation of the bond-based peridynamic model. PyPD offers an intuitive class structure with fully interchangeable material models and integration schemes.

Features:

  • Pure Python: Written entirely in Python, leveraging the power of Numba for optimal performance
  • Material Models: Seamlessly switch between various material models including linear, trilinear, and nonlinear
  • Integration schemes: Fully interchangeable integration schemes
  • Examples: Several examples are provided and validated using published experimental data

Usage

Explore examples using PyPD in Google Colab

Example description Notebook
Crack branching in Homalite Open In Colab
Half-notched quasi-brittle beam in three-point bending Open In Colab
Plate with a hole under tension Open In Colab

Getting started

Development version from GitHub:

$ pip install git+https://github.com/mark-hobbs/PyPD.git

or for contributors using Pipenv:

$ git clone https://github.com/mark-hobbs/PyPD.git
$ cd PyPD/
$ pipenv install --dev
$ pipenv shell

Dependencies

  • NumPy
  • Numba
  • scikit-learn
  • Matplotlib
  • tqdm

Development dependencies

  • Black
  • Ruff
  • Jupyter

Code structure

Examples

Expand for a summary of the examples provided

There are multiple examples provided:

Crack branching

python -m examples.2D_notch.py

Mixed-mode fracture

Example with validation using experimental data.

García-Álvarez, V. O., Gettu, R., and Carol, I. (2012). Analysis of mixed-mode fracture in concrete using interface elements and a cohesive crack model. Sadhana, 37(1):187–205.

Flexural three-point bending test - half-notched beam

python -m examples.2D_B4_HN.py

✅ TODO

  • Write unit tests
  • Write documentation
  • Publish on PyPI
  • feature/space-filling-curve - sort particles spatially to improve memory access (see this notebook on understanding the Hilbert curve)
  • feature/animation - add native capabilities to generate animations
  • GPU acceleration (see this notebook where pytorch is used to speed up particle simulations)
  • Implement a volume correction scheme to improve spatial integration accuracy
  • Implement a surface correction scheme to correct the peridynamic surface effect
  • Implement different influence functions (constant/triangular/quartic)

pypd's People

Contributors

mark-hobbs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pypd's Issues

a problem about install

ERROR: Could not find a version that satisfies the requirement pkgutil (from versions: none)
ERROR: No matching distribution found for pkgutil

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.