Reading. Required: Witkin, Particle System Dynamics, SIGGRAPH 97 course notes on Physically Based Modeling.

Similar documents
Reading. Particle Systems. What are particle systems? Overview

Particle Systems. University of Texas at Austin CS384G - Computer Graphics

g(x,t) Particle Systems Reading Particle in a flow field What are particle systems? Brian Curless CSE 457 Spring 2015

Castiel, Supernatural, Season 6, Episode 18

Numerical Methods for Ordinary Differential Equations

mx bx kx F t. dt IR I LI V t, Q LQ RQ V t,

(c) Write, but do not evaluate, an integral expression for the volume of the solid generated when R is

Balancing. Rotating Components Examples of rotating components in a mechanism or a machine. (a)

Numerical Methods in Fourier Series Applications

MATH 10550, EXAM 3 SOLUTIONS

COURSE INTRODUCTION: WHAT HAPPENS TO A QUANTUM PARTICLE ON A PENDULUM π 2 SECONDS AFTER IT IS TOSSED IN?

Most text will write ordinary derivatives using either Leibniz notation 2 3. y + 5y= e and y y. xx tt t

CHAPTER 8 SYSTEMS OF PARTICLES

2C09 Design for seismic and climate changes

Two or more points can be used to describe a rigid body. This will eliminate the need to define rotational coordinates for the body!

Problem 1. Problem Engineering Dynamics Problem Set 9--Solution. Find the equation of motion for the system shown with respect to:

ECE Spring Prof. David R. Jackson ECE Dept. Notes 20

Classical Mechanics Qualifying Exam Solutions Problem 1.

Chapter 2: Numerical Methods

1. Linearization of a nonlinear system given in the form of a system of ordinary differential equations

Chapter 9: Numerical Differentiation

THE SOLUTION OF NONLINEAR EQUATIONS f( x ) = 0.

ENGI 9420 Engineering Analysis Assignment 3 Solutions

A widely used display of protein shapes is based on the coordinates of the alpha carbons - - C α

Kinetics of Complex Reactions

Microscopic traffic flow modeling

UNIVERSITY OF CALIFORNIA - SANTA CRUZ DEPARTMENT OF PHYSICS PHYS 116C. Problem Set 4. Benjamin Stahl. November 6, 2014

Stopping oscillations of a simple harmonic oscillator using an impulse force

HE ATOM & APPROXIMATION METHODS MORE GENERAL VARIATIONAL TREATMENT. Examples:

PC5215 Numerical Recipes with Applications - Review Problems

AP Calculus BC Review Applications of Derivatives (Chapter 4) and f,

Appendix: The Laplace Transform

FREE VIBRATION RESPONSE OF A SYSTEM WITH COULOMB DAMPING

CS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2

Chapter 2 The Solution of Numerical Algebraic and Transcendental Equations

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

18.01 Calculus Jason Starr Fall 2005

MATH Exam 1 Solutions February 24, 2016

CHAPTER 10 INFINITE SEQUENCES AND SERIES

HOMEWORK #10 SOLUTIONS

Numerical Methods for Partial Differential Equations

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

x x x 2x x N ( ) p NUMERICAL METHODS UNIT-I-SOLUTION OF EQUATIONS AND EIGENVALUE PROBLEMS By Newton-Raphson formula

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

Lecture 2: Finite Difference Methods in Heat Transfer

ME NUMERICAL METHODS Fall 2007

EXAM-3 MATH 261: Elementary Differential Equations MATH 261 FALL 2006 EXAMINATION COVER PAGE Professor Moseley

Solutions to quizzes Math Spring 2007

Solution of Linear Constant-Coefficient Difference Equations

Streamfunction-Vorticity Formulation

Chapter 8. Euler s Gamma function

Time-Domain Representations of LTI Systems

SECTION 2 Electrostatics

Fluid Physics 8.292J/12.330J % (1)

MATHEMATICS. 61. The differential equation representing the family of curves where c is a positive parameter, is of

(A) 0 (B) (C) (D) (E) 2.703

Chapter 8. Euler s Gamma function

