Beware the strawberry milkshake monster!
Simulations are hard.
When it comes to doing simulations on meshes with a finite number of vertices it's relatively easy to achieve desired results. But as soon as you try taming hundreds of thousands or even millions of particles, you're in trouble. Especially when it comes to doing fluid simulations. You need a special kind of solver, a powerful rig or a network of rigs and a lot of patience. It took me by surprise how difficult seemingly trivial simulations can be.
In the animated film I'm working on I will have large and small bodies of water and certain gaseous liquids in the background for increased production value.
If you're a freelancer or a hobbyist on a budget in need to simulate some fluids, off-the-shelf tools available on the market can be a good choice. However, there are so many of them that finding out their differences as well as pros and cons is a quest in itself. In this post I'll explore some of the ways an amateur like me can do various fluid-like simulations and what technologies there are to help get the job done.
I'll briefly cover two of perhaps the most well known and renowned fluid sims on the market — Naiad and Realflow.

There was the time when you could only purchase a single Naiad license for $5,500 or rent it quarterly for about $1,400. Luckily those times are over since in 2012 Naiad was sold to Autodesk and turned into Maya Bifrost. So now you can get your hands on Naiad tech within Maya for just $185 a month. You can find out more about Bifrost in this blog post at Digitaltutors. It's a powerful FLIP solver (more on this method below) and well integrated into Maya too with GPU caching and an ability to playback tens of thousands or even millions of particles in real-time directly within the DCC as well as a variety of tools for artistic direction of your simulations.

Then there's Realflow, which comes with several solvers for you to choose (SPH, PBF, HYBRIDO) and with its Dyverso particle solver (the one which uses PBF) gives you the ability to simulate on CPU or GPU, the latter using OpenCL for computations. You can read more about Realflow's solvers here. Overall, Realflow isn't terribly slow and well scalable when you give it lots of cores to work with, but as soon as you realize your hardware limitations and the fact that the cheapest single-seat license with the C4D integration costs over $750 you start looking for other solutions.
I won't spend too much time on different types of solvers available on the market, only mentioning some of them for the sake of argument. There's an excellent (albeit slightly dated) article on the subject at fxguide explaining them in detail if you're interested in finding out more.
This is the first post demonstrating what NVIDIA PhysX FleX is capable of when it comes to high-quality simulations. I'm planning to show how it can be used for all kinds of simulations with the upcoming blog posts. Also a cool demonstration video below.

FleX is a particle based simulation framework developed by NVIDIA for real-time visual effects. The idea is the following: instead of having a bunch of solvers for each type of a body (rigid, soft, fluid, cloth etc.) why not create a unified solver based on the concept of using particles (or "molecules" if you prefer) to represent the bodies? Then, make this solver work on modern GPUs to deliver unprecedented simulation speed and you can actually use the result for real-time simulations in games or interactive presentations.

Now, we all know what "real-time performance" means when it comes to the "offline" CGI — we all know the drill! ;)
Out of curiosity decided to quickly compare the cost and rendering performance of several CUDA-capable GPUs.
Scores taken from the official OctaneBench results database. Prices - from local online merchants in my area (TAX, VAT included) so your mileage may vary. I used my GTX 970 results as reference. The fact that it's one of the most popular enthusiast-grade GPUs on the market also helps.

I didn't account for the power consumption because electricity rates vary a lot from area to area so if you're planning to run your render farm 24/7 (which is not recommended) you can look into it yourself.
(Used) NVIDIA GTX 780 Ti is a clear winner here. So if you're thinking about building a render farm to use with Octane or Redshift, check it out, it's a bargain.
As soon as GTX 1080 CUDA-compute/rendering results become available I will add them to the chart. Don't expect a miracle though. Preliminary benchmark results from various forums including Redshift and Lexmark show that GTX 1080 is pretty much just a tad faster than 980 Ti and Titan, and in some heavy scenes it can actually be slower than the two! Hope it's just a driver problem and we'll see at least 20-25% improvement over the previous flagship models as promised by NVIDIA.
Otherwise it will be a grave disappointment.