A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP...

29
A finite element method with non conforming patches M. Picasso, J. Rappaz, V. Rezzonico Institut d’Analyse et Calcul Scientifique Ecole Polytechnique F´ ed´ erale de Lausanne, Switzerland Picasso Rappaz Rezzonico A finite element method with non conforming patches

Transcript of A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP...

Page 1: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

A finite element method with non conformingpatches

M. Picasso, J. Rappaz, V. Rezzonico

Institut d’Analyse et Calcul ScientifiqueEcole Polytechnique Federale de Lausanne, Switzerland

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 2: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Goal : mesh refinement without global remeshing

Example 1 : Laplace problem, solution boundary layer 10−2,continuous, piecewise linear FE

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 3: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Goal : mesh refinement without global remeshing

10× 10 mesh : 150 vertices, relative H1 error 400%

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 4: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Goal : mesh refinement without global remeshing

Adapted, anisotropic mesh : 94 vertices, relative H1 error17%, aspect ratio 1 000

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 5: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Goal : mesh refinement without global remeshing

Alternative to mesh adaption : coarse mesh + anisotropicpatch → iterative procedure

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 6: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Goal : mesh refinement without global remeshing

Should be applicable to an industrial problem

Aluminum production cell (AlCan)

Coarse mesh (87470 vertices), no adaptation possible

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 7: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Finite elements with patches : applications

Well suited to multiscale problems : size of the patch is of theorder of size of the coarse mesh

Automatic placement of patches : adaptivity

Could be used to glue meshes : alternative to mortar

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 8: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

The method : coarse mesh + one patch

+

Coarse mesh TH , size H + Patch Th, size hVH = spanϕH

i + Vh = spanϕhi

Find uHh ∈ VH + Vh such that

a(uHh, v) = (f , v) ∀v ∈ VH + Vh

Here uHh = uH + uh =∑

i uHi ϕH

i +∑

i uhi ϕh

i

a symmetric, coercive, ex. a(u, v) =∫Ω∇u · ∇v dx

We have a basis of VH and Vh but not for VH + Vh →iterative method.

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 9: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

An iterative method : Successive Subspace Correction (XuSIAM Review 1992)

