## Solution Library

# Solve ID Burgers Equation for given Conditions Using MATLAB

**Question**

Consider the ID Burgers equation for the unknown u = u (x, t),

** **

With initial condition

u(x, t) = 0.25 + 0.5sin( x)

and periodic boundary conditions. Divide the computational domain (-1 into M equally spaced intervals and let the discrete solution u_{i} be defined at the center of each element x_{i} = -1 + (i- ½) 2/M. Add so-called ghost cells at i=0 and I = M+1 to the vector of unknowns and implement the periodic boundary conditions by setting

u_{0} = u_{M} u_{M+1} = u_{1}

- Determine u(x, t = 0.15) using a first order TVD scheme for M = 40. Plot the correct weak solution vs x together with the initial solution, and give the solution at t = 0.15 in a table together with x
_{i}. - Determine the correct weak solution for u(x, t = 20 using a first order scheme for M= 40. Add the solution to the plot and table of a).

Required:

- 1 Clearly annotated plot of u as a function of x at t = 0, 0.15, and 2 using a 1
^{st}-order TVD method for M = 40; - 1 table containing x and the solution u at t = 0, 0.15 and 2 using a first order TVD method for M = 40;

**Summary**

This question belongs to MATLAB software and discusses about application of MATLAB in mathematics to solve ID Burgers equation with initial and periodic boundary conditions and to determine first order TVD scheme and correct weak solution.

**Answer is in MATLAB format**

Download Full Solution

## Comments

Rashathis is a very good website

maaniI have 50 questions for the same test your page is showing only 28

joeannehi can you please help or guide me to answer my assignments. thanks

joeannehi can anyone help or guide me to my assignments. thanks

MonikCristinaThis solution is perfect ...thanks

JaneteHello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes

SandeepPerfect bank of solution.

Oxanagreat !

Paul Brandon-Fritziusthanks for the quick response. the solution looks good. :)

tina Johnsonthnx for the answer. it was perfect. just the way i wanted it.

Giuseppeworks fine.