FLIP fluid

Also known as: FLIP · Fluid-implicit particle

On this page 8

A FLIP fluid is a liquid simulated with the fluid-implicit particle (FLIP) method, a hybrid technique that carries the fluid on particles while solving pressure and incompressibility on a background grid. In Simulation & effects work within 3D graphics & animation, FLIP is the standard approach for liquids such as water, splashes, pouring and flooding, because it preserves fine motion far better than a purely grid-based solver.

The method was introduced in computational physics in the 1980s and adapted for visual effects in the mid-2000s. Today it drives the liquid solvers in Houdini, Bifrost, Mantaflow and many studio tools, and its output usually feeds meshing, whitewater and rendering stages further down the pipeline.

How the FLIP method moves liquid

FLIP works by transferring velocity back and forth between particles and a grid on every step. The particles hold the authoritative state of the liquid, while the grid exists only to solve the equations that particles alone handle poorly, above all the pressure projection that keeps the liquid from compressing or expanding.

  1. Particle to grid: each particle splats its velocity onto nearby grid cells, weighted by distance.
  2. Grid forces: the solver adds gravity, external force fields and viscosity on the grid.
  3. Pressure solve: a linear system makes the velocity field divergence-free, which enforces incompressibility.
  4. Grid to particle: particles receive the change in grid velocity, not the grid velocity itself.
  5. Advection: particles move through the updated field, usually with a second- or third-order integrator.

Step four is the defining idea. Because particles pick up only the velocity delta, they keep their own small-scale motion instead of having it averaged away. This is why FLIP produces lively, swirling splashes, while a pure grid method looks thick and damped at the same resolution.

FLIP, PIC and APIC velocity transfer

The way velocity returns from grid to particle defines the family of hybrid solvers. The older particle-in-cell (PIC) scheme copies the grid velocity directly, which is stable but strongly dissipative. FLIP copies only the difference, which is energetic but can become noisy. The table below compares the three main transfer schemes used in production.

SchemeWhat particles receiveBehaviorTypical drawback
PICInterpolated grid velocityVery stable, smoothHeavy numerical viscosity
FLIPChange in grid velocityEnergetic, detailedParticle noise and jitter
PIC/FLIP blendWeighted mix of bothTunable balanceRequires a sensible ratio
APICVelocity plus local affine fieldDetailed and stableMore memory per particle
Grid-to-particle transfer schemes

Most production solvers expose a FLIP ratio (sometimes called a blend or PIC/FLIP weight). A value of 0.95 to 0.99 is common for large water, while lower values around 0.8 to 0.9 calm small-scale or viscous liquids. Affine particle-in-cell (APIC) keeps angular momentum without the noise and has become a popular alternative in newer tools.

Key parameters of a FLIP simulation

A FLIP setup is controlled by a handful of parameters that decide detail, stability and cost. Changing one usually forces adjustments to another, so artists treat them as a connected set rather than independent sliders.

ParameterTypical rangeWhat it controls
Particle separation0.01-0.1 scene unitsOverall resolution and particle count
Grid scale1.5-2 times separationVoxel size for the pressure solve
Particles per voxel4-8Sampling density and surface smoothness
Substeps1-4 per frame, CFL-drivenAccuracy of fast motion
FLIP ratio0.8-0.99Energy versus noise balance
Viscosity0 for water, high for honeyResistance to shearing flow
Core FLIP settings and their effects

Particle separation is the master control. Halving it multiplies the particle count by roughly eight in three dimensions, and simulation time and disk usage grow at a similar rate. The Courant-Friedrichs-Lewy (CFL) condition limits how far a particle may travel in one substep, so fast splashes need more substeps to avoid particles tunneling through colliders.

How FLIP compares with other liquid methods

FLIP sits between purely Eulerian grid solvers and purely Lagrangian particle methods such as smoothed-particle hydrodynamics (SPH). Each approach suits different scales and shots, as the comparison shows.

MethodRepresentationStrengthsWeaknesses
FLIPParticles plus gridDetailed splashes, true incompressibilityLarge caches, needs meshing
Grid-only solverVoxelsSmoke, fire, gasesVolume loss and blurry liquids
SPHParticles onlyNo grid, flexible domainsCompressibility artifacts, costly at scale
Ocean spectrumDisplaced surfaceInfinite open water, cheapNo true splashes or breaking waves
Position-based fluidsParticles with constraintsFast, real-time friendlyLess physical accuracy
FLIP against related fluid approaches

In practice, studios combine methods. A spectral ocean provides the distant sea, a narrow-band FLIP simulation adds physical interaction near a ship, and a whitewater pass generates spray, foam and bubbles from the FLIP velocity data.

From particles to a renderable surface

Raw FLIP output is a point cloud with attributes such as velocity, age and vorticity, so it must be converted before rendering. The usual path rasterizes particles into a signed distance field (SDF), smooths it with dilation, erosion and filtering, and extracts a polygon mesh or renders the volume directly.

  • Surface meshing: particle radius and smoothing control whether the surface looks crisp or blobby.
  • Velocity attributes: stored on the mesh to drive motion blur and foam advection.
  • Whitewater emission: curvature, acceleration and vorticity mark where spray and foam appear.
  • Caching: particles and meshes are written to disk as a simulation cache for lighting and review.

Common problems and how artists fix them

Most FLIP failures trace back to resolution mismatches, collision setup or time stepping. The following decision table lists frequent symptoms with their usual causes and remedies.

SymptomLikely causeUsual fix
Liquid leaks through wallsThin collider or too few substepsThicken the collider SDF, raise substeps
Volume slowly shrinksWeak pressure solve or particle lossEnable volume correction, tighten solver tolerance
Noisy, jittery surfaceFLIP ratio too highLower the ratio or switch to APIC
Liquid looks like syrupToo much PIC blending or viscosityRaise the FLIP ratio, check viscosity
Blobby, lumpy meshParticle radius too largeReduce radius, add filtering passes
Troubleshooting FLIP fluids

A further warning concerns scale. Solvers assume real-world units, so a cup of water modeled at the size of a building splashes in slow motion. Setting the correct scene scale before simulating avoids many surprises.

In simple terms

A FLIP fluid is computer water made of millions of tiny dots. The dots remember how they are moving, and a hidden grid of boxes checks that the water never squeezes together or spreads apart unnaturally.

Think of a crowd of dancers on a floor marked with squares. Each square tells the dancers in it how to adjust, but every dancer keeps a personal style. The dots keep the splashes lively, and the grid keeps the water believable.

A practical example

A visual effects team must show a small fishing boat crashing through a wave in a storm. The distant sea comes from an ocean spectrum, but the hull hitting the water needs real splashes, so the artists build a narrow-band FLIP simulation in a band roughly 40 meters wide around the boat.

They start at a particle separation of 0.1 meters to block the timing, then refine to 0.025 meters for final quality, which raises the count to about 60 million particles. A FLIP ratio of 0.97 keeps the crest energetic, three substeps per frame prevent leaks through the hull, and the velocity data seeds a separate whitewater pass for spray and foam.

The result is a shot in which water climbs the bow, breaks and falls back convincingly, blended seamlessly into the surrounding procedural ocean.