Geometry Generation
RSRunout does not simulate your meshes directly. Generate Geometry reads them through a heightmap, and then builds the model from that. In the plan view (X, Y) a heightmap is a regular grid, like a DEM. The grid cell width is the particle spacing for MPM and SPH, and the raster cell size for iDEM.
At the center of each grid cell, Generate Geometry drops a ray straight down from above and records the elevation where it hits each mesh. Each grid cell becomes a column with a few elevations in it. The ray records one elevation for each Terrain mesh it hits.
SPH and MPM Geometry Generation
SPH and MPM place a regular vertical lattice of particles at the particle spacing. Each particle takes the flow material of the band of the column it falls in: terrain layer, fluid region, or fluid table.
- Slip Surface has no material, because it only decides how deep the cut goes.
- Terrain, Fluid Region, and Fluid Table each take a flow material. If you leave it unset, the catalog default is used.
- The ground becomes the collider.
- MPM keeps every terrain layer so that scour (entrainment) can expose deeper layers.
- SPH builds fixed boundary particles under the ground surface.
- Entrainment applies to terrain layers only. Region and table particles are not entrained.
iDEM Geometry Generation
In iDEM the same heightmap and the same bands are built. The difference is what is made from them: iDEM simulates discrete rigid fragments, not points.
The iDEM model is stepped. Each band is a height-field prism on the raster. A coarse cell size smooths over benches, and a finer one follows them. The panel shows the cell size actually used. A very fine request is coarsened to keep the mesh manageable.
The terrain you see in the ground is also the raster. When a slip, region, or table is assigned, the ground that fragments slide on is the carved heightmap and not your imported terrain mesh. It is built from the same columns as the fragments, so the two match with no gaps.
- A buried fluid region splits a terrain into two solids, one above and one below the region. Each is made into fragments separately and each fragment keeps its terrain's material.
- Thin cells are left empty. Cells thinner than 5% of the fragment size are not filled. This prevents slivers where the slide daylights.
- Fragments are baked once and saved. Generate Geometry builds the solids in memory, makes the fragments, and keeps only the fragments. There are no generated volume meshes in your project. Editing a Terrain, Slip Surface, Fluid Region, or Fluid Table marks the fragments as stale. Changing only a flow material does not.
- Fallback. With no slip, region, or table assigned, or if the heightmap bake fails, each terrain mesh is used as the ground exactly as imported.
SPH, MPM, and iDEM compared
| SPH / MPM | iDEM | |
| Resolution | Particle spacing | Raster cell size (a separate setting from fragment size). 0 picks about 64 cells across the longer terrain axis, coarsened to a triangle budget |
| What is made from the bands | A lattice of particles | A solid prism per band, then Voronoi fragments of the target fragment size |
| Material per piece | Per particle | Per fragment, decided by the band at the fragment centroid |
| Ground | Collider heightmap | A triangle mesh of the carved heightmap, split by the terrain exposed, with a one-cell skirt past the edge |
| Contact | Terrain material | Terrain material (friction, stiffness) where that terrain is exposed. Region and table materials affect only the fragments, not the ground |
| Entrainment | Yes (SPH, MPM) | No. The ground is fixed |
Geometry Roles
There are four geometry Roles that can be assigned to a mesh:
- Terrain
- Slip Surface
- Fluid Region
- Fluid Table
The role affects how the geometry behaves and is generated. The below table describes the roles and how they affect how grid cell columns are generated.
| Role | What the mesh must be | What is read per column | What it does to the model |
| Terrain | Open surface or closed solid | The highest hit (the visible surface) | Defines the ground and the material layers. Material in a layer becomes the flow material of the mobilized soil. |
| Slip Surface | Open surface or closed volume | The lowest hit | Defines the cut. Everything above the cut and below the ground is mobilized. Slip surfaces have no material. |
| Fluid Region | Closed volume | The lowest and highest hit (low, high) | Fills low to high with its own flow material. It replaces any terrain it overlaps. |
| Fluid Table | Surface | The highest hit (top) | Fills from the ground up to top with its own flow material (a water or pond level). Does not cut. |
Terrain
The Terrain is the ground surface the landslide moves over. Terrain meshes are assigned both a Flow Material and Terrain Material.
- The Flow Material controls how the soil or fluid behaves once it becomes moving particles. It sets the physical behavior and the particle color.
- The Terrain Material controls how the ground surface itself behaves when a moving material touches it, for example friction. It also sets the surface color. Only terrain meshes are assigned terrain materials.
Effect of Terrain geometry generation:
- The Terrain Heightmap follows the topmost terrain in each grid cell. It is the Z (height) of that terrain, and limits the particle positions in XY coordinates not to fall below the Z of the terrain at that XY.
- Slip surfaces can cut ground away from the layers, forming particles. Moving particles can pick up more ground as they travel (entrainment).
- The particles get assigned the flow material of the terrain they were spawned from.
- Where there is no terrain under a location, no particles are generated there. The number of skipped locations is reported.