Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge
swh:1:cnt:52b6f45a93f7340ec1e97efe05b24a2cbdceab0b

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
## Code description 

This is the opensource code for the following papers:

(1) Silly Rubber: An Implicit Material Point Method for Simulating Non-equilibrated Viscoelastic and Elastoplastic Solids ,Yu Fang, Minchen Li, Ming Gao, Chenfanfu Jiang, (SIGGRAPH 2019)

(2) CD-MPM: Continuum Damage Material Point Methods for Dynamic Fracture Animation ,Joshuah Wolper, Yu Fang, Minchen Li, Jiecong Lu, Ming Gao, Chenfanfu Jiang, (SIGGRAPH 2019)

It is tested on a fresh install of Ubuntu 18.04 LTS.

## Unzip Data

Go to Data/LevelSets and unzip **breadxxx.vdb.zip** into the same directory.

You need to do this due to the github single file size limit.

## Dependencies Installation

    sudo apt-get install make cmake g++ libeigen3-dev gfortran libmetis-dev
    sudo apt-get install libopenvdb-dev libboost-all-dev libilmbase-dev libopenexr-dev
    sudo apt-get install libtbb2 libtbb-dev libz-dev clang-format-6.0 clang-format
   
## Building in Ziran

    mkdir build && cd build
    cmake .. -DCMAKE_BUILD_TYPE=Release
    make -j 4

## Running Demos

    cd Projects/mpm
    ./mpm -test 1
    ./mpm -test 2
    ./mpm -test 3

    cd Projects/admm
    ./admm -test 1
    ./admm -test 2
    ./admm -test 3
    ./admm -test 4
    ./admm -test 5
    ./admm -test 6
    
    cd Projects/fracture
    ./fracture -test 1
    ./fracture -test 2
    ./fracture -test 3

## Bibtex

Please cite our papers if you use this code for your research: 
```
@article{fang2019silly,
  title={Silly rubber: an implicit material point method for simulating non-equilibrated viscoelastic and elastoplastic solids},
  author={Fang, Yu and Li, Minchen and Gao, Ming and Jiang, Chenfanfu},
  journal={ACM Transactions on Graphics (TOG)},
  volume={38},
  number={4},
  pages={118},
  year={2019},
  publisher={ACM}
}
```
```
@article{wolper2019cd,
  title={CD-MPM: Continuum damage material point methods for dynamic fracture animation},
  author={Wolper, Joshuah and Fang, Yu and Li, Minchen and Lu, Jiecong and Gao, Ming and Jiang, Chenfanfu},
  journal={ACM Transactions on Graphics (TOG)},
  volume={38},
  number={4},
  pages={119},
  year={2019},
  publisher={ACM}
}
```

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API