I · PURPOSE AND WORLDA city measured in waterlines
VIRELIS — The Tidekeeper’s Causeway is a playable three-dimensional model of a coastal canal system imagined for an Atlantean city in the years before its legendary inundation. The exhibit asks a practical question: how can a settlement allow trading ships to pass from a tidal coast into an elevated freshwater reservoir without losing control of the water that protects its homes and workshops? The answer is not a single heroic gate, but a sequence of barriers, chambers, and carefully managed pressure differences.
The causeway links four distinct bodies of water: an open sea boundary, a lower lock chamber, an upper lock chamber and an inland reservoir. Three paired bronze gates divide these reaches. Narrow bypass sluices allow water to equalise without fully opening the gates. A small merchant vessel approaches from the coast and may proceed only when the next gate is sufficiently open and the adjacent levels are acceptably close. You can operate the system manually, delegate it to an automatic lockmaster, or engineer a failure and observe its consequences.
Atlantis appears in ancient Greek literature, most famously in Plato’s dialogues Timaeus and Critias. No archaeological evidence establishes the existence of the technologically advanced Atlantean city presented here. VIRELIS is therefore a deliberate work of historical fantasy. Its cultural institutions, bronze mechanisms, ornamental causeway, merchant guilds and impending threat of ocean inundation are imaginary. Its water-balance logic, gravity-driven flow and vessel constraints are informed by genuine engineering principles.
Construction beneath the bronze
The visual language combines dark volcanic foundations, pale limestone terraces, oxidised copper lintels and burnished brass operating machinery. Repeated colonnades define the harbour promenade. Gatehouses carry crown-like roofs and small drive wheels; their paired leaves rotate away from the water passage as you adjust the opening percentage. A procession of painted pylons, wharf lamps and cypress-shaped coastal gardens gives the complex the grandeur of ceremonial architecture while distinguishing it from a simple industrial canal.
All significant scene objects are generated in code. Faceted hull planking, masonry joints, ribbed gate leaves, tower domes, waterwheels, stair flights, coastal rocks and ornamental fittings come from custom triangle meshes rather than downloaded models. Directional illumination, soft percentage-closer shadow sampling, distance haze and moving highlight patterns help suggest weathered materials. Water surfaces visibly rise and fall in their individual chambers and reflect changes in their surroundings through stylised shading. The scene is an artistic reconstruction, not a surveyed location.
II · THE HYDRAULIC MODELFour levels, three exchanges
The main engine uses a simplified storage-and-discharge model. Each chamber has a specified horizontal surface area, so adding a cubic metre of water raises its depth by the inverse of that area. When a connection is open, discharge depends on the difference in water elevation across it. A coefficient incorporates assumed losses through the throat; the square root of twice the gravitational acceleration times the head difference sets the characteristic flow velocity. The opening of the main gate contributes a larger flow area than its narrow bypass sluice.
Every physics step applies an equal and opposite transfer to connected finite basins. This is a compact mass-conservation model rather than a decorative level animation. The sea is represented as a changing tidal boundary, forced by a sine wave with adjustable amplitude and period. Storm uplift raises that boundary. Upland supply introduces water directly into the inland reservoir while civic water demand draws a separately adjustable volume from it. When any finite chamber rises above the design crest, excess water is recorded as overspill, a simple proxy for risk to nearby streets.
The engine also includes minimum basin elevations, a finite limit on numerical step size and a nonnegative depth condition. These safeguards prevent enormous single-frame transfers from producing unphysical negative water volumes. The readings for each gate use the same discharge calculation as the mass balance. A signed flow indicates direction; the total transfer readout sums the magnitudes of all three gate flows. This makes it possible to test whether a configuration actually isolates the city or merely redirects its losses.
The moving ship tests another engineering consequence. Gate leaves must clear enough of the channel for the hull, but gate opening alone is insufficient: a large elevation discontinuity is also dangerous. In the model, the vessel waits when the relevant barrier is closed or when the neighbouring levels differ beyond its passage tolerance. Enabling automatic lockmaster mode instructs the system to equalise the gate directly ahead using a bypass before opening it; passing gates are then secured behind the vessel.
What the model intentionally leaves out
Water is represented by well-mixed compartments, not millions of individual fluid particles. Gate discharge is a teaching approximation, not a validated computational-fluid-dynamics calculation. It excludes turbulence structure, backwater profiles, air entrainment, sediment transport, variable gate submergence coefficients, wave-breaking forces and precise structural stresses. Basin footprints, crest height, aperture sizes and vessel clearance are fictional design inputs. The simulation is suitable for learning relationships and comparing policies, not for sizing real flood defences or navigating real vessels.
III · INTERACTION AND DISCOVERYYour lockmaster’s instruments
Begin with Merchant Passage to explore ordinary trade. Storm Surge Defence starts with greater ocean elevation and tests whether gates can keep that uplift from advancing inland. Freshwater Conservation shifts attention to retaining inland storage when the tide is low. Lockmaster Challenge starts with a more difficult series of different water heights. Switching presets reinitialises the model, including gate settings and accumulated overspill, so experiments are repeatable from a known starting condition.
Six global sliders control tide amplitude, tidal-cycle duration, upland supply, civic water demand, storm uplift and the rate at which simulated time advances. Each of the three gates has two independent controls: the large paired opening and its smaller bypass sluice. A closed gate with an open bypass still exchanges water and can quietly remove a dangerous head difference. Conversely, opening a gate across a large difference accelerates transfer; this may help equalisation but can waste reservoir water or propagate a surge. The selected gate’s signed discharge, head difference and opening are shown in the inspection overlay.
Use Pause and Resume to freeze or restart time. Reset restores the current preset. Equalise Selected closes the selected gate and opens its bypass, establishing a controlled levelling path. Dispatch Vessel returns the ship to the seaward approach. Emergency Seal closes every gate and every bypass and disables the automatic system. These actions modify actual model state. They are not cinematic cutscenes, and their effects can be monitored through the four level readings and live trend chart.
The 3D camera offers Aerial, Quay, Vessel and Basin viewpoints. Drag with the primary pointer to orbit; right-drag, or Shift-drag, to pan; use the mouse wheel or a two-finger pinch to zoom. Touch gestures work on supported mobile browsers. Click a gatehouse, water surface, wheel or ship to bring up contextual inspection. Keyboard users may press Space to pause, R to reset, 1–4 for views and E to equalise the selected gate. The viewing controls have deliberate distance and pitch limits to keep the exhibit legible.
Experiments worth conducting
First, close all barriers and increase storm uplift. Notice that the sea boundary rises while inner chambers initially remain isolated. Next, open only the seaward bypass: the lower lock begins to respond, but the upper basin is protected. Then open the central bypass and observe delayed propagation. This is a simple way of visualising how a series of barriers can slow the spread of a coastal disturbance. Record how long the effect takes under a high time-dilation setting, then compare with a gentler tide.
For an efficiency experiment, begin with Freshwater Conservation and watch the reservoir reading. Compare an open chain of gates with a carefully sequenced passage in which only the next chamber is equalised. Watch the signed discharge to understand which direction water travels. For a transport experiment, activate the automatic lockmaster and dispatch the merchant vessel; then change tide amplitude while it approaches a barrier. The controller may need to spend longer equalising the head. Finally, test the crest threshold by increasing the upland supply while isolating the reservoir.
Although the legendary Atlanteans may have imagined water as a sacred civic resource, the underlying problems are familiar to real coastal communities. Navigation locks, sluices, tide gates and storm barriers all involve trade-offs among movement, drainage, storage and risk. The educational value of VIRELIS lies in turning those invisible trade-offs into observable cause and effect. The bronze city is fiction; the logic of continuity, gravity and responsible operation remains recognisably real.