Multigrid solution methods for nonlinear time-dependent systems - - PowerPoint PPT Presentation

multigrid solution methods for nonlinear time dependent
SMART_READER_LITE
LIVE PREVIEW

Multigrid solution methods for nonlinear time-dependent systems - - PowerPoint PPT Presentation

Multigrid solution methods for nonlinear time-dependent systems Feng Wei Yang Department of Mathematics University of Sussex F.W.Yang@sussex.ac.uk 4 December 2014 Feng Wei Yang University of Sussex 4 December 2014 1 / 35 Objectives To


slide-1
SLIDE 1

Multigrid solution methods for nonlinear time-dependent systems

Feng Wei Yang

Department of Mathematics University of Sussex F.W.Yang@sussex.ac.uk

4 December 2014

Feng Wei Yang University of Sussex 4 December 2014 1 / 35

slide-2
SLIDE 2

Objectives

To solve complex non-linear parabolic systems by applying: 2nd order central Finite Difference Method (FDM) 2nd order Backward Differentiation Formula (BDF2) Nonlinear multigrid method with Full Approximation Scheme (FAS) Adaptive Mesh Refinement (AMR) Adaptive time-stepping Parallel technique

Feng Wei Yang University of Sussex 4 December 2014 2 / 35

slide-3
SLIDE 3

Outline

Multigrid methods

Linear multigrid Nonlinear multigrid

Thin film models from Gaskell et al. Adaptive multigrid solver Cahn-Hilliard-Hele-Shaw system of equations from Wise Tumour modelling Tumour model from Wise et al. 2nd order convergence rate 3-D results

Feng Wei Yang University of Sussex 4 December 2014 3 / 35

slide-4
SLIDE 4

Jacobi/Gauss-Seidel iterative methods

Well-known methods Require diagonally-dominant matrices Typically have complexity of O(n2) for general sparse matrices ... Smoothing property

Low frequency of error High frequency of error

S.H. Lui Numerical Analysis of Partial Differential Equations, 2011 Feng Wei Yang University of Sussex 4 December 2014 4 / 35

slide-5
SLIDE 5

Convergence of a typical Jacobi iterative method

source: nkl.cc.u-tokyo.ac.jp Feng Wei Yang University of Sussex 4 December 2014 5 / 35

slide-6
SLIDE 6

Multigrid v-cycle

Finest grid Coarsest grid Grid level 1 Grid level 2 Grid level 3 Grid level 4 x y

Feng Wei Yang University of Sussex 4 December 2014 6 / 35

slide-7
SLIDE 7

Linear multigrid

A linear problem: Au = b, (1) exact error can be obtained as E = u − v, (2) residual can be calculated as: r = b − Av. (3) Error equation: AE = A(u − v) = Au − Av = b − Av = r. (4)

Feng Wei Yang University of Sussex 4 December 2014 7 / 35

slide-8
SLIDE 8

Linear multigrid

Feng Wei Yang University of Sussex 4 December 2014 8 / 35

slide-9
SLIDE 9

Nonlinear multigrid

The Error Equation (4) does not exist in a nonlinear case Full Approximate Scheme (FAS) For problem on coarser grids, a modified RHS is included

Feng Wei Yang University of Sussex 4 December 2014 9 / 35

slide-10
SLIDE 10

Nonlinear multigrid

Feng Wei Yang University of Sussex 4 December 2014 10 / 35

slide-11
SLIDE 11

Droplet spreading model

∂h ∂t =

∂ ∂x

  • h3

3

  • ∂p

∂x − Bo ǫ sinα

  • + ∂

∂y

  • h3

3

  • ∂p

∂y

  • p =

−△(h) − Π(h) + Boh cos α with Neumann boundary conditions: ∂nh = 0 ∂np = 0

  • n ∂Ω

Gaskell et al. Int. J. Numer. Meth. Fluids, 45:1161-1186, 2004 Feng Wei Yang University of Sussex 4 December 2014 11 / 35

slide-12
SLIDE 12

Our solver

Cell-centred 2nd order finite difference method PARAMESH library for mesh generation and AMR Fully implicit BDF2 method with adaptive time-stepping MLAT variation of FAS multigrid at each time-step Newton-block 2 × 2 Red-Black (weighted) Gauss-Seidel smoother Full weighting restriction and bilinear interpolation Parallelism achieved using ARC2

Feng Wei Yang University of Sussex 4 December 2014 12 / 35

slide-13
SLIDE 13

Validation

0.2 0.4 0.6 0.8 1 x 10

−5

1 2 3 4 5 t h0(t) 32x32 64x64 128x128 256x256 512x512 1024x1024

