Commit Graph

19 Commits

Author SHA1 Message Date
Gael-de-Sailly 462942cc22 Use iterative finite differences for diffusion, instead of gaussian blur
Allows variable diffusion coefficients
2020-12-27 13:46:25 +01:00
Gael-de-Sailly 1b96f52e47 Decrease variations of parameter m 2020-12-27 13:45:24 +01:00
Gael-de-Sailly 3ccb6932ad Implement simple tectonics.
Uplift and subsidence are determined with a noise, at every iteration.
There is no distinctive pattern like tectonic plates, just vertical movements
disturbing rivers from their equilibrium state, and thus creating more diversity.
More lakes and waterfalls especially.
2020-12-24 15:35:27 +01:00
Gael-de-Sailly 32f3cd9925 Fixed 3D noise map, and removed catchment_reference
Now K and m are determined independently.
Alsoo removed debug plotting.
2020-12-24 15:33:03 +01:00
Gael-de-Sailly ae46ada648 Use a class for noise map generation, and add a function for 3D slice of a 2D noise. 2020-12-24 15:33:03 +01:00
Gael-de-Sailly 4b1d11dd73 Implement variable K and m erosion parameters
For now noise parameters are hardcoded.
2020-12-24 15:30:35 +01:00
Gael-de-Sailly ca68738ba7 Reworked parameters, and rename 'terrain.conf' to 'terrain_default.conf' 2020-12-24 14:48:17 +01:00
Gael-de-Sailly 85e545d5ac Fixed sea level variations 2020-12-24 14:48:17 +01:00
Gael-de-Sailly e0aecdc3f3 Added a second method for local flow calculation. It is possible to switch between them using the 'flow_method' parameter. 2020-12-24 14:48:17 +01:00
Gael-de-Sailly 9ffa150263 Added function 'noisemap' to generate a noise map with a quite unified parameter set, and an option for logarithmic noise. For future use. 2020-12-24 14:48:17 +01:00
Gael-de-Sailly 2a9335332b Added optional sea level variations for the simulation.
This results in more varied coastline morphologies.
2020-12-24 14:48:17 +01:00
Gael-de-Sailly 9b4a9b2516 Rework default erosion parameters,
Fix ignored values of K and m,
and changed processes order.
2020-12-24 14:48:17 +01:00
Gael-de-Sailly b4f97bec61 For noise map seed: don't go over ±4096, to prevent rounding errors on coordinates (because noise library uses 32-bit floats) 2020-12-24 14:48:17 +01:00
Gael-de-Sailly 9725979363 Fix increments for argument parsing 2020-11-17 20:45:11 +01:00
Gael-de-Sailly 1f41423104 Print a clear message when grid is ready
Also use plt.pause before plotting, ensuring plot is updated in real time
2020-11-15 11:13:42 +01:00
Gael-de-Sailly 28c674d57c Decrease default diffusion factor 2020-11-14 19:14:09 +01:00
Gael-de-Sailly 803114aaab Generate data in `river_data` instead of `data` 2020-11-14 19:12:12 +01:00
Gael-de-Sailly 9594a79f8b Configurable output directory
Now relative to the directory the script is *run in*.
2020-11-14 18:26:13 +01:00
Gael-de-Sailly d93234c9b7 Moved Python files inside a folder (package), except the 2 that are directly executable 2020-11-14 17:35:27 +01:00