Parallel Adaptive C 1 Macro-Elements for Nonlinear Thin Film and - - PowerPoint PPT Presentation

parallel adaptive c 1 macro elements for nonlinear thin
SMART_READER_LITE
LIVE PREVIEW

Parallel Adaptive C 1 Macro-Elements for Nonlinear Thin Film and - - PowerPoint PPT Presentation

Parallel Adaptive C 1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Parallel Adaptive C 1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Roy Stogner Computational Fluid Dynamics Lab Institute for


slide-1
SLIDE 1

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems

Roy Stogner

Computational Fluid Dynamics Lab Institute for Computational Engineering and Sciences University of Texas at Austin

August 12, 2008

slide-2
SLIDE 2

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems

Outline

1

Goals

2

Macroelement Spaces

3

Adaptive Mesh Refinement / Coarsening

4

Software Implementation

5

Solver Details

6

Divergence-free Flow

7

Thin Film Flow

8

Cahn-Hilliard Phase Decomposition

9

Contributions

slide-3
SLIDE 3

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Goals

Dissertation Goals

Goals Parallel adaptive solution of fourth order problems Adaptive mesh refinement of C1 macroelements Error estimation on conforming formulations of fourth order problems New weak formulations of thin film flow problems Numerical experiments of thin film flow phenomena

slide-4
SLIDE 4

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Macroelement Spaces

Application Classes

Fourth Order Terms Streamfunction Viscosity Thin Film Surface Tension Material Interface Diffusion

slide-5
SLIDE 5

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Macroelement Spaces

C1 Finite Element Spaces

In Galerkin approximations of fourth order problems we find integrated products of second derivatives of trial and test functions. Conforming finite element approximations require at least H2 conforming functions. We can use C1 continuous (and W2,∞ bounded, W2,p conforming) finite elements: Macroelement Types Powell-Sabin 6-split triangle Powell-Sabin-Heindl 12-split triangle Clough-Tocher 3-split triangle

slide-6
SLIDE 6

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Macroelement Spaces

Macroelements

Constraining C1 continuity on arbitrary meshes requires quintics, a higher degree than desired for many approximations. Instead, we subdivide each macroelement:

slide-7
SLIDE 7

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Macroelement Spaces

Constructing Macroelements

Macroelement Basis Precalculation Index the “raw” degrees of freedom “Write” all constraints as symbolic matrix rows Put constraint matrix in row reduced form Add boundary DoF equations (checking each for linear independence) If necessary, make matrix square with interior DOF equations (again checking for linear independence) Invert matrix, multiply by ˆ ei to get basis coefficients corresponding to the DOF on row i

slide-8
SLIDE 8

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Macroelement Spaces

Clough-Tocher 3-split

slide-9
SLIDE 9

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Macroelement Spaces

Interpolation, H2 Approximation Convergence

Powell-Sabin and Clough-Tocher macroelements can exactly reproduce quadratics and cubics (k ≡ 2, 3), respectively. Standard interpolation, H2 approximation rules apply. For w ∈ Hn(Ω), n ≤ k + 1, Ph(f) ≡

N

  • i=1

σi(f)φi ||w − Phw||Hm(Ω) ≤ Chn−m |w|Hn(Ω) ||u − uh||H2(Ω) ≤ Chn−2 |u|Hn(Ω)

slide-10
SLIDE 10

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Macroelement Spaces

L2 Approximation Convergence

Clough-Tocher elements obtain an additional power of h over Powell-Sabin elements in H2 norm. The difference is greater in L2. With η ≡ min (2(k + 1 − m), k + 1 − r, n − r), for Galerkin approximation uh to an elliptic problem on Hm(Ω), ||u − uh||Hr(Ω) ≤ Chη ||u||Hn(Ω) For k = 3, or k = 2, r ≥ 1, this is familiar. For fourth order problems (m = 2), quadratic elements (k = 2), in the L2 norm (r = 0), η = 2(k + 1 − m) = 2.

slide-11
SLIDE 11

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Adaptive Mesh Refinement / Coarsening

h Adaptivity

Macroelement splitting, adaptive refinement subdivision must match along element sides 12-split, 3-split triangles, 4-split tetrahedra are compatible 6-split triangles, 12-split tetrahedra are not

slide-12
SLIDE 12

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Adaptive Mesh Refinement / Coarsening

h Adaptivity

Maintaining function space continuity requires constraining some degrees of freedom on fine elements in terms of degrees

  • f freedom on coarse neighbor elements.

uF = uC

  • i

uF

i φF i

