(1) Develop the finite-difference equations for the above PDE using a uniform mesh in both x and y directions, and write a computer program to solve the resulting algebraic equations using the Jacobi method. Use 41 grids points in each direction. Use an absolute convergence tolerance of 10-6. For your derivation, keep the grid spacing in x and y directions separate, so that you can use this same code later for studying grid aspect ratio effects. a) Make contour plots of the numerical solution and the error between the analytical and numerical solutions. b) Make a plot of the residual (log scale) vs. number of iterations, i.e., a semi-log plot. c) Discuss your results. (2) Repeat Part 1 (including all plots), but now using the Gauss-Seidel method. Make sure you use the same initial guess as Part 1. Plot the residual of the Gauss-Seidel method and the Jacobi method (Part 1) on the same plot. Discuss your results. (3) Repeat both methods (including all plots), but now with 81 grid points in each direction. Plot these two residuals, as well as those plotted in Part (2) on the same plot. Discuss your results, and list the main conclusions of this study.
(1) Develop the finite-difference equations for the above PDE using a uniform mesh in both x and y directions, and write a computer program to solve the resulting algebraic equations using the Jacobi method. Use 41 grids points in each direction. Use an absolute convergence tolerance of 10-6. For your derivation, keep the grid spacing in x and y directions separate, so that you can use this same code later for studying grid aspect ratio effects. a) Make contour plots of the numerical solution and the error between the analytical and numerical solutions. b) Make a plot of the residual (log scale) vs. number of iterations, i.e., a semi-log plot. c) Discuss your results. (2) Repeat Part 1 (including all plots), but now using the Gauss-Seidel method. Make sure you use the same initial guess as Part 1. Plot the residual of the Gauss-Seidel method and the Jacobi method (Part 1) on the same plot. Discuss your results. (3) Repeat both methods (including all plots), but now with 81 grid points in each direction. Plot these two residuals, as well as those plotted in Part (2) on the same plot. Discuss your results, and list the main conclusions of this study.
Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
Related questions
Question
Please use Matlab!i will be very grateful!!
Please use Matlab!i will be very grateful!!
Please use Matlab!i will be very grateful!!
Please do not use chatgpt!Please do not use chatgpt!Please do not use chatgpt!
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 14 images
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,