00:01
Hello students, today we will discuss about this question.
00:04
In this question, we need to consider the following partial differential equation, that is, d dal c divide by d dale c divide by dale x square minus u, dale c divided by del x minus k c, where c is a function such that c of x of d, d, d u and k are constant.
00:32
And here, 0 less than or equals to x less than or equals to 10.
00:38
And here, initial condition is cx or x0, that is equals to 0.
00:44
And here we are given, delta t is equals to 0 .005 second, delta x is equals to 0 .1 meter, capital d is equals to 1, u is equals to 5, and k that is equals to 0 .5.
00:57
Now here we need to write a matlab code that is equals to question mark and construct a boundary condition that c0 t is equal to 100 and c 10t is equal to 0 and plot the solution at t is equals to 0 .25, 0 .5 and 1 second.
01:26
So here we need to find the, we need to write the matlab code.
01:31
So here for the first part, for the part a, that is first of all, it is clear all, comma, clc, l is equals to 10, t is equals to 8, dx is equals to 0, dt 0 .1, and dt that is equals to 0 .005.
01:54
Now small m is equal to sale l divide by d x, n is equal to sale, capital t divided by dt, b is equals to dt dx square...