Title: MULTISCALE%20COMPUTATION:%20From%20Fast%20Solvers%20To%20Systematic%20Upscaling
1MULTISCALE COMPUTATIONFrom Fast SolversTo
Systematic Upscaling
- A. Brandt
- The Weizmann Institute of Science
- UCLA
- www.wisdom.weizmann.ac.il/achi
2Major scaling bottleneckscomputing
- Elementary particles (QCD)
- Schrödinger equationmoleculescondensed matter
- Molecular dynamicsprotein folding, fluids,
materials - Turbulence, weather, combustion,
- Inverse problemsda, control, medical imaging
- Vision, recognition
3Scale-born obstacles
- Many variables n
gridpoints / particles / pixels /
- Interacting with each other O(n2)
Slowly converging iterations /
Slow Monte Carlo / Small time steps /
- due to
- Localness of processing
4Moving one particle at a timefast local
ordering
slow global move
5Fast error smoothingslow solution
6Scale-born obstacles
- Many variables n
gridpoints / particles / pixels /
- Interacting with each other O(n2)
Slowly converging iterations /
Slow Monte Carlo / Small time steps /
- due to
- Localness of processing
2. Attraction basins
7(No Transcript)
8Fluids Gas/Liquid
- Positional clustering
- Lennard-Jones
- Electrostatic clustering
- Dipoles
Water 1 2
9Optimization min E(r)
multi-scale attraction basins
10Scale-born obstacles
- Many variables n
gridpoints / particles / pixels /
- Interacting with each other O(n2)
Slowly converging iterations /
Slow Monte Carlo / Small time steps /
- due to
- Localness of processing
2. Attraction basins
Removed by multiscale processing
11Fast error smoothingslow solution
12h
LU F
LhUh Fh
2h
L2hU2h F2h
L2hV2h R2h
4h
L4hV4h R4h
13Full MultiGrid (FMG) algorithm
14Multigrid solversCost 25-100 operations per
unknown
- Linear scalar elliptic equation (1971)
15Multigrid solversCost 25-100 operations per
unknown
- Linear scalar elliptic equation (1971)
- Nonlinear
FAS (1975)
16h
LhUh Fh
LU F
2h
L2hV2h R2h
U2h Uh,approximate V2h
L2hU2h F2h
Fine-to-coarse defect correction
4h
L4hU4h F4h
17Multigrid 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)
Within one solver
18Multigrid 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)
Within one solver
19Local 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 and different - physics e.g. Atomistic
20(No Transcript)
21Multigrid 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)
Within one solver
22(No Transcript)
23Multigrid 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)
Within one solver
24ALGEBRAIC MULTIGRID (AMG)
1982
25Classical ALGEBRAIC MULTIGRID (AMG)
1982
Ax b, "M matrix"
aii
aij
aij aji ? 0 (i 1,,n)
- Relaxation ? approximation
26Classical ALGEBRAIC MULTIGRID (AMG)
1982
Ax b, "M matrix"
aii
aij
aij aji ? 0 (i 1,,n)
Coarse variables - a subset
( xc)3(a23 x2 a34 x4)/(a23 a34)
AMG Cycle
27ALGEBRAIC MULTIGRID (AMG)
1982
Coarse variables - a subset
1. General linear systems
2. Variety of graph problems
28Graph 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
29Multigrid 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)
Within one solver
30Non-local components eiwx, w k Slow to
converge in local processing
The error after relaxation v(x) A1(x) eikx
A2(x) e-ikx A1(x), A2(x) smooth
Ar(x) are represented on coarser grids A1? 2
i k A1' f1 rh(x) e-ikx
31 2D Wave Equation Duk2uf Non-local
ei(w1 x w2 y)
w12 w22 k2
On coarser grid (meshsize H)
- Fully efficient multigrid solver
- Tends to Geometrical Optics
- Radiation Boundary Conditions
- directly on coarsest level
32Generally LUF
Non-local part of U has the form
m
S
Ar(x) fr(x)
r 1
L fr 0 Ar(x) smooth fr found by local
processing Ar represented on a coarser grid
33Multigrid 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)
Within one solver
34N 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 (N log N) storage operations
V Vnuclear V(y)
One shot solver
35Multigrid 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 Full
matrix - Statistical mechanics
- Massive parallel processing
- Rigorous quantitative analysis (1986)
(1977,1982)
FAS (1975)
Within one solver
36Integro-differential Equation
Multigrid solver Distributive relaxation 1st
order 2nd order
Solution cost one fast transform(one fast
evaluation of the discretized integral transform)
37Integral 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
38 1 / x y
G(x,y) Gsmooth(x,y) Glocal(x,y)
s next coarser scale
O(n) not static!
39Multigrid 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)
Within one solver
40Discretization Lattice
for accuracy
Monte Carlo cost
volume factor critical slowing down
Multigrid moves
Many sampling cycles at coarse levels
41Multigrid 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)
Within one solver
42Local 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 and different - physics e.g. Atomistic
43Repetitive systemse.g., same equations everywhere
-
- UPSCALING
- Derivation of coarse equationsin small windows
44Scale-born obstacles
- Many variables n
gridpoints / particles / pixels /
- Interacting with each other O(n2)
Slowly converging iterations /
Slow Monte Carlo / Small time steps /
- due to
- Localness of processing
- Attraction basins
Removed by multiscale processing
45A solution value is NOT generally determined
just by few local equations
A coarse equation IS generally determined just
by few local equations
? O (N) operations
The coarse equation can be derived ONCE for all
similar neighborhoods
? operations ltlt N
46Systematic Upscaling
- Choosing coarse variables
- Constructing coarse-level operational rules
- equations
- Hamiltonian
-
47(No Transcript)
48(No Transcript)
49(No Transcript)
50Macromolecule
10-15 second steps
51Systematic Upscaling
- Choosing coarse variablesCriterion Fast
convergence of compatible relaxation -
52Systematic Upscaling
- Choosing coarse variablesCriterion Fast
equilibration of compatible Monte Carlo - OR Fast convergence of
- compatible relaxation
- Local dependence on coarse variables
- Constructing coarse-level operational rules
- Done locally
- In representative windows
- fast
53Systematic Upscaling
- Choosing coarse variablesCriterion Fast
equilibration of compatible Monte Carlo - Local dependence on coarse variables
- Constructing coarse-level operational rules
- Done locally
- In representative windows
- fast
54Macromolecule
55Potential Energy
Lennard-Jones
Electrostatic
Bond length strain
Bond angle strain
torsion
hydrogen bond
rk
56Macromolecule
Two orders of magnitude faster simulation
57Macromolecule
Dihedral potential
G2
G1
T
t
-p
0
p
Lennard-Jones
Electrostatic
104 Monte Carlo passes for one T
Gi transition
58(No Transcript)
59Fluids
60 1
61Hierarchy of Coarser levels
- Total mass at scale s at point x
-
- summed recursively
- densities at all scales
- Summing recursivelydensity variations at any
scaleaveraged to all higher scales
s
s -1
s
62Windows
- Coarser level
- Larger density fluctuations
Still coarser level
63Fluids
Summing
64Lower Temperature T
Still lower T More precise crystal direction
and periods determined at coarser spatial
levels
Heisenberg uncertainty principle Better
orientational resolution at larger spatial
scales
65Optimization byMultiscale annealing
- Identifying increasingly larger-scale
- degrees of freedom
- at progressively lower temperatures
Handling multiscale attraction basins
E(r)
r
66Systematic Upscaling
- Rigorous computational methodology
- to derive
- from physical laws at microscopic (e.g.,
atomistic) level - governing equations at increasingly larger
scales.
Scales are increased gradually (e.g., doubled at
each level)
with interscale feedbacks, yielding
- Inexpensive computation needed only in some
small windows at each scale.
- No need to sum long-range interactions
- Efficient transitions between meta-stable
configurations.
Applicable to fluids, solids, macromolecules,
electronic structures, elementary particles,
turbulence,
67Upscaling Projects
- QCD (elementary particles) Renormalization
multigrid RonBAMG
solver of Dirac eqs. Livne,
Livshits - Fast update of , det
Rozantsev - (3n 1) dimensional Schrödinger eq.
FilinovReal-time Feynmann path integrals
Zlochin multiscale electronic-density
functional - DFT electronic structures Livne,
Livshits molecular dynamics - Molecular dynamicsFluids
Ilyin, Suwain, MakedonskaPolymers
, proteins Bai,
KlugMicromechanical structures
Ghoniem defects, dislocations, grains - Navier Stokes Turbulence
McWilliams Dinar, Diskin
68THANK YOU
69(No Transcript)
70Aggregating Regions Adaptively
- e.g., by similarity of
- densities astrophysics
- heights epitaxial growth
- color image segmentationcolor
variances at all scaleselongation continuation
deblurringshapes recognition
71Cure Multiscale Computation
- Define a Coarser system
- Derive equations (or probabilistic rules)
governing the coarse system - Move similarly to a still-coarser system
etc.
- Small computational volumes at each scale
- No need to sum far interactions
- No slowness
- Leading to macroscopic equations
(or tabled rules) of the
material
72Exact Quantum Mechanics
n masses m1, , mn
located at r1, , rn rj(xj, yj,
zj)
Forces
potential V(r1, , rn)
Classical r(t)
Probability amplitude y(r1, , rn, t)
Approximations Born-Oppenheimer Hartree-Fock
Local density perturbations
Direct Numerical Real-time path integrals
73F cycle