a feasibility study on the acceleration and upscaling of bone ingrowth simulation an investigation...

36

Post on 19-Dec-2015

218 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme
Page 2: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

A feasibility study on the acceleration and upscaling of bone ingrowth simulationAn investigation into the feasibility of applying a homogenization scheme to bone ingrowth model as well other options of accelerating the bone ingrowth model developed by A. Andreykiv.

MSc colloquium by Yoeng Sin KhoeDelft Technical University

Faculty of Biomedical Engineering – Tissue Biomechanics & ImplantsDate: June 30th

, 2009

Page 3: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Introduction• Uncemented Shoulder Implant

• Total Shoulder Arthroplasty• Osteoarthritis, rheumatoid arthritis• Porous surface in which bone can

grow to ensure fixation of the implant

• Cemented implant– Immediate fixation– Tissue necrosis– Cement fracture

Page 4: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Introduction• Finite Element Modelling of uncemented

implants – 2 approaches

• How to transfer knowledge from the detailed model to the larger (macroscopic) model?

Andreykiv, 2006 Folgado, 2009

Page 5: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Recommendations

Original Bone Ingrowth model

Contents

Model Optimizations

Options

Results

Code Optimization

Possibilities

Results

Computational Homogenization

Theory

Implementation

Results

Introduction

Summary & Conclusions

Page 6: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

The original bone ingrowth model

Page 7: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

The original bone ingrowth modelGeneral Overview

• Coupled Simulation• Prendergast tissue differentiation model for the

production of bone, cartilage and fibrous tissueMechanical

Model

Biophysical

Stimulus

Biological

Model

Material Properti

es

General Overview Mechanical Model Biophysical Stimulus Biological Model Numerical Implementation

Page 8: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

The Original Bone Ingrowth ModelMechanical Model

• Biological Tissue response– Non-linear– History dependent– Viscoelastic

• Biphasic Model– 80% is made up of fluid– Solid & Fluid component

General Overview Mechanical Model Biophysical Stimulus Biological Model Numerical Implementation

Page 9: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

The Original Bone Ingrowth ModelMechanical Model

• Solid (3 displacements)– Neo-Hookean Hyperelastic Material

model• Fluid (pressure)

– Mass balance

0

0

0

pvdt

dp

K

n

fv

fv

sf

f

ffffff

ssssss

σ

σ

0

0

pvdt

dp

K

n

p

sf

f

s

General Overview Mechanical Model Biophysical Stimulus Biological Model Numerical Implementation

Page 10: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

The Original Bone Ingrowth ModelBiophysical Stimulus

• Input for the biological model• Determines the preference of the

formation of bone, cartilage of fibrous tissue

• Based on maximal shear strain and fluid velocity

baS

General Overview Mechanical Model Biophysical Stimulus Biological Model Numerical Implementation

Page 11: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

The Original Bone Ingrowth Model Biological Model

• Diffusion – Mesenchymal stem cells– Fibroblast

• Cell Proliferation• Cell Differentiation• Tissue Production• Tissue Degradation• As a function of the biophysical stimulus

General Overview Mechanical Model Biophysical Stimulus Biological Model Numerical Implementation

Page 12: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

The Original Bone Ingrowth Model Biological Model

Mesenchymal Cells

Osteoblast Cells

Chondrocyte Cells

Fibroblast Cells

Bone

Fibrous Tissue

Cartilage

Differentiation

Proliferation

Tissue production

General Overview Mechanical Model Biophysical Stimulus Biological Model Numerical Implementation

Page 13: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

The Original Bone Ingrowth Model Numerical Implementation

• Implemented in subroutines of MSC Marc• Non Linear equations requires an iterative

solver

General Overview Mechanical Model Biophysical Stimulus Biological Model Numerical Implementation

force

displacement

force

displacement

Page 14: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

The Original Bone Ingrowth Model Numerical Implementation & Results

• Loading based on the results of animal experiments– applied displacement in the first week, – average force over the remaining days

