1 / 55

MULTISCALE COMPUTATION: From Fast Solvers To Systematic Upscaling

MULTISCALE COMPUTATION: From Fast Solvers To Systematic Upscaling. A. Brandt The Weizmann Institute of Science UCLA www.wisdom.weizmann.ac.il/~achi. Major scaling bottlenecks: computing. Elementary particles (QCD) Schrödinger equation molecules condensed matter

Download Presentation

MULTISCALE COMPUTATION: From Fast Solvers To Systematic Upscaling

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MULTISCALE COMPUTATION:From Fast SolversTo Systematic Upscaling A. Brandt The Weizmann Institute of Science UCLA www.wisdom.weizmann.ac.il/~achi

  2. Major scaling bottlenecks:computing Elementary particles (QCD) Schrödinger equationmoleculescondensed matter Molecular dynamicsprotein folding, fluids, materials Turbulence, weather, combustion,… Inverse problemsda, control, medical imaging Vision, recognition

  3. Scale-born obstacles: • Many variablesn gridpoints / particles / pixels / … • Interacting with each otherO(n2) • Slowness Slowly converging iterations / Slow Monte Carlo / Small time steps / … • due to • Localness of processing

  4. small step Moving one particle at a timefast local ordering slow global move

  5. Solving PDE: Influence of pointwise relaxation on the error Error of initial guess Error after 5 relaxation sweeps Error after 10 relaxations Error after 15 relaxations Fast error smoothingslow solution

  6. Scale-born obstacles: • Many variablesn gridpoints / particles / pixels / … • Interacting with each otherO(n2) • Slowness Slowly converging iterations / Slow Monte Carlo / Small time steps / … • due to • Localness of processing 2. Attraction basins

  7. t Macromolecule Dihedral potential G2 G1 T t 0 -p p + Lennard-Jones + Electrostatic ~104Monte Carlo passes for one T Gi transition

  8. E(r) r Optimizationmin E(r) multi-scale attraction basins

  9. Scale-born obstacles: • Many variablesn gridpoints / particles / pixels / … • Interacting with each otherO(n2) • Slowness Slowly converging iterations / Slow Monte Carlo / Small time steps / … • due to • Localness of processing 2. Attraction basins Removed by multiscale processing

  10. Solving PDE: Influence of pointwise relaxation on the error Error of initial guess Error after 5 relaxation sweeps Error after 10 relaxations Error after 15 relaxations Fast error smoothingslow solution

  11. h LU = F LhUh = Fh 2h L2hU2h = F2h L2hV2h = R2h 4h L4hV4h = R4h

  12. Multigrid solversCost: 25-100 operations per unknown Linear scalar elliptic equation (~1971)

  13. Multigrid solversCost: 25-100 operations per unknown Linear scalar elliptic equation (~1971)* Nonlinear Grid adaptation General boundaries, BCs* Discontinuous coefficients Disordered: coefficients, grid (FE) AMG Several coupled PDEs* (1980) Non-elliptic: high-Reynolds flow Highly indefinite: waves Many eigenfunctions (N) Near zero modes Gauge topology: Dirac eq. Inverse problems Optimal design Integral equations Statistical mechanics Massive parallel processing *Rigorous quantitative analysis (1986) (1977,1982) FAS (1975) Withinonesolver

  14. Multigrid solversCost: 25-100 operations per unknown Linear scalar elliptic equation (~1971)* Nonlinear Grid adaptation General boundaries, BCs* Discontinuous coefficients Disordered: coefficients, grid (FE) AMG Several coupled PDEs* (1980) Non-elliptic: high-Reynolds flow Highly indefinite: waves Many eigenfunctions (N) Near zero modes Gauge topology: Dirac eq. Inverse problems Optimal design Integral equations Statistical mechanics Massive parallel processing *Rigorous quantitative analysis (1986) (1977,1982) FAS (1975) Withinonesolver

  15. h LhUh = Fh LU = F 2h U2h = Uh,approximate +V2h L2hV2h = R2h L2hU2h = F2h Fine-to-coarse defect correction 4h L4hU4h = F4h

  16. Multigrid solversCost: 25-100 operations per unknown Linear scalar elliptic equation (~1971)* Nonlinear Grid adaptation General boundaries, BCs* Discontinuous coefficients Disordered: coefficients, grid (FE) AMG Several coupled PDEs* (1980) Non-elliptic: high-Reynolds flow Highly indefinite: waves Many eigenfunctions (N) Near zero modes Gauge topology: Dirac eq. Inverse problems Optimal design Integral equations Statistical mechanics Massive parallel processing *Rigorous quantitative analysis (1986) (1977,1982) FAS (1975) Withinonesolver

  17. Same fast solver Local patches of finer grids • Each level correct the equations of the next coarser level • Each patch may use different coordinate system and anisotropic grid “Quasicontiuum” method [B., 1992] and differet physics; e.g.atomistic • Each patch may use different coordinate system and anisotropic grid anddifferent physics; e.g. Atomistic

  18. Multigrid solversCost: 25-100 operations per unknown Linear scalar elliptic equation (~1971)* Nonlinear Grid adaptation General boundaries, BCs* Discontinuous coefficients Disordered: coefficients, grid (FE) AMG Several coupled PDEs* (1980) Non-elliptic: high-Reynolds flow Highly indefinite: waves Many eigenfunctions (N) Near zero modes Gauge topology: Dirac eq. Inverse problems Optimal design Integral equations Statistical mechanics Massive parallel processing *Rigorous quantitative analysis (1986) (1977,1982) FAS (1975) Withinonesolver

  19. Multigrid solversCost: 25-100 operations per unknown Linear scalar elliptic equation (~1971)* Nonlinear Grid adaptation General boundaries, BCs* Discontinuous coefficients Disordered: coefficients, grid (FE) AMG Several coupled PDEs* (1980) Non-elliptic: high-Reynolds flow Highly indefinite: waves Many eigenfunctions (N) Near zero modes Gauge topology: Dirac eq. Inverse problems Optimal design Integral equations Statistical mechanics Massive parallel processing *Rigorous quantitative analysis (1986) (1977,1982) FAS (1975) Withinonesolver

  20. ALGEBRAIC MULTIGRID (AMG) 1982

  21. ALGEBRAIC MULTIGRID (AMG) 1982 Coarse variables - a subset 1. “General” linear systems 2. Variety of graph problems

  22. Graph problems Partition: min cut Clustering (bioinformatics) Image segmentation VLSI placement Routing Linear arrangement: bandwidth, cutwidth Graph drawing low dimension embedding Coarsening: weighted aggregation Recursion: inherited couplings (like AMG) Modified by properties of coarse aggregates General principle: Multilevel objectives

  23. SWA

  24. Data: Filippi Detected Lesions Tagged Our results

  25. Multigrid solversCost: 25-100 operations per unknown Linear scalar elliptic equation (~1971)* Nonlinear Grid adaptation General boundaries, BCs* Discontinuous coefficients Disordered: coefficients, grid (FE) AMG Several coupled PDEs* (1980) Non-elliptic: high-Reynolds flow Highly indefinite: waves Many eigenfunctions (N) Near zero modes Gauge topology: Dirac eq. Inverse problems Optimal design Integral equations Statistical mechanics Massive parallel processing *Rigorous quantitative analysis (1986) (1977,1982) FAS (1975) Withinonesolver

  26. Generally: LU=F Non-local part of U has the form m Σ Ar(x) φr(x) r = 1 L φr ≈ 0 Ar(x) smooth {φr } found by local processing Ar represented on a coarser grid

  27. Multigrid solversCost: 25-100 operations per unknown Linear scalar elliptic equation (~1971)* Nonlinear Grid adaptation General boundaries, BCs* Discontinuous coefficients Disordered: coefficients, grid (FE) AMG Several coupled PDEs* (1980) Non-elliptic: high-Reynolds flow Highly indefinite: waves Many eigenfunctions (N) Near zero modes Gauge topology: Dirac eq. Inverse problems Optimal design Integral equations Statistical mechanics Massive parallel processing *Rigorous quantitative analysis (1986) (1977,1982) FAS (1975) Withinonesolver

  28. N eigenfunctions Electronic structures (Kohn-Sham eq): i = 1, …, N= # electrons O(N) gridpoints per yi O(N2 ) storage Orthogonalization O(N3) operations Multiscale eigenbase 1D: Livne O(NlogN) storage & operations V = Vnuclear+ V(y) One shot solver

  29. Multigrid solversCost: 25-100 operations per unknown Linear scalar elliptic equation (~1971)* Nonlinear Grid adaptation General boundaries, BCs* Discontinuous coefficients Disordered: coefficients, grid (FE) AMG Several coupled PDEs* (1980) Non-elliptic: high-Reynolds flow Highly indefinite: waves Many eigenfunctions (N) Near zero modes Gauge topology: Dirac eq. Inverse problems Optimal design Integral equationsFull matrix Statistical mechanics Massive parallel processing *Rigorous quantitative analysis (1986) (1977,1982) FAS (1975) Withinonesolver

  30. Integro-differential Equation differential , dense Multigrid solver Distributive relaxation: 1st order 2nd order Solution cost ≈ one fast transform(one matrix multiply)

  31. Integral Transforms G(x,x) Transform Complexity O(n logn) Fourier Laplace O(n logn) O(n) Gauss Potential O(n) G(x,x) * Exp(ikx) O(n logn) Waves

  32. G(x,y) Glocal Gsmooth s |x-y| ~ 1 / | x – y | s ~ next coarser scale G(x,y) = Gsmooth(x,y) + Glocal(x,y) Gsmooth(x,y) tranferred directly to coarser O(n) not static!

  33. Multigrid solversCost: 25-100 operations per unknown Linear scalar elliptic equation (~1971)* Nonlinear Grid adaptation General boundaries, BCs* Discontinuous coefficients Disordered: coefficients, grid (FE) AMG Several coupled PDEs* (1980) Non-elliptic: high-Reynolds flow Highly indefinite: waves Many eigenfunctions (N) Near zero modes Gauge topology: Dirac eq. Inverse problems Optimal design Integral equations Statistical mechanics Monte-Carlo Massive parallel processing *Rigorous quantitative analysis (1986) (1977,1982) FAS (1975) Withinonesolver

  34. Multiscale ~ DiscretizationLattice for accuracy Monte Carlocost ~ “volume factor” “critical slowing down” Multigrid moves Many sampling cycles at coarse levels

  35. Scale-born obstacles: • Many variablesn gridpoints / particles / pixels / … • Interacting with each otherO(n2) • Slowness Slowly converging iterations / Slow Monte Carlo / Small time steps / … • due to • Localness of processing • Attraction basins Removed by multiscale processing

  36. Repetitive systemse.g., same equations everywhere UPSCALING: Derivation of coarse equationsin small windows Small scale ratio at a time

  37. Systematic Upscaling • Choosing coarse variablesCriterion: Fast equilibration of “compatible Monte Carlo” OR: Fast convergence of “compatible relaxation” Local dependence on coarse variables • Constructing coarse-leveloperational rules Done locally In representative “windows” fast

  38. Macromolecule

  39. E ri tijkl rij rl rj Potential Energy Lennard-Jones Electrostatic Bond length strain Bond angle strain torsion hydrogen bond rk

  40. Macromolecule Two orders of magnitude faster simulation

  41. Total mass • Total momentum • Total dipole moment • average location Fluids

  42. Windows Coarser level Larger density fluctuations Still coarser level

  43. Total mass: Fluids Summing

  44. Lower Temperature T Summing also Still lower T: More precise crystal direction and periods determined at coarser spatial levels Heisenberg uncertainty principle: Better orientational resolution at larger spatial scales

  45. Optimization byMultiscale annealing Identifying increasingly larger-scale degrees of freedom at progressively lower temperatures Handling multiscale attraction basins E(r) r

More Related