Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Differentiable Material Point Method

NotificationsYou must be signed in to change notification settings

geoelements/diffmpm

Repository files navigation

MPM simulations are applied in various fields such as computer graphics, geotechnical engineering, computational mechanics and more.diffmpm is a differentiable MPM simulation library written entirely in JAX which means it also has all the niceties that come with JAX. It is a highly parallel, Just-In-Time compiled code that can run on CPUs, GPUs or TPUs. It aims to be a fast solver that can be used in various problems like optimization and inverse problems. Having a differentiable MPM simulation opens up several advantages -

  • Efficient Gradient-based Optimization: Since the entire simulation model is differentiable, it can be used in conjunction with various gradient-based optimization techniques such as stochastic gradient descent (SGD), ADAM etc.
  • Inverse Problems: It also enables us to solve inverse problems to determine material properties by formulating an inverse problem as an optimization task.
  • Integration with Deep Learning: It can be seamlessly integrated with other Neural Network models to enable training physics-informed neural networks.

Installation

diffmpm can be installed directly from PyPI usingpip

pip install diffmpm

ToDo

Add separate installation commands for CPU/GPU.

Usage

Once installed,diffmpm can be used as a CLI tool or can be imported as a library in Python. Example input files can be found in thebenchmarks/ directory.

Usage: mpm [OPTIONS]  CLI utility for DiffMPM.Options:  -f, --file TEXT  Input TOML file  [required]  --version        Show the version and exit.  --help           Show this message and exit.

Further documentation about the input file can be found in the documentation[INSERT LINK HERE].diffmpm can write the output to various file types like.npz,.vtk etc. that can then be used to visualize the output of the simulations.

Examples


[8]ページ先頭

©2009-2025 Movatter.jp