{"id":118,"date":"2026-11-25T19:04:09","date_gmt":"2026-11-25T23:04:09","guid":{"rendered":"https:\/\/the-algorithmist.com\/?p=118"},"modified":"2026-11-25T19:04:09","modified_gmt":"2026-11-25T23:04:09","slug":"terrafractal-part-2-simulating-the-planet","status":"publish","type":"post","link":"https:\/\/the-algorithmist.com\/index.php\/2026\/11\/25\/terrafractal-part-2-simulating-the-planet\/","title":{"rendered":"TerraFractal, part 2: simulating the planet"},"content":{"rendered":"\n<p>The bottom layer of TerraFractal is a simulation of the whole planet through its history. It decides where things are. Everything later decides what they look like.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What it simulates<\/h2>\n\n\n\n<p>Plates move, collide and rift apart. Crust thickens where it&#8217;s squeezed and thins where it&#8217;s stretched. Mountains rise and erode. Hotspots and large igneous provinces punch through. Impacts land, heavily early and rarely later. Sea level, ocean currents, winds, rain, rain shadows, ice ages and soils follow from the shape of the land and the planet&#8217;s orbit.<\/p>\n\n\n\n<p>It runs on a mesh of points over the sphere, about 110 km apart, or about 55 km at the finer setting. Each point carries the history of its crust: its plate, its age, its thickness, its rock layers, when it was last volcanic, how much it was uplifted.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"700\" src=\"https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/crust-feature-tags.jpg\" alt=\"The crust \"tagged\" by what the simulation says happened there\" class=\"wp-image-91\" srcset=\"https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/crust-feature-tags.jpg 1400w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/crust-feature-tags-300x150.jpg 300w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/crust-feature-tags-1024x512.jpg 1024w, https:\/\/the-algorithmist.com\/wp-content\/uploads\/2026\/11\/crust-feature-tags-768x384.jpg 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><figcaption class=\"wp-element-caption\">The crust &#8220;tagged&#8221; by what the simulation says happened there: fold belts, rifts, volcanic fields, impact basins, old worn ranges, glaciated ground and so on. These tags are what the finer levels build their features from.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Particles, not grid cells<\/h2>\n\n\n\n<p>The crust is carried by particles (markers) that move with the plates, rather than living in fixed grid cells. A coastline or a fold belt is a set of markers with real positions, not a staircase of cells. This mattered more than I expected; more on that in part 4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Coarse first, fine last<\/h2>\n\n\n\n<p>A run at fine resolution over the whole history is slow. But most of the relief you see today is young: old mountains have been worn down, old basins filled. So the simulation runs most of the history at a coarse resolution and switches to finer resolution for the last stretch, about 60 million years or 10% of the run, whichever is longer. That saves time without changing what&#8217;s visible.<\/p>\n\n\n\n<p>I also tried running only part of the planet at high resolution. The tests showed the fine and coarse runs differ mostly at plate boundaries and coasts. Continental interiors barely change. Small differences don&#8217;t grow either: a 1 m difference stays about 1 m over 60 million years. So refining by &#8220;where the crust is changing&#8221; works far better than refining a random region of the same size. That&#8217;s the same idea the tiles use later: spend detail where it changes something.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rain shadows that never ended<\/h2>\n\n\n\n<p>One test world had a long north-south range, and its rain shadow ran across the whole continent: 57% of the land got less than 250 mm of rain a year. The cause wasn&#8217;t the mountains, it was the model. With one steady average wind, moisture could only arrive from straight upwind, so once a range had wrung it out, nothing refilled it. Real air gets moisture back from storms, jets and eddies that an average wind leaves out.<\/p>\n\n\n\n<p>The fix lets the air drift back toward the humidity of ocean air at its latitude over about 3,000 km of travel. Rain still needs something to lift the air, so the dry belts stay dry. Dry land fell from 57% to 24%, and the median rainfall went from 167 to 569 mm a year. More on climate in part 9.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What the simulation can&#8217;t do<\/h2>\n\n\n\n<p>At 55 km, a valley is smaller than a single point. The simulation knows a range is there, how high, how old and how hard. It knows roughly how much water drains off it. It doesn&#8217;t know where any particular valley runs.<\/p>\n\n\n\n<p>That gap, from 55 km down to a few metres, is what the rest of TerraFractal fills. The first attempt at filling it was the obvious one: add fractal noise on top. That&#8217;s part 3.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The bottom layer of TerraFractal is a simulation of the whole planet through its history. It decides where things are. Everything later decides what they look like. What it simulates Plates move, collide and rift&hellip;<\/p>\n","protected":false},"author":1,"featured_media":91,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,26],"tags":[],"_links":{"self":[{"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts\/118"}],"collection":[{"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":1,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":128,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions\/128"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/media\/91"}],"wp:attachment":[{"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-algorithmist.com\/index.php\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}