High-Performance Numerical Simulation of Biodegradation Process with - - PowerPoint PPT Presentation

high performance numerical simulation of biodegradation
SMART_READER_LITE
LIVE PREVIEW

High-Performance Numerical Simulation of Biodegradation Process with - - PowerPoint PPT Presentation

High-Performance Numerical Simulation of Biodegradation Process with Moving Boundaries FreeFEM Days, 11th Edition Mojtaba Barzegari, Liesbet Geris Biomechanics Section, Department of Mechanical Engineering, KU Leuven December 2019 0 Our


slide-1
SLIDE 1

FreeFEM Days, 11th Edition

High-Performance Numerical Simulation of Biodegradation Process with Moving Boundaries

Mojtaba Barzegari, Liesbet Geris Biomechanics Section, Department of Mechanical Engineering, KU Leuven December 2019

slide-2
SLIDE 2

Our Research Group

◮ Supervisor: Prof. Ir. Liesbet Geris ◮ Research profile: Computational Tissue Engineering, Computational Biomechanics, Computational Biology, Computational Genomics

1

slide-3
SLIDE 3

1 Outline

1 Introduction 2 Mathematical Model 3 Computational Model and Parallelization 4 Simulation Results 5 Performance Analysis

2

slide-4
SLIDE 4

1 Reaction-Diffusion Systems with Moving Boundaries

◮ Stefan problems ◮ Diffusion-controlled interface ◮ Diffusion and reaction lead to the change of domain geometry ◮ Degradation is an example of such a system

3

slide-5
SLIDE 5

1 Biodegradation Process

◮ Dissolution of the bulk material ◮ Formation of a protective film ◮ Effect of ions in the medium

4

slide-6
SLIDE 6

1 A Sample Application

◮ Hip joint replacement implants ◮ Tuning the degradation parameters to the rate of bone growth

5

slide-7
SLIDE 7

2 Outline

1 Introduction 2 Mathematical Model 3 Computational Model and Parallelization 4 Simulation Results 5 Performance Analysis

6

slide-8
SLIDE 8

2 Chemistry of Biodegradation

Some of the chemical reactions: Mg → Mg2+ + 2e− 2H2O + 2e− → H2 + 2OH− Mg2+ + 2OH− k1 − → Mg(OH)2 Mg(OH)2 + 2Cl− k2 − → Mg2+ + 2Cl− + 2OH−

7

slide-9
SLIDE 9

2 Reaction-Diffusion Equations

CMg = CMg(x, t), CFilm = CFilm(x, t) x ∈ Ω ⊂ R3 ∂CMg ∂t = ∇ •

  • De

Mg • ∇CMg

  • − k1CMg
  • 1 −

CFilm [Film]max

  • + k2CFilm[Cl]2

∂CFilm ∂t = k1CMg

  • 1 −

CFilm [Film]max

  • − k2CFilm[Cl]2

De

Mg = DMg

  • 1 −

CFilm [Film]max

  • +

CFilm [Film]max ǫ τ

  • 8
slide-10
SLIDE 10

2 Level Set Method

Implicit signed distance function φ = φ(x, t) x ∈ Ω ⊂ R3 ∂φ ∂t + − → V • ∇φ

  • External velocity field

+ v|∇φ|

Normal direction motion

= bκ|∇φ|

  • Curvature - dependent term

9

slide-11
SLIDE 11

2 Coupling Mass Transfer and Level Set

∂φ ∂t + v|∇φ| = 0 Rankine-Hugoniot: {J(x, t) − (csol − csat) v(x, t)} · n = 0 De

Mg∇nCMg − ([Mg]sol − [Mg]sat) v = 0

∂φ ∂t − De

Mg∇nCMg

[Mg]sol − [Mg]sat |∇φ| = 0

10

slide-12
SLIDE 12

3 Outline

1 Introduction 2 Mathematical Model 3 Computational Model and Parallelization 4 Simulation Results 5 Performance Analysis

11

slide-13
SLIDE 13

3 Weak Formulation

Rewriting the diffusion-reaction PDE: ∂u ∂t = ∇ • (D • ∇u) − k1bu + k2pq2 Defining trial and test function space: St =

  • u(x, t)|x ∈ Ω, t > 0, u(x, t) ∈ H1(Ω), and ∂u

∂n = 0 on Γ

  • V =
  • v(x)|x ∈ Ω, v(x) ∈ H1(Ω), and v(x) = 0 on Γ
  • 12
slide-14
SLIDE 14

3 Weak Formulation cont.

∂u ∂t v = ∇ • (D • ∇u)v − k1buv + k2pq2v ∀v ∈ V Integrate over the whole domain:

∂u ∂t vdω =

  • Ω ∇ • (D • ∇u)vdω −
  • Ω k1buvdω +
  • Ω k2pq2vdω

Integration by part, Green’s divergence theory, Backward Euler scheme:

u − un ∆t vdω =

  • Γ Dv • ∂u

∂ndγ −

  • Ω D • ∇u • ∇vdω −
  • Ω k1buvdω +
  • Ω k2pq2vdω

13

slide-15
SLIDE 15