Choose the relaxation parameter ω ∈]0, 2[Initialization: Find u0

Hh ∈ VH s.t.

a(u0Hh, v) = (f , v) ∀v ∈ VH

For n = 1, 2, 3, . . .Find wh ∈ Vh such that

a(wh, v) = (f , v)− a(un−1Hh , v) ∀v ∈ Vh

Set un− 1

2

Hh = un−1Hh + ωwh

Find wH ∈ VH such that

a(wH , v) = (f , v)− a(un− 1

2

Hh , v) ∀v ∈ VH

Set unHh = u

n− 12

Hh + ωwH

If Vh is nested into VH : Fast Adaptive Composite(McCormick et al.)Relations with Chimera (Brezzi Lions Pironneau)

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 10: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Convergence of the iterative algorithm (Glowinski HeLozinski Rappaz Wagner Numer. Math. 2005)

The convergence speed depends on ω and on the abstractangle α between VH and Vh

cos α = supvh∈Vh∩V⊥

0,vh 6=0

vH∈VH∩V⊥0

,vH 6=0

a(vh, vH)

||vh|| · ||vH ||,

VH Vh

V0 = VH ∩ Vh

α

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 11: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Numerical experiments : number of iterations

The method is efficient when the size of the patch is of theorder of H → multiscale problems

Best case : convergence in one iteration (Laplace problem)

Worst case :

+

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 12: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Numerical experiments : number of iterations

−∆u = f in Ω = (−1; 1)2 ⊂ R2,u = 0 on ∂Ω.

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 13: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Number of iterations H = 0.1, H/h = 10

nested non-nested unstructuredω = 1 6 8 8

ω = ωopt 5 6 6

Same number of iterations when h → 0

The number of iterations increases when H → 0

The number of iterations depends mainly on H/size(patch)

The method is well suited for multiscale problem

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 14: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Implementation details : numerical quadrature

Find wh ∈ Vh such that

a(wh, v) = (f , v)− a(uHh, v) ∀v ∈ Vh

withuHh = uH + uh =

∑i

uHi ϕH

i +∑

i

uhi ϕh

i

Therefore we have to evaluate

a(ϕHi , ϕh

j ) =

∫Ω∇ϕH

i · ∇ϕhj dx

Remeshing problem → numerical quadrature problem

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 15: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Implementation details : numerical quadrature

When h << H : use the patch for numerical quadrature

a(ϕHi , ϕh

j ) =

∫Ω∇ϕH

i · ∇ϕhj dx

'∫

Ω∇rhϕ

Hi · ∇ϕh

j dx

=∑K∈Th

∫K∇rhϕ

Hi · ∇ϕh

j dx

Finite element assembly on the patch Th.Modified data structure : for each vertex P of the patch Th

→ the triangle of the coarse mesh TH containing P

P

K

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 16: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Adaptive placing of the patches

+

Zienkiewicz-Zhu (ZZ) in the coarse mesh

ZZKH =

∫K|∇uH − GHuH |2 ∀K ∈ TH

where GHuH ∈ VH is the reconstructed gradient

Mark triangle K if ZZKH is too large,

The patch is the smallest box containing all marked triangles

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 17: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Error estimator in the patch

Coarse mesh TH + patch Th

Solution uHh = uH + uh, uH =∑

i uHi ϕH

i , uh =∑

i uhi ϕh

i

Interpolate uHh at the vertices of the patch : uh + rhuH

Constant gradient in each triangle K of the patch :∇(uh + rhuH)

Compute the reconstructed gradient : Gh(uh + rhuH)

ZZhK =

∫K |∇(uh + rhuH)− Gh(uh + rhuH)|2 ∀K ∈ Th

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 18: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Numerical experiments : effectivity index

−∆u = f in Ω = (−1, 1)3

u = 0 on ∂Ω

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 19: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Numerical experiments : H1 error

0.01

0.1

1

10

1000 10000 100000 1e+06

H1 error

number of vertices

coarse (163, 323, 643)

♦♦

♦coarse (163) + patch (83, 163, 323, 643)

+

+

++

+

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 20: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Numerical experiments : effectivity index

1

1.05

1.1

1.15

1.2

1.25

1.3

5 10 15 20 25 30 35

eff. index

number of subdivisions

coarse + patch (both 83, 163, 323)♦

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 21: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

An industrial problem : Aluminum production cell (AlCan)

Coarse mesh (87470 vertices), each color → different material

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 22: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

An industrial problem : Aluminum production cell (AlCan)

Solve

−div(σ∇u) = 0 in Ω,

σ∂u

∂n= g on ∂Ω.

σ conductivity matrix, g current density (total current100 000 A), u potential

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 23: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

An industrial problem : Aluminum production cell (AlCan)

Potential in the coarse mesh

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 24: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

An industrial problem : Aluminum production cell (AlCan)

Potential in the coarse mesh

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 25: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

An industrial problem : Aluminum production cell (AlCan)

Potential in the coarse+patch (5 iter., energy difference ' 6%)

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 26: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

An industrial problem : Aluminum production cell (AlCan)

Potential in the patch (40 mesh points instead of 4)

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 27: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Several hierarchical patches

PPPPPPPPPP

PPPPPPPPPP

@@ @@ @@

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 28: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Several hierarchical patches

Iteration 30

10

20

-1 0 1

Iteration 50

10

20

-1 0 1

Picasso Rappaz Rezzonico A finite element method with non conforming patches

Page 29: A finite element method with non conforming patchessma.epfl.ch/~picasso/fefair2006.pdf · PP PP PPP Picasso Rappaz Rezzonico A finite element method with non conforming patches.

Conclusions and perspectives

Coarse mesh + non-intersecting patches : efficient formultiscale or boundary layer problems

Efficient method for intersecting patches

Alternative to mesh adaptivity ?

Non symmetric problems ?

Picasso Rappaz Rezzonico A finite element method with non conforming patches