Fluid node · simulation · time dependent

flip_solver

FLIP liquid solver. Simulates water as particles on a staggered grid. Input 0 = fluid source: a closed mesh is filled with particles at `particle_sep` spacing (jittered lattice); a points-only geometry is used as particles directly (point `v` is the initial velocity). With emission = continuous the source volume is refilled every frame (taps, waterfalls); `velocity` sets the initial velocity. Input 1 = colliders: closed meshes (or an `sdf` volume), static or animated. Container: `container` auto = a dam-break tank around the source (source against the -X wall, 2.2 source sizes of free run toward +X, 0.25 source sizes of margin in Z, floor half a source height below the source), explicit = container_min/container_max. `walls` box = closed tank, ground = only a floor (particles that leave the sides/top are deleted). Output points: P, v (m/s), id, pscale (= 0.6 * particle_sep), speed, Cd (blue, turning white = foam above `foam_speed`). Detail: flip_sep, flip_voxel, particle_count. Mesh it with fluid_surface. Defaults (box -> flip_solver) give a dam-break: the block drops, splashes against the walls, sloshes and settles within ~4 s. Cost scales with particle count: particle_sep auto targets ~25k particles (~0.1-0.3 s/frame); halve particle_sep for 8x the particles. flip_ratio 0.95-0.98 = lively splashes, lower = calmer/viscous.

Inputs

Parameters 20

particle_sepfloat
Default 0Range 0 to …

Particle separation (m). 0 = auto (largest source size / 30). Grid voxel = 2x this.

emissionmenu
Default onceOptions once continuous

once: fill the source at the start frame. continuous: keep refilling the source volume every frame.

velocityvector 3
Default [0, 0, 0]

Initial velocity of emitted particles (m/s).

containermenu
Default autoOptions auto explicit

auto: tank built around the source. explicit: container_min / container_max.

container_minvector 3
Default [-2, -1, -1.5]

Explicit container minimum corner.

container_maxvector 3
Default [2, 2, 1.5]

Explicit container maximum corner.

wallsmenu
Default boxOptions box ground

box: closed tank. ground: floor only, liquid leaving the container is deleted.

gravityvector 3
Default [0, -9.81, 0]

Gravity (m/s^2).

flip_ratiofloat
Default 0.95Range 0 to 1

FLIP/PIC blend. 1 = pure FLIP (splashy, noisy), 0 = PIC (viscous).

drift_correctionfloat
Default 0.35Range 0 to 2

Pushes apart over-dense regions to keep volume constant.

wall_frictionfloat
Default 0.02Range 0 to 1

Velocity lost per substep when touching the floor.

cflfloat
Default 1.5Range 0.2 to 5

Max cells a particle may move per substep (adaptive substepping).

max_substepsint
Default 8Range 1 to 64

Upper bound on adaptive substeps per frame.

pressure_itersint
Default 200Range 10 to 2000

Max conjugate-gradient iterations.

max_particlesint
Default 300000Range 1000 to …

Refuse to emit more particles than this.

foam_speedfloat
Default 3Range 0.01 to …

Speed (m/s) at which Cd becomes fully white.

water_colorcolour
Default [0.08, 0.35, 0.85]

Cd of calm water particles.

seedint
Default 0

Jitter seed.

start_frameint
Default 1

Frame where the simulation starts

substepsint
Default 2Range 1 to …

Solver substeps per frame

Use it

Add it from the node menu (right-click empty graph space or Tab, then type flip_solver), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"flip_solver","name":"my_flip_solver","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.