Results from Gaskell et al. on the left and our results on the right.

Feng Wei Yang University of Sussex 4 December 2014 13 / 35

slide-14
SLIDE 14

Multigrid linear complexity

10

4

10

5

10

6

10

7

10 10

1

10

2

  • No. grid points on the finest grid.

Average CPU time per time step (seconds). CPU time required Line with slope of 1

A log-log plot demonstrating the linear complexity of multigrid.

Feng Wei Yang University of Sussex 4 December 2014 14 / 35

slide-15
SLIDE 15

Multigrid performance

Results from Gaskell et al. on the left and our results on the right.

Feng Wei Yang University of Sussex 4 December 2014 15 / 35

slide-16
SLIDE 16

AMR

AMR with initial condition on the left and final solution on the right.

Feng Wei Yang University of Sussex 4 December 2014 16 / 35

slide-17
SLIDE 17

Adaptive time-stepping

0.2 0.4 0.6 0.8 1 x 10

−5

1 2 3 4 5 6 7 8 9 10 11 x 10

−7

Time Time step size adaptive time−stepping 1024x1024

Evolution of δt during T = [0, 1 × 10−5].

Feng Wei Yang University of Sussex 4 December 2014 17 / 35

slide-18
SLIDE 18

Adaptive multigrid solver

Cases No. leaf nodes Uniform 10242 1,048,576 AMR 168,480 Cases

  • No. time

CPU time steps (seconds) Fixed δt 1000 16721.3 ATS 45 574.4

Feng Wei Yang University of Sussex 4 December 2014 18 / 35

slide-19
SLIDE 19

Multigrid in parallel

  • No. cores

1 2 4 8 16 32 64 CPU time (seconds) 3282.6 1687.1 843.5 774.1 490.6 348.6 368.3

Table: A grid hierarchy 16 × 16 − 1024 × 1024, and mesh block size is 8 × 8.

  • No. cores

1 2 4 8 16 32 64 CPU time (seconds) 3264.1 1625.1 840.1 687.3 439.5 351.2 301.7

Table: Another grid hierarchy of 32 × 32 − 1024 × 1024, and mesh block size of 8 × 8.

Feng Wei Yang University of Sussex 4 December 2014 19 / 35

slide-20
SLIDE 20

Fully-developed flow

∂h ∂t =

∂ ∂x

  • h3

3

  • ∂p

∂x − 2

  • + ∂

∂y

  • h3

3

  • ∂p

∂y

  • p =

−6△(h + s) + 2

3

√ 6N(h + s) with mixed boundary conditions: h(x = 0, y) = g, ∂p ∂x |x=0 = 0, ∂h ∂x |x=1 = ∂p ∂x |x=1 = 0, ∂p ∂y |y=0 = ∂p ∂y |y=1 = ∂h ∂y |y=0 = ∂h ∂y |y=1 = 0.

Gaskell et al. J. Fluids Mech, 509:253-280, 2004 Feng Wei Yang University of Sussex 4 December 2014 20 / 35

slide-21
SLIDE 21

Sketch of the fully-developed flow

α

Free surface

Inclined plane

g

Z Y

X

H(X,Y) flow direction Upstream x=0

S(X,Y)

Feng Wei Yang University of Sussex 4 December 2014 21 / 35

slide-22
SLIDE 22

Our results with a trench topography

Feng Wei Yang University of Sussex 4 December 2014 22 / 35

slide-23
SLIDE 23

Cahn-Hilliard-Hele-Shaw system of equations

∂φ ∂t = △µ − ∇ · (φu u u) , µ = φ3 − φ − ǫ2△φ, u u u = −∇p − γφ∇µ, ∇ · u u u = 0, with Neumann boundary conditions: ∂nφ = ∂nµ = ∂np = 0

  • n

∂Ω,

Wise J. Sci. Comput., 44:38-68, 2010 Feng Wei Yang University of Sussex 4 December 2014 23 / 35

slide-24
SLIDE 24

Cahn-Hilliard-Hele-Shaw system of equations

∂φ ∂t = ∇ · (M(φ)∇µ) − ∇ · (φ∇p), µ = φ3 − φ − ǫ2△φ, −△p = γ∇ · (φ∇µ), with Neumann boundary conditions: ∂nφ = ∂nµ = ∂np = 0

  • n

∂Ω,

Wise J. Sci. Comput., 44:38-68, 2010 Feng Wei Yang University of Sussex 4 December 2014 24 / 35

slide-25
SLIDE 25

2nd order convergence rate

For variable φ Levels Time steps Infinity norm Ratio Two norm Ratio 3 40

  • 4

