Surface, layers and water
The surface is always the DEM. Everything below it conforms to it, so the interfaces meet node for node.
How the surface, layers and water are built
Surface sampling
The builder samples the ground on a quadtree lattice. It triangulates the points into a TIN with a closed rim.
With variable sampling, square or circular buffers keep native resolution where it matters. Elsewhere the step grades linearly back to the base step. Where buffers overlap, the finest wins.
Layered ground
The bedrock top is the DEM minus the soil thickness (Pelletier et al. 2016), with at least 2 m of regolith on rock.
One TIN carries several height arrays: solid, water, bedrock and top. So soil, rock and water meet without gaps. Thin layers get their own element size: 20 times the tenth-percentile thickness, never under 5 m.
Water and bathymetry
Water is its own domain. The sea runs from 0 m down to the sea floor. The depth comes from EMODnet Bathymetry (about 115 m, European seas, GEBCO-filled).
Lakes keep their HydroLAKES level, with a bed from their published mean depth. Rivers get a channel depth from their width. The water mask floods the sea from the ocean through connected cells.
Physical flags written into the mesh
| Flag | Meaning |
|---|---|
| 3 | Ground surface (not 1: GALES solid solvers read side flag 1 as the fluid–solid interface) |
| 2 · 5 · 6 | Base, sides, sides above the ground |
| 4 | Sky, the top of the atmosphere |
| 7 · 8 · 9 · 14 | Bedrock top, water surface, water bed, water sides |
| 10 · 11 · 12 · 13 | Volumes: bedrock, atmosphere, soil, water |
| 30, 31, 32… | One flag per fault plane |


