Question: The finite difference approximation of heat equation c u = u t is u i , j + 1 = u i - 1 ,

The finite difference approximation of heat equation cu=ut is
ui,j+1=ui-1,j+(1-2)uij+ui+1,j,j0,
where =ckh2. Here h and k are dimensions of a mesh cell.
Assignment: Write a Python program that uses this difference equation to approximate the solution to the boundary value problem
0.15u=ut,0x3,0t50
u(0,t)=-5
u(3,t)=40-0.01t
u(x,0)=x3+2x2-5
Use h=0.3 and k=0.2.
 The finite difference approximation of heat equation cu=ut is ui,j+1=ui-1,j+(1-2)uij+ui+1,j,j0, where

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!