Differential Equations and Particle Systems

64
Differential Equations & Particle Systems Thanks to Trueille, Popovic, Baraff, Witkin

Transcript of Differential Equations and Particle Systems

Page 1: Differential Equations and Particle Systems

Differential Equations

&

Particle Systems

Thanks to Trueille, Popovic, Baraff, Witkin

Page 2: Differential Equations and Particle Systems

Physics-based Animation

http://physbam.stanford.edu/~fedkiw/animations/large_pile.avi

Page 3: Differential Equations and Particle Systems
Page 4: Differential Equations and Particle Systems
Page 5: Differential Equations and Particle Systems

Describing Physics

source: http://people.rit.edu/andpph/exhibit-8.html

Page 6: Differential Equations and Particle Systems

What variables do we need?

• Position

• Velocity

• Radius

• Mass

• Racquet Info

Dynamic Static

http://p

eople

.rit.e

du/a

ndpph/e

xhib

it-8

.htm

l

• Rotation?

Page 7: Differential Equations and Particle Systems

What Happens Next?

• Position

• Velocity

http://p

eople

.rit.e

du/a

ndpph/e

xhib

it-8

.htm

l

?

Discrete Time:

Continuous Time:

Page 8: Differential Equations and Particle Systems

Differential Equations

Page 9: Differential Equations and Particle Systems
Page 10: Differential Equations and Particle Systems
Page 11: Differential Equations and Particle Systems
Page 12: Differential Equations and Particle Systems
Page 13: Differential Equations and Particle Systems
Page 14: Differential Equations and Particle Systems
Page 15: Differential Equations and Particle Systems

Two Problems

• Accuracy

• Instability

Page 16: Differential Equations and Particle Systems

Accuracy

Consider the equation:

What do the integral curves

look like?

Page 17: Differential Equations and Particle Systems
Page 18: Differential Equations and Particle Systems

Problem 2: Instability

• Consider the following system:

Page 19: Differential Equations and Particle Systems

Problem 2: Instability

to Neptune!

Page 20: Differential Equations and Particle Systems

Accuracy of Euler Method

Consider Taylor Expansion about x(t)...

constant linear everything

else

Euler step error

Euler’s method has error O(h2)... first order.

How can we get to O(h3) error?

Page 21: Differential Equations and Particle Systems
Page 22: Differential Equations and Particle Systems

The Midpoint Method

• Also known as second order Runge-Kutta:

Page 23: Differential Equations and Particle Systems
Page 24: Differential Equations and Particle Systems

4th-Order Runge-Kutta

Very popular

Page 25: Differential Equations and Particle Systems

q-Stage Runge-Kutta

General Form:

where:

Find the constant that ensure accuracty O(hn).

Page 26: Differential Equations and Particle Systems
Page 27: Differential Equations and Particle Systems
Page 28: Differential Equations and Particle Systems
Page 29: Differential Equations and Particle Systems
Page 30: Differential Equations and Particle Systems
Page 31: Differential Equations and Particle Systems
Page 32: Differential Equations and Particle Systems
Page 33: Differential Equations and Particle Systems

Particle Systems

Page 34: Differential Equations and Particle Systems
Page 35: Differential Equations and Particle Systems
Page 36: Differential Equations and Particle Systems
Page 37: Differential Equations and Particle Systems
Page 38: Differential Equations and Particle Systems
Page 39: Differential Equations and Particle Systems
Page 40: Differential Equations and Particle Systems
Page 41: Differential Equations and Particle Systems
Page 42: Differential Equations and Particle Systems
Page 43: Differential Equations and Particle Systems
Page 44: Differential Equations and Particle Systems
Page 45: Differential Equations and Particle Systems
Page 46: Differential Equations and Particle Systems
Page 47: Differential Equations and Particle Systems
Page 48: Differential Equations and Particle Systems
Page 49: Differential Equations and Particle Systems
Page 50: Differential Equations and Particle Systems
Page 51: Differential Equations and Particle Systems
Page 52: Differential Equations and Particle Systems
Page 53: Differential Equations and Particle Systems
Page 54: Differential Equations and Particle Systems
Page 55: Differential Equations and Particle Systems
Page 56: Differential Equations and Particle Systems
Page 57: Differential Equations and Particle Systems
Page 58: Differential Equations and Particle Systems
Page 59: Differential Equations and Particle Systems
Page 60: Differential Equations and Particle Systems

Example

http://www.youtube.com/watch?v=3_fLO4xjTqg

Page 61: Differential Equations and Particle Systems
Page 62: Differential Equations and Particle Systems
Page 63: Differential Equations and Particle Systems
Page 64: Differential Equations and Particle Systems