← Browse all
Heron's Fountain — 2D Simulation — Interactive browser simulation of a pump-less Heron's fountain

Heron's Fountain — 2D Simulation

Web Apps & Prototypes Playable Updated 2mo ago

Interactive browser simulation of a pump-less Heron's fountain

Episodes & demos

About

Heron's Fountain is a zero-dependency, browser-based 2D simulation of a Heron's fountain. It models three water regions (a fixed top Basin, sealed Chamber A, and sealed Chamber B) connected by pipes P1, P2, and P3, treating the two sealed air spaces as one shared volume at a single pressure. Physics uses a polytropic pressure-volume relation (P = P0 (V0 / V)^k, default isothermal k = 1) and an orifice flow approximation (Q = Cd A sqrt(2 dP / rho)) accounting for hydrostatic head, with water conserved as transferred volumes. The animated side view draws the apparatus, liquid flow, airflow, and a horizontal particle jet, with live readouts of elapsed time, jet velocity, flow rate, vessel volumes, and fill percentages. Controls include Invert (exchanging chamber elevations and reversing flow), Auto Invert with selectable triggers (jet speed, flow rate, chamber fill, elapsed cycle time, or settled condition) plus threshold and dwell, simulation Speed of 1x-16x, and Reset. It is a deliberate lumped approximation that omits turbulence, surface tension, viscosity, temperature change, and detailed inversion mechanics. No build step or external dependency is required; serve the directory as static files.

Summary

An interactive, browser-based 2D approximation of a Heron's fountain that shows how falling water compresses trapped air to drive a fountain jet without a pump.

Tech

  • JavaScript
  • HTML5
  • Canvas

Tags

  • canvas
  • fluid-dynamics
  • interactive
  • physics
  • simulation