Linear convection equation solver
Objective: Assumptions made to solve the Linear Convection equation 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 First order forward differencing for the time derivative First order backward/rearward differencing for the space term. Time…