1
Programming / Navier Stokes Equation & Other
« on: September 25, 2011, 06:03:15 AM »
Heya, I've been wondering, does anyone have or know where to find a good Navier Stokes Equation* code for Python? I know that the guy who made libtcod made it, but it was in C++, and I can't port it over for Python cause I'm still a bit noobish.
Also, if you have found some cool other solutions for something else, not necessarily Navier Stokes, post those too if they can be used in roguelikes!
Perhaps I'll post up the Sierpinski Triangle fractal, sometime later, although it has no benefit in roguelikes sadly.
* Navier Stokes simulates liquids and gaseous substances and how they move. Today it is used in games to simulate smoke, wind, effects, etc. But in 2D? You can make some really badass flame effects. Check out libtcod's demo pages for the Navier Stokes demo if you are interested. Be warned, it's epic.
Also, if you have found some cool other solutions for something else, not necessarily Navier Stokes, post those too if they can be used in roguelikes!
Perhaps I'll post up the Sierpinski Triangle fractal, sometime later, although it has no benefit in roguelikes sadly.
* Navier Stokes simulates liquids and gaseous substances and how they move. Today it is used in games to simulate smoke, wind, effects, etc. But in 2D? You can make some really badass flame effects. Check out libtcod's demo pages for the Navier Stokes demo if you are interested. Be warned, it's epic.