1D Linear Convection equation
Objective: Write a code to solve the 1D linear equation. Assume the domain length is L = 1m 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. Constant Velocity, C = 1 Set time step = 0.01 Make the comparison…