Linear Convection - Solving 1D Linear Equation for Different Grid Sizes
Objective: Objective: - Write a MATLAB code for 1D Linear convection equation for the following parameters. Domain Length L = 1 meter Initial Velocity Profile velocity is 2 m/s for x = 0.1 to 0.3, velocity is 1 m/s rest of the length domain Use First order forward differencing for the time derivative Use first order backward/rearward…