Behavior · Published v1

ProtectFilledNeighbors

ProtectFilledNeighbors from Water Drop Tank.

From Water Drop Tank · v2. Edit this definition in its source simulation.

Source

behavior ProtectFilledNeighbors for FreeSurfaceWater
{
    update when (self.kind == 0.0 || self.nextKind == 0.0) && (sum n in neighbors[FreeSurfaceWater using D3Q19] { n.filling }) > 0.0 {
        set self.nextKind = 1.0;
        set self.emptying = 0.0;
    }
}

Building blocks

These exact versions are included when you reuse this artifact.

PropertyFreeSurfaceWater@hyle · v1