MPM-Py
A computational implementation of MPM using Python
Introduction
The study and understanding of the MPM requires prior knowledge about numerical methods (modeling, integration, interpolation, etc), mechanics of continuum media (deformation gradient, main stresses, large deformations, etc.), theory of elasticity and plasticity, and also knowledge in programming (few programs with graphical user interface). MPM-Py is a computational implementation of the MPM using Python language. It is designed for the study and understanding the MPM. In MPM-Py, the code is structured in modules that provide an easy-to-understand environment for the algorithm, separating the MPM's own operations from the numerical calculations associated with the interpolation and integration operations.
Main features
written in Python language (high level)
object-oriented programming
structured in modules
free and open source (GLP-3.0 License)
Open source
Installation
git clone https://github.com/fabricix/MPM-Py.git
Example 1: Mesh View
python mesh-test.py
Example 2: Viewing Interpolation Functions
python interpolation-functions-test.py
Example 3: Single mass vibration using 1 material point and 1 element in one dimension
python mpm-single-mass-bar-vibration.py
Example 4: Continuum bar vibration using 15 elements and 2 particles per element
python mpm-continuum-bar-vibration.py