• Result: Tissue Evolution & Micromotions• Total simulation length 28 days• Computation time: ~200.000 sec

(2 days and 7 hours)

General Overview Mechanical Model Biophysical Stimulus Biological Model Numerical Implementation

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 290

0.01

0.02

0.03

0.04

0.05

0.06

0.07

0

10

20

30

40

50

60

Results of the Bone Ingrowth Simulation

BoneCartilageFibrous TissueMicromotions

Time [Days]

Tiss

ue fr

actio

ns

Micr

omoti

ons [

µm]

Page 15: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Model Optimization

Page 16: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Model OptimizationPossibilities for model simplification (1)

• Investigate the necessity of the biphasic model

<Weighted Fluid Velocity Weighted Shear Strain

baS

Potential Simplifications(1) Results: Removing the fluid phase Results: Linearized Biological Model Results: 1D Diffusion

Page 17: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Model OptimizationPossibilities for model simplification (2)

• Linearization of the biological model

• Acceptable approximation?

Potential Simplifications(2) Results: Removing the fluid phase Results: Linearized Biological Model Results: 1D Diffusion

Page 18: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Model OptimizationPossibilities for model simplification (3)

• 1-D Diffusion approximation

Potential Simplifications(3) Results: Removing the fluid phase Results: Linearized Biological Model Results: 1D Diffusion

Page 19: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Model OptimizationResults – Removal of Fluid phase

• Fluid phase is essential for correct calculations• Increased fibrous tissue production• Reduced bone & cartilage production

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 290

0.01

0.02

0.03

0.04

0.05

0.06

0.07

Effect of removing the fluid phase

Bone - OriginalBone - NoFluidCartilage - OriginalCartilage - NoFluidFibrous Tissue - OriginalFibrous Tissue - NoFluid

Day nr.

Tiss

ue fr

actio

n

Potential Simplifications Results: Removing the fluid phase Results: Linearized Biological Model Results: 1D Diffusion

Page 20: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Model OptimizationResults – Linear Biological Model

• Results of linear biological model do not match non linear model

• No more fibrous tissue production• Overestimate bone production• Reasonable cartilage estimate

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 290

0.010.020.030.040.050.060.07

Effect of a linear Biological model

Bone - OriginalBone - LinearBIOCartilage - OriginalCartilage - LinearBIOFibrous Tissue - OriginalFibrous Tissue - LinearBIO

Day nr.

Tiss

ue fr

actio

n

Mesenchymal Cells

Osteoblast Cells

Chondrocyte Cells

Fibroblast Cells

Bone

Fibrous Tissue Cartilage

Differentiation

Proliferation

Production

Tissue production

Potential Simplifications Results: Removing the fluid phase Results: Linearized Biological Model Results: 1D Diffusion

Page 21: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Model OptimizationResults – 1D diffusion

• Simulations failed– Non-Positive definite stiffness matrix– Snap back behaviour? Causing the Newton-Raphson

method to fail?– Perhaps an arc length method can improve the

results• Potentially gained simulation time is marginal

– A estimated decrease of 200 seconds over the complete simulations.

Potential Simplifications Results: Removing the fluid phase Results: Linearized Biological Model Results: 1D Diffusion

Page 22: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Code Optimizations

Page 23: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Code OptimizationsPotential for increasing speed

• Culprit: Disk operations• Example: Reading the stimuli.dat file • Reduce waiting times• Reduce number

of disk operationsSend command to open

stimulus.dat file. Is file in free for use?

Read element number and stimulus value.

Is file operation complete?

Yes

NoWait 1 second

START

Wait 1 secondNo

Yes

Is this the last record in stimuli.dat

Yes

Close file and go to next record

Close file and continue subroutine

No

Potential Optimizations Results:MINISLEEP Results:Batchwrites

Page 24: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Code OptimizationsMinisleep

• Reduce waiting time• FORTRAN limits the waiting period to 1 sec• Write the MINISLEEP

0 50 100 150 200 2500

0.2

0.4

0.6

0.8

1

1.2

1.4

1.6

1.8

2x 10

