Building the city & terrain…

🌊 Flood City Terrain Editor

Sculpt the ground: raise levees and dig detention basins, then test rain, river and sea surge on your edited city.

Flood Controls

🌧️ Rainfall 20 mm/h
Precipitation intensity. Heavy, sustained rain overwhelms drainage and pools water city-wide.
🏞️ River Level 10%
Upstream flow intensity. Raises water along the river channel and its floodplain first.
🌊 Sea Level Rise 0.0 m
Long-term baseline rise. Permanently raises water level everywhere, hitting coastal low ground hardest.
🚱 Drainage Efficiency 50%
How well storm drains & pumps remove standing water. Low efficiency = water lingers and accumulates.

🏗️ Terrain tool Orbit
Raise builds a levee or berm, Dig makes a detention basin. Hold the mouse (or a finger) on the ground and drag. Right-drag still pans.
Brush radius 8 m
Brush speed 1.5 m/s

⏱️ Simulation Speed 1.0×
The science and checks

Water surface model. Every ground point gets a static water level L = sea·(1.15 - 0.35t) + river·exp(-dx²/2s²) + pond; depth is max(0, L - ground). This is a bathtub (hydrostatic) model, not a flow solver: there is no water routing, momentum or flood-wave timing. Units: 1 scene unit = 1 m; the model city is 200 m × 200 m.

Ponding. Rain fills a citywide pond depth A with dA/dt = I - (kA + c), I = 0.55·rain/100 m/h, k = 0.15 + 1.55·drain/100 per hour, c = 0.05·drain/100 m/h. The exact solution is A(t) = A* + (A0 - A*)e-kt with A* = (I - c)/k. The 100 % rain setting is a deliberately extreme teaching scale, not a design storm.

Terrain edits. A brush adds a Gaussian bump a·exp(-r²/2σ²), σ = radius/2, to the ground (limited to -6 m / +8 m in total). Dug volume is counted as detention storage: each m³ removed stores 1 m³ of runoff, lowering the citywide pond by V / (200 m)². A raised levee changes the margin between ground and water only.

Simplifications. Roads, bridge and trees keep their original height, houses follow the ground, and infiltration, soil, flow velocity and real storm statistics are not modelled.

Independent checks

    Live Readout

    Elapsed time0.0 hr
    Sea baseline0.00 m
    Peak water depth0.00 m
    Houses flooded0 / 0
    Vehicles submerged0 / 0
    Land underwater0%
    Citywide pond depth0 mm
    Detention storage (dug)0 m³
    Levee volume (raised)0 m³
    Edited ground0%
    Safe zone (high ground)
    At-risk zone (low margin)
    Shallow flooding
    Deep flooding
    Critical / danger
    Drag to orbit · Scroll to zoom · Right-drag to pan