=

  • j

uC

j φC j

Akiui = Bkjuj ui = A−1

ki Bkjuj

Integrated values (and fluxes, for C1 continuity) give element-independent matrices: Aki ≡ (φF

i , φF k )

Bkj ≡ (φC

j , φF k )

slide-13
SLIDE 13

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Adaptive Mesh Refinement / Coarsening

Error Indicators

Integration by parts gives an upper error bound on subelements S for the biharmonic problem: ||e||H2(Ω) ≤ CΩ

  • S
  • f − ∆2uh
  • S h2

S+

1 2 ||[[∂

n∆uh]]||∂S h3/2 S

+ 1 2 ||[[∆uh]]||∂S h1/2

S

  • The most significant term gives a simple indicator on elements

K for more general fourth order problems: ηK ≡

  • hK ||[[∆uh]]||∂K
slide-14
SLIDE 14

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Software Implementation

libMesh C++ Finite Element Library

Initial developers: Benjamin Kirk, John Peterson Contributions from Michael Anderson, Bill Barth, Daniel Dreyer, Derek Gaston, David Knezevic, Hendrik van der Heijden, Steffen Petersen, Florian Prill, others Key Features Mixed element geometries in unstructured grids Adaptive mesh h-refinement with hanging nodes Parallel system assembly and solution Integration w/ PETSc, LASPack, METIS, ParMETIS Export/import to common data formats 200 downloads/month, 100 current users, 20 papers

slide-15
SLIDE 15

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Software Implementation

libMesh Usage

FEMSystem

+element_solution +element_residual +element_jacobian +FE_base +*_time_derivative(request_jacobian) +*_constraint(request_jacobian) +*_postprocess()

NavierStokesSystem LaplaceYoungSystem CahnHilliardSystem SurfactantSystem

libMesh library provides elements, linear algebra, common tools Application code implements physical equations, control loops

slide-16
SLIDE 16

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Software Implementation

Finite Element Classes

FEBase

+phi: vector<vector<Real> > +dphi: vector<vector<RealGradient> > +d2phi: vector<vector<RealTensor> > +JxW: vector<Real> +quadrature_rule: QRule +reinit(Elem) +reinit(Elem,side,)

Lagrange Hermite Hierarchic Monomial CloughTocher

Finite Element object computes data for each geometric Elem object Application code is element independent

slide-17
SLIDE 17

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Software Implementation

New Contributions to libMesh

Current chief software architect: Roy Stogner Key Features Added Macroelement construction and quadrature C1 macroelement, Hermite classes Hessian calculations Parallel adaptivity for general element types Parallel unstructured meshing Projection, interpolation for general elements New nonlinear solver, timestepping frameworks Additional error estimators, adaptivity strategies

slide-18
SLIDE 18

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Solver Details

Adaptive Time Stepping

Trapezoidal integration to avoid extrapolation failures Truncation error compares 2δt to δt in relative Hr norm

10

−10

10

−8

10

−6

10

−4

10

−2

10 10

2

10

4

10

−10

10

−8

10

−6

10

−4

10

−2

10 10

2

Time Timestep Length H2 Based Timesteps L2 Based Timesteps

slide-19
SLIDE 19

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Solver Details

Adaptive Time Stepping

Time step length may be limited by random topological events at any time Mean step lengths grow smoothly.

1e-08 1e-06 0.0001 0.01 1 100 0.0001 0.001 0.01 0.1 1 10 100 Time Step Length Time

Adaptive Time Step Lengths for Imposed Bias Magnitude Study

slide-20
SLIDE 20

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Solver Details

Newton-Krylov Nonlinear Solver

Adaptively reduced linear residual reduction tolerance Inner GMRES iteration, Block Jacobi/ILU preconditioning Reliability Improvements Brent’s Method line search to find residual reduction Feedback to adaptive time stepping or continuation solvers

slide-21
SLIDE 21

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Divergence-free Flow

Divergence-free Elements

Curls of C1 basis functions become div-free C0 spanning functions Constraining kernel of ∇× is simple in 2D Pressure term disappears from Navier-Stokes equations:

∇P · v dΩ =

  • ∂Ω

P v · n dS −

P∇ · v dΩ = 0

slide-22
SLIDE 22

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Divergence-free Flow

Lid-Driven Cavity

The lid-driven cavity is a standard incompressible viscous flow benchmark: Example Extended Williamson Fluid Re0 = 500, ν0/ν∞ = 10 Thin shear layers Corner derivative singularities Vorticity convected to interior

slide-23
SLIDE 23

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Divergence-free Flow

