Skip to content

Latest commit

 

History

History

5_mov_dirichlet

Mass-Spring Solids Simulation

A square falling onto a ground under gravity and then compressed by a ceiling is simulated with mass-spring elasticity potential and implicit Euler time integration. Each time step is solved by minimizing the Incremental Potential with the projected Newton method.

Dependencies

pip install numpy scipy pygame

Run

python simulator.py