🏰 Crown Gate: Royal Atlantean Tide-Lock Simulator
Explore Crown Gate, a richly detailed offline WebGL2 simulation of an imaginary Atlantean storm-surge harbour: lock gates, barrel pumps, tidal forces and a living 3D city.
Inside the mechanism.
Ten detailed answers about the hydraulics, navigation, controls and historical imagination behind Crown Gate. Select any question to expand its answer.
01What exactly is being simulated when the tide rises?+
Two coupled water elevations are represented: a prescribed, changing sea outside the barrier and a stored volume of water inside the harbour. The sea is driven by mean level, a sinusoidal tide and a gradually increasing storm-surge component. The inner water level is calculated, not prescribed: it changes with gate exchange, breaches, overtopping, runoff, pumping and the one-way relief sluice. Its rate of change is the net flow divided by the basin’s fixed plan area. A separate animated shader produces small ripples so the visible surface looks alive. Those waves have no effect on the mass balance. This is a reservoir-style model useful for exploring cause and effect, not a spatial hydrodynamics solver.
02How do the two lock gates change the flow of water?+
The gate control rotates two bronze leaves about opposing hinges. Its percentage also scales the effective open width used by a head-based orifice-flow approximation. When the outside sea is higher, gate flow is inward and appears as a positive contribution to basin volume. If the sea drops below the protected harbour, the sign reverses and the opening can help drain the basin. The visual geometry and numerical aperture respond to the same control. This representation deliberately avoids unresolved effects such as complex jets, turbulence at corners, gate-seal leakage, surface vortices and pressure-induced mechanical failure. The opening is therefore an intuitive control variable rather than a certified sluice-discharge calculation.
03Why can pumping fail to stop a flood even at full throttle?+
What matters is the balance of all incoming and outgoing flows, not the capacity of one machine in isolation. At full throttle the fictional barrel pumps can remove up to roughly 88 cubic metres per simulated second, with a performance penalty under large adverse hydraulic head. However, an open gate, an active breach, very heavy rain or a sea rising above the wall can introduce water faster than the pumps can remove it. When the net inward flux remains positive, the basin level continues to rise even though the impellers spin at maximum speed. This is a lesson in capacity planning and system redundancy: a single defence rarely compensates for every failure mode.
04What makes storm-surge overtopping different from ordinary gate flow?+
Gate exchange occurs through the opening when there is a level difference between the two water bodies. Overtopping occurs over the top of the protective wall only after the outside sea rises above its crest. Crown Gate represents this with a weir-inspired relationship that grows approximately with excess head raised to the power of one and a half. Because it is nonlinear, an additional metre of surge above the crest can be much more serious than the first few centimetres. Raising the crest delays this mechanism, but cannot remove rainfall or flow through a deliberately opened gate. Real wave overtopping also depends on wave height, period, slope, roughness and detailed geometry absent here.
05What does Sentinel automatic flood control actually do?+
Sentinel is a simple rules-based controller, not artificial intelligence. On each physics step it compares the inner basin and outer sea elevations. If the sea is higher, its gate setting moves toward closed; if the harbour is higher, it opens more to favour outward drainage. It also adjusts pump throttle according to the inner water elevation. Toggle the switch to activate this behaviour; the sliders visibly update as the automation responds. Moving the gate or pump slider returns control to the operator, so manual experimentation remains immediate. This offers a useful way to discuss feedback control, sensors, and the dangers of reacting to one variable without forecasting a storm or considering future operating constraints.
06What do breach, relief sluice and integrity-loss readings mean?+
Trigger Breach introduces a second, uncontrolled exchange path between the basin and the open sea. Its flow changes direction with hydraulic head, just like a simplified damaged opening. Repair Breach removes that extra path immediately, allowing before-and-after experiments. The relief sluice is different: it is modelled as a one-way outlet that drains only when the basin level exceeds the exterior sea. Opening it against higher seawater does not magically discharge water uphill. Integrity loss is an illustrative accumulated stress score caused by excessive inner levels and overtopping. It can rise during severe events but is not used to collapse the architecture. No value should be interpreted as a real material fatigue measurement.
07How can I investigate individual buildings or change camera perspective?+
On a desktop, drag directly in the viewport to orbit the camera, hold Shift while dragging or use the right mouse button to pan, and roll the wheel to zoom. On a touchscreen, drag with one finger to orbit and pinch with two fingers to adjust distance. The camera menu gives four planned vantage points: a cinematic harbour overview, a nearly overhead survey, the gates and the western pump station. Click or tap a prominent part of the scene to show its description and current operating metric in the inspection panel. The Next Exhibit button rotates through six inspectable subjects. Reset View returns to the original composed perspective without resetting the hydraulic experiment.
08Are the date, architecture and Atlantean technology historically accurate?+
No. Atlantis is a legendary civilisation described by Plato, and there is no accepted archaeological discovery establishing it as a real Bronze Age or prehistoric hydraulic empire. The fictional setting of 9,600 BCE is used for atmosphere and does not date the actual construction of anything shown. The imagined barrel pumps, advanced bronze sluices, harbour towers and monumental engineering are designed for an alternative-history thought experiment. The scene borrows visual ideas from Mediterranean maritime architecture without presenting an authentic reconstruction. By contrast, the general concepts of hydrostatic head, conservation of water, pumping and weir flow belong to real physics and can be investigated independently of the fictional civilisation.
09What is the best experiment for comparing storm-flood strategies?+
Choose Black Squall and watch the default initial conditions for a short period, paying attention to the exterior level, freeboard, net inward flux and inner-level trace. Reset the preset, keep all storm and rainfall settings unchanged, and change just one engineering variable such as gate aperture or wall crest. This controlled comparison shows whether the intervention delays overtopping or reduces basin accumulation. Repeat with different pump throttles and finally try the Sentinel mode. For a deliberately unfavourable case, start the sabotaged-lock scenario with a breach active. Note that simulation time runs faster than wall-clock time, and the model is deterministic for the same inputs and timing.
10Can I use Crown Gate offline, embed it or rely on its results?+
The downloadable project contains ordinary HTML, CSS and JavaScript with a custom WebGL2 renderer. It does not fetch fonts, textures, scripts, APIs or images, so a current WebGL2-capable browser can run it locally without internet access. You can publish the folder on a static host or embed its index page in a suitably sized iframe, subject to the included MIT licence. Performance depends on browser and GPU, and some restrictive browsers may disable WebGL2 altogether. The simulation is a creative educational exhibit, not a flood warning service, planning tool or validated hydraulic package. Never make operational, engineering or safety decisions from its numerical outputs.
Explore Crown Gate, a richly detailed offline WebGL2 simulation of an imaginary Atlantean storm-surge harbour: lock gates, barrel pumps, tidal forces and a...
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install