workshoptotal-inria.pdf · methods appl. mech. engrg. (2005). léo nouveau workshop dip june 22,...

47
Mesh adaptation by local remeshing and application to immersed boundary methods in fluid mechanics. Workshop DIP Léo Nouveau 1 Héloïse Beaugendre 1,2 , Mario Ricchiuto 1 , Rémi Abgrall 3 Cécile Dobrzynski 1,2 , Algiane Froehly 1 Pascal Frey 4 , Charles Dapogny 5 1 CARDAMOM Team, INRIA Bordeaux Sud Ouest, France 2 Bordeaux INP, IMB, France 3 Institute of Mathematics & Computational Science, Zurich, Switzerland 4 UPMC Paris 06, France 5 Jean Kutzmann Lab, Grenoble, France June 22, 2015 Léo Nouveau Workshop DIP June 22, 2015 1/34

Upload: phungthien

Post on 24-Apr-2018

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation by local remeshing and applicationto immersed boundary methods in fluid mechanics.

Workshop DIP

Léo Nouveau1

Héloïse Beaugendre1,2, Mario Ricchiuto1, Rémi Abgrall3

Cécile Dobrzynski1,2, Algiane Froehly1

Pascal Frey4, Charles Dapogny5

1 CARDAMOM Team, INRIA Bordeaux Sud Ouest, France2 Bordeaux INP, IMB, France

3 Institute of Mathematics & Computational Science, Zurich, Switzerland4 UPMC Paris 06, France

5 Jean Kutzmann Lab, Grenoble, France

June 22, 2015

Léo Nouveau Workshop DIP June 22, 2015 1/34

Page 2: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

1. Introduction

2. MMG PlatformOverviewMetricsMMGS

PresentationExamples

MMG3DPresentationExemples

3. Mesh adaptation for immersed boundary methodsImmersed boundary methodsCome back on mesh adaptationResidual Distribution SchemesResults

Steady SimulationsUnsteady simulations

4. Conclusion

Léo Nouveau Workshop DIP June 22, 2015 2/34

Page 3: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Introduction

� Need of adaptation in CFD :Increase accuracy.Limit time computation.

� Immersed Boundary Methods advantages for moving objects(ice shedding, windmill, ...) :

Not an explicit discretization on mesh.Simplify mesh generation.No constraint due to moving mesh.

Léo Nouveau Workshop DIP June 22, 2015 3/34

Page 4: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

MMG PlatformOverview

� Open source platform : https://github.com/MmgTools/mmg� Developpers : Cécile Dobrzynski, Algiane Froehly, Pascal Frey,

Charles Dapogny.� 3 Softwares :

MMGS : Surface remesher.MMG2D : 2D remesher.MMG3D : 3D remesher.

� Main assets :Same data structure for the 3 softwares.4 developpers in 3 different institutes.

Léo Nouveau Workshop DIP June 22, 2015 4/34

Page 5: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

MMG PlatformMetrics

Impose sizes and directions : metrics can be used1.Positive Definite Symetric matrices.Can be defined for each node of the mesh.Contains size and direction of elements :

M =t RΛR, R = (v1, v2), Λ =

(λ1 0

0 λ2

)v1, v2 : directions. Sizes are linked to the eigenvalues by : hi = 1/

√λi .

Can be represented by an ellipse (in 2D, ellipsoid in 3D).

Figure : Representation of a metric in 2D

1P. Frey and F. Alauzet. “Anisotropic mesh adaptation for CFDcomputations”. In: Comput. Methods Appl. Mech. Engrg. (2005).

Léo Nouveau Workshop DIP June 22, 2015 5/34

Page 6: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

MMG PlatformMetrics

(a) Initial mesh (b) Metric imposition (c) Adapted mesh

Figure : Exemple of adaptation using metrics

Léo Nouveau Workshop DIP June 22, 2015 6/34

Page 7: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

MMG PlatformMMGS - Presentation

� Surface Remesher.� Metric field given by the user.

� Surface approximation improvement :Ideal surface built on the initial mesh using 3rd order Beziertriangles.Control of the Hausdorff distance between ideal and meshsurface.

