particle-based viscoelastic fluid simulation

30
Particle-based Viscoelastic Fluid Simulation Simon Clavet Philippe Beaudoin Pierre Poulin LIGUM, Université de Montréal

Upload: kael

Post on 05-Jan-2016

68 views

Category:

Documents


1 download

DESCRIPTION

Particle-based Viscoelastic Fluid Simulation. Simon Clavet Philippe Beaudoin Pierre Poulin LIGUM, Universit é de Montréal. Goals. Intuitive and versatile framework for particle-based fluid simulation Stable integration scheme Small scale surface tension effects - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Particle-based Viscoelastic Fluid Simulation

Particle-based Viscoelastic Fluid Simulation

Simon ClavetPhilippe Beaudoin

Pierre Poulin

LIGUM, Université de Montréal

Page 2: Particle-based Viscoelastic Fluid Simulation

Goals

• Intuitive and versatile framework for particle-based fluid simulation

• Stable integration scheme

• Small scale surface tension effects

• Simple scheme for viscoelasticity

• Two-way coupling with rigid bodies

Page 3: Particle-based Viscoelastic Fluid Simulation

Overview

• Previous work

• Integration scheme

• Density relaxation

• Viscoelasticity

• Interactions with objects

• Implementation details, results, and conclusion

Page 4: Particle-based Viscoelastic Fluid Simulation

Previous Work

• Grid-based techniques

– High-quality liquid animation[Enright et al. 2002]

– Viscous, elastic, and plastic materials [Goktekin et al. 2004]

Page 5: Particle-based Viscoelastic Fluid Simulation

Previous Work

• Particle-based techniques

– SPH for highly deformable bodies[Desbrun, Gascuel 1996]

– Interactive water simulation[Müller et al. 2003]

– Elastic and plastic materials[Müller et al. 2004]

Page 6: Particle-based Viscoelastic Fluid Simulation

Integration Scheme

• Advance particles to predicted positions• Relax according to positional constraints

Page 7: Particle-based Viscoelastic Fluid Simulation

Apply gravity

Integration Scheme

Page 8: Particle-based Viscoelastic Fluid Simulation

Apply gravity and viscosity

Integration Scheme

Page 9: Particle-based Viscoelastic Fluid Simulation

Apply gravity and viscosity

Advance to predicted positions

Integration Scheme

Page 10: Particle-based Viscoelastic Fluid Simulation

Apply gravity and viscosity

Advance to predicted positions

Relax (density and springs)

Integration Scheme

Page 11: Particle-based Viscoelastic Fluid Simulation

Apply gravity and viscosity

Advance to predicted positions

Relax (density and springs)

Obtain new velocities

Integration Scheme

Page 12: Particle-based Viscoelastic Fluid Simulation

Apply gravity and viscosity

Advance to predicted positions

Relax (density and springs)

Obtain new velocities

Integration Scheme

Page 13: Particle-based Viscoelastic Fluid Simulation

Apply gravity and viscosity

Advance to predicted positions

Relax (density and springs)

Obtain new velocities

Integration Scheme

Page 14: Particle-based Viscoelastic Fluid Simulation

Density Relaxation

• For each particle, – Compute its density– Modify the particle and its neighbors predicted

positions to approach rest-density

Page 15: Particle-based Viscoelastic Fluid Simulation

• Density: sum of weighted neighbor contributions

)(

2

1iNj

iji h

r

density kernel

h r

Density Relaxation

Page 16: Particle-based Viscoelastic Fluid Simulation

Density Relaxation

• Pseudo-Pressure:

P

0i

i

0~ iiP

Page 17: Particle-based Viscoelastic Fluid Simulation

Density Relaxation

• Pseudo-Pressure:

0~ iiP

P

0 i

iii

Page 18: Particle-based Viscoelastic Fluid Simulation

Density Relaxation

• Displacement also depends on a distance kernel

h

rPD iji 1~

h r

i

Page 19: Particle-based Viscoelastic Fluid Simulation

Density Relaxation

• Linear and angular momentum conservation: apply radial, equal, and opposite displacements

Page 20: Particle-based Viscoelastic Fluid Simulation

Density Relaxation

• Linear and angular momentum conservation: apply radial, equal, and opposite displacements

demo

Page 21: Particle-based Viscoelastic Fluid Simulation

Double Density Relaxation

• Use another SPH-like force to push near-particles• Define near-density similarly to density, but with a

sharper kernel

density kernel (1-r/h)2 near-density kernel (1-r/h)

h r

3

Page 22: Particle-based Viscoelastic Fluid Simulation

• For each particle, – Compute density and near-density– Modify the particle and its neighbors predicted

positions to approach constant density and zero near-density

Double Density Relaxation

Page 23: Particle-based Viscoelastic Fluid Simulation

Double Density Relaxation

2

11~

h

rP

h

rPD ijNEAR

iij

i

0~ iiP

NEARi

NEARiP ~

• Near-density has zero rest value• Add new term to displacement:

Page 24: Particle-based Viscoelastic Fluid Simulation

Overview

• Previous work

• Integration scheme

• Density relaxation

• Viscoelasticity

• Interactions with objects

• Implementation details, results, and conclusion

Page 25: Particle-based Viscoelastic Fluid Simulation

Elasticity

• Add linear springs between neighboring particles• Scale spring stiffness so that force vanishes

when rest-length L equals interaction range h

)(1~ rLh

L

force magnitude

r

L

)(~ rLF

Page 26: Particle-based Viscoelastic Fluid Simulation

Plasticity• Change rest-length based on current length

• Linear plasticity: )(~ LrL • Non-linear plasticity:

plastic flow only if deformation is large enough

L

L r

LL

L r

video

Page 27: Particle-based Viscoelastic Fluid Simulation

Interactions with objects

demo

Page 28: Particle-based Viscoelastic Fluid Simulation

Implementation Details

• Neighbor finding through spatial hashing

• Marching Cube for surface generation

• OpenGL display or offline raytracing

Page 29: Particle-based Viscoelastic Fluid Simulation

Results

• 20000 particles≈ 2 sec / frame

• 1000 particles≈ 10 FPS

Page 30: Particle-based Viscoelastic Fluid Simulation

Conclusion• Particle-based fluid simulation with simple and

stable integration scheme• Incompressiblity, anticlustering and surface

tension effects through double density relaxation• Dynamic rest-length springs for viscoelasticity• Two-way coupling with rigid bodies

Future Work• Multiple particle types• Rotating particles with directional springs• Multiresolution