ComfyUI Node
Fluid Latent Advection
A ComfyUI node in latent/perturb with 14 inputs and 2 outputs.
Fluid Latent Advection
- latent
- mask
- latent
- velocity_preview
◄steps20►
◄dt1.00►
◄resolution_scale0.50►
◄force_count3►
◄force_strength5.0►
◄force_radius0.10►
◄swirl_strength2.0►
◄velocity_damping0.980►
◄diffusion0.00►
◄vorticity0.00►
◄seed0►
◄wrap_modeclamp►
Categorylatent/perturb
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| latent | LATENT | Latent to distort by fluid advection (treats channels as dye). | |
| steps | INT | 200–256 | Number of simulation steps. |
| dt | FLOAT | 1.000–4 | Time step size used during semi-Lagrangian advection. |
| resolution_scale | FLOAT | 0.500.25–1 | Internal simulation resolution scale (lower = faster). |
| force_count | INT | 30–64 | Number of random force injections ('sticks') per step. |
| force_strength | FLOAT | 5.00–64 | Linear force magnitude added to velocity (in latent pixels / step). |
| force_radius | FLOAT | 0.100–1 | Normalized radius of influence (0.1 = 10% of min(width,height)). |
| swirl_strength | FLOAT | 2.00–64 | Rotational component added around each stick position. |
| velocity_damping | FLOAT | 0.9800–1 | Velocity decay applied each step (lower = more viscous / quickly settles). |
| diffusion | FLOAT | 0.000–1 | Optional velocity diffusion (simple Gaussian smoothing). |
| vorticity | FLOAT | 0.000–10 | Vorticity confinement strength (adds swirling detail). |
| seed | INT | 00–18446744073709550000 | Seed controlling the random stick injections. |
| wrap_mode | COMBO | clamp | How advection samples outside the bounds. |
| maskopt | MASK | Optional mask to limit the effect to masked areas (mask is resized to latent resolution). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| latent | LATENT | — |
| velocity_preview | IMAGE | — |