Methods and model card
A complete description of what the model computes, how, how it was checked, and what it must not be used for. Written so that results can be reviewed and reproduced.
Model card
| Model type | Linear shallow-water (long-wave) equations on the sphere, plus empirical magnitude–distance relations |
| Domain | 50–105° E, 30° S – 28° N (northern and central Indian Ocean, from the Makran coast to central Sumatra) |
| Source catalogue | 21 source zones (subduction, intraplate, mid-ocean ridge, transform) at representative points, each an idealised single-plane source; any custom epicentre inside the domain, at least 3° from its edges |
| Land mask (offline fallback) | Natural Earth 1:10m land rasterised at 10′ (scripts/landmask.mjs) |
| Resolution | 10′ (≈ 18.5 km, 331 × 349) or 5′ (≈ 9.3 km, 661 × 697) |
| Outputs | η(x, t), ηmax, first-arrival time, synthetic gauges at 21 Sri Lankan and 8 regional points, coastal estimates and threat levels |
| Intended use | Teaching; research screening of far-field travel times and order-of-magnitude amplitudes; exploring sensitivity and uncertainty; reproducible demonstrations |
| Out of scope | Operational warning; inundation or evacuation mapping; near-field sources; landslide or volcanic tsunamis; harbour currents |
| Runtime | In the browser (Web Worker). Seconds at 10′, tens of seconds at 5′ on a laptop |
| Licence | Open source; see the repository |
Governing equations
Nonlinear advection, bottom friction, Coriolis force and frequency dispersion are neglected. These are standard assumptions for deep-ocean propagation of large tsunamis (Goto et al., 1997); their consequences are discussed under limitations.
Numerical scheme
- Arakawa C-grid staggering: η at cell centres, M on east faces, N on north faces.
- Explicit forward–backward integration (continuity, then momentum with the updated η), second-order in space, as in TUNAMI-N1.
- Time step from the CFL condition with safety factor 0.85: s.
- Coastlines: zero normal flux between wet and dry cells (full reflection).
- Open boundaries: 14-cell sponge with damping factor per step, e = distance to the edge.
- Bathymetry: Terrarium-encoded ETOPO1 tiles at zoom 5, 3 × 3 sub-sampled and averaged per cell; a cell is wet if most samples are below sea level and the mean depth exceeds 10 m (minimum depth 20 m). If tiles are unavailable, an idealised shelf (60 m + 4 m/km), slope and abyssal plain (≈ 4,100–4,500 m) is built from the real coastline by distance-to-coast.
- Checkpoints every 30 min (10′) or 60 min (5′) of simulated time allow exact replay for animation without storing every frame.
Source model
The initial sea surface is an instantaneous Gaussian deformation oriented along strike with half-widths σ = L/2.5 and W/2.5, shaped by mechanism: thrust = uplift with a trailing trough, normal = subsidence with flank uplift, strike-slip = quadrupole with near-zero net volume. Sources narrower than two grid cells are widened to the grid scale while conserving displaced volume. Mechanism factors:
| Mechanism | κ = vertical/slip | Mₜ − Mw |
|---|---|---|
| thrust | 0.5 | 0.0 |
| normal | 0.3 | -0.3 |
| strike-slip | 0.06 | -0.8 |
Coastal estimates and arrival times
- Each station is snapped to the nearest wet cell deeper than 30 m (else 10 m) within about 1.2°.
- Offshore arrival: first time |η| ≥ 5 % of the gauge maximum. Shore arrival adds shelf transit at the mean of √(g hgauge) and √(g · 5 m).
- Coastal amplitude: Green's-law extrapolation of the gauge maximum to 1 m depth.
- Threat level (PTWC-style): No threat, Marine threat, Land threat, Major threat with thresholds 0.3, 1 and 3 m, applied to the larger of the numerical and empirical estimates.
- Flooding overlay: a bathtub fill of land connected to the sea below the maximum coastal estimate, limited inland; for illustration only.
Empirical model
Analytic travel time uses a path-averaged depth of 4,000 m plus 15 min shelf transit. Coasts facing away from the source are reached by a path routed around the island through way-points off Dondra Head, with a ×0.5 shelter factor.
Uncertainty quantification
The Monte Carlo propagates magnitude (normal), mechanism (categorical), empirical scatter (lognormal, σlog₁₀) and path-mean depth (normal, truncated at 2,500 m) through Abe (1981). A Mulberry32 generator with a user-set seed makes every result exactly reproducible. Numerical uncertainty (resolution, bathymetry) is explored with the run history and convergence comparison in the simulator.
Verification
An automated test suite (npm test) checks the physics on every change. Current checks:
| Check | Expected |
|---|---|
| Long-wave speed at 4 km depth | √(gh) = 198.1 m/s |
| Green's-law gain 4,000 → 10 m | 4.47 |
| Epicentre–Dondra Head distance | 3,000–3,150 km |
| Scaling relations (L, W, M₀, Mₜ) | Wells & Coppersmith (1994), Hanks & Kanamori (1979) exactly |
| 2004 source | prescribed 1,300 × 150 km plane; kh < 0.1 (non-dispersive) |
| Abe (1989) / Abe (1981) ratio | 10^0.25 |
| Magnitude for 0.3 m at 3,090 km (thrust) | ≈ M8.5 |
| Analytic model, actual event | Ht < 1 cm at all 21 stations; no-threat level |
| Island shelter logic | east coast sheltered for western sources, not the south-west |
| Dispersion limits | c/c₀ and c_g/c₀ → 1 as kh → 0; c_g < c for finite kh |
| Monte Carlo | bit-identical results for a fixed seed |
| Solver set-up (10′) | 331 × 349 grid, 5 s < Δt < 60 s, sub-grid source widened |
| Actual event, full run | Green's-law η < 5 cm; first arrival 200–330 min |
| 2004 validation, full run | Batticaloa arrival 80–160 min (observed ≈ 120 min) |
Validation
The 2004 Sumatra–Andaman scenario reproduces the observed ≈ 2 h first arrival on Sri Lanka's east coast (Goff et al., 2006). Amplitudes are not reproduced (observed run-up ≈ 5–12 m; Liu et al., 2005), as expected for a uniform-slip source, a regional grid and linear coastal extrapolation. Run it yourself: 2004 validation in the simulator.
Known limitations
- Dispersion: neglected. For small sources (λ/h < 20) the model overestimates amplitude and arrives early.
- Source: idealised, instantaneous, uniform; no Okada deformation, no rupture kinematics, no splay faults.
- Resolution: sub-grid sources are not amplitude-converged; shelf and bay resonance are not resolved.
- Coast: reflective walls at the grid coastline; no wetting–drying, friction or nonlinearity.
- Bathymetry: ETOPO1 at ≈ 1 arc-minute, block-averaged; live tiles depend on network access.
- Empirical relations: derived largely from Pacific data; scatter is a factor of 2–3.
Reproducibility
- Every simulator scenario has a permalink (Share) encoding scenario, source, resolution and layer.
- Each run exports metadata (JSON) with parameters, grid, time step, bathymetry source and initial condition, plus gauge series (CSV) and ηmax grids (ESRI ASCII).
- Figures export as SVG, PNG and the underlying CSV.
- The physics lives in plain TypeScript modules with no browser dependencies, so it can be run headless (the test suite does exactly that).