alimaye / sun-fan-delta-model

GNU General Public License v3.0
0 stars 0 forks source link

Mass balance #63

Closed amoodie closed 2 years ago

amoodie commented 2 years ago

This PR resolves mass balance issues, and fixes a bug with the channel plotting in the debug figure. A few minor speed improvements.

mass balance

Resolved the mass balance issue (closes #62). There were two bugs in water and sediment routing.

display of channels

I also realized that the channel display function was limited in the number of branches it would iterate over (see the ==2 here). The result of this check for number of connecting cells was that if the number was > 2, then no links beyond this point would be drawn. After fixing that issue, it seems that there are many many more channels present for the no-water simulations, but there still does not appear to be any effect for the fan-delta case. I guess this is because the water causes aggradation and more frequent avulsions than in the no water case (where sediment is spread over a longer channel area across the whole domain.