Cool! Jos Stem style?
Show HN: An ncurses CUDA-based fluid simulation
11–14 of 14 posts
Re: Show HN: An ncurses CUDA-based fluid simulation
#12Curious if you can get away with Burgers on a CPU: https://youtu.be/oxzfY-hPt2k
Are they very different in terms of compute? Looks like Burgers saves maybe a couple of FMA per cell. I’m pretty sure you can get away with Navier Stokes on a CPU. (Depends on the resolution, of course, but the examples here are relatively low res.)
Re: Show HN: An ncurses CUDA-based fluid simulation
#13Earlier quoted context omitted.
Are they very different in terms of compute? Looks like Burgers saves maybe a couple of FMA per cell. I’m pretty sure you can get away with Navier Stokes on a CPU. (Depends on the resolution, of course, but the examples here are relatively low res.)
Yeah Navier stokes accounts for continuity over Burgers' which elevates you from what might be conventional game-dev like water to ANSYS grade CFD. Although, realistic CFD has its tradeoffs too. Solvers like LF, HLLE, and HLLC all offer computation vs. realism tradeoffs. LF is branchless, but struggles with certain sonic/supersonic shock wave characteristics (which one would see in compressible flow only anyway). For…
The main issue with it is that computing curl of a noise field is a ton more compute than Navier stokes. :P
Re: Show HN: An ncurses CUDA-based fluid simulation
#14Earlier quoted context omitted.
Yeah Navier stokes accounts for continuity over Burgers' which elevates you from what might be conventional game-dev like water to ANSYS grade CFD. Although, realistic CFD has its tradeoffs too. Solvers like LF, HLLE, and HLLC all offer computation vs. realism tradeoffs. LF is branchless, but struggles with certain sonic/supersonic shock wave characteristics (which one would see in compressible flow only anyway). For…
Oh that reminded me, in terms of cheating, you can use curl of a noise field to get completely fake incompressible flow. I used this in a Siggraph course once, and in some shots for a CG movie, but Bridson made it useful and way better by showing how to make it flow around objects. https://www.cs.ubc.ca/~rbridson/docs/bridson-siggraph2007-cu... The main issue with it is that computing curl of a noise field is a ton m…