Léo Nouveau Workshop DIP June 22, 2015 7/34

Page 8: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

MMG PlatformMMGS - Presentation

� Surface Remesher.� Metric field given by the user.� Surface approximation improvement :

Ideal surface built on the initial mesh using 3rd order Beziertriangles.Control of the Hausdorff distance between ideal and meshsurface.

Léo Nouveau Workshop DIP June 22, 2015 7/34

Page 9: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

MMG PlatformMMGS - Examples

(a) initial mesh22360 vertices

(b) hausdorff = 0.015629 vertices

(c) hausdorff = 0.00122849 vertives

Léo Nouveau Workshop DIP June 22, 2015 8/34

Page 10: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

MMG PlatformMMGS - Examples

Figure : The Thinker of Rodin - hausdorff = 3.10−3

Léo Nouveau Workshop DIP June 22, 2015 9/34

Page 11: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

MMG PlatformMMG3D - Presentation

� 2 main goals :3D iso/aniso remeshing with domain remeshing.Surface extraction based on a function on a 3D mesh.

� Software based on :Metric tensors to prescribe sizes and directions of the edges.Operator of local modification.Geometric model based on 3rd order Bézier triangles.

� 2 released versions :MMG3D4.0 : Volumic adaptation iso/aniso.MMG3D5.0 : Surfacic and iso volumic adaptation (currentrelease : 5.0.1).

Léo Nouveau Workshop DIP June 22, 2015 10/34

Page 12: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

MMG PlatformMMG3D - Exemples

(a) Initial Mesh (b) Adaptation on the surface

(c) Adaptation in the volume

Figure : Exemple of 3D and surface remeshing.Léo Nouveau Workshop DIP June 22, 2015 11/34

Page 13: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

MMG PlatformMMG3D - Exemples

Exemple surface extraction.

(a) Level set functiondefining the surface

(b) Mesh after extraction

Figure : Exemple of surface extraction

Léo Nouveau Workshop DIP June 22, 2015 12/34

Page 14: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodImmersed boundary methods

Entire domain covered by a mesh.Not an explicit discretization of the solid.Use of level set function (signed distancefunction).Modification of the equations. Figure : Signed distance function

(a) Fitted mesh (b) Immersed boundary mesh

Figure : Mesh for different computations

Léo Nouveau Workshop DIP June 22, 2015 13/34

Page 15: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodImmersed boundary methods

Penalization : Penalty term accounts for Boundary conditions.

∂ρ

∂t+∇.(ρu) = 0

∂(ρu)

∂t+∇.(ρu⊗ u) +

Ns∑i=1

χs i (ρu− ρus i ) = −∇p +∇π

∂(ρe)

∂t+∇((ρe + p)u) +

Ns∑i=1

θS iχs i (ρε− ρεs i )

+1η

Ns∑i=1

χS i (ρu− ρuS i ).u = ∇(πu + q)

ρ density, u velocity, p pressure, π stress tensor, e total energy, ε internalenergy, q heat flux, χS i characteristic, θS i to penalize or not the energy,η << 1 penalty parameter.