Driven Cavity Convergence

10

1

10

2

10

3

10

4

10

−4

10

−3

10

−2

10

−1

10 10

1

Number of DoFs Error Fraction Error Convergence, Lid−Driven Cavity Uniform L2 error Adaptive L2 error Uniform H1 error Adaptive H1 error

Adapted meshes capture both corner singularities and interior vorticity layer

slide-24
SLIDE 24

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Thin Film Flow

Thin Film Flow

Gas Liquid Heated plate Cooled plate

Hot spot Cool spot

Thin Film Flow Characteristics Microscale buoyancy effects vanish Long-wavelength thermocapillary effects dominate

slide-25
SLIDE 25

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Thin Film Flow

Surfactant Transport

Gas Liquid

Surfactant Layer

Flow Characteristics Temperature, surfactant distribution determine surface tension Temperature destabilizes, surfactant stabilizes

slide-26
SLIDE 26

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Thin Film Flow

Thin Film Flow and Transport Equations

Taking only the dominant bulk fluid flow terms as d/L → 0, depth integration derives the 2D thin film flow equations: ∂u ∂t = ∇ · u3 B ∇

  • 1 +

Dud2 (1 + F − Fu)L2 − Ds d2 L2 cs

  • ∆u

3u2 2 D(1 + F) (1 + F − Fu)2 ∇u + u2 2 ∇cs + Gu3 3 ∇u

  • ∂cs

∂t = ∇ · 3u2 2B ∇

  • 1 +

Dud2 (1 + F − Fu)L2 − Ds d2 L2 cs

  • ∆u
  • +

D(1 + F)u (1 + F − Fu)2 ∇u − Dsu∇cs

  • cs
slide-27
SLIDE 27

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Thin Film Flow

Surfactant-Driven Flow

Adding a surfactant droplet to the corner of an initially flat film sur- face, local surface ten- sion reduction pushes a fluid wave through the domain Surfactant concentration at t = 0, 0.2 Fluid depth at t = 0.1, 0.2

slide-28
SLIDE 28

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Microscale and Nanoscale Phenomena

Cahn-Hilliard Applications Tin-Lead solder aging Void lattice formation in irradiated semiconductors Self-assembly of thin film patterns

slide-29
SLIDE 29

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Free Energy Formulation

Cahn-Hilliard systems model material separation and interface evolution based on a weakly non-local free energy density. f(c, ∇c) ≡ f0(c) + fγ(∇c) fγ(∇c) ≡ ǫ2

c

2 ∇c · ∇c f0m(c) ≡ 1 4

  • c2 − 1

2

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 −0.2 −0.15 −0.1 −0.05 0.05 0.1 0.15 0.2

Concentration Bulk Free Energy Density Flory−Huggins Free Energy Density NkT = 0.4 NkT = 0.5 NkT = 0.6 NkT = 0.7 NkT = 0.8 NkT = 0.9

f0(c) ≡ NkT (c ln (c)+ (1 − c) ln (1 − c)) + Nωc(1 − c)

slide-30
SLIDE 30

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Cahn-Hilliard Equation

A mobility coefficient Mc defines the concentration flux

  • J. For

positive definite Mc, the resulting Cahn-Hilliard equation gives globally non-increasing free energy.

  • J

= Mc∇df dc = Mc∇

  • f ′

0(c) + f ′ γ(c)

  • ∂c

∂t = ∇ · Mc∇

  • f ′

0(c) − ǫ2 c∆c

slide-31
SLIDE 31

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Weak Cahn-Hilliard Equation

Taking a weighted residual and integrating by parts twice, (∂c ∂t , φ)Ω = −

  • Mc∇f ′

0(c), ∇φ

  • Ω − ǫ2

c

  • ∆c, ∇ · MT

c ∇φ

+

  • Mc∇
  • f ′

0(c) − ǫ2 c∆c

  • ·

n, φ

  • ∂Ω

+ǫ2

c

  • ∆c, MT

c ∇φ ·

n

  • ∂Ω
slide-32
SLIDE 32

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Free Energy Decay

Non-increasing global free energy can be guaranteed for modified weak equations, and typically observed even with unmodified Galerkin

  • 0.6
  • 0.4
  • 0.2

0.2 0.4 0.6 0.001 0.01 0.1 1 10 100 Total Free Energy Time

Free Energy Evolution for Various Average Concentrations

slide-33
SLIDE 33

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Phase Separation

