Das Programm aus Kapitel 6 der Dissertation lässt eine Stadt aus drei Bausteinen wachsen: einem Erschließungsgraphen aus Knoten und Straßen, einem Potentialfeld, das die Anziehung bebauter Flächen in die Umgebung trägt, und einem Zellularautomaten für Bebauung und Freiflächen. Gerechnet wird auf zwei Rastern – grobe Zellen für Knoten und Potential, darunter ein dreifach feineres für Straßen und Häuser.
Erschließungsgraph (Fassung „network only“, Kapitel 3.4.1): Die Zellen rund um einen Knoten sind gesperrt, deren Nachbarn sind Kandidaten. In jedem Schritt wird der Kandidat mit dem größten Wert Pot + noise weight · random zum neuen Knoten und verbindet sich mit dem nächsten Knoten im Umkreis von zwei Zellen. Mit jedem weiteren Knoten im Umkreis verbindet er sich nur, wenn der A*-Algorithmus dorthin keinen Weg mit höchstens min Distance Kanten findet (Interlink). Kleine Werte erzeugen ein dichtes Maschennetz, große einen Baum. Die Knotenfarbe zeigt die Erreichbarkeit – wie viele Knoten in wenigen Schritten erreichbar sind (blau wenig, rot viel). Jede Kante liegt zugleich als Straße auf dem feinen Raster (Schalter „Straßen und Bebauung“).
Wachstum (Fassungen „boom“, „interlink“, „cluster“): Das Potential einer Zelle ist Pot = ((bebaut/9)1 − Pot + Σ Pot der vier Nachbarn) / 5. Bebaut wird je Schritt eine Zahl von Zellen (growth rate), jeweils die freie Zelle mit dem größten A·(1 − e−w1·Pot) − B·(1 − e−w2·Pot) + Zufall – zentripetale gegen zentrifugale Kraft. „boom“ und „interlink“ bauen nach einigen Clusterrunden nur an Straßen und setzen neue Knoten, wo das Potential die Knotenschwelle übersteigt; „cluster“ baut überall, und eine allein liegende Bebauung erhält eine Straße zum nächsten Knoten. Der Bebauungsautomat wechselt in größeren Clustern zwischen bebaut und grün (Regel A, B, C, D; Voreinstellung 7013), so entstehen Höfe und Freiflächen.
Probieren Sie „min Distance“ zwischen 1 und 20, eine kleinere Zellgröße für ein großes Feld oder zeichnen Sie mit der Maus eigene Straßen, an denen die Stadt dann weiterwächst. Die App ist eine Neuumsetzung von 600_Wachstumssimulation von Reinhard König. Was geändert wurde, steht in QUELLE.md.
The program from chapter 6 of the dissertation lets a city grow from three components: an access graph of nodes and streets, a potential field that carries the attraction of built-up areas into their surroundings, and a cellular automaton for buildings and open space. It computes on two grids – coarse cells for nodes and potential, and beneath them a grid three times finer for streets and houses.
Access graph (version “network only”, chapter 3.4.1): the cells around a node are closed, their neighbours are candidates. In every step the candidate with the largest value Pot + noise weight · random becomes a new node and connects to the nearest node within two cells. It connects to any further node in that range only if the A* algorithm finds no way there with at most min distance edges (interlink). Small values produce a dense mesh, large ones a tree. The node colour shows accessibility – how many nodes can be reached in a few steps (blue few, red many). Each edge is also laid out as a street on the fine grid (switch “show cell layer”).
Growth (versions “boom”, “interlink”, “cluster”): the potential of a cell is Pot = ((built/9)1 − Pot + Σ Pot of the four neighbours) / 5. Each step builds a number of cells (growth rate), each time the free cell with the largest A·(1 − e−w1·Pot) − B·(1 − e−w2·Pot) + random – centripetal against centrifugal force. after a few cluster rounds, “boom” and “interlink” build only along streets and place new nodes where the potential exceeds the grow threshold; “cluster” builds anywhere, and an isolated building gets a street to the nearest node. In larger clusters the building automaton switches between built and green (rule A, B, C, D; default 7013), creating courtyards and open spaces.
Try “min distance” between 1 and 20, a smaller cell scale for a large field, or draw your own streets with the mouse along which the city then keeps growing. The app re-implements 600_Wachstumssimulation by Reinhard König. Changes are listed in QUELLE.md.