Author Topic: Navier Stokes Equation & Other  (Read 5723 times)

etherme|ster

  • Newcomer
  • Posts: 7
  • Karma: +0/-0
    • View Profile
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.

Z

  • Rogueliker
  • ***
  • Posts: 905
  • Karma: +0/-0
    • View Profile
    • Z's Roguelike Stuff
Re: Navier Stokes Equation & Other
« Reply #1 on: September 25, 2011, 08:10:08 AM »
To keep its mathematical theme, my Hydra Slayer uses Sierpiński Carpet as a level layout in some deeper levels. Probably this should be switched to Sierpiński Triangle in hex mode.