Initial Evolution Initial homogeneous blend quenched below critical T Random perturbations rapidly segregate into two distinct phases, divided by a labyrinth of sharp interfaces Rapid anti-diffusionary process

slide-34
SLIDE 34

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Spinodal Decomposition

Long-term Evolution Single-phase regions gradually coalesce Motion into curvature vector resembles surface tension Patterning may occur when additional stress, surface tropisms are applied

slide-35
SLIDE 35

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Cahn-Hilliard with AMR/C

Interface Tracking Problem Coarsening in single-phase regions is traded for refinement in sharp layers Equivalent accuracy achieved here with 75% fewer degrees of freedom

slide-36
SLIDE 36

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Cahn-Hilliard with AMR/C

Phase Decomposition Problem Adaptive Mesh Refinement / Coarsening reduces solver expense Laplacian Jump error indicator keeps up with moving interfaces

slide-37
SLIDE 37

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Thin Film Patterning

Material Self-Assembly Electrostatic or chemical surface treatment attracts one material component preferentially A spatially varying bias is added to the configurational free energy

slide-38
SLIDE 38

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Effects of Bias Strength

Low surface potential energy biases are overwhelmed by random noise

slide-39
SLIDE 39

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Effects of Bias Strength

Higher surface potential energy biases form patterns with decreasing defect density

slide-40
SLIDE 40

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Effects of Bias Strength

  • 0.4
  • 0.2

0.2 0.4 0.6 0.001 0.01 0.1 1 10 100

Total Free Energy Time

Free Energy Evolution for Various Imposed Bias Magnitudes

Patterning locks system into stable local free energy minima

slide-41
SLIDE 41

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Postprocessing - Defect Count

1 2 3 4 5 6 7 8 0.0001 0.001 0.01 0.1 1 10 100

Defect Count Time

Pattern Defects for Various Imposed Bias Magnitudes

Quantitative measure of pattern non-conformity

slide-42
SLIDE 42

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Postprocessing - Correlation Lengths

r( y) ≡ c( x)c( x + y) − c( x)2

0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 1e-06 1e-05 0.0001 0.001 0.01 0.1 1 10 100 Distance Time

Pattern-Perpendicular Correlation Lengths for Varying Film Thickness

0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 1e-06 1e-05 0.0001 0.001 0.01 0.1 1 10 100 Distance Time

Pattern-Parallel Correlation Lengths for Varying Film Thickness

0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 1e-06 1e-05 0.0001 0.001 0.01 0.1 1 10 100 Distance Time

Through-Film Correlation Lengths for Varying Film Thickness

slide-43
SLIDE 43

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Effects of Film Thickness

Thin films rapidly become uniform in z direction Thick films show more connectivity, fewer defects

slide-44
SLIDE 44

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Effects of Interfacial Free Energy

Small increases in gradient coefficient speed defect reduction Wide diffuse interfaces lead to pattern instability

slide-45
SLIDE 45

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Cahn-Hilliard Phase Decomposition

Effects of Quench Temperature

Less reliable patterning at low T Incomplete phase decomposition at high T

1e-08 1e-06 0.0001 0.01 1 100 10000 1e+06 1e-08 1e-06 0.0001 0.01 1 100

||dt c||2 Time

Concentration Rate of Change for Various Temperatures

slide-46
SLIDE 46

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Contributions

Primary New Contributions

Macroelement/generalized constraints for adaptive mesh refinement/coarsening “Laplacian jump” a posteriori error indicator Algorithms for automatic AMR/C on transient problems Adaptive div-free elements for non-Newtonian flow Conforming, fully coupled heat and surfactant driven thin film flow formulations, solvers Conforming Cahn-Hilliard solutions on 2D, 3D, adaptive meshes Parametric/Monte Carlo studies of directed pattern self-assembly in thin film phase decomposition

slide-47
SLIDE 47

Parallel Adaptive C1 Macro-Elements for Nonlinear Thin Film and Non-Newtonian Flow Problems Contributions

Published Work

Reviewed Articles

  • B. Kirk, J. Peterson, R. Stogner and G. Carey, “libMesh: a

C++ library for parallel adaptive mesh refinement / coarsening simulations”, Engineering with Computers 22(3):237–254, Dec. 2006

  • R. Stogner and G. Carey, “C1 macroelements in adaptive

finite element methods”, Int. J. Num. Meth. Eng. 70(9):1076–1095, May 2007

  • R. Stogner and G. Carey, “Approximation of Cahn-Hilliard

diffuse interface models using parallel adaptive mesh refinement and coarsening with C1 elements”, Int. J. Num.

  • Meth. Eng., in press