3 Weak Formulation cont.

  • Ω uvdω +
  • Ω ∆tD • ∇ • u∇vdω +
  • Ω ∆tk1buvdω =
  • Ω unvdω +
  • Ω ∆tk2pq2vdω

By defining a linear functional (f, v) =

  • Ω fvdω

(u, v)[1 + ∆tk1b] + ∆t(D∇u, ∇v) = (un, v) + ∆t (f n, v) multiplying to a new coefficient α =

1 1+∆tk1b

(u, v) + α∆t(D∇u, ∇v) = α (un, v) + α∆t (f n, v)

14

slide-16
SLIDE 16

3 Discretization Scheme

Vh = span

  • {ψi}i∈Is
  • Is = {0, . . . , N}

Using 1st order Lagrange polynomials as basis functions u =

N

  • j=0

cjψj(x), un =

N

  • j=0

cn

j ψj(x) N

  • j=0

(ψi, ψj) cj + α∆t

N

  • j=0

(∇ψi, D∇ψj) cj =

N

  • j=0

(ψi, ψj) cn

j + ∆t (f n, ψi)

15

slide-17
SLIDE 17

3 Discretization Scheme cont.

A linear system of equations

  • j

Ai,jcj = bi Ai,j = (ψi, ψj) + α∆t (∇ψi, D∇ψj) bi =

N

  • j=0

α (ψi, ψj) cn

j + α∆t (f n, ψi)

16

slide-18
SLIDE 18

3 Discretization Scheme cont.

Final form as implemented in FreeFEM (M + α∆tK)c = αMc1 + α∆tf M = {Mi,j} , Mi,j = (ψi, ψj) , i, j ∈ Is K = {Ki,j} , Ki,j = (∇ψi, D∇ψj) , i, j ∈ Is f = {fi} , fi = (f (x, tn) , ψi) , i ∈ Is c = {ci} , i ∈ Is c1 = {cn

i } ,

i ∈ Is

17

slide-19
SLIDE 19

3 Level Set Implementation

◮ Penalization for interface BCs ◮ Computing ∇nCMg correctly ◮ Problem of oscillation ◮ Too flat or too steep gradients ◮ Nightmare of re-distancing

(P. Bajger et al. 2017)

18

slide-20
SLIDE 20

3 Computational Mesh

◮ Eulerian mesh ◮ Generated using Netgen in SALOME platform ◮ Adaptively refined on the moving interface

19

slide-21
SLIDE 21

3 Parallelization

◮ Message Passing Interface ◮ Distributed numerical integration (assigning a number in the range of [0, MPI Size-1] to each element) ◮ MUMPS multifrontal direct solver

slide-22
SLIDE 22

4 Outline

1 Introduction 2 Mathematical Model 3 Computational Model and Parallelization 4 Simulation Results 5 Performance Analysis

21

slide-23
SLIDE 23

4 Release of Ions and Degradation - Simple Screw

22

slide-24
SLIDE 24

4 Film Formation - Simple Screw

Formation of the protective film on the interface of material-medium

23

slide-25
SLIDE 25

4 Release of Ions and Degradation - Porous Structure

Trimmed view of the computational mesh Formation of the protective film

24

slide-26
SLIDE 26

4 Quantitative Results

Measuring mass loss: ◮ Direct weight reduction ◮ Side products evolution Using level set output for calculating mass loss Mglost =

  • Ω+(t) MgsoliddV −
  • Ω+(0) MgsoliddV0

Ω+(t) = {x : φ(x, t) ≥ 0}

Simulation and experimental setup

25

slide-27
SLIDE 27

4 Mass Loss and Evolving Side Products

Film formation and the comparison of predicted and experimental mass loss, measured by the evolved hydrogen gas

26

slide-28
SLIDE 28

5 Outline

1 Introduction 2 Mathematical Model 3 Computational Model and Parallelization 4 Simulation Results 5 Performance Analysis

27

slide-29
SLIDE 29

5 Problem Size

◮ Same setup as the model for calibration and validation ◮ DOF: 144k ◮ Elements: 831k (P1)

28

slide-30
SLIDE 30

5 Domain Decomposition

Two different approaches for domain decomposition. Colors show different mesh regions assigned to different MPI cores. Execution time per time step

29

slide-31
SLIDE 31

5 Weak-Scaling Test Results

30

slide-32
SLIDE 32

5 Weak-Scaling Test Analysis

Based on Gustafson’s law: Speedup = f + (1 − f) × N Serial proportion = 86%, Parallelizable proportion = 14%

31

slide-33
SLIDE 33

5 Strong-Scaling Test Results

Time required to solve each PDE in each time step

32

slide-34
SLIDE 34

5 Strong-Scaling Test Analysis

Based on Amdahl’s law: Speedup = 1 f + 1−f

N

Serial proportion = 52%, Parallelizable proportion = 48%

33

slide-35
SLIDE 35

5 Conclusion

◮ A quantitative mathematical model and its corresponding computational model to assess the degradation behavior of biodegradable materials ◮ Using level set method to track the moving corrosion front during degradation ◮ Once fully validated, the model will be an important tool to find the right design and properties of the metallic biomaterials and implants

34

slide-36
SLIDE 36

Thank you for your attention

mojtaba.barzegari@kuleuven.be