5

time

(s)

Comparison of timings

Iteration nr

Original

MINISLEEP(1)MINISLEEP(10)

MINISLEEP(250)

20%

Potential Optimizations Results:MINISLEEP Results:Batchwrites

Page 25: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Code OptimizationsBatchwrites

• Reduce the number of disk writes.• Store all variables in memory and write at the

end of an iteration• Keep in mind data sharing

• Reduction of 65% in computation time

Potential Optimizations Results:MINISLEEP Results:Batchwrites

Page 26: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Computational Homogenization

Page 27: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Computational HomogenizationTheory (1)

• Exploit periodicity to bridging the gap• Microscopic level Macroscopic level

Global Idea Deformation Tensor Localisation Upscale Stresses Macroscpoic Tangent Implementation Results

Page 28: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

• Macroscopic deformation• Microscopic deformations / microfluctuations

Computational HomogenizationTheory (2)

deformedundeformed

wXxxdXd M

F

Global Idea Deformation Tensor Localisation Upscale Stresses Macroscpoic Tangent Implementation Results

Page 29: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Computational HomogenizationTheory (3) - Localisation

• Translation between microscopic and macroscopic deformation tensor

00

00 00

11

dNwdVV V

mM

FF

00 0

1dV

V V

mM FF

01

00 0

dNw

wXx M

F

wXx M

F

Global Idea Deformation Tensor Localisation Upscale Stresses Macroscpoic Tangent Implementation Results

Page 30: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Computational HomogenizationTheory (4) – Stresses

• Hill-Mandel condition• Work conjugated couple:

– Deformation tensor & 1st Piola-Kirchhoff stress

mM WW

00 0

1

dXpM

P

Global Idea Deformation Tensor Localisation Upscale Stresses Macroscpoic Tangent Implementation Results

Page 31: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Computational HomogenizationTheory (4) – Macroscopic tangent

• Tangent describes how small variations affect the stresses in the system

• Numerical differentiation• Very cumbersome method, but Miehe (1996)

developed a more efficient method.

Global Idea Deformation Tensor Localisation Upscale Stresses Macroscpoic Tangent Implementation Results

Page 32: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Computational HomogenizationImplementation in MSC Marc

• Macroscopic Model– Loading– Deformation tensor– Macroscopic tangent

• Microscopic Model– Periodic Boundary

Conditions– Upscale stresses

Global Idea Deformation Tensor Localisation Upscale Stresses Macroscpoic Tangent Implementation Results

Page 33: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Computational HomogenizationResults / Issues

• CH implementation requires a lot a additional computing time– Computational overhead in the numerical

differentiation scheme• Application of loading

1 2 3 4 5 6 7 80

0.05

0.1

0.15

0.2

0.25

Effect of different loading

Bone - OriginalBone - TopLoadedCartilage - OriginalCartilage - TopLoadedFibrous Tissue - OriginalFibrous Tissue - TopLoaded

Day nr.

Tiss

ue fr

actio

n

Global Idea Deformation Tensor Localisation Upscale Stresses Macroscpoic Tangent Implementation Results

Page 34: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Summary & Conclusions• Sections of the constitutive equations that are

responsible for long calculations cannot be neglected– Fluid phase, non-linear biological model, diffusion

• Acceleration of the simulation was obtained by efficiently directing disk activity.

• Computational Homogenization increases simulation time and cannot account for specific loading

Summary & Conclusions Recommendations Questions

Page 35: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Recommendationsalternatives for upscaling results

• How to bridge the gap?– Use the model to investigate time to fixation under

different loadings– Use a larger model to asses post-surgery

micromotions– Develop an element that adapts the stiffness in

order to ensure that at the time to fixation the micromotions are reduced to zero.

Summary & Conclusions Recommendations Questions

Page 36: A feasibility study on the acceleration and upscaling of bone ingrowth simulation An investigation into the feasibility of applying a homogenization scheme

Questions?

?

Summary & Conclusions Recommendations Questions

Questions?

?

?

?

?

?

? ??

?

?