01 / 21

Fluid & Smoke
Simulation

Master Mantaflow in Blender to create realistic liquid and smoke effects using physics-based simulation.

Blender Mantaflow

What Is Fluid Simulation?

Fluid simulation is the process of computationally modeling the behavior of liquids and gases over time. In Blender, the Mantaflow engine solves the underlying physics equations to produce realistic motion for water, smoke, and fire.

Key Terminology

Domain
The bounding volume where all simulation calculations occur. Think of it as the "container" for your fluid.
Flow
The source object that emits fluid, smoke, or fire into the domain.
Effector
An object that interacts with the simulation as a collision obstacle or guide force.

The Simulation Pipeline

Domain Bounding Box Flow Emitter Object Simulate Bake Physics Render Shader + Output

The Navier-Stokes Foundation

Mantaflow discretizes the Navier-Stokes equations on a voxel grid. The two key constraints are:

Momentum Equation
\(\rho\left(\frac{\partial \mathbf{v}}{\partial t} + \mathbf{v}\cdot\nabla\mathbf{v}\right) = -\nabla p + \mu\nabla^2\mathbf{v} + \rho\mathbf{g}\)
Incompressibility
\(\nabla \cdot \mathbf{v} = 0\), meaning the fluid volume is conserved: what flows in must flow out.

Voxel Resolution Matters

Low (32) Medium (64) High (128+) Blocky Fast bake Balanced Good default Detailed Slow bake

Liquid vs Gas Domains

Liquid Domain Gas Domain
Physics Type FLIP particles + mesh Volumetric density grid
Surface Mesh generated from particles No surface: rendered as volume
Typical Use Water, lava, honey Smoke, fire, clouds
Key Settings Particle Radius, FLIP Ratio Dissolve, Buoyancy Density
Shader Principled BSDF Principled Volume / Emission

Anatomy of a Smoke Simulation

Domain Flow (Emitter) Buoyancy Dissolves Effector

Smoke rises via buoyancy, spreads through turbulence, and fades via dissolve time. The effector deflects the plume around obstacles.

The FLIP Particle Method

Blender's liquid solver uses the FLIP (Fluid-Implicit Particle) method. It combines the best of two worlds:

Grid
A voxel grid handles pressure solving and enforces incompressibility (\(\nabla \cdot \mathbf{v} = 0\)).
Particles
Particles carry velocity and advect through the grid, preserving sharp detail and preventing numerical diffusion.

Setting Up a Domain: Step by Step

1
Add a mesh object (cube recommended) and scale it to enclose the entire simulation area.
2
In Physics properties, click Fluid and set type to Domain. Choose Gas or Liquid.
3
Set Resolution Divisions: start at 32 for preview, increase to 64-128 for final.
4
Add a second object inside the domain. Set it to Fluid > Flow with behavior Inflow or Geometry.
5
Under the domain's Cache section, choose Modular or All, set frame range, and click Bake Data.

Example: Basic Smoke Plume

Domain (Gas Type) Sphere Settings:
Resolution: \(64\)
Dissolve: \(25\) frames
Flow Type: Smoke
Buoyancy: \(1.0\)

Example: Liquid Splash Setup

Domain (Liquid Type) Standing Liquid Sphere Gravity Settings:
Resolution: \(96\)
FLIP Ratio: \(0.97\)
Particle Radius: \(1.0\)
Mesh: enabled Particles: spray + foam

Example: Adding Fire to Smoke

Fire in Blender is a gas simulation with an additional flame data channel. The flame value drives the emission color in the volume shader.

1
Set Domain type to Gas and enable the Fire checkbox under the domain settings.
2
On the Flow object, set Flow Type to Fire + Smoke. Adjust the Fuel amount (higher = larger flames).
3
Set Reaction Speed to control how fast fuel burns. A value of 0.3 gives slow, billowing fire.
4
In the shader, connect the Flame attribute to an Emission node with a ColorRamp mapping black to red to orange to yellow.

Baking & Cache Management

Modular
Bake data, mesh, and particles separately. Best for iterating: re-bake only what changed.
All
Bake everything at once. Simpler but requires full re-bake for any change.
Replay
No cache on disk: recalculates on every playback. Good for quick previews only.

Common Mistakes

✕ Domain Too Small
The fluid clips at the domain boundary. Always leave margin around your expected simulation area.
✕ Scale Not Applied
Unapplied scale (Ctrl+A) causes incorrect physics. The solver uses world-space dimensions.
✕ Forgetting to Bake
Playing the timeline without baking shows nothing or glitchy results. Always bake before rendering.
✕ No Volume Shader
Smoke/fire needs a Principled Volume or custom volume shader on the domain. Without it, nothing renders.
✕ Wrong Normals on Flow
Flow emission uses face normals. Flipped normals emit fluid in the wrong direction.

Quick Reference Summary

Parameter Smoke/Fire Liquid
Domain Type Gas Liquid
Resolution Start 32-64 64-96
Resolution Final 128-256 128-200
Key Flow Setting Fuel, Temperature Initial Velocity
Rendering Volume shader Surface shader + mesh
Secondary Effects Noise (upres detail) Spray, Foam, Bubbles
Cache Size Moderate Large

Question 1 of 5

In Blender's Mantaflow system, which object type defines the bounding volume where all fluid calculations take place?

Question 2 of 5

If you double the Resolution Divisions of a fluid domain, by approximately how much does the memory usage increase?

Question 3 of 5

Which shader type must be applied to a Gas domain for smoke and fire to appear in a render?

Question 4 of 5

In Blender's FLIP liquid solver, what does a high FLIP Ratio (close to 1.0) produce?

Question 5 of 5

What common mistake causes fluid to behave at the wrong scale, producing unrealistic physics?