1 Approximating Integrals using Taylor Polynomials

PARTIAL DIFFERENTIAL EQUATIONS SEPARATION OF VARIABLES

AP Calculus BC 2007 Scoring Guidelines Form B

Free Surface Hydrodynamics

REGRESSION (Physics 1210 Notes, Partial Modified Appendix A)

Calculus 2 - D. Yuen Final Exam Review (Version 11/22/2017. Please report any possible typos.)

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled

DYNAMIC ANALYSIS OF BEAM-LIKE STRUCTURES SUBJECT TO MOVING LOADS

Math 312 Lecture Notes One Dimensional Maps

Solutions to Final Exam Review Problems

Chapter 4. Fourier Series

Particle Systems. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Discrete-Time Systems, LTI Systems, and Discrete-Time Convolution

Name: Math 10550, Final Exam: December 15, 2007

SOLID MECHANICS TUTORIAL BALANCING OF RECIPROCATING MACHINERY

Physics 324, Fall Dirac Notation. These notes were produced by David Kaplan for Phys. 324 in Autumn 2001.


Principle Of Superposition

The Pendulum. Purpose

U8L1: Sec Equations of Lines in R 2

Polynomials with Rational Roots that Differ by a Non-zero Constant. Generalities

In algebra one spends much time finding common denominators and thus simplifying rational expressions. For example:

A second look at separation of variables

MATH 6101 Fall 2008 Newton and Differential Equations

Math 155 (Lecture 3)

CS537. Numerical Analysis and Computing

Synopsis of Euler s paper. E Memoire sur la plus grande equation des planetes. (Memoir on the Maximum value of an Equation of the Planets)

Lecture 25 (Dec. 6, 2017)

Assignment 1 : Real Numbers, Sequences. for n 1. Show that (x n ) converges. Further, by observing that x n+2 + x n+1

ME 501A Seminar in Engineering Analysis Page 1

Engineering Mechanics Dynamics & Vibrations. Engineering Mechanics Dynamics & Vibrations Plane Motion of a Rigid Body: Equations of Motion

Chimica Inorganica 3

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

The Mathematical Model and the Simulation Modelling Algoritm of the Multitiered Mechanical System

Numerical Astrophysics: hydrodynamics

EDEXCEL NATIONAL CERTIFICATE UNIT 4 MATHEMATICS FOR TECHNICIANS OUTCOME 4 - CALCULUS

Lecture 6 Chi Square Distribution (χ 2 ) and Least Squares Fitting

CS321. Numerical Analysis and Computing

The Gamma function. Marco Bonvini. October 9, dt e t t z 1. (1) Γ(z + 1) = z Γ(z) : (2) = e t t z. + z dt e t t z 1. = z Γ(z).

Chapter 9 Computer Design Basics

EXPERIMENT OF SIMPLE VIBRATION

Transcription:

Particle Systems

Readig Required: Witki, Particle System Dyamics, SIGGRAPH 97 course otes o Physically Based Modelig. Optioal Witki ad Baraff, Differetial Equatio Basics, SIGGRAPH 97 course otes o Physically Based Modelig. Hockew ad Eastwood. Computer simulatio usig particles. Adam Hilger, New York, 1988. Gavi Miller. The motio dyamics of sakes ad worms. Computer Graphics 22:169-178, 1988. 2

What are particle systems? A particle system is a collectio of poit masses that obeys some physical laws (e.g, gravity or sprig behaviors). Particle systems ca be used to simulate all sorts of physical pheomea: Smoke Sow Fireworks Hair Cloth Sakes Fish 3

Overview 1. Oe lousy particle 2. Particle systems 3. Forces: gravity, sprigs 4. Implemetatio 4

Particle i a flow field We begi with a sigle particle with: Positio, x x = y Velocity, dx dx / dt v x& = = dt dy / dt Suppose the velocity is dictated by some drivig fuctio g: x& = g( x, t) y g(x,t) x x 5

Vector fields At ay momet i time, the fuctio g defies a vector field over x: How does our particle move through the vector field? 6

