Basic fluid simulator of weakly-compressible moving particle semi-implicit (MPS) in Python. The code is very simply, altought extremely slow, to make it a good starting point to anyone who want to learn the basics of the MPS.
2D dam-break simulation Youtube (in Portuguese)
In the command prompt (terminal)
py mps_explicit.py
This code writes vtk files as output. You can visualize them by open with Paraview 👀.
Code largely inspired by: