Question: please help with both a and b ! ! ! ( 2 0 marks ) Heat Deduction Equation Consider the following PDE from the heat

please help with both a and b!!!
(20 marks) Heat Deduction Equation
Consider the following PDE from the heat deduction problem
ut=ux
u(t,0)=0,u(t,1)=0
u(0,x)=-x2+x
a). Provide the algorithm (in pseudo-code) for solving the PDE by the Crank-Niclson method.
b). Implement the algorithm into Matlab code and plot u(t,x) on the grid of [0,1]=x with M=N=50 in constant steps.
Submit your Matlab Code.
 please help with both a and b!!! (20 marks) Heat Deduction

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!