Can a Fluid Solve a Maze? Water, Heat, and Current All Take the Same Path
A few years ago Steve Mold poured water into the top of a clear plastic maze and let it find its way to the bottom. It is a wonderful piece of kitchen-table science — and it hides a question that goes surprisingly deep: what does it actually mean for a fluid to “solve” a maze? We rebuilt his actual maze in simulation — extracting the exact wall layout from a frame of his video — and the answer turned out to be two answers: one messy and emergent, one clean and universal — and the second one quietly ties together every solver in an engineering toolbox.
Answer #1: gravity water, the way Mold did it
Pour water into the reservoir and gravity does the rest. But watch closely — the water does not cleverly seek the exit. It does what water always does: seeks the lowest level it can reach. So it backfills the dead-ends, filling each blind pocket to the brim before spilling onward to the next lowest opening, slowly working its way down through the corridors. The “solution” it traces is real, but it is a gravity-lowest reachable route, not the shortest one, and it gets there having wasted effort flooding passages that lead nowhere.
The water doesn't know where the exit is and doesn't care. It goes downhill. Where it ends up is a fact about the maze's plumbing, not about any intelligence in the fluid.
We modeled this faithfully as a free-surface Volume-of-Fluid (VOF) simulation in Ansys Fluent — water and air as two phases, gravity switched on, the interface tracked as the water floods down. It is the heavier, fussier physics: transient, surface-tracking, and convergence-sensitive. With a gentle sustained inlet and an implicit-VOF, gently-coupled solve — the setup that finally stays stable at full physical scale — the flood front threads all the way down to the bottom outlet, wetting the reachable corridors (roughly half the maze) as it descends, and it does this with zero bleed through any wall: every wet cell sits inside a real corridor. The route the water threads is real — but it is the gravity-lowest reachable one, filling dead-ends along the way; the shortest entrance-to-outlet route is nailed down separately, by the Laplace solvers below.
Getting there took real work. A sharp explicit-VOF scheme blew up as the water accelerated — the Courant number ran away at the maze’s true millimeter scale — and even implicit VOF diverged when the inlet was pushed too hard, the pressure solver blowing up at a small trickle. The recipe that finally stayed stable all the way to the outlet was a gentle sustained inlet, a gently-coupled implicit-VOF solve, and a small time step, run long enough (a full second of flow time) for the front to actually reach the bottom. That is the honest cost of a clean free-surface maze flood: not one solve, but the one that stays stable the whole way down.
Answer #2: the part that makes an engineer sit up
Now change the question entirely. Forget gravity. Instead, hold the entrance at a high potential and the exit at a low one, and ask where the steady flux goes. In steady state, a dead-end carries zero net flux — nothing flows into a pocket with no way out — so every bit of flux funnels onto the single through-path. The dead-ends go dark; the solution lights up.
Here is the beautiful part. That “potential” can be three completely different physical things, and the governing equation is the same in every case — Laplace's equation, ∇²φ = 0:
- Pressure, driving a slow viscous flow — solved in Ansys Fluent.
- Temperature, driving heat conduction — solved in Ansys MAPDL (the Mechanical solver), ∇²T = 0.
- Voltage, driving electric current — also Ansys MAPDL, ∇²V = 0.
We solved all three on the exact same maze mesh. And they don't just look similar — they are the same field. The heat-flux map and the current-density map are identical to plotting accuracy, and both trace the same route the flow does.
Five ways to flood the same maze
Answer #1 used Ansys Fluent’s VOF — but it is hardly the only way to push a fluid through a maze. The question a working engineer actually asks is which tool to reach for. So we flooded Steve Mold’s exact maze five different ways — mesh-based VOF, a granular DEM stand-in, meshless SPH particles, incompressible ICFD, and multi-material Eulerian ALE — and we report each method’s actual result, strugglers and workflow gaps included. The honest “what works, and when” is the whole point; we don’t pretend the methods came out equal.
| Method | Depth / fill | Outlet? | No-bleed | Solve status | When to use it |
|---|---|---|---|---|---|
| Fluent VOF | to outlet / ~47% | Yes* | Yes (0%) | Stable, normal term. | Best free-surface CFD here — reaches the outlet, clean |
| Rocky DEM | 9% (row 1/20) | No | Yes (0) | Completed | GPU granular scale — but granular ≠ fluid (jams, won’t backfill) |
| LS-DYNA SPH | 3.9% | No | Partial | Unstable @ 26 ms | Meshless — but explicit-unstable on slow gravity flow |
| LS-DYNA ICFD | no clean maze depth | — | — | Free surface works | Free-surface (level-set) solver confirmed working (Normal term., surface advected; the t=0 divergence was a deck bug) — but the sealed level set isn’t mass-conserving, so no clean maze depth without an outflow setup |
| LS-DYNA MMALE / S-ALE | not quantif. | — | — | Normal term. | Robust solve (face-aligned seal, 0 NaN) — evolving-VF post is a follow-up step |
*VOF now reaches the bottom outlet, with a stable gentle-implicit run — the deepest flooder by far; the earlier explicit and hard-driven runs stalled mid-maze or went unstable, which is what it took to learn the stable recipe. The ICFD row is an honest partial — a corrected single-volume level-set deck proved the free-surface (level-set) solver works on this LS-DYNA R16.1.1 build (Normal Termination over 201 steps, ‘Level Set Detected’, and the free surface demonstrably advected in the d3plot); the original t=0 divergence was a deck-construction error, now disproven. But the single-fluid level set isn’t mass-conserving in the tiny sealed maze (it fills to ~100%), so no clean maze flood-depth comparable to VOF was produced — that needs an outflow/two-volume setup not completed here. The MMALE solve ran to normal termination with a verified initial fill, but the evolving flood volume-fraction was not extracted to measure depth in this workflow — a post-processing follow-up.
The honest distinction
It matters that these are two different senses of “solve.” The gravity water finds a path — the gravity-lowest reachable one — and fills dead-ends along the way; it is not computing the shortest route. The Laplace solvers find the least-resistance path, which equals the shortest path only when every corridor has the same width (the same conductance per unit length). Our maze has uniform corridors, so here the two coincide — but widen one passage and the steady field would happily prefer it even if it were longer. We say which is which, and we keep the maze geometry (the input) separate from the path each solver picks (the result).
Why this one matters
The water maze is a delight to watch, but the lesson underneath is the one worth keeping. The same equation is hiding everywhere. Heat spreading across a circuit board, current through a bus bar, seepage under a dam, pressure through a porous filter, a chemical diffusing through a membrane — all Laplace, all “path of least resistance,” all solved by the same machinery you just watched thread a maze. Learn to recognize the Laplace operator behind a problem and one solver's intuition transfers to all the others. That is the whole promise of a multiphysics platform, demonstrated on a maze a child could enjoy.
Solved in Ansys Fluent 2026 R1 (VOF + steady flow) and Ansys MAPDL (steady thermal and electric conduction) on a single workstation. Want the step-by-step how-to and the build log of what broke along the way? Ask us.
Have a design where everything hinges on the path the flux picks — heat spreading out of a hot component, current crowding through a bus bar, seepage working its way under a dam — and a layout far too tangled to call by eye? The same Ansys workflow behind this maze — a transient free-surface VOF flood in Ansys Fluent, held to zero bleed through any wall and run until it threaded the corridors all the way down to the bottom outlet; steady thermal and electric conduction in Ansys MAPDL on the identical mesh, each scored against the maze’s true solution path and against the other; the steady Fluent flow standing as a third independent solver that had to agree with both; and four rival flooders (Rocky DEM, LS-DYNA SPH, ICFD, MMALE/S-ALE) run and reported with their strugglers intact — is how Rand Simulation helps engineering teams see where the flux actually concentrates, and which method deserves the trust, before a hot spot or a leak path finds it for them in hardware. That's innovation through insight.