{inside : u = us , ε = εs

outside : Usual Navier-Stokes

Léo Nouveau Workshop DIP June 22, 2015 14/34

Page 16: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodImmersed boundary methods

Penalization : Penalty term accounts for Boundary conditions.

∂ρ

∂t+∇.(ρu) = 0

∂(ρu)

∂t+∇.(ρu⊗ u) +

Ns∑i=1

χs i (ρu− ρus i ) = −∇p +∇π

∂(ρe)

∂t+∇((ρe + p)u) +

Ns∑i=1

θS iχs i (ρε− ρεs i )

+1η

Ns∑i=1

χS i (ρu− ρuS i ).u = ∇(πu + q)

ρ density, u velocity, p pressure, π stress tensor, e total energy, ε internalenergy, q heat flux, χS i characteristic, θS i to penalize or not the energy,η << 1 penalty parameter.{

inside : u = us , ε = εs

outside : Usual Navier-Stokes

Léo Nouveau Workshop DIP June 22, 2015 14/34

Page 17: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodCome back on mesh adaptation

AimReduction of the error by adaptation

0 level setMajoration of the error on the geometry

M = tR

1ε2 0 0

0 |λ1|ε

0

0 0 |λ2|ε

Rε error, λi e. va. of the hessian of φR = (∇φ v1 v2), (v1, v2) tangentialplane of the surface.

Figure : Insertion area of fine cells.

PhysicsMajoration of the interpolation error

M =t R

λ1 0 0

0 λ2 0

0 0 λ3

RR e. ve. of the hessian of the solution,

λi = min(

max(|hi |,

1h2

max

),

1h2

min

)hmin (hmax) min. and max. size,hi the e. va. of the hessian of thesolution.

Léo Nouveau Workshop DIP June 22, 2015 15/34

Page 18: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodCome back on mesh adaptation

AimReduction of the error by adaptation

0 level setMajoration of the error on the geometry

M = tR

1ε2 0 0

0 |λ1|ε

0

0 0 |λ2|ε

Rε error, λi e. va. of the hessian of φR = (∇φ v1 v2), (v1, v2) tangentialplane of the surface.

Figure : Insertion area of fine cells.

PhysicsMajoration of the interpolation error

M =t R

λ1 0 0

0 λ2 0

0 0 λ3

RR e. ve. of the hessian of the solution,

λi = min(

max(|hi |,

1h2

max

),

1h2

min

)hmin (hmax) min. and max. size,hi the e. va. of the hessian of thesolution.

Léo Nouveau Workshop DIP June 22, 2015 15/34

Page 19: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodCome back on mesh adaptation

AimReduction of the error by adaptation

0 level setMajoration of the error on the geometry

M = tR

1ε2 0 0

0 |λ1|ε

0

0 0 |λ2|ε

Rε error, λi e. va. of the hessian of φR = (∇φ v1 v2), (v1, v2) tangentialplane of the surface.

Figure : Insertion area of fine cells.

PhysicsMajoration of the interpolation error

M =t R

λ1 0 0

0 λ2 0

0 0 λ3

RR e. ve. of the hessian of the solution,

λi = min(

max(|hi |,

1h2

max

),

1h2

min

)hmin (hmax) min. and max. size,hi the e. va. of the hessian of thesolution.

Léo Nouveau Workshop DIP June 22, 2015 15/34

Page 20: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodResidual Distribution Scheme - Steady simulation

Steady Conservation Law

∇.F(u) = 0

Fluctuation

φT =

∫T∇.F(u)

Ditribution to the degree of freedom

Nodal Residual

φTi = βT

i φT

Gathering the contribution of the triangle the point i belongs

Residual Distribution Scheme∑T |i∈T

φTi = 0

Léo Nouveau Workshop DIP June 22, 2015 16/34

Page 21: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodResidual Distribution Scheme - Steady simulation

Steady Conservation Law

∇.F(u) = 0

Fluctuation

φT =

∫T∇.F(u)

Ditribution to the degree of freedom

Nodal Residual

φTi = βT

i φT

Gathering the contribution of the triangle the point i belongs

Residual Distribution Scheme∑T |i∈T

φTi = 0

Léo Nouveau Workshop DIP June 22, 2015 16/34

Page 22: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodResidual Distribution Scheme - Steady simulation

Steady Conservation Law

∇.F(u) = 0

Fluctuation

φT =

∫T∇.F(u)

Ditribution to the degree of freedom

Nodal Residual

φTi = βT

i φT

Gathering the contribution of the triangle the point i belongs

Residual Distribution Scheme∑T |i∈T

φTi = 0

Léo Nouveau Workshop DIP June 22, 2015 16/34

Page 23: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodResidual Distribution Scheme - Steady simulation

Steady Conservation Law

∇.F(u) = 0

Fluctuation

φT =

∫T∇.F(u)

Ditribution to the degree of freedom

Nodal Residual

φTi = βT

i φT

Gathering the contribution of the triangle the point i belongs

Residual Distribution Scheme∑T |i∈T

φTi = 0

Léo Nouveau Workshop DIP June 22, 2015 16/34

Page 24: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodResidual Distribution Scheme - Steady simulation

Resolution with pseudo time step

un+1i − un

i∆t

+1|Ci |

∑T |i∈T

φTi (un+1

h ) = 0

Algorithm for adaptation1 Initial mesh adapted to 0 level set.2 Computation.3 Adaptation to : 0 level set + solution.4 Interpolation of the solution on the new

mesh.5 Computation on new mesh from old solution.6 Go to 3 or exit if convergence Mesh/Solution.

Léo Nouveau Workshop DIP June 22, 2015 17/34

Page 25: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodResidual Distribution Scheme - Steady simulation

Resolution with pseudo time step

un+1i − un

i∆t

+1|Ci |

∑T |i∈T

φTi (un+1

h ) = 0

Algorithm for adaptation1 Initial mesh adapted to 0 level set.2 Computation.3 Adaptation to : 0 level set + solution.4 Interpolation of the solution on the new

mesh.5 Computation on new mesh from old solution.6 Go to 3 or exit if convergence Mesh/Solution.

Léo Nouveau Workshop DIP June 22, 2015 17/34

Page 26: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodResidual Distribution Scheme - Unsteady simulation

Unteady Conservation Law

∂tu +∇.F(u) = 0

Total Residual

ΦT =

∫ tn+1

tn

∫T

(∂tu +∇.F(u)) =

∫ tn+1

tn

∫T

(∂tu) + ∆tφT

Distribution/Gathering∑T |i∈T

{βi

∫T

(un+1h − un

h) + ∆tφTi (u∗h )

}︸ ︷︷ ︸

ΦTi

= 0

Léo Nouveau Workshop DIP June 22, 2015 18/34

Page 27: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodResidual Distribution Scheme - Unsteady simulation

Unteady Conservation Law

∂tu +∇.F(u) = 0

Total Residual

ΦT =

∫ tn+1

tn

∫T

(∂tu +∇.F(u)) =

∫ tn+1

tn

∫T

(∂tu) + ∆tφT

Distribution/Gathering∑T |i∈T

{βi

∫T

(un+1h − un

h) + ∆tφTi (u∗h )

}︸ ︷︷ ︸

ΦTi

= 0

Léo Nouveau Workshop DIP June 22, 2015 18/34

Page 28: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodResidual Distribution Scheme - Unsteady simulation

Unteady Conservation Law

∂tu +∇.F(u) = 0

Total Residual

ΦT =

∫ tn+1

tn

∫T

(∂tu +∇.F(u)) =

∫ tn+1

tn

∫T

(∂tu) + ∆tφT

Distribution/Gathering∑T |i∈T

{βi

∫T

(un+1h − un

h) + ∆tφTi (u∗h )

}︸ ︷︷ ︸

ΦTi

= 0

Léo Nouveau Workshop DIP June 22, 2015 18/34

Page 29: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodResidual Distribution Scheme - Unsteady simulation

Choice for ∗ = n + 12 :

u∗h = un+ 1

2h =

un+1h + un

h

2(1)

Unsteady resolution : explicit RK2-RDS2

Step 1 : U1

i = Uni −

∆t|Ci |

∑T |i∈T

φTi (Un

h)

Step 2 : U2i = U1

i −∆t|Ci |

∑T |i∈T

βTi

∫T

{U1

h − Unh

∆t+ (∇.F +∇.G)

(U1

h + Unh

2

)}

2M. Ricchiuto and R. Abgrall. “Explicit Runge-Kutta residualdistribution schemes for time dependent problems: Second ordercase”. In: J. Comput. Phys. 229 (2010).

Léo Nouveau Workshop DIP June 22, 2015 19/34

Page 30: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Penalization in explicit : ∆t ∼ η(= 10−10).Proposed scheme :

Explicit RK2-RDS for NS part + implicit splitting for penalization

Step 1 : U1i = Un

i −∆t|Ci |

∑T |i∈T

φTi (Un

h)

Step 2 : U2i = U1

i −∆t|Ci |

∑T |i∈T

βTi

∫T

{U1

h − Unh

∆t+ (∇.F +∇.G)

(U1

h + Unh

2

)}

Step 3 :Un+1

i − U2i

∆t+ S(Un+1

i ) = 0

Léo Nouveau Workshop DIP June 22, 2015 20/34

Page 31: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodSteady Simulations - 2D Supersonic triangle

Triangle placed in a circle of radius 20.

Initial mesh adapted to the 0 level set.

Re = 50000, Ma = 2.366431913, p = 1/γ.

Initial mesh : 30407 vertices, adapted mesh : 111061 vertices

(a) Triangle (b) zoom on initialmesh

Léo Nouveau Workshop DIP June 22, 2015 21/34

Page 32: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodSteady Simulations - 2D Supersonic triangle

Figure : u velocity on initial and adapted meshLéo Nouveau Workshop DIP June 22, 2015 22/34

Page 33: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodSteady Simulations - 2D Supersonic triangle

� Validation with literature3 :Angle between shock and y = 0 has analytical value : we findβ = 53.33 deg for βanalytic = 53.46 deg.Cut of the pressure in agreement with the result ofBoiron et al.

� Good approximation of the geometry thanks to meshadaptation.

� Good capture of the physics (shock + drag) owing to meshadaptation.

� Limitation of the number of nodes and elements.

3O. Boiron, G. Chiavassa, and R. Donat. “A High-ResolutionPenalization Method for large Mach number Flows in the presence ofobstacles”. In: J. Comput. F. (2008).

Léo Nouveau Workshop DIP June 22, 2015 23/34

Page 34: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodSteady Simulations - 3D Supersonic triangle

Same test case in 3D.Extrusion of the triangle in the z direction of 0.364.Sphere of radius 15.Initial mesh : 36597 vertices, adapted mesh : 766310 vertices.

(a) Initial mesh (b) Adapted mesh

Figure : z = 0.182 cut

Léo Nouveau Workshop DIP June 22, 2015 24/34

Page 35: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodSteady Simulations - 3D Supersonic triangle

(a) u velocity on initial meshy = 0 cut

(b) u velocity on adapted meshy = 0 cut

(c) density on initial mesh (d) density on adapted mesh

Léo Nouveau Workshop DIP June 22, 2015 25/34

Page 36: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodUnsteady Simulations - Rayleigh case

� Initially motionless fluid moved by wall.� With hypothesis, analytical results for validation.

Constant speed : u(y , t) = Uerf ( y2õt ).

Oscillating wall : u(y , t) = U exp−ky cos(ky − ωt), k =√

ω2µ

(a) Test casepresentation

(b) Domain for non penalized and penalizedsimulations

Léo Nouveau Workshop DIP June 22, 2015 26/34

Page 37: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodUnsteady Simulations - Rayleigh case

(a) 1, 115vertices

(b) 16, 053vertices

(c) 13, 449vertices

Figure : isoline of the u velocity on different mesh

Léo Nouveau Workshop DIP June 22, 2015 27/34

Page 38: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodUnsteady Simulations - Rayleigh case

(a) Constant speed (b) Oscillating wall

Figure : Comparison of solutions

Mesh adaptation allow to have a better approximation of thewall with less elements than an very fine uniform mesh.Validation of the proposed method looking at the differencesbetween the solutions pena/nopena and pena/analytic.

Léo Nouveau Workshop DIP June 22, 2015 28/34

Page 39: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodUnsteady Simulations - Flow past cylinder

Cylinder (radius r = 0.5) in a box [−6, 10]× [−12, 12].Re = 200, Ma = 0.2, ρ = 1, p = 1/γ.

(a) Domain (b) Fitted mesh67815 vertices

(c) Adapted mesh85945 vertices

Léo Nouveau Workshop DIP June 22, 2015 29/34

Page 40: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodUnsteady Simulations - Flow past cylinder

Two forces computations :

Integration of pressure/shear stress over the edges discretizing the solid.

Change of momentum : F = ∆mdt , ∆m =

∫S ρ(u− uS).

Comparison with literature4.

Author St CD

Braza et al. 0.2000 1.4000Henderson 0.1971 1.3412He et al. 0.1978 1.3560Bergmann et al. 0.1999 1.3900Fitted Mesh, "cc" 0.1965 1.3979Fitted Mesh, "cmc" 0.1965 1.3404Adapted Mesh 0.1965 1.3280

4M. Bergmann, L. Cordier, and J.P. Brancher. “Optimal rotarycontrol of the cylinder wake using proper orthogonal decompositionreduced-order model”. In: Phys. Fluids 17.9, 097101 (2005).

Léo Nouveau Workshop DIP June 22, 2015 30/34

Page 41: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodUnsteady Simulations - Flow past cylinder

Two forces computations :

Integration of pressure/shear stress over the edges discretizing the solid.

Change of momentum : F = ∆mdt , ∆m =

∫S ρ(u− uS).

Comparison with literature4.

Author St CD

Braza et al. 0.2000 1.4000Henderson 0.1971 1.3412He et al. 0.1978 1.3560Bergmann et al. 0.1999 1.3900Fitted Mesh, "cc" 0.1965 1.3979Fitted Mesh, "cmc" 0.1965 1.3404Adapted Mesh 0.1965 1.3280

4M. Bergmann, L. Cordier, and J.P. Brancher. “Optimal rotarycontrol of the cylinder wake using proper orthogonal decompositionreduced-order model”. In: Phys. Fluids 17.9, 097101 (2005).

Léo Nouveau Workshop DIP June 22, 2015 30/34

Page 42: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Mesh adaptation for immersed boundary methodUnsteady Simulations - Flow past cylinder

Author St CD

Braza et al. 0.2000 1.4000Henderson 0.1971 1.3412He et al. 0.1978 1.3560Bergmann et al. 0.1999 1.3900Fitted Mesh, "cc" 0.1965 1.3979Fitted Mesh, "cmc" 0.1965 1.3404Adapted Mesh 0.1965 1.3280

All computations : Lift and Strouhal number OK.

Force computation by integration : Drag in agreement with literature.

Change of momentum computation :

Small difference with literature : expectedAlmost no difference from fitted mesh to adapted mesh ⇒mesh adaptation allow to recover accuracy of fitted mesh.

Léo Nouveau Workshop DIP June 22, 2015 31/34

Page 43: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Conclusion

� MMG platform :Allows to perform every kind of remeshing by given metricfield : 2D, 3D, Surface.Surface approximation improvement with MMGS.

� MMG in progress :Future release of MMG5.1.0 : Volumic and surfacic aniso/isoadaptation.MMG interfaced with Gmsh and FreeFem++.Movement of rigid bodies.

Léo Nouveau Workshop DIP June 22, 2015 32/34

Page 44: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Conclusion

� MMG platform :Allows to perform every kind of remeshing by given metricfield : 2D, 3D, Surface.Surface approximation improvement with MMGS.

� MMG in progress :Future release of MMG5.1.0 : Volumic and surfacic aniso/isoadaptation.MMG interfaced with Gmsh and FreeFem++.Movement of rigid bodies.

Léo Nouveau Workshop DIP June 22, 2015 32/34

Page 45: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Conclusion

� IBM :Implicit RDS for steady penalized Navier Stokes equations.Explicit 2nd order RK RDS for unsteady Navier Stokesequations.Mesh Adaptation ⇒ recovering of the precision of fitted mesh.Mesh Adaptation ⇒ improvement of the accuracy of thesolution.

� IBM in progress :Unsteady mesh adaptation.Level set advection.Objects moved by fluid.

Léo Nouveau Workshop DIP June 22, 2015 33/34

Page 46: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Conclusion

� IBM :Implicit RDS for steady penalized Navier Stokes equations.Explicit 2nd order RK RDS for unsteady Navier Stokesequations.Mesh Adaptation ⇒ recovering of the precision of fitted mesh.Mesh Adaptation ⇒ improvement of the accuracy of thesolution.

� IBM in progress :Unsteady mesh adaptation.Level set advection.Objects moved by fluid.

Léo Nouveau Workshop DIP June 22, 2015 33/34

Page 47: WorkShopTOTAL-INRIA.pdf · Methods Appl. Mech. Engrg. (2005). Léo Nouveau Workshop DIP June 22, 2015 5/34. MMGPlatform Metrics ... FittedMesh,"cmc" 0:1965 1:3404 AdaptedMesh 0:1965

Thank you for your attention

Léo Nouveau Workshop DIP June 22, 2015 34/34