Variation of solution with grid points for linear convection
Objective: In these plots, n represents mesh points. In the lower value of n=20, the mesh is coarse which is the reason for slanting rise and fall of the pulse in the initial conditions. As the value of n is increased the mesh becomes finer and gradual transformation fro trapezium shaped pulse to rectangular shaped pulse is…