Physics simulations work by like doing all the calculations included in a physics
it's honestly pretty simple
here is my attempt at a water tension simulator (i havent been able to figure it out)