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
- 0source
- 1colliders
Parameters 20
particle_sepfloatParticle separation (m). 0 = auto (largest source size / 30). Grid voxel = 2x this.
emissionmenuonce: fill the source at the start frame. continuous: keep refilling the source volume every frame.
velocityvector 3Initial velocity of emitted particles (m/s).
containermenuauto: tank built around the source. explicit: container_min / container_max.
container_minvector 3Explicit container minimum corner.
container_maxvector 3Explicit container maximum corner.
wallsmenubox: closed tank. ground: floor only, liquid leaving the container is deleted.
gravityvector 3Gravity (m/s^2).
flip_ratiofloatFLIP/PIC blend. 1 = pure FLIP (splashy, noisy), 0 = PIC (viscous).
drift_correctionfloatPushes apart over-dense regions to keep volume constant.
wall_frictionfloatVelocity lost per substep when touching the floor.
cflfloatMax cells a particle may move per substep (adaptive substepping).
max_substepsintUpper bound on adaptive substeps per frame.
pressure_itersintMax conjugate-gradient iterations.
max_particlesintRefuse to emit more particles than this.
foam_speedfloatSpeed (m/s) at which Cd becomes fully white.
water_colorcolourCd of calm water particles.
seedintJitter seed.
start_frameintFrame where the simulation starts
substepsintSolver 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.