Sand through water simulation
While I was at home over Easter break, I was looking at this novelty thing I got from Myrtle Beach a few years ago. It's these two panes of glass that have sand and water between them and are on a sort of pivot. When you turn it upside down, the sand runs to the bottom and it's kind of neat to watch it flow. Anyways, I'd kind of like to write a program that simulated this (mostly just because I think it'd be a neat little exercise, but I think it'd make a cool screen saver as well), but figure simulating each grain of sand is probably way too much for a PC to do. A friend told me that I should just simulate the fluid flowing, that the sand was just on for the ride, but I know essentially nothing about physics, and was wondering if someone could point me to some sort of "Physics for Computer Scientists" sort of thing or had another (potentially simpler) idea for how to do this. I'd like to really simulate it though, and not just have some image of sand that dropped from one side of the screen to the other. Thanks.