Numerical Methods For Conservation Laws
Numerical Methods For Conservation Laws
Assignment 1 (Scalar Laws) Use the Fluctuation-Signal algorithm to solve for the following scalar hyperbolic conservation laws: 1. ut + (u2 /2)x = 0, in the domain [-2,2], with initial conditions: u(x, 0) = 0, u(x, 0) = 1/2, u(x, 0) = 0, x < 1 1 < x < 0 x>0 (1) (2) (3)
Plot u versus x obtained numerically at t = 2 and compare with analytical solution. 2. ut + (4u2 /[4u2 + (1 u)2 ])x = 0, in the domain [-1,1], with initial conditions: u(x, 0) = 1, u(x, 0) = 0., 0.5 x 0. elsewhere (4) (5)
Plot u versus x obtained numerically at t=0.4. Use 100 points in the domain and time step based on a CFL number of 0.8 for solving the above problems..