Consider the Burger's equation Ut+U*Ux=Uxx with the initial conditions U(x,0)=4x(1-x), 0<x<1 and the homogeneous boundary condition U(0,t)=U(1,t)=0, t>0. Choose t=0.5, k=0.05 and h=0.2. Use Explicit Finite Difference Method to solve the burger's equation and write Matlab code to solve the value of Uij at each mesh point.
Comments
Leave a comment