Linear Convection - Solving 1D linear convection equation for different values of total number of grid points (n)
Objective: Objective:- 1. Assume that the domain length is L = 1m 2. The initial velocity profile is a step function. It is equal to 2m/s between x= 0.1 and 0.3 and 1m/s everywhere else 3. Use first order forward differencing for the time derivative 4. Use first order backward/rearward differencing for the space term. 5. Time step…