Project

AIM: EFFECT OF TIMESTEP ON CONVECTION EQUATION.

Objective: 1D linear convection equation is given below. `(du/dt)+c(du/dx)=0` n=80 dt=[1e-4 1e-3 1e-2 1e-1] Here, for discretization, we are using first-order backward differencing for space term and forward differencing for time term. let's write code time for the timestep function as an argument and solve the problem. For the function…

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.