physics-hacker / physicshacker.com

PhysicsHacker.com website
GNU General Public License v2.0
0 stars 0 forks source link

Fluid mechanics demo #3

Open chrisorban opened 8 years ago

chrisorban commented 8 years ago

The fluid mechanics demo has some problems with the boundary conditions. Right now everything that goes out the right side comes back through near the middle of the left side instead of the code being smart enough to detect how wide the pipe is on the left.

We also need velocity vectors (and potentially even acceleration vectors) on the objects. This will show that the flow is faster in the middle.

Eventually we will also want the pipe to turn different colors depending on how often objects bounce against it and how hard they bounce (in other words showing the pressure). This should show that the pressure at the center is lower than it is at the ends because of bernoulli's principle.

ghost commented 8 years ago

Working on the velocity problem for both the fluid mechanics and roll lab. Currently having a little bit of trouble getting the correct scaling between pixels of processing and the simulated box2d world but should have time to finish it in the next day or two. (Juggling this and several other projects so development is slow, I apologize for the inconvenience.)

chrisorban commented 8 years ago

Don't spend too much time trying to get the scaling exactly right. For the planetoids lab there is a parameter that makes the arrows overall larger or smaller and we just pick a number that looks best, neither too short or too long.