an iterative solver for the diffusion
play

An Iterative Solver for the Diffusion The Methods Progress So - PowerPoint PPT Presentation

An Iterative Solver for the Diffusion Equation Alan Davidson Problem Statement An Iterative Solver for the Diffusion The Methods Progress So Far... Equation Alan Davidson adavidso@cs.hmc.edu 25 April 2006 An Iterative Solver The


  1. An Iterative Solver for the Diffusion Equation Alan Davidson Problem Statement An Iterative Solver for the Diffusion The Methods Progress So Far... Equation Alan Davidson adavidso@cs.hmc.edu 25 April 2006

  2. An Iterative Solver The Diffusion/Heat Equation for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far... u t = a + D · u xx • u is the concentration/temperature • a is a source/sink • D is a diffusion/thermal diffusivity constant • t is time, x is space

  3. An Iterative Solver The Hitch for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far... • For clinic, we needed arbitrary Dirichlet boundary conditions through the middle • These BCs simply hold the concentration at a fixed amount • Exact solution cannot be found easily

  4. An Iterative Solver The Solution! for the Diffusion Equation Alan Davidson Problem Statement • Use an iterative solver The Methods • For clinic we actually used Progress So Far... • The 3-D equation • The Gauss-Seidel method • The backwards Euler FDA • C++ • I wanted to try • 1, 2, or 3 dimensions • Dirichlet, Neumann, and Cauchy BCs • The Jacobi or SSOR methods • The backwards Euler FDA • Sparse matrices in Matlab

  5. An Iterative Solver Iterative Methods for the Diffusion Equation Alan Davidson Problem We want to solve Statement The Methods � = A � x b Progress So Far... but we don’t want to invert A (time constraints, etc). Divide up A so that = D + L + U A where • D is diagonal • L is lower triangular • U is upper triangular

  6. An Iterative Solver The Jacobi Method for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far... x (0) to be the initial guess at a solution. Now, define Pick � x ( i ) + D − 1 · � x ( i +1) D − 1 · ( − L − U ) · � � = b � isn’t small enough, repeat. � x ( i +1) − � x ( i ) � If � �

  7. An Iterative Solver The Successive Over-Relaxation (SOR) Method for the Diffusion Equation Alan Davidson We will solve Problem Statement ω� ω A � = x b The Methods Progress So Far... Noting that = ( D + ω L ) + ( ω U − (1 − ω ) D ) , ω A we now have that � x ( i ) + ω� � x ( i +1) ( D + ω L ) − 1 · � = ( − ω U + (1 − ω ) D ) � b The backwards version is � x ( i ) + ω� � x ( i +1) ( D + ω U ) − 1 · = ( − ω L + (1 − ω ) D ) � � b

  8. An Iterative Solver The Symmetric Successive Over-Relaxation for the Diffusion Equation (SSOR) Method Alan Davidson Problem Statement The Methods Progress So Far... We do one forwards SOR step followed by one backwards SOR step: � x ( i ) + ω� � x ( i +1 / 2) ( D + ω L ) − 1 · � = ( − ω U + (1 − ω ) D ) � b � x ( i +1 / 2) + ω� � x ( i +1) ( D + ω U ) − 1 · � = ( − ω L + (1 − ω ) D ) � b

  9. An Iterative Solver Progress So Far... for the Diffusion Equation Alan Davidson Problem Statement Slower than I expected The Methods Progress So Far... • 1-D case implemented for both Jacobi and SSOR methods with any Dirichlet BCs • Neumann (and therefore Cauchy) BCs are not well defined in arbitrary locations, especially in a 1-D case • Uses only sparse matrices • Checks for stability Oddly enough, the Jacobi method seems to converge more quickly than the SSOR!?

  10. An Iterative Solver An Example Run... for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far...

  11. An Iterative Solver An Example Run... for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far...

  12. An Iterative Solver An Example Run... for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far...

  13. An Iterative Solver An Example Run... for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far...

  14. An Iterative Solver An Example Run... for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far...

  15. An Iterative Solver An Example Run... for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far...

  16. An Iterative Solver An Example Run... for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far...

  17. An Iterative Solver References Used for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far... Saad, Yousef. Iterative Methods for Sparse Linear Systems SIAM, 2000. http://mathworld.wolfram.com

  18. An Iterative Solver That’s All, Folks! for the Diffusion Equation Alan Davidson Problem Statement The Methods Progress So Far... Questions?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend