9 ms·
GPU Fluid
- tqkxzugoaupvwqr 9y agoI watched it fullscreen on a mobile phone and in the later stages it was mesmerizing. A fluid simulation as phone screen saver would be awesome.
- ChrisClark 9y agoI've used this as a live wallpaper on my phones for quite a few years. It's a nice fast effect, not truly like this example but gets close enough to the idea. I bought the full version too to customize some colors. https://play.google.com/store/apps/details?id=com.formisk.aliquidcloud.free https://play.google.com/store/apps/details?id=com.formisk.al...
- slavik81 9y agoSadly, a fluid simulation as a phone screen saver would be a battery killer.
- whywhywhywhy 9y agoI thought the iPhone X did this (I haven't used one) but after looking it up it's just a video file [0] [0] http://universaleverything.com/projects/iphone-x-wallpapers/ http://universaleverything.com/projects/iphone-x-wallpapers/
- milesokeefe 9y agosource: https://github.com/tunabrain/gpu-fluid https://github.com/tunabrain/gpu-fluid
- drefanzor 9y agoOFF-TOPIC: When someone has a problem with their computer, I'm going to start telling them they need GPU fluid. Jokes aside, this is a beautiful simulation of 2D fluid dynamics pumped to the screen using OpenGL.
- strictnein 9y agoWhen it releases the magic smoke, it means it's burnt through its supply of GPU fluid.
- mar77i 9y agoWhen the apprentice has nothing else to do, send him buy some gpu fluid.
- corndoge 9y agoOff-topic, but I used to work at Domino's and the running gag for new hires was to yell at them to get the "dough repair kit" from the back in the middle of the Friday evening rush.
- bwilliams18 9y agoIf you have a liquid cooled GPU then GPU Fluid is a real thing...
- userbinator 9y agoThat's exactly what I thought this item would be about before I clicked it.
- IncRnd 9y agoI can see how you might think you have a virus, with that strange message box and those encrypted files, but you actually have a problem with your GPU. We tested if the reservoir of GPU fluid is low, but after we put the transistors on the megahertz scale it's pretty clear that your monitor won't ever go into X mode. It's completely out of sync. The only thing left is to update the source codes, or you'll never boot again.
- amelius 9y agoWouldn't a multigrid approach yield a more scalable acceleration compared to using a GPU?
- electricslpnsld 9y agoProbably depends on the resolution -- I've found a good GPU-based CG implementation can chew through moderately sized problems faster than multigrid. I would also imagine the blog author could get away with some fairly loose tolerances on the Poisson solve (at the cost of some compressibility) and still have the motion look great.
- frozenport 9y agoMultigrid is a family of algorithms and a GPU is piece of hardware.
- ncmncm 9y agoThis posting makes me unaccountably happy.
- tehsauce 9y agoHis 3D fluid simulation and renderer is even more beautiful! https://benedikt-bitterli.me/vorton-fluid.html https://benedikt-bitterli.me/vorton-fluid.html
- namespace 9y agoThis is mind blowing!
- pantalaimon 9y agodoesn't seem to be on github unfortunately
- deleted 9y ago[deleted]
- diimdeep 9y agoHe also made this 2D light renderer http://htmlpreview.github.io/?https://github.com/tunabrain/tantalum/blob/master/tantalum.html http://htmlpreview.github.io/?https://github.com/tunabrain/t...
- lossolo 9y agoIf you like things like fluid simulation and you would like to create real simulation then I would recommend RealFlow. It's so easy to model real life looking huge fluid simulations with physical objects in this software. You can choose to create things like foam automatically. You don't need any knowledge about programming or physics, just set the source, set your scene, click simulate and watch the magic happens. It's only hobby for me but it's great fun. Some simple examples: Seaplane Water Simulation: https://www.youtube.com/watch?v=R9TZNiZYhq0 https://www.youtube.com/watch?v=R9TZNiZYhq0 Some nice features: https://www.youtube.com/watch?v=PuS1zD6kCyc https://www.youtube.com/watch?v=PuS1zD6kCyc Made with realflow: https://www.youtube.com/watch?v=nnv-95w1d5A https://www.youtube.com/watch?v=nnv-95w1d5A [1] http://www.nextlimit.com/realflow/ http://www.nextlimit.com/realflow/
- fwilliams 9y agoIt's worth pointing out that particle-based fluid simulators are not physically accurate. They compute the positions of zero-volume particles in space at every frame (fluid has volume). This is convenient for performance purposes since you can evaluate each particle position mostly in parallel and the results look convincing enough for a movie or a game. In contrast, mesh-based (and grid-based like in the article) simulators approximate the Navier-Stokes equations and converge to the exact solution as the mesh element sizes approach zero. Mesh-based simulators solve a global system of equations in every frame. This system has variables equal in number to total mesh elements over the entire domain. Solving such a large system (especially in 3D) is very expensive. Furthermore, the size and shape of the mesh elements drastically affect the numerical stability of the solution, and generating good meshes is not a solved problem in all cases. For these reasons, we really only use mesh-based simulators when we need a high-degree of scientific accuracy.
- electricslpnsld 9y ago> It's worth pointing out that particle-based fluid simulators are not physically accurate. Do you have some references for this? I was under the impression that convergence results have been shown for purely Lagrangian approaches like SPH.
- fhood 9y agoIn the Hot Black Smoke video, how does the asymmetry occur? Is it due to imperfections in the calculations?
- godelski 9y agoWhy would you expect symmetry? Smoke from a real flame does not have symmetry.
- usmannk 9y agoI think they're asking how to create the asymmetry and if the imperfections in the calculations are exploited to do so.
- deleted 9y ago[deleted]
- xster 9y agoWouldn't that physical analogy be caused by factors unknown to this algorithm though? Air flux, non-homogeneous air, air impurity etc. Would flames not be symmetrical if all of the above plus everything imaginable like quantum physics, solar activity, dark matter, wtv, are all controlled for?
- godelski 9y agoIf we're going to the level of QM, then no. Because QM is inherently a random process. Like radioactive decay is a great way to make true random number generators. The real world has truly random events, and while it bothers many people, physicists don't generally argue about this point (anymore). Maybe if you had a perfectly homogeneous air density (which you'd never see, even in a really good vacuum and near absolute zero temperature. You can thank QM for that), that constantly stayed homogeneous. Problem in real world conditions is that nothing is perfectly homogeneous (entropy exists), so things will heat up unevenly, certain parts will gain more velocity than others, and just a small offset can create a large change in outcome. Short answer is that these systems are chaotic in nature, so they are not stable. But that doesn't have anything to do with simulations (except what you are trying to emulate). As far as simulations, numerical accuracy will play a role, but really what you look for is if it is realistic, because the real world has random events. That's more what I was trying to get at. You want something that represents reality, not an overly simplified example that you can't use in a meaningful way. Even with these inaccuracies you can get representative models (they will reflect what happens in a physical experiment). And I say representative, because you aren't going to account for all those factors in a simulation, but you are accurate enough to make extremely effective conclusions. I'll even note that some people will add random noise into their simulations (I don't know if this author did, but numerics can play that role).
- spot 9y agomuch more CFD, still images, animations, artworks: http://markjstock.com/ http://markjstock.com/
- bane 9y agoReminds me of this recent demoscene production....backwards fluid dynamics that generate bad poetry text in 8kb. https://www.pouet.net/prod.php?which=62974 https://www.pouet.net/prod.php?which=62974
- grewil2 9y agoFor those who would like round off this excellent post with some classy, non-gpu, retro platform fluid, please check out Fluid Fire, a great little 1k Amiga bootsector intro. https://www.youtube.com/watch?v=OKatv85Bei4 https://www.youtube.com/watch?v=OKatv85Bei4
- kbutler 9y agoI've just been thinking car repair, so I had hopes of something more unusual here, maybe like the blue smoke of some electronics. https://en.wikipedia.org/wiki/Magic_smoke https://en.wikipedia.org/wiki/Magic_smoke
- amitbr 9y agoFluid simulation is hard, I found using a curl-noise based fluid simulation works quite well esp for mobile game development
- quickthrower2 9y agoI found them very relaxing. Like watching your coffee
- noobermin 9y agoMany of the instabilities you see in his sims are familiar from everyday observation, like mixing cream into coffee. See for example, the following two which are the most familiar: https://en.wikipedia.org/wiki/Rayleigh%E2%80%93Taylor_instability https://en.wikipedia.org/wiki/Rayleigh%E2%80%93Taylor_instab... https://en.wikipedia.org/wiki/Kelvin%E2%80%93Helmholtz_instability https://en.wikipedia.org/wiki/Kelvin%E2%80%93Helmholtz_insta...
- nicolashahn 9y agoBeautiful. If he were to sell hi-res prints of some of these I'm sure people would buy them.
- msoad 9y agoThere is a Reddit community for Generative Art: https://www.reddit.com/r/generative/ https://www.reddit.com/r/generative/ Computer generated art is fascinating
- gattr 9y agoAh, brings back fond memories. I always loved physics simulations and managed to implement a fluid solver (after reading [1]) back in 2005. When I got the basic 2D version working, I spent maybe 20 minutes just stirring the vortices with a mouse - so fun! [1] Visual Simulation of Smoke (physbam.stanford.edu/~fedkiw/papers/stanford2001-01.pdf)
- npgatech 9y agoI am wondering if engineering simulations for fluids take advantage of GPUs? I studied CFD back in 2005 or so and we used ANSYS Fluent as a solver and it took forever to converge with sufficient accuracy. If anyone in engineering has insight into this, I'd love to know. Technically, non-fluid simulations could also be sped up using GPUs? Dynamics, solid state mechanics, thermal simulations, etc.
- andars 9y agohttps://www.nvidia.com/object/tesla-ansys-accelerations.html https://www.nvidia.com/object/tesla-ansys-accelerations.html
- NamTaf 9y agoIn my experience from solid mechanics, generally no. I don’t know exactly why, but my guess would be that there’s a significant lag time in development of these packages. They are conservative and heavily favour accuracy to speedy new techniques. Often they use back-end solvers that are very old. For example I use FEMAP professionally and it’s essentially a pre- and post-professor over NASTRAN, which is way older than me. Adding GPGPU to it would be difficult indeed, and no one will pick a less accurate new solver without it having been robustly proven (it’s a chicken and egg problem, in a way). Also, GPUs aren’t suited to all problems. You still have the memory limits of GPUs which aren’t as Large as traditional RAM (I see no GPUs with 32-64GB RAM). They’re not the silver bullet people sometimes hope for. Lastly, the people who do this are surprisingly less overlapping with the flashy new IT development-aware crowd than you’d expect. They’re not Silicon Valley types with their finger on the pulse of the latest and greatest. Most just use PCs as a tool and wouldn’t know the benefits GPGPU could provide. To them, video cards are just video cards.
- fermienrico 9y agoI understand the difficultly with legacy code, but your opinion about "Silicon Valley" types, etc. is very off putting. World needs to evolve. Those who do not, disappear. If there is a way without sacrificing accuracy, then GPU computation would be absolutely amazing. Imagine the productivity boost, time savings, power and infrastructure savings you'd gain by using a GPU (if it is possible that is). Imagine being able to simulate engineering problems in near real time without having to wait for hours for a solver to converge. I don't have experience in the solvers, but if there is a way to enable GPU computation then why the hell not!? Silicon valley types or not. People who are engaged in CFD (I used to work at Lockheed's flutter dynamics team) are certainly not "old fashioned" as you describe. GPU to them wouldn't just be a "kid's video game toy" - I can assure you having worked with these folks.
- coling 9y ago> white fluid and heavy, black fluid flow past each other, creating the Kelvin-Helmholtz instability This reminded me of the recent Jupiter images: https://solarsystem.nasa.gov/planets/jupiter/galleries https://solarsystem.nasa.gov/planets/jupiter/galleries
- k_138z 9y agoGraphics programming seems to be very interesting to me, especially after watching cool stuff like this. Can anyone point me out to good resources where I can start learning it?
- Tempest1981 9y agoDo you want to learn how to use graphics APIs to do cool stuff? Or create graphics API's, using cool math? Or learn CPU/GPU innards?
- starpilot 9y agoWhat he's doing, writing CFD codes from scratch, is basically all math. You should be pretty comfortable solving PDEs by hand, then learn about the numerical solutions.
- goldenkey 9y agoUnfortunately it takes a lot of persistence because mathematics is a huge precursor. Most people want bells and whistles but aren't willing to bunker down and learn partial differential equations and other context which can be less buzzworthy and somewhat mundane. I think math is cool though, its the language of complexity.
- Tempest1981 9y agoYou can also start with simpler things, like drawing 3D graphs of equations, rendering and shading 3D shapes, and plotting Mandelbrot sets. For me, that was fun and visual, with simpler math. Example of sin(x)+cos(y) : http://maxima-online.org/examples.html http://maxima-online.org/examples.html
- andrewwharton 9y agoI came across a nice video/presentation from some guys at SpaceX on using GPUs to model and visualise the fluid flows inside rocket engines (specifically the Raptor engine) and around spacecraft during reentry, as well as a good explanation of how they do it efficiently using adaptive grids. Their explanations are quite approachable as well. https://www.youtube.com/watch?v=txk-VO1hzBY https://www.youtube.com/watch?v=txk-VO1hzBY
- Bromskloss 9y agoDo they have code available?
- tankenmate 9y agoVery unlikely, this software is an enormous commercial advantage. Not so much the cost in and of itself of the software but for the advantage of speeding up development of engines, etc through shortened iterations. SpaceX developed this because they couldn't find any reasonable solutions on the market already. I suspect that reasonable not only included cost and availability but also the ability to adjust the product to their needs.
- tobmlt 9y agoNote the citations at the end of the video (44:30 mark ). Code from some of the original research the spacex stuff was based on, adaptive wavelet collocation methods, used to be online in a bitbucket repo here: https://git.plgrid.pl/scm/tmh/wavelet-original-code.git https://git.plgrid.pl/scm/tmh/wavelet-original-code.git Unfortunately it seems to have been taken down. A shame - it was really everything! But as a huge CFD library research code it is a bit hard to sift through anyway. I'd recommend the papers then. Stuff like this, from these guys (Jonathan Regele and Oleg Vasileyev), led to the Spacex software: https://www.researchgate.net/publication/239395184_An_adaptive_wavelet-collocation_method_for_shock_computations https://www.researchgate.net/publication/239395184_An_adapti... An earlier starting point might be something like this: http://ms.mcmaster.ca/kevla/pdf/articles/Kevlahan_SISC_v26.pdf http://ms.mcmaster.ca/kevla/pdf/articles/Kevlahan_SISC_v26.p... This line of work dates back to the mid 90s as you will see from the sources.
- munificent 9y agoHis page needs a trigger warning for Imposter Syndrome.
- tezza 9y agoa realtime fluid solution is available in Unity: Megaflow less detailed, but realtime on the CPU https://www.assetstore.unity3d.com/en/#!/content/24340 https://www.assetstore.unity3d.com/en/#!/content/24340 and Fluvio which has GPU acceleration.
- p_eter_p 9y agoThe most impressive version of this I have seen is from NASA/Boeing: https://youtu.be/-D5N_OnZ_Tg https://youtu.be/-D5N_OnZ_Tg I cannot imagine the amount of work that goes into something like this.