* see whether centered or upwind is more accurate * see the boundary conditions u(0) = 0 and u(1) = 0 * see the matrices K (diffusion) and Del0 or Del_+ (centered/forward) for small N It compares the true analytic solution with the solution from finite differences, using (1) centered differences and (2) upwind differences. The code solves and then plots the solutions. You could test this code with different parameters D, v, h as suggested below. This is a code for Problem 1.2.19: Finite differences for the linear advection-diffusion equation ( Solutions below ) 1 Applied Linear Algebraġ.1 Four Special Matrices 1.2 Differences, Derivatives, and Boundary Conditionsġ.7 Numerical Linear Algebra: LU, QR, SVDĢ.3 Least Squares for Rectangular MatricesĢ.8 Covariances and Recursive Least Squaresģ.1 Differential Equations of Equilibriumģ.2 Cubic Splines and Fourth Order Equationsģ.5 Finite Differences and Fast Poisson SolversĤ.1 Fourier Series for Periodic Functions 4.2 Chebyshev, Legendre, and BesselĤ.3 The Discrete Fourier Transform and the FFTĥ.1 Taylor Series and Complex Integrationĥ.3 The Laplace Transform and z-Transformĥ.4 Spectral Methods of Exponential AccuracyĦ.3 Accuracy and Stability for u_t = c u_xĦ.4 The Wave Equation and Staggered Leapfrogħ.4 Conjugate Gradients and Krylov SubspacesĨ.4 Errors in Projections and Eigenvalues ** Readers are invited to propose possible links (write to Analysis of the Finite Element Method, Second Edition 2008 ** other websites, and all material related to the topic of that section. The publisher's site for the textbook ** Each section in the Table of Contents links to problem sets, solutions,.18.086 OpenCourseWare site with video lectures 18.086 on OCW.18.085 OpenCourseWare site with video lectures 18.085 on OCW.The course page for 18.086 from Chapters 5-8 /18086.The course page for 18.085 from Chapters 1-4 /18085.Section 4.1 of the book: Fourier Series for Periodic Functions.Section 1.1 of the book: Four Special Matrices.Learning and doing Computational Science and Engineering. I hope this website will become a valuable resource for everyone Computational Science and Engineering Computational Science and Engineering Gilbert Strang Wellesley-Cambridge Press (for ordering information) Book Order Form Outside North America our distributor is Cambridge University Press Related websites: /18085, /18086, ,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |