MTH646 ASSIGNMENT NO. 1 SPRING 2023 || 100% RIGHT SOLUTION || PARTIAL DIFFERENTIAL EQUATIONS || BY VuTech - VuTech Official - Get your Solutions | Vu Assignments, Quiz, GDB, Mid Term, Final Term Solved Papers
CS201 MID TERM SOLVED MCQs || PAST PAPERS || GROUP-1 || INTRODUCTION TO PROGRAMMING || VuTech Visit Website For More Solutions www.vutechofficial.blogspot.com …
MTH646 ASSIGNMENT NO. 1 SPRING 2023 || 100% RIGHT SOLUTION || PARTIAL DIFFERENTIAL EQUATIONS || BY VuTech
Visit Website For More Solutions www.vutechofficial.blogspot.com
KINDLY, DON’T COPY PASTE
QUESTION-1
Find the numerical solution of the following heat diffusion equation
∂u(x,t)∂t=α2∂2u(x,t)∂x2
subject to the boundary and initial conditions:
u(0,t)=0=u(1,t)
u(x,0)=sinπx
by forward difference method by taking h=0.1 and k=0.01.
And compare your answer with the following exact solution,
u(x,t)=e-α2π2t.sinπx
(perform two iteration I.e for j=0,1)
SOLUTION
To solve the heat diffusion equation using the forward difference method, we'll discretize the spatial and temporal domains. Let's denote the spatial step as h and the temporal step as k. In this case, we'll take h = 0.1 and k = 0.01.
The equation we're solving is:
∂ux,t∂t=α2⋅(∂2ux,t∂x2)
We'll use a finite difference approximation to discretize the equation. For the spatial derivative, we'll use the second-order central difference approximation:
∂2ux,t∂x2≈u(x+h,t)-2u(x,t)+u(x-h,t)h2
For the temporal derivative, we'll use the forward difference approximation:
∂ux,t∂t≈u(x,t+k)-u(x,t)k
Substituting these approximations into the heat diffusion equation, we get:
Now, let's perform the iterations to approximate the solution at two time steps, j=0 and j=1.
Iteration 1 (j=0):
Given initial condition u(x,0) = sin(Ï€x), we can substitute t=0 into the exact solution:
u(x,0)=e-α2⋅π2⋅0⋅sin(πx)=sin(πx)
Since we're using h = 0.1, we can discretize the spatial domain from x=0 to x=1 with 11 points: x0,x1,...,x10. The values of u(x,0) at these points are:
u(x0,0)=sin(π⋅0)=0
u(x1,0)=sin(π⋅0.1)≈0.309
u(x2,0)=sin(π⋅0.2)≈0.588
u(x3,0)=sin(π⋅0.3)≈0.809
u(x4,0)=sin(π⋅0.4)≈0.951
u(x5,0)=sin(π⋅0.5)=1
u(x6,0)=sin(π⋅0.6)≈0.951
u(x7,0)=sin(π⋅0.7)≈0.809
u(x8,0)=sin(π⋅0.8)≈0.588
u(x9,0)=sin(π⋅0.9)≈0.309
u(x10,0)=sin(π⋅1)=0
Now, we'll use the forward difference method to approximate u(x,t+k) at j=0:
Similarly, we'll compute u(x,t+k) at other spatial points x1 to x10 using the same formula.
By repeating the iterations, we can approximate the numerical solution of the heat diffusion equation using the forward difference method.
KINDLY, DON’T COPY PASTE SUBSCRIBE, SHARE, LIKE AND COMMENTS FOR MORE UPDATES SEND WHATSAPP OR E-MAIL FOR ANY QUERY 0325-6644800 kamranhameedvu@gmail.com Visit Website For More Solutions www.vutechofficial.blogspot.com
We provide Virtual University of Pakistan Study Materials such as Solution of Assignments, GDBs, Mid Term Solved Papers, Final Term Solved Papers, Mid Term Solved MCQs, and Final Term Solved MCQs. We also provide regular Semester Quizzes, Updated Handouts, and Short Questions and Answers. We help you with your research and many other educational-related topics, as far as we know. Furthermore, Share your problem with us and Please feel free to ask any related questions.