Week 4 - Linear Convection
Objective: Objective:- To solve the 1D wave equation For different grid sizes and time steps.Inputs:-Length of the domain given is L=1,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.velocity coefficient of the wave equation is C = 1.time step needs to be considered…