Herein, a MATLAB platform code titled "Two_layer_dambreak" is presented to simulate ideal dam-break problems over a horizontal channel using two-layer shallow water flows with identical density. The governing equations are available through Chen et al. (2007), who extended the classic Stoker's (1957) analytical solution to a two-layer equation system. The figures below demonstrate the initial conditions in addition to the results of the flow depths and velocity.
- Chen, SC, Peng, SH and Capart, H., 2007. Two-layer shallow water computation of mud flow intrusions into quiescent water. Journal of Hydraulic Research, 45 (1), pp.13-25.
- Stoker, J. J., 1957. Water waves: The mathematical theories with applications. New York: Wiley.