Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Partial Differential Equations: The Heat Equation (Implementing the explicit scheme) Goal: In Matlab work through Example 5.4, to reproduce Figure 5.2. (Please include all Matlab
Partial Differential Equations: The Heat Equation (Implementing the explicit scheme)
Goal: In Matlab work through Example 5.4, to reproduce Figure 5.2. (Please include all Matlab code and explanations!)
I have attached exmaple 5.4 and figure 5.2 below. Thank you!
Example 5.4. Let us fix the diffusivity 1 and the interval length l I. For illustrative purposes, we take a spatial step size of .1. We work with the initial data 1- T, used earlier in Example 4.1. In Figure 5.2 we compare the numerical solutions resulting from two (slightly) different time step sizes. The first row uses (A2)2-01 and plots the solution at the indicated times. The numerical solution is already showing signs of instability (the final plot does not even fit in the window), and indeed, soon thereafter, it becomes completely wild. The second row takes .005. Even though we are employing a rather coarse mesh, the numerical solution is not too far away from the true solution to the initial value problem, which can be seen in Figure 4.1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started