From Water Drop Tank · v2. Edit this definition in its source simulation.
Source
behavior PrepareSurface for FreeSurfaceWater {
update {
set self.wet = min(self.kind, 1.0);
set self.fluid = max(self.kind - 1.0, 0.0);
set self.interface = 1.0 - abs(self.kind - 1.0);
set self.gas = max(1.0 - self.kind, 0.0);
set self.fill = clamp(self.mass / max(self.rho, 0.000001), 0.0, 1.0);
}
}Building blocks
These exact versions are included when you reuse this artifact.