Diff eqs ad itegral curves The equatio x& = g( x, t) is actually a first order differetial equatio. We ca solve for x through time by startig at a iitial poit ad steppig alog the vector field: Start Here This is called a itial value problem ad the solutio is called a itegral curve. 7

Euler s method Oe simple approach is to choose a time step, Δt, ad take liear steps alog the flow: x( t+δ t) = x() t +Δt x& () t = x() t +Δt g( x,) t This approach is called Euler s method ad looks like: Properties: Simplest umerical method Bigger steps, bigger errors Need to take pretty small steps, so ot very efficiet. Better (more complicated) methods exist, e.g., Ruge-Kutta. 8

Particle i a force field Now cosider a particle i a force field f. I this case, the particle has: Mass, m Acceleratio, dv a x& = = dt 2 d x 2 dt The particle obeys Newto s law: f = ma= mx& The force field f ca i geeral deped o the positio ad velocity of the particle as well as time. Thus, with some rearragemet, we ed up with: (,, t) x = fxx & & m 9

This equatio: Secod order equatios (,, t) x&= fxv m is a secod order differetial equatio. Our solutio method, though, worked o first order differetial equatios. We ca rewrite this as: x& = v& = v fxv (,, t) m where we have added a ew variable v to get a pair of coupled first order equatios. 10

Phase space x v x& v& x& v = / m v& f Cocateate x ad v to make a 6-vector: positio i phase space. Takig the time derivative: aother 6-vector. A vailla 1 st -order differetial equatio. 11

Particle structure x v f m positio velocity force accumulator mass Positio i phase space 12

Solver iterface x v f m getdim getstate setstate deriveval [ 6] f x v v / m 13

Particle systems particles time x x x x 1 2 3 v 1 v 2 v 3 v L f1 f2 f3 f m1 m2 m3 m 14

Solver iterface particles time get/setstate getdim deriveval 6 x v x v L x v 1 1 2 2 f f f v v L x m m m 1 2 1 2 1 2 15

Forces Costat (gravity) Positio/time depedet (force fields) Velocity-depedet (drag) N-ary (sprigs) 16

Gravity Force law: f grav = mg p->f += p->m * F->G 17

Viscous drag Force law: f drag = kdrag v p->f -= F->k * p->v 18

Damped sprig Force law: f1 = ks( Vx r) + f = f 2 1 k d VvVx Vx Vx Vx r = rest legth x 1 Vx= x1 x2 x 2 Vv = v1 v2 19

Particle systems with forces particles time forces f F F F F x1 x2 v 1 v 2L f f x v f 1 2 m1 m2 m 20

deriveval loop 1. Clear forces Loop over particles, zero force accumulators 2. Calculate forces Sum all forces ito accumulators 3. Gather Loop over particles, copyig v ad f/m ito destiatio array 21

deriveval Loop x1 x2 v 1 v 2L f f x v f 1 2 m1 m2 m 1 Clear force accumulators 2 F F F Apply forces to particles F x1 x2 v 1 v 2L f f x v f 1 2 m1 m2 m 3 Retur [v,f/m, ] to solver 22

Solver iterface particles time get/setstate getdim deriveval 6 x v x v L x v 1 1 2 2 f f f v v L x m m m 1 2 1 2 1 2 23

Differetial equatio solver x& v = / m v& f Euler method: i+ 1 i i x 1 x 1 v 1 i+ 1 i i v1 v1 f1 / m1 M = M+ Vt M i+ 1 i i x x v i+ 1 i i v v f / m 24

Boucig off the walls Add-o for a particle simulator For ow, just simple poit-plae collisios 25

Normal ad tagetial compoets V N P N V V V N T VT = ( N V) N V = V V N 26

Collisio Detectio V X ( X P) N<ε NV < 0 Withi ε of the wall Headig i P N 27

Collisio Respose V N k r V N V VT V T Vʹ before after Vʹ = VT krvn 28

Artificial Fish 29

Crowds 30

Summary What you should take away from this lecture: The meaigs of all the boldfaced terms Euler method for solvig differetial equatios Combiig particles ito a particle system Physics of a particle system Various forces actig o a particle Simple collisio detectio 31