We present a Godunov-type scheme for the shallow water equations with horizontal temperature gradient and variable topography. First, the exact solutions of the Riemann problem in a computational form are given, where algorithms for computing these solutions are described. Second, a Godunov-type scheme is constructed relying on exact solutions of the local Riemann problems. Computing algorithms for the scheme are given. The scheme is shown to be well-balanced and preserve the positivity of the water height. Numerical tests show that the scheme is convergent with a good accuracy, even for the resonant phenomenon, where the exact solutions contain several distinct waves propagating with the same shock speed. Furthermore, the scheme also provides us with good results for the solution of the wave interaction problem.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.