I need to learn how to construct a simple program in MATLAB to solve a 2D quasilinear system of conservation laws with initial values (Cauchy problem) constant by partes (Riemann problem).
I am with difficulties defining the variables, once the system is quasilinear and the jacobian matrix depends of the solution in each step.
I'd like to get some basic materials to learn how to implement such things (PDF's or pages with examples of codes, etc), once I not have time to take an integer course of MATLAB for now.
Many thanks!
To solve 2D quasilinear systems of conservation laws $$ {\bf u}_t + {\bf A}({\bf u})\, {\bf u}_x + {\bf B}({\bf u})\, {\bf u}_y = {\bf 0} $$ numerically, various strategies can be followed:
For the one-dimensional scalar case, you will find several examples of MATLAB code on this site (e.g., (a), (b), (c)). Besides the representation of data in multi-dimensional arrays, the implementation of 2D methods is very similar.
(1) R.J. LeVeque, Finite Volume Methods for Hyperbolic Problems, Cambridge university press, 2002. doi:10.1017/CBO9780511791253
(2) J.A. Trangenstein, Numerical Solution of Hyperbolic Partial Differential Equations, Cambridge university press, 2009. isbn:9780521877275