80 1.074 × 10−3

  • 3.885 × 10−4
  • 5

160 2.718 × 10−4 3.95 9.781 × 10−5 3.97 6 320 6.905 × 10−5 3.93 2.468 × 10−5 3.96

Table: 2nd order convergence rate seen from CHHS system of equations.

Feng Wei Yang University of Sussex 4 December 2014 25 / 35

slide-26
SLIDE 26

Tumour modelling - avascular tumour growth

Starts with a small cluster of cells Nutrient supply through diffusion Internal adhesion force Three layers of cells:

Proliferative cells Dormant cells Dead cells (necrosis)

Volume loss in necrotic core

source: www.bioinfo.de Feng Wei Yang University of Sussex 4 December 2014 26 / 35

slide-27
SLIDE 27

Tumour modelling - vascular tumour growth

TAF chemical factor Inducing blood vessel (angiogenesis) Exponential growth rate Develop secondaries through metastasis

source: www.maths.dundee.ac.uk Feng Wei Yang University of Sussex 4 December 2014 27 / 35

slide-28
SLIDE 28

Tumour modelling - micro-environments

  • J. S. Lowengrub, H. B. Frieboes, Y-L. Chuang, F. Jin, X. Li P. Macklin, S. M. Wise,

Nonlinearity 23:R1-R91, 2010 Feng Wei Yang University of Sussex 4 December 2014 28 / 35

slide-29
SLIDE 29

Tumour model from Wise et al.

∂tφT = M∇ · (φT∇µ) + ST(φT, φD, n) − ∇ · (uSφT) µ = f ′(φT) − ǫ2∆φT ∂tφD = M∇ · (φD∇µ) + SD(φT, φD, n) − ∇ · (uSφD) uS = −(∇p − γ ǫ µ∇φT) ∇ · uS = ST(φT, φD, n) = ∆n + TC(φT, n) − n(φT − φD) with mixed boundary conditions: µ = p = 0 n = 1 ∂nφT = ∂nφD = 0 on ∂Ω,

  • S. M. Wise, J. S. Lowengrub, V. Cristini,
  • Math. Comput. Modelling, 53: 1-20, 2011.

Feng Wei Yang University of Sussex 4 December 2014 29 / 35

slide-30
SLIDE 30

Tumour model from Wise et al.

∂tφT = M∇ · (φT∇µ) + ST(φT, φD, n) − ∇ · (uSφT) µ = f ′(φT) − ǫ2∆φT ∂tφD = M∇ · (φD∇µ) + SD(φT, φD, n) − ∇ · (uSφD) [uS = −(∇p − γ ǫ µ∇φT)] −∆p = ST(φT, φD, n) − ∇ · (γ ǫ µ∇φT) = ∆n + TC(φT, n) − n(φT − φD) with mixed boundary conditions: µ = p = 0 n = 1 ∂nφT = ∂nφD = 0 on ∂Ω,

  • S. M. Wise, J. S. Lowengrub, V. Cristini,
  • Math. Comput. Modelling, 53: 1-20, 2011.

Feng Wei Yang University of Sussex 4 December 2014 30 / 35

slide-31
SLIDE 31

Validation

t=100 t=200 Validation between results of Wise et al. and ours.

Feng Wei Yang University of Sussex 4 December 2014 31 / 35

slide-32
SLIDE 32

2nd order convergence rate

For variable φT Levels Time steps Infinity norm Ratio Two norm Ratio 5(1282) 1250

  • 6(2562)

2500 9.118 × 10−2

  • 7.836 × 10−3
  • 7(5122)

5000 1.322 × 10−2 6.90 1.131 × 10−3 6.93 8(10242) 10000 2.579 × 10−3 5.13 2.367 × 10−4 4.78 9(20482) 20000 6.415 × 10−4 4.02 5.833 × 10−5 4.06

2nd order convergence rate seen from the model of tumour growth.

Feng Wei Yang University of Sussex 4 December 2014 32 / 35

slide-33
SLIDE 33

3-D results

t=50 t=100 t=150 t=200

Feng Wei Yang University of Sussex 4 December 2014 33 / 35

slide-34
SLIDE 34

3-D results

t=200 Cutting through x plane Cutting through y plane Cutting through z plane

Feng Wei Yang University of Sussex 4 December 2014 34 / 35

slide-35
SLIDE 35

The End

  • P. C. Bollada, C. E. Goodyer, P. K. Jimack, A. M. Mullis, F. Yang
  • J. Comput. Phys., submitted 2014

Feng Wei Yang University of Sussex 4 December 2014 35 / 35